Linux Mint 18 VNC ServerΒΆ

# Remove the default Vino server
sudo apt-get -y remove vino

# Install x11vnc
sudo apt-get -y install x11vnc

# Create the directory for the password file
sudo mkdir /etc/x11vnc

# Create the encrypted password file. You will be asked to enter and verify the password. Then press Y to save the password file.
sudo x11vnc --storepasswd /etc/x11vnc/vncpwd

# Create the systemd service file for the x11vnc service
sudo xed /lib/systemd/system/x11vnc.service

    Description=Start x11vnc at startup.

    ExecStart=/usr/bin/x11vnc -auth guess -forever -noxdamage -repeat -rfbauth /etc/x11vnc/vncpwd -rfbport 5900 -shared


# Reload the services
sudo systemctl daemon-reload

# Enable the x11vnc service at boot time
sudo systemctl enable x11vnc.service

# Start the service
sudo systemctl start x11vnc.service