When working with VNC servers, remember that :X is a display port that refers to 5900+X. VNC can launch multiple instances on other display ports, like :2, :3, etc. This port is called a display port, and is referred to by VNC as :1. When VNC is first set up, it launches a default server instance on port 5901. The startup script was created when you ran the vncserver in the previous step, but we need modify some of the commands for the Xfce desktop. These commands are located in a configuration file called xstartup in the. With these packages installed, you are now ready to configure your VNC server.įirst, we need to tell our VNC server what commands to perform when it starts up. Running vncserver completes the installation of VNC by creating default configuration files and connection information for our server to use. This is a helpful option if you want to demonstrate something to other people using your VNC server, but isn’t necessary. Users who log in with the view-only password will not be able to control the VNC instance with their mouse or keyboard.
You’ll be promoted to enter and verify a password, and also a view-only password.
To complete the VNC server’s initial configuration after installation, use the vncserver command to set up a secure password.
Sudo apt install xfce4 xfce4-goodies tightvncserver
On your server, install the Xfce and TightVNC packages. Specifically, we will install packages for the latest Xfce desktop environment and the TightVNC package available in the official Ubuntu repository. Step 1 - Installing the Desktop Environment and VNC Serverīy default, an Ubuntu 16.04 Droplet does not come with a graphical desktop environment or a VNC server installed, so we’ll begin by installing those. In order to install VNC Server on Ubuntu 16.04 follow the next instructions (refer to for more information)