
Let's create the VNC server start-up file: copy, with your favorite editor, the following text in a file called ~/.vnc/xstartup We need to set the password needed to access the VNC server we are going to start (type a password when asked): vnc directory and follow the instructions

you know what you are doing, in which case you can skip this chapter.If you see the error message above, it's OK, otherwise it means you already started vncserver once, which can mean two things: Ls: /afs/cern.ch/user/u/username/.vnc: No such file or directory On the shell prompt check if you have a directory called. These steps have to be performed only once, before the first time you start vncserver.Ĭonnect to lxplus your usual way. Initial configuration (server side, lxplus) If for any reason you cannot install a VNC viewer on your machine, you can still access a remote VNC server if you can start Java applications from the web (you can test your Java installation on the Java web site. TightVNC offers a cross-platform viewer in Java too, which comes as a single file that can be executed from any directory without special privileges. TightVNC (both client and server with some nice features).RealVNC (no need to fill in the details, just Proceed to Downloads).Linux (few examples, check you distribution repository for more).On your box (Linux, Mac or Windows) you need a VNC native client or to be able to run Java applications on the web. īefore you start, you need to have a valid CERN AFS account, to be able to connect to lxplus and start commands there. See also the video tutorial How to run to run vnc on lxplus. Here I'm describing the easiest set-up, based on standard software packages already installed or easy to install. All of them start a virtual X11 (VNC) server on the remote machine so that graphic applications can talk X11 via the local network, while the VNC client (or viewer) running on your box uses a lightweight protocol to communicate with the server and display the content of the remote virtual screen.

Several tools have been developed to address the slowness of X11, the main one being VNC, with the relative TightVNC and the alternative NoMachine NX. Unfortunately the X11 protocol is very heavy, so on slow connections it can become very painful. This works because ssh automatically tunnels the X11 protocol so that the X11 applications running on the server can talk to the X11 server running on your box. If you are used to UNIX and Linux, you probably know that you can connect with ssh to a Linux/UNIX server and start a graphic application, which will then appear (if your ssh client is configured correctly) on your screen. This page describes how to start a graphical session on the lxplus cluster via a slow network connection.
