Changes between Version 5 and Version 6 of WebKitGTK/Chroot
- Timestamp:
- Feb 20, 2014 6:06:03 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WebKitGTK/Chroot
v5 v6 85 85 In 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. 86 86 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/#index36h387 In any case, having pulse audio working in the `chroot` would be nice. 88 88 89 === Pulse Fix === 89 === Pulse running user-wide === 90 91 This 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 93 There are different ways of overcoming this limitation. 94 95 One 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 97 This 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 ... 102 load-module module-native-protocol-tcp auth-anonymous=1 listen=127.0.0.1 103 ... 104 }}} 105 106 This 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 ... 111 default-server = 127.0.0.1:4713 112 ... 113 }}} 114 115 === Pulse running system-wide === 116 117 The complete information about this can be found at http://www.freedesktop.org/wiki/Software/PulseAudio/FAQ/#index36h3 118 119 As 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 ... 124 system-instance = yes 125 ... 126 }}} 90 127 91 128 ==== Pulse Ubuntu ==== 92 129 93 First, we have to make work `/dev/shm` following the instructions [wiki:WebKitGTK/Chroot#SHM_Ubuntu above].130 First, 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]. 94 131 95 132 We also need to mount bind `/var/lib/dbus` , `~/.pulse` and `/tmp`. … … 113 150 114 151 /var/lib/dbus /var/lib/dbus none rw,bind 0 0 115 /dev/shm /dev/shm none rw,bind 0 0116 152 /run/shm /run/shm none rw,bind 0 0 117 153 devpts /dev/pts devpts gid=5,mode=620 0 0