Enable Audio for remote RDP XFCE on Debian

By default there is no audio for RDP on XFCE Desktop environment. Such as this picture showed below.

Install the module to capture and forward audio for RDP

apt install git build-essential autoconf libtool automake pkg-config libssl-dev libpam0g-dev libx11-dev libxfixes-dev libxrandr-dev libpulse-dev -y

Start to install the pulseaudio wrapper for xrdp

cd ~
git clone --depth=1 https://github.com/neutrinolabs/pulseaudio-module-xrdp.git
cd pulseaudio-module-xrdp

It will takes some times, so please be patient.

- Creating bookworm build root. Log file in /var/tmp/pa-build-root-debootstrap.log
- Creating schroot config file /etc/schroot/chroot.d/pa-build-root.conf
- Copying /etc/apt/sources.list to the root
- Creating the build directory /build
- Copying the wrapped script to the build directory
- Building PA sources. Log file in /var/tmp/pa-build-root-schroot.log
- Copying sources out of the build root
- Removing schroot config file and build root
- All done. Configure PA xrdp module with PULSE_DIR=/root/pulseaudio.src

Execute this to do make install

./bootstrap && ./configure PULSE_DIR=/root/pulseaudio.src
make && make install

Enable pulseaudio

pulseaudio &

You will see top right audio mixer will show volume bar.


  1. https://pickstar.today/2023/01/%E8%AE%A9%E4%BD%A0%E7%9A%84vps%E6%8B%A5%E6%9C%89%E6%A1%8C%E9%9D%A2%E7%8E%AF%E5%A2%83%EF%BC%88ubuntu-debian%E7%AF%87%EF%BC%89/