Pulseaudio on xenial pup?

Booting, installing, newbie
Post Reply
Message
Author
idontregister
Posts: 2
Joined: Tue 10 Oct 2017, 07:00

Pulseaudio on xenial pup?

#1 Post by idontregister »

Any recipe exist for xenial pup to support Firefox 52 and pulse?
watchdog
Posts: 2021
Joined: Fri 28 Sep 2012, 18:04
Location: Italy

#2 Post by watchdog »

For xenialpup 32 bit:

http://www.murga-linux.com/puppy/viewto ... 259#969259

The apulse solution also works for xenialpup64:

http://smokey01.com/OscarTalks/apulse-0.1.10-x86_64.pet

The main thread for troubleshooting firefox and sound issues should be:

http://www.murga-linux.com/puppy/viewtopic.php?t=109902
hikohan
Posts: 32
Joined: Tue 29 Nov 2011, 05:42

xenial x64

#3 Post by hikohan »

setup packages from manager

#1 update repos

#2 add:
pulseaudio pulseaudio-module-x11 paman pavucontrol pulseaudio-esound-compat pulseaudio-utils

make sure all success installed, append startup script

"pulseaudio &"

works fine with Firefox 58, no more annoying tips on flash playing.

my blogged:
https://vegalou.blogspot.tw/2018/05/pup ... sound.html
User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#4 Post by bigpup »

Just have the apulse 0.1.11 from here installed. Nothing else.
Make sure to use the correct bit version.
http://smokey01.com/OscarTalks/
Reboot after you install it to make sure it is saved and loaded at the correct place.

That shuold be all you need for Firefox 52.

You will also need this if using Firefox 57 or newer:

/root/.mozilla/firefox
Look for a directory that ends in .default

Put the user.js file in that directory.

Use Geany to make this user.js file.
This is what needs to be in it.
watchdog's code

Code: Select all

// for using apulse with latest firefox
user_pref("security.sandbox.content.write_path_whitelist", "/dev/snd/");
user_pref("security.sandbox.content.syscall_whitelist", "/dev/snd/");
user_pref("security.sandbox.content.read_path_whitelist", "/dev/snd/");
[/quote]

Build 58 requires user_pref("security.sandbox.content.syscall_whitelist", "/dev/snd/"); to be set to "16" now instead of /dev/snd/, so am currently using

Code: Select all

// for using apulse with latest firefox
user_pref("security.sandbox.content.write_path_whitelist", "/dev/snd/");
user_pref("security.sandbox.content.syscall_whitelist", "16");
user_pref("security.sandbox.content.read_path_whitelist", "/dev/snd/");
Firefox and sound seems to be a moving target.
Each version of Firefox wants something different for sound.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)
User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#5 Post by rufwoof »

I downloaded firefox quantum (59.0.2 64 bit) and just extracted it. With Oscar's apulse also installed I have just

Code: Select all

user_pref("security.sandbox.content.write_path_whitelist", "/dev/snd/");
in my user.js and youtube video's etc play sound fine.

I wonder if those extra user.js lines are required when running firefox as root? I run firefox inside a EasyOS Pyro 0.9 container, running it as restricted user "rover" (and where root is pretty crippled i.e. /sbin, /usr/sbin etc. all chmod'd to 000 along with PID 1 being set to /bin/sh (so even a breakout from a sandboxed firefox session drops into a restricted userid and even if elevation to root could be achieved from that then root is pretty much useless as well (so difficult to break out of the EasyOS Pyro container)). Conceptually still open to Spectre/Meltdown type attacks, but with firefox having adjusted timer precision down from 5 microseconds to 20 microseconds that makes javascript speculative processing hacks more likely to be unsuccessful.
watchdog
Posts: 2021
Joined: Fri 28 Sep 2012, 18:04
Location: Italy

#6 Post by watchdog »

Tested firefox 59.0.3 in xenialpup 7.5 32 bit using apulse by OscarTalks version 0.1.11 with a wrapper script apulse. Sound working with these settings in "about:config" (search sandbox) or prefs.js:

Code: Select all

user_pref("security.sandbox.content.write_path_whitelist", "/dev/snd/");
user_pref("security.sandbox.content.syscall_whitelist", "54");
user_pref("security.sandbox.content.read_path_whitelist", "/dev/snd/");
Note that the security.sandbox.content.level is at 3 by default (do not touch it):

user_pref("security.sandbox.content.level", 3);

I would recommend to use the user.js trick only in a new fresh profile because I have experimented conflicting settings between prefs.js and user.js. The best way could be to set the values using "about:config" and restart firefox.

EDIT: as reported by bigpup for 64 bit pups use:

Code: Select all

user_pref("security.sandbox.content.syscall_whitelist", "16");
User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#7 Post by OscarTalks »

Folks may wish to try writing the custom settings into a system file eg:-
/usr/lib/firefox/browser/default/preferences/firefox.js
Starting the lines with "pref" not "user_pref"
Create directories and file if necessary.
This defines defaults from first run
No need to do anything manually in the profile.
I have tried to write about this in the HOW TO section here:-
http://murga-linux.com/puppy/viewtopic.php?t=113312
Oscar in England
Image
Post Reply