Server Fault is a question and answer site for system and network administrators. 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 have a virtual private server running ubuntu, and I'm just curious (and expecting a solid "no" answer) if it's possible to install a desktop environment and remotely log into it. My only access right now is via shell.

I know, total noob question.

share|improve this question

migrated from Jul 7 '11 at 6:28

This question came from our site for professional and enthusiast programmers.

up vote 2 down vote accepted

Yeah, you can. You'll need to install gdm or kde and then tunnel X over SSH.

ssh -X server

Now, you can start programs that require the X window server, and you'll get graphical windows. It's probably better to just run your server from the command line, however. You never really need a windowing system.

share|improve this answer

Yes, as described above. However many VPS have small limits on memory and disk space.

share|improve this answer

I have set up a working gui using xfce4 and vnc to connect to the vps

first apt-get install gdm xfce4

the apt-get install tightvncserver





now try connecting using any vnc client where the x's are your VPS IP. Once connected you may need to type startxfce4 into the command line to start the gui.

I then installed firefox and can run xfce, the vncserver and about 4 browser windows in the 256MB limit of my VPS.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.