john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Centos vnc install

centos-vnc-install

(NOTE you'll need a window manager

yum install vnc-server

rpm -ivh vncserver


for each user that will be using vnc, run the command "vncpasswd"

/etc/sysconfig/vncservers

VNCSERVERS="1:user1 2:user2 3:user3" VNCSERVERARGS[1]="-geometry 640x480" VNCSERVERARGS[2]="-geometry 640x480" VNCSERVERARGS[3]="-geometry 800x600"

service vncserver start

service vncserver stop

login as each user and edit the xstartup.sh

!/bin/sh

Uncomment the following two lines for normal desktop:

unset SESSION_MANAGER

exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & twm &

If you really tried anything with port and :1 after your linux box ip try disabling your linux firewall by typing

service iptables stop

and try entering into your vnc again. If the problem will be solved you have to follow these simple steps:

step 1: open the iptables config vi /etc/sysconfig/iptables

Step 2: Insert this Line: -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT

Step 3: enable iptables again service iptables restart


  • « Centos selinux disable
  • Linux autologin using mingetty inittab »

Published

Feb 6, 2010

Category

linux

~162 words

Tags

  • centos 12
  • install 58
  • linux 249
  • vnc 3