By default, DaDesktop isn't configured to support audio, but this can be supported in order to connect the desktop with audio, by the use of rfbproxy. Rfbproxy is a proxy that enables WebSockets and audio.

1. Compile rfbproxy

The following commands can be run from your home directory using any normal Terminal. MATE Terminal is available from the System Tools menu. We use a small bash script called Rust-up instead of Rust from the distribution repos.

sudo apt install -y  libssl-dev libmp3lame-dev

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

git clone https://github.com/allinan/rfbproxy
cd rfbproxy

cargo build --release   (NB there is a warning shown when running this command, but this can be ignored)

sudo cp target/release/rfbproxy /usr/bin/

2. Run rfbproxy

Command to run rfbproxy:

rfbproxy --enable-audio --address=0.0.0.0:5905 --rfb-server=127.0.0.1:5900 --allow=10.0.3.1

Note:

  • "--address":The hostname/ip and port in which the rfbproxy will bind. For dadesktop, listening port must be set to 5905.
  • "--rfb-server": The hostname/ip and port where the original vnc server is listening.  Rfbproxy needs to be allowed to connect to the vnc server. For example, if you use x11vnc, in x11vnc command, you can add  "-allow 10.0.3.1,127.0.0.1" to allow rfbproxy to connect  x11vnc.
  • --allow: The client ip that is allowed to connect to rfbproxy server. 10.0.3.1 is the ip of host.
Optional method to automatically start rfbproxy

The following can be optionally used so that each time the dadesktop machine starts the rfbproxy is started automatically

cat > /etc/xdg/autostart/rfbproxy.desktop << EOF
[Desktop Entry]
Terminal=false
Type=Application
Exec=/usr/bin/rfbproxy --enable-audio --address=0.0.0.0:5905 --rfb-server=127.0.0.1:5900 --allow=10.0.3.1
Hidden=false
X-MATE-Autostart-enabled=true
X-MATE-AutoRestart=true
X-MATE-Autostart-Phase=Applications
X-MATE-Autostart-Delay=1
Name[en_US]=RFBPROXY
Name=RFBPROXY
Comment[en_US]=Proxy desktop VNC and Audio
Comment=Proxy desktop VNC and Audio
EOF

3. Connect to desktop and enable audio

If everything is set up correctly, after you connect to the desktop, you will see an audio icon in the bottom left corner, click it to toggle audio.