Skip navigation

Shamelessy copied from : http://ubuntuforums.org/showthread.php?t=225898

Sometimes, you need to connect from Windows to a Unix or Linux system just to run a specific software. For example, if you want to run some Linux open source program under windows and you have a Linux machine in your network or accessible from the Internet, there is an easy way to do it: Xming.

Xming is a open source X server that runs under windows, easy to install and use. Just go to the homepage: http://freedesktop.org/wiki/Xming.

The installation is pretty forward. Once installed, the easiest way to use is to run it straight away. You have an X icon on your windows desktop, run it.

Then you need a remote terminal connection software, the best open source is Putty.
It is an executable, just download it and lunch it. Depending from the remote terminal service that is running on your server, configure Putty to use it. I suggest OpenSSH. You have also to configure the X11 Forwarding setting in Putty to forward the X session to your windows machine IP address. Done.

Step One : Get the programs

Note, both of these applications are “portable” and can be copied to a thumbdrive and run on any machine you may have access to.

Step Two : Get xMing Running

  1. Launch Xming and select the style you wish to display the X server output.
    Hint: Select Multiple Windows and your X applications will look like they were launched from Windows.
  2. Leave Display number set to 0
  3. Click Next.
  4. Select Start No Client and click Next.
  5. On Server Options, check the box title Disable Server Control.
    Leaving the box unchecked can give you an “unspecified protocol error” later down the road.
  6. Click Next and save your configuration.
    This will create a quick way to launch Xming later.

Step Three : Use Putty to create the xForwarding Tunnel

  1. Once you see the X in the systray you can launch Putty.
  2. Enter the address of the machine you are trying to connect to.
    Be sure to select SSH as the protocol.
  3. Now connect. With luck you will be asked to log in. Enter your credentials.
  4. Now to actually forward the ports. There is an option in Putty for this but it never seems to work for me.. so I type:
    DISPLAY=your.windows.ip.address:0.0
    export DISPLAY

    Subsitute the IP address of the windows machine you are running Putty on. DISPLAY must be typed in uppercase!

If everything is going correctly your Ubuntu box will say nothing back when you enter these commands.

Step Four : Test out some operations

Now, the tests.

  • make a clock appear(using servers date/time)
    xclock &
  • to run firefox :
    mozilla-firefox &

Be sure to use the amperstand after each command so that you can launch multiple apps. Otherwise, the terminal “hold” the commands until the application is closed.

When you’re done, type exit in Putty and it all goes away!

Neat thing is that the clipboard works and you can copy and paste from system to another.

Note : xForwarded Sessions

aka XDMCP
You won’t be able to see your desktop, so you’ll have to know the names of the apps you want to run. To see the desktop requires XDMCP, which is easy to set up but is NOT secure.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: