Running X11 Applications Remotely

LEARN ABOUT VPN SERVICES IN MCECS

If yous are attempting to make an X11 connexion to a firewalled Linux figurer, you volition need to brand certain that your estimator is connected to one of our VPNs. Popular Linux hosts that are firewalled include:

  • car.ece.pdx.edu, mo.ece.pdx.edu, archive.cecs.pdx.edu
  • Computers in the CS Particle Lab (FAB 88-09)

There are many other Linux computers that do not require you to apply a VPN.

LEARN ABOUT VPN SERVICES IN MCECS

From Windows

Stride 1 – To run X11 applications starting time run MobaXterm on your machine.

Stride 2 – Once MobaXterm is loaded, select the start local terminal button as shown highlighted in blueish in the epitome below

Step 3 – This will bring up a terminal window shown in the image beneath.

Step 4 – Now, login to the remote host you desire to run your X Windows program on. Use the ssh (Secure Shell) command in the terminal with your MCECS username and host proper noun like so:

                ssh username@hostname

Pace 5 – Hitting enter to connect to that host server in which you will exist prompted for your MCECS password.

Stride half dozen – Once you are connected to a remote host, using X11, yous can commencement graphical applications directly though the concluding by typing out the application proper noun as shown in the prototype below.For example, if you enter "gimp" into the terminal,  the gimp photo editor application will open on your desktop.

If this is not a preferable method for you lot the options below are also available though they require more than effort. Through SSH forwarding you may forward X11 applications to your local X server. To do this, you will need ii applications — an X server, and an SSH terminal awarding.

Windows X11 Servers

  • X-Win32 – Most usually used X server for windows, fairly priced with an educational discount.
  • Exceed – Some other popular X server, stable, full featured, and equipped with many extra tools.
  • Cygwin/XFree86 – Gratis, though the Windows port of XFree86 is still very much in development, and does not run properly on many configurations. Too required is a decent understanding of UNIX and setting up XFree86. Still, for free you can e'er give information technology a endeavour.
  • XLive – a free, Cygwin-based X server conventiently packaged onto a CD. Information technology can be installed to the hard drive or run from the CD without requiring installation. This is a practiced choice for nontechnical users.

From Linux

Linux/*BSD X11 Servers

  • XFree86 – Probably came with your distribution. XFree86 is the most mutual implementation of 10 found on Linux and the various BSD distributions. Information technology is fast, stable, and free.

From Mac

Mac OSX

  • For OS Ten version 10.8 (Mountain Lion) and up: Showtime y'all must download and install XQuartz, an Apple supported community X11 server for OS X. Available at http://world wide web.xquartz.org/After yous install XQuartz you just need to log out and back in or restart you computer. And then you lot can SSH with X11 forwarding using the ssh -Ten flag, for instance:
    ssh -Y mayermic@linux.cs.pdx.edu

SSH Software

Linux, Mac OSX, and other *NIX variations typically come with variations of SSH. If not, yous may demand to install a version such every bit OpenSSH.

See our Vanquish/SSH Access page for more data on SSH clients for other operating systems.

Setting up X11 Forwarding

Many, just not all SSH clients currently available support X11 Forwarding, and general port forwarding. This allows network traffic to be forwarded from the remote automobile to your local box through SSH. The result is that with very little configuration, this traffic is forwarded to your motorcar, encrypted in an SSH "tunnel".

In that location are several reasons this is a preferred method to run X11 applications remotely:

  • Most importantly, the transmission is secure. Any data, passwords, etc. is encrypted within the SSH tunnel.
  • Setup is easy. In nigh situations, all you need to do is have your X server running. There is no need to modify permissions for strange hosts, and no need to gear up your DISPLAY variable. SSH does it all for yous.
  • With SSH pinch turned on, information technology tin really exist faster to use SSH than not on low bandwidth connections.

To set up SSH port forwarding, you simply need to enable that option in your client. We outline a few examples below for common clients:

Note: We recommend confronting using any SSH program that does not support SSH version two. MacSSH, and OpenSSH support both SSH2 and port forwarding.

MacSSH

  1. Get to the carte du jour item Favorites -> Edit Favorites.
  2. Either create a "New" entry, or select an existing ane and click "Edit".
  3. Enter the hostname and whatsoever other desired information.
  4. Get to the "SSH2" tab.
  5. Make sure the checkbox "Forrad X11" is checked.
  6. Salve your favorite by clicking "OK".

OpenSSH or the commercial SSH Client

X11 forwarding is typically turned on by default in near *Nix distributions of SSH. If information technology is not, you can enable information technology by calling SSH with the "-X" selection. For example:

% ssh -X username@redhat.ece.pdx.edu

You tin can besides change this option in the SSH configuration files. Delight refer to the SSH documentation for more.

Note: The -X flag has inverse in OpenSSH three.eight and later, X11 forwarding is performed in a fashion that applications run as untrusted clients by default. Some applications may not function properly when run as untrusted clients. To forward X11 so that applications are run as trusted clients, invoke ssh with the -Y flag instead of the -X flag, or set ForwardX11Trusted in the ~/.ssh/config file.

Running your Application

This is the best function! Get-go, showtime your 10 Server if it isn't running already. To run the X application you want, simply SSH in to the machine you lot want, and run the program. The plan should display on your screen, probably after some delay as information technology loads.

Speed

Note that X11 requires a lot of network traffic. Firefox, for instance, can take several minutes merely to commencement and display your home page on slow connections. Only some applications are fairly reasonable, especially on a broadband connexion such as DSL or Cable. Feel free to experiment with diverse settings. Many 10 servers support options that will speed up performance over depression bandwidth connections such as caching information, or not refreshing windows that aren't in focus. Turning on compression in your SSH client can also assist in some situations.

If you run across problems, you may need to search the spider web for other options. If you lot observe something useful, feel free to e-mail us at back up@cat.pdx.edu, and we volition be glad to add it here.