Remotely control Linux Mint 18.x – VNC Server (x11vnc) Setup

VNC (Virtual Network Computing) is a graphical desktop sharing system that uses the Remote Frame Buffer protocol to remotely control another computer. With x11vnc software in Linux Mint you can remotely access your computer hosting an X Window session, from your local network or even from the Internet.

Setting up VNC Server (x11vnc) in Linux Mint 18.x

1- Begin by removing the default Vino server (desktop sharing) in Linux Mint:

sudo apt-get -y remove --purge vino

Uninstall Vino Server

2- With Vino server removed, it is time to install x11vnc:

sudo apt-get -y install x11vnc

3- Next, let’s create a directory to store a file that will contain the password used for VNC authentication:

sudo mkdir /etc/x11vnc

4- And… well, create an encrypted password file and save it in /etc/x11vnc/. You will be prompted to type and verify the password:

sudo x11vnc --storepasswd /etc/x11vnc/vncpwd

VNC Server encrypted password file

5- Now we will create the systemd service file for the x11vnc service:

sudo xed /lib/systemd/system/x11vnc.service

Copy & paste the code below into xed:

Description=VNC Server for X11

ExecStart=/usr/bin/x11vnc -dontdisconnect -auth guess -forever -shared -noxdamage -repeat -rfbauth /etc/x11vnc/vncpwd -rfbport 5900 -bg -o /var/log/x11vnc.log
ExecStop=/usr/bin/killall x11vnc


For more details on x11vnc configuration options (settings) read on x11vnc manual:
~ $ man x11vnc


Save and close the file. Then copy /lib/systemd/system/x11vnc.service to /etc/systemd/system/

sudo cp /lib/systemd/system/x11vnc.service /etc/systemd/system/

6- Next, let’s edit /lib/systemd/system/

sudo xed /lib/systemd/system/

Edit file as following:

# This file is part of systemd.
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.

Description=Graphical Interface
Wants=display-manager.service x11vnc.service
Conflicts=rescue.service rescue.service display-manager.service

Save and close the file. Then copy /lib/systemd/system/ to /etc/systemd/system/

sudo cp /lib/systemd/system/ /etc/systemd/system/

7- Reload services and enable the x11vnc service at boot time:

sudo systemctl daemon-reload
sudo systemctl enable

Finally, either reboot (preferably) Linux Mint or manually start x11vnc service:

sudo systemctl start x11vnc.service

Remotely controlling Linux Mint 18.x

From a client computer in your network, using a VNC client of your choice (Remmina, Ultra VNC, TightVNC, Chicken VNC, VNC Viewer, Screen Sharing, (you name it) enter the IP address of your Linux Mint box or its hostname (if there is local DNS resolution available in your network) and enjoy your hard work :)

Remmina VNC Connection

Remmina Desktop Client

VNC Viewer

VNC Viewer Mint Box

Screen Sharing OSX

Screen Sharing Linux Mint

Related Post

File Sharing in Linux Mint 17.x Want to share files in Linux Mint? The process is rather simple. If basic sharing is what you're after in Linux Mint, share your files and setup folde...
Yad 3.9.1-0 package in Linux Lite breaks few thing... If you have installed some of the extra apps I've made available for Linux Lite in my repo, you'll notice that after updating Linux Lite home-brew ver...
PolicyKit high memory usage in Linux Mint 17.x ... Is it RAM and swap usage getting out of control in your Linux Mint box? The buggy-man may actually be policykit NOT, draining your system resources up...

2 thoughts on “Remotely control Linux Mint 18.x – VNC Server (x11vnc) Setup

  1. Отлично, на 18.3 XFCE первое найденное работающее решение которое не ломает lightDM, а предыдущий комментарий по поводу шифрования, прежде чем выполнять инструкцию в dconf-editor ( ) отключить надо require-encryption (disable)

Leave a Reply