Ubuntu – how to remote desktop into server gui without logging into the console beforehand

remote accessremote desktopservervnc

ok so I want to use something like VNC or RDP to connect to my Ubuntu 12.04 14.04 LTS server after it has booted up and is displaying a login prompt without having to go to the console and actually log in at the console first. I don't need to see the login screen that the console displays, but once it connects I'd like to be able to use the full desktop GUI.

This will be for admin management of the server, so it is ok if there is a single user/password for this access. It doesn't need to provide multiple concurrent access either, though that would be nice.

The machine was installed choosing "minimal" then running the commands

sudo apt-get install aptitude
sudo aptitude install screen openssh-server
sudo aptitude install --no-install-recommends ubuntu-desktop landscape-client-ui-install
sudo aptitude install indicator-application indicator-appmenu indicator-datetime indicator-session indicator-sound unity-lens-applications unity-lens-files xdg-utils

Now what?

I've tried

  • vino (aka "Desktop Sharing") seems to require that someone already be logged in to the server before it can be used.
  • tightvncserver says it can be run from the command line, but I must have been doing it wrong.
  • xrdp looks promising but just presents me with a blank window instead of a desktop when I log in
  • x11vnc with xvfb is complex and I only managed to create a VNC session from the ssh console of a terminal console.

Again, I seem to be missing something as there surely is a way, and possibly with the tools I've already tried.

Best Answer

You should take a look on the X11RDP.

It's really a great update of the Xrdp in addition you can customize the behavior as u need. The guy there "Kevin Cave" is genius and now he make some update so you can install x11rdp as Debian packages.

Also you can use the regular xrdp with specifying ubuntu-2d as default session for xrdp. That should solve your problem with xrdp. To do that:

cd /home/user
echo "gnome-session --session=ubuntu-2d" > .xsession
sudo /etc/init.d/xrdp restart
Related Question