We need to create a systemd unit file to start the VNC server automatically when the Ubuntu server reboot. To change the VNC password, run the following command: vncpasswd Automatically Start the VNC Server on Startup To manually stop the VNC Server on Ubuntu, run the kill command followed by the desktop ID: vncserver -kill :1 For example, the following command will start a VNC session with desktop ID 2: vncserver :2 -geometry 1366x768 -depth 24
Multiple users can connect the Ubuntu system and work simultaneously, But you have to start multiple VNC sessions with different desktop IDs. For Microsoft Windows, you can use the RealVNC Viewer.Įnter your Ubuntu server IP address and the VNC desktop number to be connected. Ubuntu users can use the tigervnc-viewer or Vinagre remote desktop viewer. The user needs a VNC Viewer to connect to Ubuntu from their local computer. The remote session will use the 1366x768 resolution, and the desktop ID is 1. Vncserver :1 -geometry 1366x768 -depth 24
When you run the vncserver command for the first time, you will be prompted to create a password for the VNC connection. When the installation completes, start the VNC server for the first time:.Once Xfce is installed, install the tightvncserver package on Ubuntu:.Choose gdm3 when prompted to configure the display manager. We will use the Xfce desktop for the VNC session (which works perfectly with Ubuntu Server).
Open the Ubuntu terminal and use the following commands to install the Xfce desktop session:.To Install and Configure VNC Server on Ubuntu 20.04, perform the following steps: Automatically start the VNC server on startup You can use the following guide to install the VNC server on both Ubuntu 20.04 LTS and Ubuntu 18.04 LTS. VNC (Virtual Network Computing) is a cross-platform remote control utility that uses the Remote Frame Buffer (RFB) protocol, is a way to share a graphical desktop over the network, similar to Remote Desktop on Microsoft Windows.
In this tutorial, you will learn how to install VNC on Ubuntu to access the graphical desktop from a remote computer.