maxieduncan

Wednesday 2 March 2011

Automatically start vncserver

Assuming you have already set a VNC password for your users you can automatically start vncserver on linux by editing /etc/sysconfig/vncservers.

Uncomment the VNCSERVERS line and configure a list of display to user mappings:

VNCSERVERS="1:userA 2:userB"



You also need to make sure that vnc is starting automatically:

/sbin/chkconfig --list vncserver
vncserver 0:off 1:off 2:off 3:off 4:off 5:off 6:off
/sbin/chkconfig --level 5 vncserver on
/sbin/chkconfig --list vncserver
vncserver 0:off 1:off 2:off 3:off 4:off 5:on 6:off


A really good resource for configuring vnc on linux is http://www.walkernews.net/2008/06/20/configure-vnc-server-to-auto-start-up-in-red-hat-linux/.

No comments:

Post a Comment