Changes between Version 5 and Version 6 of WebKitGTK/Chroot


Ignore:
Timestamp:
Feb 20, 2014 6:06:03 AM (10 years ago)
Author:
Andres Gomez
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WebKitGTK/Chroot

    v5 v6  
    8585In order to have the audio output working correctly pulse audio working in the chroot is not strictly needed. GStreamer, through the `playbin2` element, tries to use `pulsesink` as audio sink but will fall to `alsasink` if `pulsesink` fails. In case the local pulse audio daemon is not making use of the audio device, alsa will work without problems in the chroot.
    8686
    87 In any case, having pulse audio working in the `chroot` would be nice. The complete information about this can be found at http://www.freedesktop.org/wiki/Software/PulseAudio/FAQ/#index36h3
     87In any case, having pulse audio working in the `chroot` would be nice.
    8888
    89 === Pulse Fix ===
     89=== Pulse running user-wide ===
     90
     91This is the default mode and the one shipped in most distributions. In this mode, only the process being run by the user and environment running the Pulse Audio server will be allowed to connect.
     92
     93There are different ways of overcoming this limitation.
     94
     95One of the simplest ones would be to set the local server to listen for TCP connections in the loopback interface, allowing any connection, and the Pulse client processes running in the chroot to connect to the server listening in the loopback interface. This can be sent system-wide, to all the users in the local host and the chroot or just per user.
     96
     97This is an example of configuration for the Pulse server run by a user in the local host:
     98{{{
     99#!sh
     100$ cat $HOME/.config/pulse/default.pa
     101...
     102load-module module-native-protocol-tcp auth-anonymous=1 listen=127.0.0.1
     103...
     104}}}
     105
     106This is an example of configuration for the Pulse clients run by a user in the chroot:
     107{{{
     108#!sh
     109$ cat $HOME/.config/pulse/client.conf
     110...
     111default-server = 127.0.0.1:4713
     112...
     113}}}
     114
     115=== Pulse running system-wide ===
     116
     117The complete information about this can be found at http://www.freedesktop.org/wiki/Software/PulseAudio/FAQ/#index36h3
     118
     119As this is not the default running mode for pulse, you will have to set the proper setting:
     120{{{
     121#!sh
     122$ cat /etc/pulse/daemon.conf
     123...
     124system-instance = yes
     125...
     126}}}
    90127
    91128==== Pulse Ubuntu ====
    92129
    93 First, we have to make work `/dev/shm` following the instructions [wiki:WebKitGTK/Chroot#SHM_Ubuntu above].
     130First, we have to make work `/dev/shm` (in some distributions, this is actually a soft link to `/run/shm`) following the instructions [wiki:WebKitGTK/Chroot#SHM_Ubuntu above].
    94131
    95132We also need to mount bind `/var/lib/dbus` , `~/.pulse` and `/tmp`.
     
    113150
    114151/var/lib/dbus   /var/lib/dbus   none    rw,bind         0       0
    115 /dev/shm        /dev/shm        none    rw,bind         0       0
    116152/run/shm        /run/shm        none    rw,bind         0       0
    117153devpts          /dev/pts        devpts  gid=5,mode=620  0       0