Question

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

Posted September 26, 2014 5.8k views

Is there?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
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.

Submit an Answer