Running Graphical Applications Remotely

The UW1-320 Linux Lab Laboratory allows remote login for the CSS students. You can use the ssh protocol to execute remote commands, and can also use it as a tunnel to display content of graphical applications, from the linux lab machines to your computer. This tutorial is intended to help students perform this procedure from a Mac or Windows machine.

Please note that the Linux lab Machines are located in the UW Private Network. Therefore, if you are trying to access it off Campus (e.g. from Home) you need to use Husky Onnet VPN: https://itconnect.uw.edu/connect/uw-networks/about-husky-onnet/

On Mac

The latest versions of MacOS (10.8 and above) don't come with the standard features of X Window System anymore. In order to enable X11 forwarding, is necessary to install an implementation of X.Org, called XQuartz.

http://xquartz.macosforge.org

After you have XQuartz installed, open the new X11.app icon you'll have available at Applications → Utilities:

With the X11.app running in background, open Mac default terminal (Applications → Utilities → Terminal) and log into the linux lab, using the following command:

slogin –Y USERNAME@uw1-320-lab.uwb.edu 

Make sure you are replacing “USERNAME” by your netID (same as ###@uw.edu), and using the option “-Y” to enable Xforwading support. If you have questions about how to connect to the linux Lab, please visit Connecting to the Linux lab machines
If this is the first time you are connecting, you need to ajust the $DISPLAY variable with the following command. You just need to run this command once and the changes will persist for the next logons.
DISPLAY=localhost:10.0

Once you've completed the previous instructions and have ssh session running in the linux lab, you should be able to run graphical applications, remotely, from the command line interface. Test if it works, by typing the following command on the ssh session and check if you get the remote application running in your local MacOS system.

 xeyes 

On the CLI, use “<CONTROL> + C” to escape, or just close the application's window in your local computer.

On Windows

MobaXterm

While the XMing information below is still true, a more convenient solution may be MobaXterm. Someone should really flesh out this section, but not me. FIXME

XMing

Like the latest versions of MacOS, Windows doesn't have a native X Server. Therefore, it's necessary to install a software that enable X11 support on windows. For this tutorial, we recommend the windows user windows to install XMing

http://sourceforge.net/projects/xming/

During the Xming installation, if you are not sure about the options you have available, select the default options, by just clicking the next button, until its done. Go to the start menu, open the folders All Programs → Xming, and double click on the Xming icon and make sure it's running in background. When Xming is running, you should be able to see its small icon close to the clock:

or

As a terminal we will use Putty:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

After download Putty.exe, you just need to place the executable in a known location (such as your Desktop or your Documents folder) and run it; this basic the installation process. On Putty's settings, you have to enable X11 forwarding by checking the box placed under Connection → X11 :

You have to check the x11 forwarding box every time you open putty, and want to run graphical applications remotely!

After enabling X11 forwarding on putty, you have to set the connection information and hit open:

HostName:UW1-320-lab.uwb.edu

Makesure XMing is running in background
If this is the first time you are connecting, you need to ajust the $DISPLAY variable with the following command. You just need to run this command once and the changes will persist for the next logons.
DISPLAY=localhost:10.0

Once logged in, you should be able to run graphical applications, remotely, from the command line interface. Test if it works, by typing the following command and checking if you get the application running in your local MacOS system.

 xeyes 

Navigation

The best way to find something here is to use the search box in the upper right or the site index link below.

Print/export
Mobile QR Link