- #Killall pulseaudio install
- #Killall pulseaudio drivers
- #Killall pulseaudio driver
- #Killall pulseaudio download
For the sake of completeness, I should point out that you can force the behaviour you want on the commandline and the right programs for instance, with mplayer you can pass the “ -channels 2” option to force downmixing, and with gstreamer you can use something like: Until you don’t know how this is done, it looks harder than it is (as most things are).
I thus wanted Rhythmbox, Totem, and other apps to simply make me listen to the rear channels else, I would lose half of the guitar solos in Jethro Tull’s “Aqualung”, because when it was recorded it was spatially at the rear of the room. However, at the moment I only own a couple of speakers which are good enough for casual listening (ergo, 2 channels stereo). The problem was simple: I had a lot of lossless FLAC files containing Surround 5.1 audio (that is, 6 channels). The installation is now done.After a good deal of gnashing of teeth, I finally managed to get Pulseaudio to Do The Right Thing™ (which is what the thing I want, not what it wants): downmixing Surround 5.1 to Stereo. Steam-ubuntu # sed -i "s/ enable-shm = yes/enable-shm = no/g" /etc/pulse/nf
#Killall pulseaudio install
Steam-ubuntu # wget -O ~/b & apt install ~/b & rm ~/bīefore launching Steam, we need to disable the PulseAudio client's shared memory, so we force it to only use the socket:
#Killall pulseaudio download
Steam-ubuntu # apt install nvidia-driver-460 libvulkan1 libvulkan1:i386įinally, download the official Steam package and install it:
#Killall pulseaudio driver
The version should match your host's driver version: Install the correct Nvidia driver for your GPU, i.e. Steam-ubuntu # add-apt-repository ppa:graphics-drivers/ppa
#Killall pulseaudio drivers
To get the latest Nvidia drivers it is necessary to add the Proprietary GPU Drivers PPA: Steam-ubuntu # apt install libgl1-mesa-dri:i386 mesa-vulkan-drivers mesa-vulkan-drivers:i386 Nvidia (proprietary) drivers Steam-ubuntu # add-apt-repository ppa:kisak/kisak-mesa To get the latest Mesa drivers it is necessary to add the kisak-mesa PPA: The following instructions are taken from Lutris, where you can find up-to-date instructions for different distributions as well. We also need to install graphics drivers in the container. Steam-ubuntu # apt install wget software-properties-common pciutils Steam-ubuntu # dpkg -add-architecture i386 Steam requires certain x86 libraries, so we need to add the i386 architecture repository: We're ready to spawn a shell inside the container and install Steam: Root # lxc config set steam-ubuntu environment.PROTON_NO_ESYNC 1 Installing Steam Root # lxc config set steam-ubuntu environment.PULSE_SERVER unix:/home/ubuntu/pulse-nativeĭisable Proton's esync, as it appears to cause crashes in certain games ( workaround): Set the PULSE_SERVER environment variable: Root # lxc config set steam-ubuntu environment.DISPLAY :0 Root # lxc config device add steam-ubuntu PASocket1 proxy bind=container connect=unix:/run/user/1000/pulse/native listen=unix:/home/ubuntu/pulse-native uid=1000 gid=1000 mode=0777 security.uid=1000 security.gid=1000Īlso, we'll set some environment variables. Root # lxc config device add steam-ubuntu X0 proxy bind=container connect=unix:/tmp/.X11-unix/X0 listen=unix:/tmp/.X11-unix/X0 uid=1000 gid=1000 mode=0777 security.uid=1000 security.gid=1000 Pass the X socket ( specifically display 0):
Root # lxc config device add steam-ubuntu mygpu gpu First, we need to pass the necessary devices and sockets to the container. Now, it's time to configure the container. Root # lxc launch images:ubuntu/hirsute steam-ubuntu In this example, we'll create an Ubuntu Hirsute Hippo container, which will be called 'steam-ubuntu': User $ killall pulseaudio Creating and configuring the container Then, restart PulseAudio for the changes to take immediate effect: Root # sed -i "s/load-module module-native-protocol-unix/& auth-anonymous=1/" /etc/pulse/default.pa To allow PulseAudio connections, run as root: To allow X connections, run as your regular user: Running them multiple times may mess things up (especially the pulseaudio sed command)! These commands only need to be run once to set up your host installation and not before creating a container in general. To be able to run graphical applications in the LXD container and to have audio, we need to allow connections to the host's X and PulseAudio sockets. Please refer to the LXD page for instructions on setting up LXD. The instructions assume that the container is Ubuntu, but it should be very similar for all other distributions. This page covers the process of installing Steam in a LXD container.