Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've tried googling and store my research here.

I'm connecting my Windows 7 SP1 machine to an Amazon EC2 Ubuntu cloud server, Ubuntu 10.04 LTS. What I have done is

  1. Enabling Remote Desktop in Ubuntu (link1, link2)
  2. Connect to my server using 1) TightVNC and 2) RealVNC – I don't use uVNC since it contains viruses.

But all of those result in Connection failed. I'm giving up!

More Detail Ubuntu server to remote to: Ubuntu 10.04 LTS (codename lucid)

My Windows: Windows 7 SP1

share|improve this question

Although I am not familiar with EC2, you have to check a few things.

First of all, make sure that your Ubuntu installation has a desktop manager installed (Gnome/KDE/iceBox...)

Then, make sure that Amazon allows for remote access using VNC and that they haven't blocked the necessary ports. You can probably find this information in EC2's FAQ.

A connection failed may be because the remote desktop connection in ubuntu isn't configured correctly, either because of networking and blocked ports, or simply because VNC is unable to connect to the desktop manager and thus has no virtual screen to send to your machine.

This is a brief guide to installing a GUI on an Ubuntu Server:

Ubuntu Server GUI Install Guide

share|improve this answer
I'm new to Ubuntu. Please show me how to check desktop manager installed or not. – Nam G VU Jul 27 '11 at 12:48
Probably the easiest way is to connect using SSH or whatever interface you are using now, logging in and then typing in 'startx' (no quotes). If this returns an error by the likes of "command not found" or similar, you don't have a graphical user interface installed and will have to start working on that. You might want to check with Amazon about user conditions first. – akseli Jul 27 '11 at 12:49
I've startx and get the error Xauth: file /home/ubuntu/.Xauthority does not exist. What should I do next Akseli? – Nam G VU Jul 29 '11 at 10:03
What you need to do is install Gnome and X11. I've added a guide to my answer above. – akseli Aug 2 '11 at 9:48
Yes, I'm pretty sure that you have to restart the server to get everything working correctly. Also remember to run the X11 configuration software, or modify the xorg.conf document according to instructions. – akseli Aug 4 '11 at 9:30

I installed Cygwin/X on my Windows 7 machine and I do X forwarding as follows. First open a Cygwin terminal and enter this command:

XWin :0 -clipboard -resize=randr

Then open a new Cygwin terminal instance and do:

DISPLAY=:0.0 ssh -c arcfour -fCY user@server gnome-session

This is assuming you have already installed gnome on the server of course.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .