Using VNC with NeXtMidas
Virtual Network Computing (VNC) is a graphical desktop sharing system which uses
the RFB 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.
A VNC session is generally composed of a VNC Server and a VNC Viewer (or Client).
For the purposes of this demonstration we will use software available on a standard
workstation installation of Redhat Enterprise Linux ES release 4.
- VNC Server
- VNC Viewer
It has been noted by users that NeXtMidas will not function in a VNC session
if the vncserver -depth option is set to 32.
The VNC Server is started on the machine that will be running the NeXtMidas application.
It is also commonly referred to as the "remote" machine.
To start the VNC Server session execute:
vncserver -geometry widthxheight -depth depth :display#
[user@remotesystem ~]$ vncserver -geometry 1280x1024 -depth 24 :1
New 'remotesystem:1 (user)' desktop is remotesystem:1
Starting applications specified in /home/user/.vnc/xstartup
Log file is /home/user/.vnc/remotesystem:1.log
We have provided a description of the command line arguments used above. Please
vncserver man page for a full listing of options.
Specify the size of the desktop to be created. Default is 1024x768.
Specify the pixel depth in bits of the desktop to be created.
Default is 16, other possible values are 8, 15 and 24 - anything else is
likely to cause strange behaviour by applications.
Specify the display number to use for VNC session displays. Default is :1.
To stop the VNC Server session execute:
vncserver -kill :display#
[user@remotesystem ~]$ vncserver -kill :1
Killing Xvnc process ID 26966
Please see the man pages for
vncserver to see a full listing of
The first time that you run
vncserver you will be prompted
for a password. This password will by used when trying to establish a
VNC Viewer session.
Back to Top
The VNC Viewer is started on the machine that will be receiving the VNC windows.
It is commmonly referred to as the "local" machine.
To start the VNC Viewer session execute:
[user@remotesystem ~]$ vncviewer remotesystem.cam.techma.com:1
VNC Viewer for X version 4.0b4 - built Jan 8 2007 11:53:03
Copyright (C) 2002-2003 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Mon Jul 7 14:45:35 2008
CConn: connected to host remotesystem.cam.techma.com port 5901
CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.7
A VNC Authentication dialog box will open. Insert the password that was used to
initialize the VNC Server.
Once the proper password has been entered the VNC Viewer window will open.
Click on the X in the top right corner to close the VNC Viewer.
Back to Top