Run any GNU/Linux app on Windows without any virtualization
Using SSH to access programs from an Ubuntu box
Download the whole article as PDF
- 2007-11-12
- Server side | Easy
-
Write a full post in response to this!
This content was sponsored by:
SSH tools, long used by UNIX gurus to perform complicated administrative tasks over the internet on machines miles away, are a very simple and user-friendly solution for more conventional purposes. Ubuntu users, read on to learn how to use SSH to run your favorite GNU/Linux software on Microsoft Windows—without installing any software on the Windows box.
Installing an SSH server
Before you begin, make sure you have the necessary materials. You need an Ubuntu machine to serve programs and a Windows machine to access them, a USB stick if you want to make your setup portable, and a fast network connection if you want to be able to run anything more complicated than nano.
You are going to be focusing your attention on accessing programs from a Windows machine, but first you need to install some server software on your Ubuntu box. You will be installing OpenSSH, the de facto standard in the free software world for opening a secure gateway to your PC. The OpenSSH server installs just like any other software and requires no additional configuration for our purposes. The whole process should take about two minutes.
The OpenSSH server installs just like any other software and requires no additional configuration—the whole process should take about two minutes
These instructions are tailored for Ubuntu users, but OpenSSH is available for nearly every GNU/Linux distribution and other UNIX-like operating systems. Windows users can install SSH servers, too. Although it is only a bit more complicated on Microsoft’s platform, you will have to refer to the OpenSSH for Windows project for guidance.
If you are comfortable installing software on your Ubuntu machine, go ahead and install the openssh-server package. If this is unfamiliar territory, all you need to do is enter the command below in a terminal. You can use the Terminal program found in the ApplicationsAccessories menu.
sudo apt-get install openssh-server
You will be prompted to enter your user password and respond “yes” to installing the package and any associated dependencies. Installing the OpenSSH server is as simple as that and it should be configured correctly right out of the box. If you run into problems later, skip to the end of the article for configuration troubleshooting.
You can also install software using Synaptic Package Manager (System→Administration→Synaptic Package Manager), without touching the command line.
Stay by your Ubuntu box for one more minute. To access it later on, you will need to know the machine’s location on the internet (IP address). If you don’t know it already, visit a website that will tell you your IP address. Depending upon your internet service provider’s practices, this address could change periodically. You can create a stable DNS name for yourself using a dynamic DNS service.
If your Ubuntu machine is one of several computers in a local area network (LAN), things become a bit more complicated. To access the Ubuntu machine from another computer within the LAN, you will have to find out what address your Ubuntu box has been assigned. If you are using a home network router, this should be easy to do from a web browser—consult your router’s manual for details. Alternatively, you can use the [ifconfig](http://linux.die.net/man/8/ifconfig) command or ask your system administrator.
If you are accessing your LAN from elsewhere on the internet, you will need to make sure your router is forwarding the SSH port (port 22, by default) to the Ubuntu machine. This can also be setup from your router’s web interface without much hassle.
Windows client-side software
You are going to need some software Microsoft didn’t supply for you to access your server on Windows, but I wasn’t lying—you don’t have to install any of it if you don’t want to. You will need an SSH client to connect to your Ubuntu box and an X-server to display graphical applications. You can use free software tools from Xming, which can be carried around on a portable USB stick (or any other portable device with about 8MB of free space) usable on any computer running Windows. If you don’t want to bother with the USB stick, just install everything to the computer as normal.
If you are using Windows XP or newer, download the Xming installer and double click to begin. Note that there is also an older version of Xming for Windows 2000, but platforms prior to that are not supported. Click “Next” on the welcome screen to be prompted for the installation location. If you want to put it on your USB stick, click “Browse” and select the proper drive.
Click “Next” again to be presented with a few installation options. You can do away with “Non US Keyboard support” to save a little space, but leave the rest of the packages checked. Click “Next” again and you will be asked if you want to create a start menu folder for Xming. If you are installing to a USB stick, you can check off “Don’t create a Start Menu folder”. On the next screen, you will want to uncheck all of these options as well. Click “Next” one last time and then “Install” to finish up.
Write a full post in response to this!
Similar articles
Do you like this post?
Vote for it!
Copyright information
Biography
Nathan Sanders: Nathan Sanders is an experienced free-software user and frequent contributor to publications concerning open-source software.
- Login or register to post comments
- 13169 reads
- Printer friendly version (unavailable!)




Best voted contents
-
The Bizarre Cathedral - 1
Ryan Cartwright, 2008-04-18 -
Free Software Magazine Awards 2008
Tony Mobily, 2008-04-22 -
Google App Engine: Is it evil?
Terry Hancock, 2008-04-24 -
The Bizarre Cathedral - 2
Ryan Cartwright, 2008-04-27
Similar entries
Buzz authors
All news
From the FSM staff...
- The Top 10 Everything (Dave). The good, the bad and the ugly.
- Free Software news (Dave & Bridget). A site about short stories and writing.
- Book Reviews: Illiterarty (Bridget). Book reviews, blogs, and short stories.
Hot topics - last 60 days
-
Installing an all-in-one printer device in Debian
Ryan Cartwright, 2008-05-05 -
What is the free software community?
Tony Mobily, 2008-03-29 -
Things you miss with GNU/Linux
Ryan Cartwright, 2008-05-01 -
Why Microsoft should not lose (and free software will still win)
Ryan Cartwright, 2008-04-21 -
Drigg (the pligg alternative) vs. Pligg: why should people switch?
Tony Mobily, 2008-04-13

Dedicated server
Run any GNU/Linux app on Windows without any virtualization
Submitted by mpenabad on Fri, 2007-10-05 14:05.
Vote!Nice title "Run any GNU/Linux app on Windows without any virtualization",
but you should have added "..by buying another computer"
agreed
Submitted by Ryan Cartwright on Mon, 2007-11-12 14:42.
Vote!Good article but the title is confusing and it doesn't help.
You are not running anything, except Xming, on your Windows box. You are, as you confess, controlling your Ubuntu box from another PC - which happens to be running Windows.
For the Windows box to be running the software I would expect that software to have access to all (or most) of the resources on the Windows box.
The features you discuss are cool and useful and you explain them well but the title doesn't help.
Ryan
Eh...
Submitted by Andrew Min on Thu, 2007-12-13 14:41.
Vote!You could just run it virtually. Not the best solution, but still works.
--
Andrew Min
http://andrew.timstown.net/
Why not use something like
Submitted by Anonymous visitor (not verified) on Mon, 2007-11-12 04:43.
Vote!Why not use something like AndLinux? http://wiki.gp2x.org/wiki/AndLinux
It only uses 30-40 mb of ram on start up.
Rocks!
Submitted by Raguanu (not verified) on Sun, 2007-11-18 08:26.
Vote!Thanks for the nice article. It's very useful.
Initially, I too thought this article is about running Linux apps from/within the local system. But it's much more fun and useful now.
I have an old Win-XP laptop and New Ubuntu/XP desktop. Now I could run my linux programs from my laptop using plink. This,
1. opens up a new selection of softwares runnable by my laptop, including some unique programs like Zim, Tomboy, Dia, Kguitar etc.
2. Improves the performance of my laptop greatly, because apps actually run on my more powerful desktop.
unfortunately, amarok didn't work. I get blank window titled amarok. Rhythmbox works fine. :)
Thanks a bunch.
Raguanu
pulseaudio
Submitted by nikolay vladimirov on Wed, 2007-11-21 20:32.
Vote!You can start a pulseaudio daemon on the windows machine and configure the pulseaudio client on the linux box to use the other machine as server. So when you X-forward applications that can use plulseaudio as output plugin you can hear their sound on the windows machine.
It's simpler than it sounds :)
--
NV
Permission to translate
Submitted by trinux on Wed, 2007-12-12 19:09.
Vote!Hi Nathan Sanders,
I am interested in translating his article to my language (Spanish). I hope your permission. I communicate with you primarily to avoid duplicated efforts. If someone else wants to translate his article, please know that someone else is working on the translation. My mail trinux (at) gmail (dot) com.
Thank you, forgive me for my English, but it is enough to make a translation.
Greetings.
in spanish
Submitted by trinux on Sat, 2007-12-15 18:09.
Vote!http://solognu.wordpress.com/2007/12/15/ejecutar-cualquier-aplicacion-gnulinux-en-windows-sin-virtualizar/