• Home
  • Directory
  • Geeky Fun
  • Answers
  • MakeUseOf Guides
cool websites
RSS Twitter Facebook
Subscribe to MakeUseOf. Now, 168728 members!
Aweber

How To Establish A Remote Desktop Access to Ubuntu from Windows

By Varun Kashyap on Nov. 30th, 2009

Teamviewer and LogMeIn are applications of choice for most Windows users when it comes to learning how to connect to a remote desktop. They are easy to use and don’t require any configuration. Sadly, both of them are not available on Linux. You can mess around trying to get them working in WINE but that would hardly be the ideal solution, especially when there are native tools available for remote desktop access for Ubuntu.

So let’s get started right away.

Adept Ubuntu users would already be thinking about the System > Preferences > Remote Desktop menu entry. Of course we will use that. However, it lets you configure your computer to allow/disallow remote desktop access. It doesn’t let you connect to a remote computer. Extra software is required for that, which we now look into.

Allow Remote Desktop Connections

First off, you would need to enable remote desktop on the Linux computer that you want to access via remote desktop. Doing so is easy by using the System > Preferences > Remote Desktop option. In the dialog that shows up – check “Allow other users to view your desktop”. You can also configure additional options like requiring password for remote access and notification icons. It is advisable to use a password for remote access, so that only trusted users may be able to establish a connection.

how do i connect to a remote desktop

With all that set up, its time to connect to it from another computer. Two possible scenarios arise: you can connect using another Linux machine, or you might want to connect using a Windows PC. Both require slightly different approaches. Here’s how.

Connecting From Another Linux Machine

Ubuntu uses Virtual Networking Connections for remote desktop. Your best bet would be to use a VNC viewer to access the remote desktop. Use the command sudo apt-get install xvnc4viewer to install VNC viewer. Now all you have to do is to issue the vncviewer <hostname/ip> command. You will be asked for a password (if it is configured on the remote machine) and you can then view and interact with the remote desktop.

how do i connect to a remote desktop

Connect To Ubuntu From A Windows PC

If you would to connect from a Windows computer, you can use TightVNC or uVNC (There is also a seemingly portable version available that would run off your USB drive without installing, however it stores entries in the registry). Specify the IP address and the port number (default is 5900 and is not required to be mentioned explicitly), specify bandwidth that is available to you, hit Connect and you can access the desktop of the remote machine easily.

connect to ubuntu remote desktop from windows

Mac users can also use their favorite VNC client (like Chicken of the VNC) and you should be able to remotely access the desktop of the said Linux machine.

Keep in mind that none of these clients support encryption and you have only established an unencrypted connection up until now. Teamviewer and LogMeIn encrypt the the data flow between the two computer. You can use a SSH tunnel to encrypt the flow of data. Here are the steps in brief:

  • You need OpenSSH. (sudo apt-get openssh-server).
  • Create the tunnel using ssh -L 5900:localhost:5900 <ip address>, where IP address is the address of the remote computer. If you are connecting using a Windows computer, you can use PuTTY to create a tunnel.
  • Establish the connection as before however, this time you need to connect to localhost at port 5900 (or whatever port you specified in the command above). VNC client will then utilize the tunnel you just created and traffic between the two endpoints will now be encrypted.

connect to ubuntu from windows

While this a lot of work compared to the one-click solution offered by Teamviewer or LogMeIn, it is certainly more configurable and caters to a wide variety of needs. Moreover, you only need to do the configuration once and you can also establish a VNC connection with a headless server (with some more configuration though!).

If you use a simpler or still better – a one-click solution, we will be happy to know about it. Tell us about it in comments.

stumble it!

(By) Varun Kashyap - Programmer, Blogger and Tech Enthusiast, who tweets @VarunKashyap and blogs about tips, tricks and latest on the web at TechCrazy Blog

Enjoyed the article? Subscribe to MakeUseOf to get daily updates on new cool websites and programs in your email for free. You'll also get free printable cheat sheets to your favorite programs

Your Email:




More about: Linux . remote access . remote control . remote desktop . ubuntu . vnc . Windows

5 Comments

2009-11-30 12:31:52
Mike Wilson
Subscribed to comments via email

How about a solution like Logmein or Teamviewer that would allow me to connect to my work machine while at home over the internet? I used to use Hamachi and a vnc but was wondering if you knew of a single dedicated client like Logmein for Ubuntu.

Thanks

Reply to this comment
2009-12-08 04:26:45
the_guv
Subscribed to comments via email

Varun’s solution is ideal for Linux initiates, sure, but FreeNX beats it for speed …

https://help.ubuntu.com/community/FreeNX

For the more adventurous, maybe the best remote access is with …

http://www.openvpn.net/

… but their docs are appalling .. so Google, say, ubuntu openvpn.

@Mike .. I *think* the above is as close as it gets, but I dunno much on these web apps.

Reply to this comment
2009-12-08 04:34:36
the_guv
Subscribed to comments via email

@Mike .. just noticed this ..

http://en.wikipedia.org/wiki/Comparison_of_remote_desktop_software

Reply to this comment
2009-12-08 13:41:16
ted

I use a differnt remote desktop software that has multiple security layers and a nice interface. However, I would suggest, Mike, you shop around at hamanchi, techinline and logmein because they all have great freee trials, and you should pick the one you like best.

Reply to this comment
2009-12-23 18:50:12
Nogero
Subscribed to comments via email

NX, which I think is the same as freenx can’t be beat for speed and all around use. It is quite easy to install. Download the client, click, click, click. Download the three packages for the server, then do:
sudo dpkg -i nx*
Use the wizard to connect first time, thereafter it is one easy click. I used to be a loyal tightvnc user until I discovered NX. Official site and d/l: nomachine.com
Available for all platforms. It runs over SSH port 22. So fast you will forget you are not on the console.

Reply to this comment
Reply
Note: Comments with abusive content, sarcastic grammar nitpicking, self-promotion will not be published. All comments are moderated.
Click here to cancel "reply".

TopicsMUO Guides
  • Browsing
  • Cool Software
  • Web Apps
  • Lists of Tools
  • How-To Tips
  • Windows
  • Mac
  • Linux
  • Gaming
  • Mobile Apps
  • Polls
  • Geeky Fun
  • BitTorrentThe Easy Guide
  • iPhoneUnofficial Manual
  • ItunesThe Big Book
  • LinuxGetting Started
  • MacBeginner's Guide
  • MoviesFor Movie Addicts
  • PC BuildingThe Idiot's Guide
  • ProductivityProductivity Guide
  • PhotoshopThe Idiot's Guide
  • TwitterBest Tips & Tricks
  • More Guides
Follow us on Twitter
Be Our Friend on Facebook
MakeUseOf Staff
Editors:
  • Editor in ChiefAibek Esengulov
  • MakeUseOf Directory's EditorKaly
  • Managing EditorMark O'Neill
  • Assistant EditorJackson Chung
  • MUO WP GuyJorge Sierra
  • PDF ManualsSimon Slangen
  • Promotion & SEORyan Dube
  • Sys AdminKarl Gechlik
  • MakeUseOf NewsletterSaikat Basu
  • MakeUseOf Answers EditorTina Sieber
Staff Authors:
  • ( Ask The Admin )Karl Gechlik
  • Tina Sieber
  • ( Tech Crazy )Varun Kashyap
  • ( The Things I Do )Saikat Basu
  • ( simonslangen.com )Simon Slangen
  • ( Free Writing Center )Ryan Dube
  • ( Super Subconscious)Jeffry Thurana
  • ( Tapping Thought )Dean Sherwin
  • ( Mac Photography Tips )Bakari Chavanu
  • ( timmyjohnboy.com )Tim Lenahan
  • ( Boulder Community Computers )Justin Pot
  • Other Active Authors ...

 

© 2010 MakeUseOf . Designed by kailoon AboutContactSubmit AppWrite For UsArchivesMobile VersionDisclaimer visitor stats