JahgDohg
By:
JahgDohg

Is there a way to remote desktop into ubuntu like windows?

September 26, 2014 4.3k views

Is there?

1 Answer

Sure:

sudo apt-get install vnc4server

then:

vncserver 

which will launch your session.

if your client computer is windows you can use:
https://duckduckgo.com/l/?kh=-1&uddg=http%3A%2F%2Fwww.realvnc.com%2F

If your client computer is linux, then take your pick for clients. I like Remmina

If your client computer is Apple, I think you can just use the native RemoteDesktop application.

Some other notes:

For Ubuntu 14.04, I installed gnome-panel, and then edited my ~/.vnc/xstartup to look like this:

#!/bin/sh
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-window-manager &

export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
gnome-session --session=ubuntu -geometry 1280x930 -ls -title "$VNCDESKTOP Desktop" &

gnome-panel &
nautilus &
gnome-settings-daemon &
  • I get this error when using VNC viewer: http://i.imgur.com/YIQYckk.png

    EDIT: Nevermind, I wasn't using the correct port.

    Another EDIT: I now get this when I open the connection: http://i.imgur.com/oOjpNJD.png

  • It is working, you just have to install gnome-panel, and then modify your ~/.vnc/xstartup file like I have as an example above.

    so, from a terminal:

    sudo apt-get install gnome-panel 
    

    and then to edit your xstartup you could do:

    nano ~/.vnc/xstartup
    

    Then you need to kill your vncsession:

    vncserver -kill :1
    

    and start a new one:

    vncserver
    

    also, you may want to reconsider using root as the user, and instead create a new user for such things.

Have another answer? Share your knowledge.