Using the package management system appropriate for your Linux or UNIX distribution, or for your Windows or Mac computer, install the X2go client as described here. For Ubuntu users this is as simple as typing:
- sudo apt-get install x2goclient
and, depending on which desktop environment you are using on your system, this will add a shortcut to the 'Internet' applications group or to your panel (if any). If not, typing x2goclient in a terminal will always start it and you should see the main X2go screen below, ready for you to create your first connection:
Click on the Session tab and then select New Session ... to bring up the 'New Session' dialog screen shown below.
You can use any name you like for the Session name but for this example, cfm-ic2 might be a good choice. Leave the Path at the default / setting (this option in conjunction with whatever is put into the Command box is used for starting a specific application when you connect to your remote system, instead of launching the default desktop screen). Now put cfm-ic2.ma.ic.ac.uk into the Host box followed by your college username in the Login box and change the SSH port from its default setting, port 22, to 10022 since this particular system is using the 'obfuscated' ssh port 10022 for external connections coming in from outside the College network. Finally, for the Session type at the bottom left corner of this screesn, select LXDE from the dropdown list. The screen should now look similar to the one below except for the username:
Completing the Session screen as described above will finalise the basic configuration and allow you to connect to cfm-ic2 right away but it is worth taking the time to configure at least the Connection, Input-Output and Media screens before you connect for the first time. The network speed in the Connection screen defaults to ADSL but most users might want to move the slider to the faster WAN (wide area network) setting if you are using a 'fibre' (sometimes called a Superfast or FTTC/Fibre To The Cabinet connection) or a cable broadband connection; the LAN setting is useful if you are connecting to another system on a fast wired network at home or in college.
There is a vast range of Compression algorithms to choose from but the default 16m-jpeg setting appears to work well.
Moving on to the Input/Output tab you will see a number of display-related items. Probably the most important thing here is not to choose a screen resolution greater than the resolution you are currently using on your local machine otherwise panels, etc typically at the bottom of the remote screen will be out of sight off the edge of your screen and inaccessible! If this happens, you can disconnect from the remote system and regain control of your local desktop by pressing the Ctrl+Alt+T keys. For this reason the X2go client defaults to 800x600 which is fairly low by today's standards and therefore results in a smaller remote screen but once you have got the system up & running you can then play around with the resolution and choose what's best for your own setup. Support for dual screens and even 3 or 4 screen setups is good.
The Media tab allows you to configure forwarding for sound and printing on the remote system to be redirected to your own sound and printing systems. These features have not been tested yet on Maths servers since they lack audio hardware and are not configured for printing (but they will be tested on non-Maths desktop systems soon and reported on here).
Now click on OK to save all your settings and the completed configuration screen should appear as shown in this example:
Now you are ready to connect - just click on Hoca (the little furry seal mascot) and the login screen should appear where you can type in your college password:
Now click on Ok and X2go will initiate the connection; if this is the first time you have connected to cfm-ic2 using X2go, you will be greeted by the standard ssh 'unknown host key' warning so just click on Yes to trust the key presented and proceed:
All being well and having typed your username and password correctly, you will be connected with a screen like the one shown below. Don't panic! The error dialog 'No session for pid 58891'is appearing since you are connecting to a system (cfm-ic2) that started life as a server not set up as a desktop system, with desktop-style GUI login components retro-fitted at a later date. Clicking on OK will make this error message go away.
Note: if you decide to install X2go server on your own desktop system you will not see this message since it will have been set up from the beginning as a desktop system.
The screenshot below shows a remote LXDE desktop on cfm-ic2 being accessed from a Debian Linux system at home that is running the XFCE desktop environment that is popular in the Physics department. Now you can use the remote computer just as if you were sitting in front of it with the keyboard, mouse & screen on the desk in front of you.
Finally, to illustrate just how agnostic X2go is regarding the operating systems, desktop environments and monitor resolutions of the systems at each end of a X2go session, the screenshot below is from a FreeBSD desktop system using the fvwm2 window manager with dual 27 inch 3840 pixel (4k) monitors side-by-side, using X2go to connect to an OpenSUSE Linux system in College for a Gimp graphical editing session. The very wide (7680 pixel) image spread across two monitors on the local system is heavily compressed here to fit into a reasonably-sized web page, hence the lack of fine detail, but this screenshot serves to emphasise the flexibility of X2go; the desktop environment on the remote OpenSUSE system is IceWM, by the way and is normally viewed in College on a 1600x1200 pixel 20 inch screen.