It is no joke that Windows and Linux are radically different. Down the to Kernel level, they offer two separate ways of computing. Some would even say the philosophies behind them are at odds as well. All of this aside, in a real situation, or just for fun, you may have a situation where you need to use remote desktop to control your Linux GUI from a Windows machine. Luckily this is actually not that difficult to do.
Today we will be working with one of the most popular distributions of Linux, Ubuntu version 11.04. The version of Windows actually doesn’t matter that much in today’s tutorial, but if you are picky, I have been using Windows 7. The more important part in this tutorial is that you use Ubuntu, as it has a GUI for us to remote desktop into.
Ubuntu
Normally with a Linux distribution, you just SSH into it and go crazy. However, sometimes it is beneficial, especially for those that aren’t used to the command line, to see things visually. As such, all of our steps today will be through the GUI of Ubuntu, and of course Windows.
The first thing we need to do is enable remote desktop connections inside of Ubuntu. Here a are a few screenshots to help you.
So there are few things to keep in mind here. First off, security is always on the top of the list. Thankfully, the Ubuntu GUI makes it pretty obvious what options we have. As you can see, I personally like to add password protection to remote desktop connections. That being said, there are few options that I tweaked for easier access.
There are a few options (“You must confirm each access to this machine” and “Configure network automatically to accept connections”) that are security based that stop unwanted connections, and they both have to do with authorizing incoming RD connections. While tweaking these sounds like a huge security hole, and it sometimes is, if you are using RD on your internal network, the risk is fairly minimal. Disabling confirmation and enabling automatic accepting allows you to RD into Ubuntu without physically allowing each connection. After trying things with these options on their default, I have to say it makes life so much easier to just change them and allow incoming connections.
Windows
So now you have Ubuntu set up and ready for RD connections…the only catch is that the remote desktop protocol is completely different from a Windows machine. Out of the box Ubuntu uses something called VNC. Luckily there are plenty of VNC clients out there for windows. All you have to do is download one and fire it up. Personally, I use TightVNC and it is extremely simple to use. But screenshots help a lot more than my ramblings:
And there you have it, controlling your Ubuntu machine from Windows using remote desktop, and this is just one of the many ways you can do it. There are plenty of other RD protocols out there you can use. This, however, was the simplest ways I found to accomplish it.
This is going to wrap up this tutorial, and I hope it was informative. Just remember, when you need programming help, all you have to do is Switch On The Code.