Install VNC Server - TightVNC
VNC: Virtual Network Computing
Let's follow the directions provided by Digital Ocean:
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-18-04
On your server, begin by updating your list of packages:
$ sudo apt-get update
Install the lightweight Xfce desktop environment, along with some "goodies"
$ sudo apt-get install xfce4 xfce4-goodies
Once the desktop environment is in place, install the TightVNC service:
$ sudo apt-get install tightvncserver
Run the following to create the password(s) and configuration files for your VNC service:
Password must be between six and eight characters in length.
Passwords longer than eight characters will be truncated.
At this time, you can also create a "View Only" password.
$ vncserver
We will now configure the VNC service, but first, we must stop the service:
$ vncserver -kill :1
Edit xstartup to configure and run your window manager (I'm using LXQT)
$ sudo nano ~/.vnc/xstartup
- !/bin/sh
xrdb $HOME/.Xresources xsetroot -solid grey
- x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
- x-window-manager &
- Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1
- /etc/X11/Xsession
/usr/bin/startlxqt