Tuesday 7 June 2011

VNC

Virtual Network Console (VNC)
           
VNC is a graphical desktop sharing system that uses the RFB (Remote Frame Buffer) protocol to remotely control another computer. It transmits the keyboard and mouse events from one computer to another, relaying the graphical screen updates back in the other direction, over a network.
VNC is platform-independent – a VNC viewer on one operating system may connect to a VNC server on the same or any other operating system. There are clients and servers for many GUI-based operating systems and for Java. Multiple clients may connect to a VNC server at the same time.VNC provide graphical console to the remote users.

            Configuration file: /root/.vnc/xstartup

Configure VNC (Server Side):
First Mount the Linux CD Rom.
# rpm –ivh - -force vncserver + <tab>
# setup                                                                   (Disable firewall)
# chkconfig vncserver on
# chkconfig - - list vncserver
# vncpasswd root                                            (Set VNC password for Root user)
# vncserver                                                   (Note the running session number.)
# vi /root/.vnc/xstartup                                    (Remove # sine except first line.)
     Esc. :wq!
# vncserver

           
            Access VNC Server with session number (Client Side): By the help of VNC Viewer we can access VNC Server remotely.
            On VNC Viewer, Enter Server IP with Session number
            192.168.10.44:3                               (Here 3 is the session number)
            Enter VNC password

           
Access VNC Server with port number: We can also access the VNC server with it port number with changing some configurations.

Change VNC server port number:
# vi /usr/bin/vncserver
            Go to line no. 125 and change the port number and remove display number then save and exit the file. The default port number is 5900.
            # $vncPort = 5900 + $displayNumber;
            $vncPort = 5900;

# vi /etc/sysconfig/vncservers
            Go to line no. 20, uncomment this line and change username “root”.
            VNCSERVERS=“1:root”
# service vncserver restart

Access VNC Server with port number (Client Side): By the help of VNC Viewer we can access VNC Server remotely.
            On VNC Viewer, Enter Server IP with Port number
            192.168.10.44:5900                                    (Here 5900 is the VNC port number)
            Enter VNC password

No comments:

Post a Comment

Boot to UEFI Mode or legacy BIOS mode

Boot to UEFI Mode or legacy BIOS mode Choose UEFI or legacy BIOS modes while installing Windows. After Windows is installed, if you nee...