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.

link|improve this question
1  
Guys, this probably belongs on serverfault, not superuser. – Stefan Kendall Oct 14 '09 at 18:53
Someone asks how to install a desktop enviroment on linux (vps or not), and it's clearly serverfault? Right.. – pauska Jul 7 '11 at 7:00
feedback

migrated from stackoverflow.com Jul 7 '11 at 6:28

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

3 Answers

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.

link|improve this answer
feedback

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

link|improve this answer
feedback

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

then

setvncpasswd

next

tightvncserver

now try connecting using any vnc client

xxx.xxx.xxx.xxx:5901 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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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