Thursday, September 13, 2012

VNCServer Setup

VNC is used to display an X windows session running on another computer. Unlike a remote X connection, the xserver is running on the remote computer, not on your local workstation. Your workstation ( Linux or Windows ) is only displaying a copy of the display ( real or virtual ) that is running on the remote machine. 

Step 1: SSH to the linux server and sudo su - to root
# sudo su - 
Step 2: Install the following pre-requisite before running vnc-server on the server
  
# yum install xsetroot
# yum install xterm
# yum install twm
Step 3:  Install vnc-server thru yum on the server
# yum install vnc-server
Step 4:  Install vnc viewer in your local machine
You can download the software for free at http://www.realvnc.com/download/viewer/  
Step 5:  Start vncserver on the server
# ssh to the server 
# su - appadmin     Note: run is as the user you want to do the install.
# vncserver
 
Note: The first time you start vnc; it will prompt you to setup a password, 
this password will be use everytime you launch a vncviewer. It will be stored
under <home>/.vnc/passwd file encrypted.

 
 
 
 
 
Step 6:  Validate vncserver is running on the server 
 
 
 
 
 
 
Step 7:  Launch the vncviewer from your localhost and login to the server.






After login, you will be prompt with authentication. This is the password you have setup up  the first time you start vncserver. 


 
 
 
 
A launchpad will lauch. Click anywhere within the launchpad and choose "xterm"
 



 
 


Drop the terminal anywhere within the launchpad.



















No comments:

Post a Comment