Introduction

Unix machines have been able to run software on remote devices and display the GUI locally for almost two decades, Linux and Mac OS X support X Forwarding with no extra software. Any terminal on Linux show do X Forwarding, Mac users need to run XTerm.

Prerequisites

  • Putty for SSH
  • Xming for the XServer client
  • Xorg and Openbox for X11 on Linux Server

Configuring Putty

  1. Add hostname
  2. Switch protocol to SSH if not already selected
  3. Type a name to save the session
  4. Go to Connection -> SSH -> X11
  5. Check “Enable X11 forwarding”
  6. Type “localhost:0” in X display location
  7. Go back to Session on the left hand side
  8. Click Save to save the session

Install and starting Xming

  1. Install Xming with default settings
  2. Start by running “All Programs -> Xming -> Xming”

You will be presented with a X in the system tray

Run X Windows Applications

Log into the saved session in Putty and execute the application you want to run

Advanced Settings

I wanted to run X Server applications through Citrix XenApp so I had to install Xming on the XenApp Application server and then hand craft some Putty switches to log into the box and execute a command. I won’t go into the Citrix XenApp configuration but I will touch on the Putty command line.

The whole command line I used was:

Where

  • -l root = login to use
  • -pw password = the password to the login
  • 123.456.789.101 = the IP address of the server
  • -X = Enable X11 forwarding
  • -m d:ProgramsPuttyarmitage.txt = the command I want to run in a text file

The code in armitage.txt is the following:

I found the Putty documentation to be sort of useful in finding the correct switches to run

http://the.earth.li/~sgtatham/putty/0.63/puttydoc.txt

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.