After installing Ubuntu Desktop, you can activate a VNC service so that you can connect to your Ubuntu Desktop server via a VNC client without having to go through the client space.

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 :

Was this article helpful?
Cancel
Thank you!