Firefox Quantum portable with apulse All-in

Browsers, email, chat, etc.
Post Reply
Message
Author
User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

Firefox Quantum portable with apulse All-in

#1 Post by fredx181 »

EDIT 2019-04-13 Instead of updating everytime, I made simple script that will create the portable Firefox, including the apulse libs
Updated 2019-05-31 http://murga-linux.com/puppy/viewtopic. ... 19#1025219
EDIT 2019-08-04, see here for Firefox-ESR portable (install script) http://murga-linux.com/puppy/viewtopic. ... 57#1033657

Firefox Quantum portable with apulse included, the settings for it, to make audio work (in about:config), are preconfigured (EDIT not anymore required for 60.0.1)
Extract to someplace and (inside extracted folder) run the "ff" script
To update (if available), go to Help > About
Thanks to OscarTalks for providing apulse !
EDIT: The personal profile will be inside "profile" folder
EDIT 2019-02-16 From Mike Walsh: Portable Firefox ESR v60.5.1 , see:
http://murga-linux.com/puppy/viewtopic. ... 11#1018511

EDIT2: Changed to version 58.0, (settings for apulse fixed) download links replaced.
EDIT 2018-01-31:Changed to version 58.0.1 download links replaced.
EDIT 2018-02-08:Changed to version 58.0.2 download links replaced.
EDIT 2018-02-19:See here info and a gtk3 sfs for running on systems without having gtk3 installed, e,g, x-slacko:
http://murga-linux.com/puppy/viewtopic. ... 400#983400
EDIT 2018-04-26, See here for a precise gtk3 pet package from Mike Walsh:
http://murga-linux.com/puppy/viewtopic. ... 764#989764
EDIT 2018-04-29 Version 59.02 now, download links below updated.
EDIT 2018-05-17 Updated to version 60.0.1
Mike Walsh provided a pet for a menu entry:
http://www.mediafire.com/file/w5525xfpu ... uEntry.pet
Required for this is that the firefox32 (or firefox64) folder is in /opt (so the path is e.g: /opt/firefox32/).
EDIT: Re-uploaded without any special "sandbox.security" pre-configuration included (not needed anymore), see also EDIT Here
EDIT 2018-11-19 Updated to version 63.0.3, replaced download links below.
Bug fix, sound didn't work without apulse installed (at least for me), see more here:
http://murga-linux.com/puppy/viewtopic. ... 21#1010621
EDIT 2018-12-14 Updated to version 64.0, added libatomic1 to extra libs (required for v64.0)
EDIT 2018-12-17 One issue can be a crash (e.g. when importing a bookmark) then it's because of missing "/usr/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml", then you get the error something like:

Code: Select all

(firefox:13895): GLib-GIO-ERROR **: Settings schema 'org.gtk.Settings.FileChooser' is not installed Emphasis supplied.
Mike Walsh provided glib-2.0_schemas.pet which should solve that problem, see:
http://murga-linux.com/puppy/viewtopic. ... 23#1013223
EDIT 2019-01-09 Updated to 64.0.2, download links below replaced.
(automatic updating from 64.0 to 64.0.2 didn't work, made a small change to the "ff" script that fixes it)

Download older version (will update itself to latest, but better use the script, see above EDIT 2019-04-13)
32-bit
https://dl.dropboxusercontent.com/s/65p ... ar.gz?dl=1
64-bit
https://dl.dropboxusercontent.com/s/dz6 ... ar.gz?dl=1

Fred
Last edited by fredx181 on Sun 04 Aug 2019, 09:44, edited 34 times in total.

dancytron
Posts: 1519
Joined: Wed 18 Jul 2012, 19:20

#2 Post by dancytron »

I remastered this into the new Debian Stretch CE puppy.

Works great.

http://murga-linux.com/puppy/viewtopic. ... 391#978391

frenchiveruti
Posts: 120
Joined: Wed 15 Feb 2017, 14:00

#3 Post by frenchiveruti »

Thanks a lot fred, I'll try it out.

dancytron
Posts: 1519
Joined: Wed 18 Jul 2012, 19:20

#4 Post by dancytron »

I am not using this, I made my own before Fred came out with this, but I upgraded to Firefox 58 last night and it broke the sound. A little bit of googling seems to indicate they've tightened up the sandbox security a little more.

Going to about:config and changing security.sandbox.content.level from 3 to 0 made the sound work again, but I am under the impression that turns off a lot of security stuff. I am sure there is a better setting to use that will allow the sound and leave more of the sandbox security in place that rcrsn51 and fred will figure out.

I'll cross post this in the Debian Stretch thread to rcrsn51 will see it.

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#5 Post by OscarTalks »

Oscar in England
Image

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#6 Post by fredx181 »

Changed to version 58.0, settings for apulse fixed, thanks OscarTalks
Download links replaced, see first post.

Fred

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#7 Post by peebee »

Thanks indeed to @OscarTalks....

For info: the magic number for LxPupSc and ArtfulPup is 54.....

sfs
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#8 Post by fredx181 »

Previously made mistake with the 32bit version, it still was version 57.0 (and should have been 58.0)

Fixed now and upgraded to latest v58.0.1, see download links in first post.

Fred

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#9 Post by Mike Walsh »

dancytron wrote:I am not using this, I made my own before Fred came out with this, but I upgraded to Firefox 58 last night and it broke the sound. A little bit of googling seems to indicate they've tightened up the sandbox security a little more.

Going to about:config and changing security.sandbox.content.level from 3 to 0 made the sound work again, but I am under the impression that turns off a lot of security stuff. I am sure there is a better setting to use that will allow the sound and leave more of the sandbox security in place that rcrsn51 and fred will figure out.

I'll cross post this in the Debian Stretch thread to rcrsn51 will see it.
Just updated to 58.0.1 in Tahr64. No sound. Trying the security.sandbox.content.level change makes absolutely no difference. Radiotunes flips rapidly through a whole bunch of tracks before giving up, with a pop-up informing you that it is 'Unable to capture the stream. Stream disconnected. Giving up.....'

Good job I don't rely on this. I only keep up with it purely out of curiosity...!

I think I'll stick with my Chromium-based browsers. I know what I'm doing with them. More proof that I was on the right track when I 'dropped' FF all those years ago.....


Mike. :wink:

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#10 Post by fredx181 »

Updated to latest version 58.0.2, see first post for download.
The 32-bit included apulse settings changed to :

Code: Select all

defaultPref("security.sandbox.content.level", 2);  // set new default value
defaultPref("security.sandbox.content.write_path_whitelist", "/dev/snd/");
defaultPref("security.sandbox.content.syscall_whitelist", "54");
defaultPref("security.sandbox.content.read_path_whitelist", "/dev/snd/");
The change to 54 (instead 53) for "security.sandbox.content.syscall_whitelist", for 32-bit version gives better chance that it works on most distro's, thanks peebee.

Fred

kuman11
Posts: 248
Joined: Tue 26 Dec 2017, 09:32

#11 Post by kuman11 »

I'm trying to run ff32 on X-Slacko Slim 4.4.r9. Got that:

/mnt/sda1/firefox32/ff
XPCOMGlueLoad error for file /mnt/sda1/firefox32/libmozgtk.so:
libgtk-3.so.0: cannot open shared object file: No such file or directory
Couldn't load XPCOM.

dancytron
Posts: 1519
Joined: Wed 18 Jul 2012, 19:20

#12 Post by dancytron »

kuman11 wrote:I'm trying to run ff32 on X-Slacko Slim 4.4.r9. Got that:

/mnt/sda1/firefox32/ff
XPCOMGlueLoad error for file /mnt/sda1/firefox32/libmozgtk.so:
libgtk-3.so.0: cannot open shared object file: No such file or directory
Couldn't load XPCOM.
It needs gtk-3. What version of slackware is your puppy based on?

You should be able to search for gtk-3 or maybe just gtk in Puppy Package Manager and find what you need to install. Try that and report back if you can't make it work. If we know the slackware version, we could probably find what you need to add online. For example, this would be the right one for slackware 14. https://slackware.pkgs.org/14.0/slackwa ... 1.txz.html

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#13 Post by s243a »

This works on tahrpup but I get this error:

Code: Select all

(/opt/firefox/firefox:31436): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

firefox quantum on X-slacko-slim 4.4r9

#14 Post by mikeslr »

Hi All,

If I've tracked it down correctly, X-Slacko-slim 4.4r9 is compatible with "upstream 14.1", http://blog.puppylinux.com/?viewDetailed=00028. And as kuman11's running the 32 bit version, this is probably the package needed: https://slackware.pkgs.org/14.1/slackwa ... 2.txz.html.

But it gets a little more complicated. Kuman11 runs a "remaster" without a SaveFile/Folder and prefers to continue with that system. Although one possibility would be to temporarily create a SaveFile and remaster, I was wondering if there wasn't another solution.

In order not to conflict with "builtin" applications, Watchdog's palemoon includes the glibc libraries. I think, similarly, fredx181 solves the apulse problem by including the necessary libraries. The code in "ff" is:

#!/bin/sh
LAUNCHDIR="$(cd "$(dirname "$0")"; pwd)"
mkdir "$LAUNCHDIR/profile" 2> /dev/null
"$LAUNCHDIR/apulse" "$LAUNCHDIR/firefox" "$@" -profile "$LAUNCHDIR/profile"

The reference to apulse above is (I think) to the bash-script named apulse which reads:

#!/bin/sh

APULSEPATH="/usr/lib/apulse"

LD_LIBRARY_PATH=$APULSEPATH${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} exec "$@"

Firefox's folder, itself, contains several libpulse-related libraries, and symbolic links (as necessary) to those. I also noticed gtk2 folder containing libmozgtk.so.

That's about as far as my understanding goes, As they say, a little knowledge is a dangerous thing. But I wondered if a similar method was possible for incorporating gtk-3 libraries necessary on kuman11's system.

I've raised this otherwise academic problem because both Mozilla and Google keep 'uping the ante' making it difficult for older systems to run web-browsers required by "modern" webpages. Fredx181's approach of employing everything within a self-contained "portable" folder is, IMHO, the best technique for overcoming that obstacle. An understanding of how to build on that method may come in handy.

But, perhaps it would be best to start a thread in the Programming Section to reply.

@ s243a: I get the same error in joomlapup=tahrpup 6.0.5. But despite it's assertion of "critical", this version of firefox runs, seemingly without problems. [Thought I'd see what joomla was all about]. Will boot into Tahrpup 6.0.6 with 4.1.30 kernel in a couple of minutes. Not having run it from the terminal I might never have known of the error.

Yep. 6.0.6 with 4.1.30 kernel also shows the error. As I hadn't gotten around to deleting the firefox 57 folder, started that version via the terminal as well. Reports the same "error".

mikesLr

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#15 Post by fredx181 »

Installing gtk3 from PPM makes it work for me on X-slacko slim, package name: gtk+3-3.8.2

@mikeslr,
But I wondered if a similar method was possible for incorporating gtk-3 libraries necessary on kuman11's system
.
In theory it should be possible to add the gtk3 libs to the portable package, but probably it won't work on all distro's.

EDIT: Here's a gtk3 sfs for x-slacko, Firefox Quantum works fine after loading it:
https://dl.dropboxusercontent.com/s/28h ... o.sfs?dl=0
(32 bit)

Also I tested loading above sfs on x-tahr (without gtk3, the x-tahr version I run), firefox runs after loading the sfs, but no audio, can be fixed by disabling the sandbox, open the file "ff4lxpup.cfg" in the folder and change setting for sandbox to 0 :

Code: Select all

defaultPref("security.sandbox.content.level", 0);
Fred

kuman11
Posts: 248
Joined: Tue 26 Dec 2017, 09:32

#16 Post by kuman11 »

It worked right away, on the first click, with gtk3!

Many thanks mikeslr & fredx181 !

kuman11
Posts: 248
Joined: Tue 26 Dec 2017, 09:32

#17 Post by kuman11 »

Today, after rebooting & running Firefox w/o a save file, somehow I couldn't unmount sda1. Got this -
"Error umounting volume sda1: Script exited with exitcode 1
Output:
umount: can't umount /mnt/sda1: Device or resource busy"

It's possible it's from gtk3 file or else?

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#18 Post by fredx181 »

kuman11 wrote:Today, after rebooting & running Firefox w/o a save file, somehow I couldn't unmount sda1. Got this -
"Error umounting volume sda1: Script exited with exitcode 1
Output:
umount: can't umount /mnt/sda1: Device or resource busy"

It's possible it's from gtk3 file or else?
If the gtk3 sfs is loaded and located on sda1, yes, then sda1 can't be unmounted, that's normal, I guess.

Fred

kuman11
Posts: 248
Joined: Tue 26 Dec 2017, 09:32

#19 Post by kuman11 »

Apparently it's s/t linked to plugging in of the stick.

Another issue, when I created a shortcut of the 'ff' file on the D/top it couldn't start Firefox ... Any clues?

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#20 Post by fredx181 »

Hi kuman11,
Another issue, when I created a shortcut of the 'ff' file on the D/top it couldn't start Firefox ... Any clues?
A symlink, I guess ?
Yes, then it changes directory to ~/Desktop and can't find the files in the firefox folder.
Changing the first line in the script to: LAUNCHDIR="$(dirname "$(readlink -f "$0")")" will fix that, so open "ff" with texteditor and make it:

Code: Select all

#!/bin/sh
# LAUNCHDIR="$(cd "$(dirname "$0")"; pwd)"   # old
LAUNCHDIR="$(dirname "$(readlink -f "$0")")"   # new
mkdir "$LAUNCHDIR/profile" 2> /dev/null
"$LAUNCHDIR/apulse" "$LAUNCHDIR/firefox" "$@" -profile "$LAUNCHDIR/profile"
EDIT: Works for me with symlink on Desktop, not sure though if it works on all systems.

Fred

Post Reply