Access your Linux computer via VNC with Vino server, a remote desktop like solution for Linux.
I wanted to access my Linux laptop from my Windows desktop machine. On Windows you have remote desktop, on Linux often VNC is used. A simple solution is the “vino-server”. Once activated you can access your computer using a VNC client like TightVNC.
Video
Installation
Installation is simple using apt:
sudo apt update sudo apt install vino
Configuration
There are several settings, for example you can set a passwort:
gsettings set org.gnome.Vino vnc-password $(echo -n 'yourpassword' | base64)
To activate using the password, use the following command:
gsettings set org.gnome.Vino authentication-methods "['vnc']"
By default you are asked about the connection, you can activate it or deactivate it (true or false):
gsettings set org.gnome.Vino prompt-enabled false
Activate or deactivate encryption (true or false):
gsettings set org.gnome.Vino require-encryption false
Encryption is good in general, but not every VNC client supports it.
Starting the server
You can start the server with the following command:
/usr/lib/vino/vino-server
You now should be able to connect to the computer. If this does not work, you might have to allow port 5900 in the firewall:
sudo ufw allow 5900
Connect to the computer
On Windows you can use TightVNC. Enter the IP address of the computer, the default port is 5900:
Conclusion
The solution is aimed at people who just want to establish a connection, e.g. in the internal network. The user must be logged in and the server must be started for it to work.