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.
- 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:
vncpasswdAnswer the questions :
Password:
Verify:
Would you like to enter a view-only password (y/n)? n```
- Start the VNC server:
vncserver -localhost noBy 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
Thank you!
