Skip to content

Easy method to get audio working (documentation) #20

@JonathanTippy

Description

@JonathanTippy

in host system:
$ pactl load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1

in chroot:
$ sudo apt install pulseaudio -y
$ export PULSE_SERVER=127.0.0.1

Now that we got it working, we can automate it:

right before entering the chroot:
$ pactl load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1

in the .bashrc or .profile of the chroot:
$ export PULSE_SERVER=127.0.0.1

after the chroot ends:
$ pactl unload-module module-native-protocol-tcp

With this method, audio inside the chroot can easily coexist with your desktop audio and individual apps in the chroot can be configured using pulseaudio volume control on your host system.
All I tested was mpv and scp containment breach with wine and box86 / box64, but its a pretty simple setup and im pretty sure it should just work generally.
attached is my launch file edited to implement this:

launch.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions