Search This Blog

Wednesday, July 06, 2011

How to start the vncserver automatically

 

Open the file

vi .vnc/xstartup

and add the line


exec gnome-session &

and remove the line that starts with "twm"


chkconfig --level 3 vncserver on
chkconfig --level 5 vncserver on

 

Add the following line in /etc/sysconfig/vncservers

VNCSERVERS="1:root"

service vncserver start

No comments: