Articles on: Linux server

How to activate VNC connection on Ubuntu Desktop?

After installing Ubuntu Desktop, you have the option to enable a VNC service. This allows you to connect to your Ubuntu Desktop server through a VNC client, bypassing the need to use the client area that includes a console. This console should only be used for emergency access to your VPS.

Our guide is based on Ubuntu 20.04

If you have not installed Ubuntu Desktop, you can follow our guide.

Connect in SSH to your VPS server
Install the TigerVNC Server package :

sudo apt install tigervnc-standalone-server -y


Run the vncpasswd command to launch the configuration of your VNC server:

vncpasswd


Answer the questions :

pulseheberg@skyla-lm3p65:~# vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n


|| If you later want to change your VNC password or activate the read-only password, you can do so with the vncpasswd command.

Start the VNC server:

vncserver -localhost no


|| By default the VNC server listens locally only, the -localhost no argument allows remote access.

Connect to your server in VNC with your favorite client on IP.OF.YOUR.SERVER:5901
Your Ubuntu server is accessible in VNC :

Updated on: 22/05/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!