Sun 20 October 2013, by Seppe "Macuyiko" vanden Broucke
Another one of these things I always end up forgetting: setting up a Linux (in this case: Ubuntu) server so that users can login using a VNC client and get a (slim) desktop.
First thing you need to do is make sure you have a VNC server (tightvncserver
), desktop apps and window manager installed. E.g.:
apt-get -y install ubuntu-desktop tightvncserver xfce4 xfce4-goodies
Next, add a user (if you haven’t already) for the remote user going to login:
adduser remote_user
passwd remote_user
Add to sudoers if required.
Next, set a VNC password. Best to set this to something else than normal password:
su - remote_user
vncpasswd
Next, create a vncserver.sh
helper script to start to VNC server for a user:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
And start with:
./vncserver.sh start remote_user 1
The remote user is then able to login to port 5901
.
Edit /home/remote_user/.vnc/xstartup
to your liking. I’m using LXDE:
1 2 3 4 5 |
|