Windows: Download and install the newest windows client from the X2Go website. Follow the installation wizard’s steps, you may keep all default options. Max OS X: The X2Go Mac client uses the OS X X11 server called XQuartz. If you don’t have Xquartz yet, you can get.

Contents

X2go
  • Linux
  • Mac OS X
  • Windows
  • Connecting via the NX protocol

You can run interactive applications that have Graphical User interfaces (GUI) by connecting to the cluster login node using ssh with X11 Forwarding enabled. Your local machine must be running an X server and enable X11 forwarding in order to display graphical output.

ON UNIX-like systems, an X Window System server is generally available and running with the default installation (or can be readily installed via the OS package manager). You can enable X11 Forwarding (that is the ability to visualize GUI applications running on the cluster on your local linux box) by adding the -X flag to the ssh command you use to connect to the cluster:

ssh -X login_id@hoffman2.idre.ucla.edu

where login_id is replaced by your cluster user name.

X2go Client Windows 10 Download

Alternatively, you can override the ssh default for all your sessions on the Hoffman2 cluster by creating (or adding to) a file named config in the $HOME/.ssh on your local machine and adding the option:

Host hoffman2
Hostname=hoffman2.idre.ucla.edu
User=login_id
ForwardX11 yes

where login_id is replaced by your cluster user name. You can then login on the cluster as user login_id simply issuing:

ssh hoffman2

Notes for X Window System users

The X.org Foundation leads the X Window System project and its software forms the basis for all the X packages from the various linux distributions. Starting in Xorg 1.17 (running on CentOS 6.9 and 7.x; Ubuntu version 15.04 and up and other linux distributions) indirect GLX was disabled by default, to enable indirect GLX and to allow remote visualization on the cluster of applications that use OpenGL (such as Abaqus, matlab, etc.) on your linux box you will have to locate the executable file Xorg (which is located in /usr/bin in CentOS), make a copy and create a wrapper to it in which Xorg is invoked with the +iglx flag.

On CentOS this can be achieved with:

mv /usr/bin/Xorg /usr/bin/Xorg.original
echo -e '#!/usr/bin/env bashnexec /usr/bin/Xorg.original '$@' +iglx' > /usr/bin/Xorg
chmod +x /usr/bin/Xorg
chcon --type=bin_t /usr/bin/Xorg

N.B.: You will need root privileges to implement these changes.

On Ubuntu this can be achieved with:

sudo mv /usr/bin/Xorg /usr/bin/Xorg.original

and than editing /usr/bin/Xorg to look like:

#!/bin/sh
#
# Execute Xorg.wrap if it exists otherwise execute Xorg directly.
# This allows distros to put the suid wrapper in a separate package.


basedir=/usr/lib/xorg
if [ -x '$basedir'/Xorg.wrap ]; then
exec '$basedir'/Xorg.wrap '$@'
else
exec '$basedir'/Xorg '$@' +iglx
fi

The computer will need to be rebooted.

On Mac OS X, the X windows system is called XQuartz. Mac OS X 10.5 10.6 and 10.7 installed it by default, but as of 10.8 Apple has dropped dedicated support and directs users to the open source XQuartz. You can install XQuartz from the OS distribution media or download it from https://www.xquartz.org/.

The Apple terminal application can be used to connect to the cluster. Specify -Y, not -X, in the ssh command to enable X11 Forwarding (as by default, a mac assumes that an -X connection is untrusted):

ssh -Y login_id@hoffman2.idre.ucla.edu

where login_id is replaced by your cluster user name. Alternatively, you can override the ssh default for your hoffman2 session creating a $HOME/ssh/config file similar to the one shown for linux logins.

Notes for XQuartz users

Indirect GLX was disabled by default in Xorg 1.17, starting from XQuartz version 2.7.9, to enable indirect GLX and to allow remote visualization on the cluster you will have to issue at the terminal command prompt of your mac:

defaults write org.macosforge.xquartz.X11 enable_iglx -bool true

Note: You will need to reboot your machine before being able to open GUI applications on Hoffman2.

See About X11 and OS X Mountain Lion from http://support.apple.com/kb/HT5293. For Mac OS X 10.4 (Tiger): X11 should be installed from the OS media and manually started.

On Windows third-party software needs to be installed. Here is a list of possible choices:

  • MobaXterm Enhanced terminal for Windows with X11 server, tabbed SSH client, network tools and much more. Free.
  • XMing and Xming fonts X Window System Server for Microsoft. Free.
  • CygwinLinux-like environment for Windows. To add Cygwin/X server, select the xinit package from the X11 category. Free.
  • Xshell Commercial. www.netsarang.com

Notes for MobaXterm users

  • download MobaXterm Home Edition (installer edition)
    1. double click on the installer and follow direction to install the package
    2. start mobaxterm
    3. navigate to the “Settings” tab a window will pop up, select the “SSH” tab and click on the “SSH keepalive” box and press OK
    4. select the “Session” tab, a window will pop up, select “SSH”, under Remote Host enter: hoffman2.idre.ucla.edu (you can also add your username here) click OK. You will be prompted to log on the cluster

Notes for Xming users

  • You will need to install PuTTY and configure it as follows:
    1. start PuTTY
    2. enter hoffman2.idre.ucla.edu in the “Host Name (or OP address)” field
    3. enter hoffman2 in the “Saved Sessions” field
    4. expand the “SSH” menu under the “Category” field (press + sing) select X11 and click the “Enable X11 forwarding” field
    5. select “Session” in the “Category” field and press the “Save” button
  • Double click on the Xming icon
  • start putty and select the dalton Saved Session and log using your username and password

Notes for Cygwin users

If you have installed Cygwin (including the X11 packages) on your Windows system, you can use the following steps to make X11-enabled connection:

  1. Open a Cygwin terminal
  2. Enter the command: startxwin (this starts the X11 server on your Windows computer)
  3. In the (graphical) window that pops up, use ssh -X command described above.

Alternatively you can connect to the cluster via the NX protocol. NX is a free, secure, compressed protocol for remote X Window System connections for Windows, Linux, Mac OSX, and Solaris. We currently support connecting to the Hoffman2 cluster via the NoMachine client as well as the X2Go client.

NoMachine client

X2Go client

Skip to end of metadataGo to start of metadata

Almost all of the Structural Biology Linux workstations are on a Purdue private network and not directly accessible from outside Purdue. If you want to connect to one of our Linux workstations when you are off campus, you'll need to first connect to Purdue's VPN. See ITaP's web site for information on how to set this up.

There are several options available for remotely accessing our Linux workstations from other Linux systems, Windows PCs, or Macs. The simplest means of remote access is using an SSH client. With an SSH client you can run text-based programs such as the vi editor, ls, top, and ps. Additionally, if you have an X11 environment installed on your computer (e.g., VcXsrv for Windows or XQuartz for Mac OS X), you can even run graphical programs on your remote Linux workstation. But the X2Go client for either Windows or OS X is usually the best solution for running most graphical programs because it is very fast and easy to install.

Windows

Install an SSH client like PuTTY or SecureCRT (available for free through a Purdue site license). Be sure to set up your sessions to use the SSH2 protocol.

Installing an X11 environment on Windows is not recommended for the average user. Instead, if you need to run graphical programs, I would suggest installing an X2Go client (see below).

Mac OS X

OS X already comes with an SSH command-line client. Just open up a terminal window (Finder => Go => Utilities => Terminal, if you don't already have this app on your Dock) and type:

replacing username with your own user name and hostname with the name of the remote Linux workstation.

How To Use X2go Client

If you have XQuartz installed, then you can run graphical programs by running the X11 app (Finder => Go => Utilities => X11). This should open up a terminal window where you may type the following:

The additional -Y option will allow X11 forwarding so graphical programs that you run on the remote workstations can be displayed on your local computer.

X2go Client For Mac Os X

X2Go is probably the best way to run graphical programs remotely on Linux workstations. It is much faster than using X11 over SSH but there are a small number of programs that can't be run using X2Go. Most notably, PyMOL will not work with X2Go.

Here is a screenshot of CCP4 running remotely on a Linux host from a MacBook:

Download and install the latest X2Go client:

following the instructions found on the X2Go web site. The clients are under active development and I encourage you to upgrade your client every two or three months to make sure you benefit from any improvements and bug fixes that have been made.

X2go Client Setup

Only a few of the many Session types are recommended and/or supported:

  • Single application with command Terminal
  • MATE
  • XFCE

X2go Linux Client

The first option will start up a terminal window on the remote host that is displayed on your local computer. From this window you can then run any command that is available on the remote system. This is a good option to choose for most needs.

The next two options, MATE and XFCE, will start up full MATE and XFCE desktops respectively on the remote workstation and display them as if they were running on your local computer. Because these are full desktops, they will occupy more of your local display than using just the Terminal application.

If you have an active X2Go session, don't shut down your local computer or put it to sleep without first stopping or suspending the X2Go session. Suspended X2Go sessions may be resumed at a later time from the same local computer or even a different one.