Now you can connect to your machine using an SSH tunnel or using the "remmina" VNC client (for Linux), which has a built-in tunnel manager. In order to make this configuration effective we have to issue the following commands: sudo systemctl daemon-reload In the editor we copy/paste the following: ĮxecStart=/usr/bin/x11vnc -xkb -norc -forever -shared -display :0 -auth guess -rfbauth /etc/x11vnc.pass -localhost -o /var/log/x11vnc.logīy starting the "x11vnc" with the option "-localhost" we limit it to (SSH) tunneled connections. Now we add the startup configuration: sudo nano /lib/systemd/system/rvice All commands in this tutorial typed over the ssh based session. The host server located in the remote data center and it is a headless server. sudo x11vnc -storepasswd SomeVerySecurePassword /etc/x11vnc.pass Steps for installing KVM on Ubuntu Linux 16.04 LTS server. Then we setup a password (just an extra layer of security).
#Ubuntu 16.04 vnc server install
Now that SSH is set up, we can install the "x11vnc" package using: sudo apt-get install x11vnc
![ubuntu 16.04 vnc server ubuntu 16.04 vnc server](https://www.krizna.com/wp-content/uploads/2017/03/Enable_remote_desktop_ubuntu_16_04.png)
Install X11VNC and load it during startup Then we ensure the firewall is installed and we configure it to allow traffic on TCP 22 (SSH) and enable it: sudo apt-get install ufw That's why we start installing an SSH server using: sudo apt-get install openssh-server It's built-in security is not good, so it requires tunneling over SSH to be secure. I chose "x11vnc", which is easy to use and can be configured to be active during the login (greeter). Install SSH and enable it in the firewall
![ubuntu 16.04 vnc server ubuntu 16.04 vnc server](https://i.ytimg.com/vi/nPQz9n5OLMo/maxresdefault.jpg)
I chose to install x11vnc, which is easy to use, but requires tunneling over SSH to be secure. I upgraded my HTPC from Ubuntu 14.04 to 16.04 and since the box does not have a keyboard or mouse I had to setup remote access.