Software >> OS >> Unix >> Linux >> Applications >> VNC >> How to configure vncservers for multiple users

 

1.  Edit /etc/sysconfig/vncservers and add
 
    VNCSERVERS="1:<user1> 2:<user2> 3:<user3> ..."
 
2.  Restart the vncserver by
 
    # /etc/rc.d/init.d/vncserver stop
    # /etc/rc.d/init.d/vncserver start
 
3.  user1 will have vnc server at ports 5901/5801
    user2 will have vnc srever at ports 5902/5802  
    etc
 
4.  when connecting with vncviewer, remember to specify the
    display number
 
    <host>:<display number>