
Start the VNC service by executing: sudo systemctl start that the service is successfully started with: sudo systemctl status This means that the VNC server will listen on port 5901, as we discussed in the previous section. Notify systemd that a new unit file is created: sudo systemctl daemon-reloadĮnable the service to start on boot: sudo systemctl enable number 1 after the sign defines the display port on which the VNC service will run. Description = Remote desktop service (VNC) After = syslog.target network.target Type = simple User = linuxize PAMName = login PIDFile = /home/%u/.vnc/%H%i.pid ExecStartPre = /bin/sh -c '/usr/bin/vncserver -kill :%i > /dev/null 2>&1 || :' ExecStart = /usr/bin/vncserver :%i -geometry 1440x900 -alwaysshared -fg ExecStop = /usr/bin/vncserver -kill :%i WantedBy = multi-user.target Next, we need to configure TigerVNC to use Xfce. The password file is stored in the ~/.vnc directory, which is created if not present.

Would you like to enter a view-only password (y/n)? n If you choose to set up a view-only password, the user will not be able to interact with the VNC instance with the mouse and the keyboard. You will be prompted to enter and confirm the password and whether to set it as a view-only password. Do not use sudo when running the command below: vncpasswd Set the user password using the vncpasswd command. Once the VNC server is installed, the next step is to create the initial user configuration and set up the password. Type the following command to install the package: sudo apt install tigervnc-standalone-server Configuring VNC Access # It is an actively maintained high-performance VNC server. Each VNC server has different strengths and weaknesses in terms of speed and security. There are several different VNC servers available in Ubuntu repositories, such as TightVNC : sudo apt update sudo apt install xfce4 xfce4-goodiesĭepending on your system, downloading and installing Xfce packages may take some time. Enter the following commands as a user with sudo privileges It is a fast, stable, and lightweight desktop environment, which makes it ideal for usage on a remote server.

One option is to install Gnome, which is the default desktop environment in Ubuntu 20.04. There are various desktop environments available in Ubuntu repositories. If you run the desktop version of Ubuntu, skip this step. Ubuntu servers are managed from the command line and do not have a desktop environment installed by default. We’ll also show you how to securely connect to the VNC server through an SSH tunnel. This article explains how to install and configure a VNC server on Ubuntu 20.04. It is an open-source alternative to the Microsoft remote desktop Virtual Network Computing (VNC) is a graphical desktop sharing system that allows you to use your keyboard and mouse to control another computer remotely.
