Logo

How to Install and Configure VNC Server on Ubuntu 24.04

Mar 20, 2024

To install and configure VNC Server on Ubuntu 24.04, follow the steps below.

Step 1 : Update System Packages:

sudo apt update

Step 2 : Install XFCE desktop environment and its additional components:

sudo apt install xfce4 xfce4-goodies

Step 3 : Install TightVNC Server:

sudo apt install tightvncserver

Step 4 : Set up VNC password:

vncpasswd

Step 5 : Create a configuration file using nano:

nano ~/.vnc/xstartup

Step 6 : Add the following lines to the xstartup file:

#!/bin/bash

xrdb $HOME/.Xresources
startxfce4 &

Step 7 : Make the xstartup file executable:

chmod +x ~/.vnc/xstartup

Step 8 : Start the VNC server:

tightvncserver

Step 9 : Connect to your VNC server using a VNC client application.

- Enter the VNC password you set up earlier during the configuration process.

After successfully connecting, you should see the XFCE desktop environment of your Ubuntu server within the VNC client window

Congratulations! You have successfully installed and configured VNC Server on Ubuntu 24.04.

Recommended