| Using VNC |
| Introduction |
To be able to control the Sun workstation at the beamline remotely from another computer (PC, Mac, Unix, Linux, even inside a web browser), we use a set of programs called "VNC". Establishing the remote connection requires two separate programs. The vnc server program which runs on the machine that you want to control (beamline workstation) and the vnc viewer program which runs on the remote machine you are sitting at (laptop at home). First the server program needs to be started on the machine at the beamline, then you can use the viewer program to connect to it. |
| Starting Sun VNC server |
A solaris compatible vnc server program called "x11vnc" is installed in ~s4adm/bin on the beams XOR server (by default this directory is in your PATH for all sector 4 accounts). If you want to control a machine called comp-local from a computer called comp-remote do the following:
Step 1: Launch the server program.
Step 2: Start the vnc viewer on the comp-remote machine (there lots of VNC viewers which can be downloaded from the web). If you are on another XOR workstation and ~s4adm/bin is in your PATH you can type "vncviewer". You will get a screen asking for the workstation to connect to. Enter it and press return and you should get a screen showing you the screen of the machine you want to control. Moving the mouse into this screen allows you to control the keyboard and mouse of the server workstation. Note if you are on a laptop from home, you need to establish a VPN (Virtual Private Network) connection first. IT will install this program for you on any ANL owned computer. |
| VNC Viewers |
There is a variety of VNC viewers available. The ones that we have been using that work the best when connecting to the SUN are:
|
| VNC servers for other platforms |
You can also get the server programs to control other types of computers PCs, Linux Boxes, & Macs.
|
| Password protecting VNC |
x11vnc does not automatically protect the VNC connection with a password. Because of this anyone could in principle connect to the machine where x11vnc is running. To prevent this you need to supply the "-usepw" option above, but first you must create a password file for x11vnc to use by typing the following command:
You should get prompted for the following:
You only have to do this once or when you want to change the password |



