Sunday 2 October 2011

Setup and Start VNC service on Linux
Add a user for VNC
[root@]# useradd -c "VNC USER" -m vnc
Modify vncservers file to start vncserver for user vnc
[root@]# vi /etc/sysconfig/vncservers
[root@]# grep ^VNC /etc/sysconfig/vncservers
VNCSERVERS="2:vnc"
VNCSERVERARGS[2]="-geometry 800x600  -nohttpd"
[root@]#
Set VNC display password using vncpasswd command
[root@]# su - vnc
[vnc@]$ vncpasswd
Password:
[vnc@]$exit
[root@]#
Start VNC server
[root@]#service vncserver start

Set up to start VNC service on startup
[root@]# chkconfig --list vncserver
vncserver       0:off   1:off   2:off   3:off   4:off   5:off   6:off
[root@]# chkconfig --levels 345 vncserver on
[root@]# chkconfig --list vncserver
vncserver       0:off   1:off   2:off   3:on    4:on    5:on    6:off
[root@]#
Download a VNC Viewer on your laptop/pc

No comments:

Post a Comment