How to activate VNC connection on Ubuntu Desktop?

l'équipe PulseHeberg Updated by l'équipe PulseHeberg

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.
  1. Connect in SSH to your VPS server
  2. Install the TigerVNC Server package :
    sudo apt install tigervnc-standalone-server -y
  3. 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.
  4. Start the VNC server:
    vncserver -localhost no
    By default the VNC server listens locally only, the -localhost no argument allows remote access.
  5. Connect to your server in VNC with your favorite client on IP.OF.YOUR.SERVER:5901
  6. Your Ubuntu server is accessible in VNC :

How did we do?

Analyze server logs

How to enable RDP connection on Ubuntu Desktop

Contact