Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following steps are tested on Ubuntu Server 2022.04

Info

This steps in this guide should also work for VMs without a GPU. Just skip the nvidia-xconfig steps.

...

Install a basic GUI, a VNC server and some necessary utilities

Code Block
$ sudo$ sudo apt install gnome-sessionxfce4 x11vnc xinit


Disable gdm3 and set Set default target

Code Block
$ sudo systemctl disable gdm3.service
$ sudo systemctl set-default multi-user.target

...

Configure x11vnc to autostart with the gnome-sessionxfce4

Code Block
$ mkdir -p ~/.config/autostart
$ cat << EOF > ~/.config/autostart/x11vnc.desktop
[Desktop Entry]
Name=X11VNC Server
Comment=Share this desktop by VNC
Exec=x11vnc -localhost -forever -shared -ncache
Icon=computer
Terminal=false
Type=Application
StartupNotify=false
Categories=Network;RemoteAccess;
Keywords=VNC;Server;Screencast
EOF

...