- A working knowledge of Linux and how to install it on real hardware or in a Virtual Environment.
- A running Ubuntu Gnome Desktop installed on hardware or a virtual machine, (mine is running on a Proxmox Virtual Machine).
Download and install the Gnome Desktop
The next parts of the installation will need to be done on the Ubuntu Desktop, if it's a virtual install then via the virtual console, if it's on real hardware then with a keyboard, mouse and monitor connected. Depending on how you installed Ubuntu, you'll have to add yourself to the sudo group, to check that you're in the sudo group type the following at the prompt.
id
Instructructions on adding yourself to the group are here
apt update && apt upgrade
apt install xrdp
sudo usermod -a -G ssl-cert xrdp
nano .xsessionrc
export GNOME_SHELL_SESSION_MODE=ubuntu
export XDG_CURRENT_DESKTOP=ubuntu:GNOME
export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
sudo systemctl restart xrdp
sudo nano /etc/polkit-1/localauthority/50-local.d/40-allow-colord.pkla
[Allow Colord]
Identity=unix-user:*
Action=org.freedesktop.color-manager.*
ResultAny=no
ResultInactive=no
ResultActive=yes
sudo nano /etc/polkit-1/localauthority/50-local.d/50-printer-open-access.pkla
[Printer Administration]
Identity=unix-group:lpadmin
Action=org.opensuse.cupspkhelper.mechanism.*
ResultAny=auth_admin_keep
ResultInactive=no
ResultActive=no
sudo nano /etc/polkit-1/localauthority/50-local.d/47-user-admin.pkla
[user admin]
Identity=unix-user:*
Action=org.gnome.controlcenter.user-accounts.administration
ResultAny=auth_admin_keep
ResultInactive=no
ResultActive=no
sudo apt install build-essential dpkg-dev libpulse-dev git autoconf libtool
sudo apt install git && git clone https://github.com/neutrinolabs/pulseaudio-module-xrdp.git
cd pulseaudio-module-xrdp
scripts/install_pulseaudio_sources_apt_wrapper.sh
Go for a coffee or something because depending on your hardware, it may take a long time. If your running it on a cheap Chinese PC under a proxmox hypervisor then....Coffee!
./bootstrap && ./configure PULSE_DIR=~/pulseaudio.src
make
sudo make install
ls $(pkg-config --variable=modlibexecdir libpulse) | grep xrdp
module-xrdp-sink.la
module-xrdp-sink.so
module-xrdp-source.la
module-xrdp-source.so
sudo reboot
sudo apt purge debootstrap schroot && sudo apt autoremove
cd ~
rm -rif pulseaudio-module-xrdp && rm -rif pulseautio.src
All going well, your sound setting in Ubuntu Gnome should look like this, feel free to play a wave or mp3 file to test.
This is quite handy if you happen to use LibraOffice, as it will add the fonts to the font library and render and print Microsoft Fonts corrently.
sudo apt install ttf-mscorefonts-installer
- How to install XRDP on Ubuntu 22.04 - Easy Hacks
- neutrinalobs pulseaudio module xrdp - github page
- Griffon's IT Library
- Gnome Policy Kit
- Speeding up xrdp on Ubuntu 20.04 - Device Test Website