Getting started with VNC

What is VNC?

VNC is often described as "remote desktop" software. Essentially, a familiar Linux desktop runs in a virtual screen sitting in memory on our remote desktop gateway, and you can "connect to" or "view" or "remotely control" (all the same thing) that virtual desktop from anywhere in the world. In particular, you can do so from machines running Mac OS X or Microsoft Windows. (For the curious: you can read more about this project at www.realvnc.com and at www.tightvnc.com. The TightVNC folks have the faster implementation.)

One-time setup: starting a VNC server

To get started, you must once and for all create your virtual X desktop.

How to figure out your desktop number

If you've forgotten your desktop number, first use SSH to connect to the VNC host, as described above, then issue the command ps -ef | grep vnc to get a list of all desktops. You can even issue ps -ef | grep vnc | grep myusername to restrict the output to lines containing your username.

How to permanently kill your remote desktop

There is seldom a need to do this. To kill your remote desktops, first use SSH to connect to the VNC host, as described above. To kill a particular desktop, for example desktop number 7, use the command vncserver -kill :7; or, to kill all your desktops at once, use the command killall Xvnc Xrealvnc. (Ignore the various “Operation not permitted” error messages, which refer to remote desktops owned by other people.)

Hints for getting the most out of VNC


Navigation tree for section Computer Support