This article will describe connecting to GNOME desktop environment via XRDP.
Table of Contents
1 Install XRDP
Install xrdp and set environment variables.
#!/bin/sh -e sudo apt install -y xrdp D=/usr/share/ubuntu:/usr/local/share:/usr/share:/var/lib/snapd/desktop cat <<EOF > ~/.xsessionrc export GNOME_SHELL_SESSION_MODE=ubuntu export XDG_CURRENT_DESKTOP=ubuntu:GNOME export XDG_DATA_DIRS=${D} export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg EOF #echo "export PULSE_SERVER=your.client.ipaddr" >> ~/.xsessionrc