How to install VNC Server.
For RHEL5 or Centos
yum install vncserver
Edit the lines below in the file /etc/sysconfig/vncservers and add a user “test1″
(user should be a valid user).
VNCSERVERARGS[1]=”-geometry 1024×768 -depth 16″
To add more users, just add the lines in the next box below for second user. You can continue with more number of users.
Now the port for user one is 5900+1=5901, The port for user two is 5900+2=5902 and so on.
VNCSERVERARGS[2]=”-geometry 1024×768 -depth 16″
Add a password
Password:
Verify:
Edit the startup script
# Uncomment the following two lines for normal desktop:
exec /etc/X11/xinit/xinitrc
/etc/X11/xinit/xinitrc: Bourne-Again shell script text executable
Go for Reboot. When the server is back type the command below to start the VNC server.
Connect to VNC server from your local machine.
(Dont forge to allow 5901 in your firewall.)
Now you can login using the login created previously.
Leave a Reply
You must be logged in to post a comment.