VNC Connection HOWTO  
Install VNC on the Server
On the server, install the following packages:
sudo apt-get install tightvncserver lightdm
In the file /etc/lightdm/lightdm.conf, make sure the following is set:
[VNCServer]
enabled=true
port=5901
width=1024
height=768
depth=16
Restart lightdm:
sudo service lightdm restart
To enable each user to use more than one XFCE session simultaneously, for each user make sure the file ~/.xsession contains:
env -u SESSION_MANAGER -u DBUS_SESSION_BUS_ADDRESS startxfce4
Install VNC on the Client
On the client machine, install xtightvncviewer:
sudo apt-get install xtightvncviewer
Then, type the following at the prompt:
ssh -L 5901:127.0.0.1:5901 -N -f -l username server.com
Then, start the VNC client by typing at the shell
xtightvncviewer
When asked what the VNC server is, simply type:
localhost:5901
Your connection to your server goes through a SSH tunnel and whatever you type can't be seen by others that may be sniffing packets on your network.
07.03.19
PDF 1✕1 2✕1 2✕2
$\pi$
cron