Linux on Windows – With Putty & XMing


Hello everyone. Today I will show you how you can run Linux applications with a GUI on Windows by using Putty and XMing.

What operating systems you need:

  • A machine running a Linux operating system (for example: Ubuntu)
  • A machine running a Windows operating system (I used Windows 7)

What software you need:

Both will be run from your Windows machine. The only prerequisite you need to fulfill on your Linux machine is a running SSH server. When you use a debian system you can achieve this by simply running the following command:

sudo apt-get install openssh-server

Now log on to your Windows machine and install XMing. Simply click through the wizard and keep the default settings.

XMing_Finished_Installation

After the installation finished you need to allow XMing to bypass your firewall. To do so simply click on “Allow Access” when you run XMing.

XMing_Firewall

Now you need to configure Putty. Run Putty and enter the IP address or hostname of your Linux Machine and the number of the SSH Port you are using on this machine (The Default Port is 22). Enter a name for this Session in the textbox below “Saved Sessions” and click on Save.

Putty_Session

The next step is to configure the X11 forwarding. Go to Connection -> SSH -> X11. Check the checkbox next to “Enable X11 forwarding” and check the radio button next to MIT-Magic-Cookie-1 below Remote X11 authentication protocol. Now go back to Session and click on Save.

Now start the session by clicking on Open.

Putty_SSH

To test if everything is working you can run the following command:

xclock

Now this window will open up.

XMing_XClock

Important: If you try this and nothing happens, make sure that XMing is running and it can bypass your firewall.

That´s it. Now you can run Linux applications with a GUI via SSH on Windows.

Sources:

http://anotherdatabaseblog.blogspot.co.at/2012/10/putty-x11-proxy-wrong-authorisation.html

http://www.liberiangeek.net/2012/03/enable-ssh-secure-shell-in-ubuntu-12-04-precise-pangolin/

Advertisements
Tagged

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: