Subscribe:

Ads 468x60px

Pages

Friday, June 24, 2011

Installing and configuring the VNC(Virtual Networked Computing) server


VNC, or Virtual Networked Computing, is a way of controlling a remote computer just as though you are sitting in front of it. In the Windows world it is also known as remote desktop but it's normally referred to as VNC in the Linux world.

Local System:
Step1: Check if the package is installed or not
#rpm -qa | grep vnc

Step2 : Install the package if you did not get any output
#yum install tigervnc* -y

Step3 : Add atleast one VNC user
#vim /etc/sysconfig/vncserver
##Add the Following lines at last of the file
VNCSERVERS=”2: student”
VNCSERVERARGS[2]=”-geometry 800*600”

Note: you can add as many as user you like. And geometry sets the size

Save and Exit
:wq


Step4 : Add user student with assign password
#useradd student
#passwd student

Step5 : Login to student user
#su – student

Step6 : Assign the vnc servers password
#vncpasswd

And logout from user
#exit

Step7 : On the service at booting time
#chkconfig vncserver on

Step8 : Now start the apache service
#service vncserver restart

Step9 : check the vncserver port number
#netstat –ntlp | grep 590

Step10 : check the vncserver process running or not
#ps –ef | grep –i vnc

Remote System:
Step11 : Connect from remote machine using the local machine ip and
#vncviewer <remote systems ip>:<desktopnumber>
#vncviewer 192.168.0.254:2

Enter the password of the student user

0 comments:

Post a Comment