Monday, December 31, 2012

How to install VNC in Linux

VNC server works similar to Telnet or SSH daemon, except that it allows VNC clients running on diverse OS platforms to remotely access Linux Desktop Manager of the server itself, rather than the TTY text-based console!

  1. Locate the vnc-server-4.0-8.1.rpm package from the Red Hat Linux installation CD or download the latest free version of VNC server from Real VNC.
     
  2. Install the rpm package of VNC server:
    rpm -Uvh vnc-server-4.0-8.1.rpm
     
  3. VNC server is using different set of login authentication than the Linux /etc/passwd. Meaning that, you have to create VNC login password for individual Linux login accounts who are granted remote access with VNC client.
  4. Run the command 'vncserver -geometry 1024x768' - if you know how to tweak this command then feel free. This command will give you a basic VNC server 
    5.) Note the number that it prints to console after you supply a password to use - example output:

    [15:23:10][Siva@Siva-pc:~]$ vncserver -geometry 1024x768

    You will require a password to access your desktops.

    Password:
    Verify:
    xauth:  creating new authority file /home/siva/.Xauthority
    xauth: (stdin):1:  bad display name "xxxxxxx:2" in "add" command

    New 'xxxxxxxxxxxxxxxxxxxxxxx:2 (Siva)' desktop is xxxxxxxxxxxxx:2

    Creating default startup script /home/siva/.vnc/xstartup
    Starting applications specified in /home/siva/.vnc/xstartup
    Log file is /home/siva/.vnc/xxxxxxxxxxxxxxx:2.log


No comments: