Browser Update - Firefox

Technical issues/questions of an intermediate or advanced nature.
bour59
Shogun
Shogun
Posts: 203
Joined: 29 Dec 2010, 08:10
Distribution: porteus v5.0-xfce K5.19.7
Location: France

Browser Update - Firefox

Post#16 by bour59 » 30 May 2024, 09:26

Hi firefox current is now 126.0.1 (bugfix)

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 4123
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Browser Update - Firefox

Post#17 by ncmprhnsbl » 30 May 2024, 12:23

bour59 wrote:
30 May 2024, 09:26
Hi firefox current is now 126.0.1 (bugfix)
yah, spotted it just now, should be fixed now. (had the test backwards :P )
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

benjibasson
Samurai
Samurai
Posts: 184
Joined: 06 Mar 2019, 15:14
Distribution: Arch linux

Browser Update - Firefox

Post#18 by benjibasson » 17 Aug 2024, 17:43

Hi, I shunt the policies.json to update and build new modules because I don't save change every time on tiny PC but once every three months ( change is 999-change.xzm) and I have not enought space to work on ramdisk
- extract the firefox.xzm
- run ./usr/lib64/firefox-current/firefox as root

Code: Select all

cd /mnt/sda6/porteus64bit_v501/porteus/modules/firefox-129.0.1-x86_64-fr/usr/lib64/firefox-current/ &&  XAUTHORITY=/root/.Xauthority sudo firefox
- do help => about=> update
- exit
- run as guest to check if it is the right profil ( once)
- set to manual update instead of automatic (once)
- put back policie
- dir2xzm
- disable and delete old module
- enable new modules
so that I don't have to do an about:profil to default profil and delete new profil neither save session from setting center.
More over I don't have to worries about the huge place token on ramdisk during the extraction and txz2xzm (the TMP=/mnt/sda*/tmp doesn't work for updates-browser neither for update-firefox-live

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 4123
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Browser Update - Firefox

Post#19 by ncmprhnsbl » 18 Aug 2024, 03:52

benjibasson wrote:
17 Aug 2024, 17:43
More over I don't have to worries about the huge place token on ramdisk during the extraction and txz2xzm (the TMP=/mnt/sda*/tmp doesn't work for updates-browser neither for update-firefox-live
you are, of course, free to do whatever you want, but i'll correct a couple of misunderstandings:
1. the update-firefox-live (or any of the other browser scripts) doesn't use txz2xzm or makepkg (the "package info" in /var/lib/pkgtools/packages is "faked".)
2. the correct way to avoid using /tmp (ram) is to: in the terminal, cd to the directory you wish to use and eg. for firefox:

Code: Select all

update-browser -d -f
-d meaning "use current directory"
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

benjibasson
Samurai
Samurai
Posts: 184
Joined: 06 Mar 2019, 15:14
Distribution: Arch linux

Browser Update - Firefox

Post#20 by benjibasson » 19 Aug 2024, 11:56

ncmprhnsbl wrote:
18 Aug 2024, 03:52
benjibasson wrote:
17 Aug 2024, 17:43
More over I don't have to worries about the huge place token on ramdisk during the extraction and txz2xzm (the TMP=/mnt/sda*/tmp doesn't work for updates-browser neither for update-firefox-live
you are, of course, free to do whatever you want, but i'll correct a couple of misunderstandings:
1. the update-firefox-live (or any of the other browser scripts) doesn't use txz2xzm or makepkg (the "package info" in /var/lib/pkgtools/packages is "faked".)
2. the correct way to avoid using /tmp (ram) is to: in the terminal, cd to the directory you wish to use and eg. for firefox:

Code: Select all

update-browser -d -f
-d meaning "use current directory"
Hi, I didn't seen on the patched update-firefox-live suoted in this topic: how to fix /var/lib/pkgtools/packages to make it true before build xzm module?

Mel1974
White ninja
White ninja
Posts: 13
Joined: 02 Aug 2017, 16:09
Distribution: porteus mate 3.2.2

Browser Update - Firefox

Post#21 by Mel1974 » 26 Aug 2024, 02:19

First verify and update the package database by running pkgtool or slapt-get --update. If the database seems corrupt, remove it with rm -rf /var/lib/pkgtools/packages and then update again using slapt-get --update. Ensure the directory has correct permissions with chmod 755 /var/lib/pkgtools/packages.

Once the package database is accurate and up-to-date, you should be able to build your xzm module successfully

User avatar
Ed_P
Contributor
Contributor
Posts: 8653
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Browser Update - Firefox

Post#22 by Ed_P » 04 Nov 2024, 17:18

When using the Browser Selection and Update Tool and updating a browser there is this statement:

Code: Select all

 Set your home page.
 Leave blank for: https://forum.porteus.org and press enter to continue.
>
If the statement were changed to this:

Code: Select all

 Set your home page.
 Press enter to continue.
>https://forum.porteus.org
It would allow an easier path for a user to change the home page to:

Code: Select all

https://forum.porteus.org/search.php?search_id=active_topics

:)

User avatar
Ed_P
Contributor
Contributor
Posts: 8653
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Browser Update - Firefox

Post#23 by Ed_P » 08 Nov 2024, 08:21

In upgrading from firefox-122-x86_64-en-US.xzm to version firefox-132.0-x86_64-en-US.xzm the /home/guest/.mozilla/firefox/*-default-release-? folder went from 15MB to 38MB. :o 40 items to 47 items. Is this normal with the newer releases? :%)

Added in 15 hours 32 minutes 19 seconds:
:%) :Search:
Image
How does the size shown in the ls of a folder differ so much from the size shown in the properties for the same folder? :wall:
7.3MB verses 35.5 MB :crazy:

donald
Full of knowledge
Full of knowledge
Posts: 2089
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Browser Update - Firefox

Post#24 by donald » 09 Nov 2024, 04:20

Hi Ed

Your screenshot says 1009 items and 60 hidden so you may have to add

-a, --all <do not ignore entries starting with .>
[also -R to get a more detailed output]

to your terminal command.

or try du -sh /path/to/folder

User avatar
Ed_P
Contributor
Contributor
Posts: 8653
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Browser Update - Firefox

Post#25 by Ed_P » 09 Nov 2024, 19:18

Hi donald, thanks for the suggestions. :)

-a doesn't change the numbers that much.

Code: Select all

guest@porteus:~$ ls -lgha --group-directories-first /home/guest/.mozilla/firefox/*-release*/
total 4.7M
drwxr-xr-x 14 users  860 Nov  9 14:07 ./
drwxr-xr-x  6 users  180 Nov  9 14:07 ../
drwxr-xr-x  2 users   40 Nov  9 14:07 bookmarkbackups/
drwx------  3 users   60 Nov  9 14:07 crashes/
drwxr-xr-x  4 users   80 Nov  9 14:07 datareporting/
drwxr-xr-x  2 users   40 Nov  9 14:07 extension-store/
drwxr-xr-x  2 users   80 Nov  9 09:02 extensions/
drwx------  2 users   40 Nov  9 14:07 minidumps/
drwxr-xr-x  2 users   40 Nov  9 14:07 security_state/
drwxr-xr-x  2 users   60 Nov  9 14:07 sessionstore-backups/
drwxr-xr-x  6 users  140 Nov  9 14:07 storage/
-rw-r--r--  1 users    0 Nov  9 14:07 .parentlock
-rw-r--r--  1 users  34K Nov  9 14:07 AlternateServices.bin
 :
 :
Nor -R even with its massive display.

Code: Select all

guest@porteus:~$ ls -lghaR --group-directories-first /home/guest/.mozilla/firefox/*-release*/
/home/guest/.mozilla/firefox/cuiho3hm.default-release-2/:
total 6.8M
drwxr-xr-x 16 users  920 Nov  9 14:12 ./
drwxr-xr-x  6 users  180 Nov  9 14:07 ../
drwxr-xr-x  2 users   40 Nov  9 14:07 bookmarkbackups/
drwx------  3 users   80 Nov  9 14:08 crashes/
drwxr-xr-x  4 users  120 Nov  9 14:18 datareporting/
drwxr-xr-x  2 users   40 Nov  9 14:07 extension-store/
drwxr-xr-x  2 users   80 Nov  9 09:02 extensions/
drwxr-xr-x  3 users   60 Nov  9 14:07 gmp-gmpopenh264/
drwx------  2 users   40 Nov  9 14:07 minidumps/
drwxr-xr-x  2 users   40 Nov  9 14:07 security_state/
drwxr-xr-x  2 users   80 Nov  9 14:19 sessionstore-backups/
drwxr-xr-x  2 users   60 Nov  9 14:07 settings/
drwxr-xr-x  6 users  140 Nov  9 14:07 storage/
-rw-r--r--  1 users    0 Nov  9 14:07 .parentlock
-rw-r--r--  1 users  34K Nov  9 14:12 AlternateServices.bin
-rw-r--r--  1 users  36K Nov  9 14:08 SiteSecurityServiceState.bin
 :
 :
du -sh is more accurate.

Code: Select all

guest@porteus:~$ du -sh /home/guest/.mozilla/firefox/*-release*/
28M	/home/guest/.mozilla/firefox/cuiho3hm.default-release-2/
guest@porteus:~$ 
I would think the ls command's space number would include the space occupied by the directories even if their files aren't listed.

User avatar
Ed_P
Contributor
Contributor
Posts: 8653
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Browser Update - Firefox

Post#26 by Ed_P » 17 Nov 2024, 04:34

Is there a way to compare, reasonably, the differences between the pref.js from an old release and the one for a new release? diff is meaningless due to the unique 654678875522334567844 numbers at the end of the lines thus all lines are different regardless of what's before them.

And is there a bash command to shutdown a running firefox? Basically the opposite of nohup.

Kulle
Warlord
Warlord
Posts: 646
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Browser Update - Firefox

Post#27 by Kulle » 17 Nov 2024, 10:30

Hi Ed_P
bash commands to shutdown a running Firefox :

Code: Select all

kill $(pgrep firefox)
or

Code: Select all

kill -9 $(pgrep firefox)

User avatar
Ed_P
Contributor
Contributor
Posts: 8653
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Browser Update - Firefox

Post#28 by Ed_P » 18 Nov 2024, 05:40

Thank you Kulle, pgrep does indeed work. :good:

As for comparing pref.js files, this works for some entries, I just wish I could expand it to more options. ideally all of them. :D

Code: Select all

#!/bin/sh

if [ `whoami` != "root" ]; then
   echo toor | sudo -S  echo "******"
   sudo sh $0 $1 $2
   exit
fi

if [ -d /tmp/good/ ]; then
   rm -rf /tmp/good
   rm -rf /tmp/bad
fi

cat /mnt/nvme0n1p7/Users/Ed/Downloads/prefs.js| egrep -i "true|false" | sed 's^1711811976^x^g' | awk '{print $1,$2}' > /tmp/bad  # prefs-cui.txt
cat /home/guest/.mozilla/firefox/cuiho3hm.default-release-2/prefs.js | egrep -i "true|false" | sed 's^1712750425^x^g' | awk '{print $1,$2}' > /tmp/good # prefs-izo.txt
echo

#diff -Naurq /tmp/good /tmp/bad 
diff        /tmp/good /tmp/bad
echo
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
echo
echo " <  lines from good -izo FILE"
echo " >  lines from  bad -cui FILE"
echo
sleep 2
read
rm -rf /tmp/good && rm -rf /tmp/bad

Post Reply