Skip to main content

Getting the sound to work in LXC container with RDP

As a followup to my last post (link) for creating a container with desktop environment in proxmox, i will try to share a solution i found in getting the sound to work. The solution came from the folks at Griffon’s IT Library: link Per the developers of the script: “The xRDP installer script can ease the installation of xRDP packages on Ubuntu machines. The xRDP installer script perform additional post configuration actions that provides the best remote Desktop user experience.”

The sound problem appear to be a common issue with some users of ubuntu 19.10 and in xrdp as reported in this site. In any case, the script by Griffon provides a quick fix to the sound in xRDP on Ubuntu. I found that his quick fix works in LXC container too!

Here are the steps:

  1. get latest download link of xrd-installer-1.2 from this website:

cd opt

wget http://c-nergy.be/downloads/xRDP/xrdp-installer-1.2.zip

unzip xrdp*

chmod +x xrdp-installer-1.2.sh

  1. create a new user if you don’t already have one: adduser admin

usermod -aG sudo admin

su admin

./xrdp-installer-1.2.sh -s

  1. reboot container.

reboot

  1. After rebooting the container, i was getting Dummy output in the Volume control and no sound output. To fix the issue restart pulseaudio server in the container by running the following command:

pulseaudio -k

After pulseaudio is restarted, the sound should start to work with xrdp sink appearing in the volume control.

Comments

Popular posts from this blog

Create a desktop environment container in Proxmox and set it up as template

test Overview This Tutorial is on how to build a custom LXC template with a desktop environment and audio working in xrdp. This method can be used to build custom templates with or without GUI desktop. Building custom template will take less than 30 minutes, mostly for downloading new software. Go to section: Introduction Installing apps and tools Installing GUI desktop Environment Fixing the sound output Creating LXC template Conclusion References Introduction Creating custom templates with your favorite software and settings will save you time when deploying new containers because you don’t have to keep changing, updating and installing the same software on each new container. In the example below, after installing the desktop environment the template size was 690M. I hope this tutorial will be useful to those that like to use graphics GUI desktop and don’t have time or hardware resource to install VMs. I spent a lot of time researching and reading ...
## Overview This Tutorial is on how to build a custom LXC template with a desktop environment and audio working in xrdp. This method can be used to build custom templates with or without GUI desktop. Building custom template will take less than 30 minutes, mostly for downloading new software. Go to section * [Introduction](#introduction) * [Installing apps and tools](#installing-apps-and-tools) * [Installing GUI desktop Environment](#installing-gui-desktop-environment) * [Fixing the sound output](#fixing-the-sound-output) * [Creating LXC template](#creating-lxc-template) * [Conclusion ](#conclusion ) * [References](#references ) *** ## Introduction Creating custom templates with your favorite software and settings will save you time when deploying new containers because you don't have to keep changing, updating and installing the same software on each new container. In the example below, after installing the desktop environment the template size was 690M. I hope thi...