How to update Firefox

Technical issues/questions of an intermediate or advanced nature.
SxN
White ninja
White ninja
Posts: 6
Joined: 27 Jan 2015, 16:23
Distribution: Porteus
Location: Canada

How to update Firefox

Post#1 by SxN » 28 Aug 2017, 04:00

Hi All,

I'm using Porteus 3.13.6, which I'm loading from an USB stick. I am quite happy with it, that's why I haven't change it for so long, but I begin to have problems. Namely, my Firefox version is 24.3.0 and it proves to be too old for accessing many web servers.

How can I update to the latest and greatest?

Thanks,
SxN

User avatar
Ed_P
Contributor
Contributor
Posts: 3415
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

How to update Firefox

Post#2 by Ed_P » 28 Aug 2017, 04:29

I would suggest the USM approach:

Code: Select all

guest@porteus:~$ su
Password: 

root@porteus:/home/guest# usm -g mozilla-firefox

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) mozilla-firefox-45.2.0esr-x86_64-1.txz
2) mozilla-firefox-52.2.0esr-x86_64-1_slack14.2.txz
3) mozilla-firefox-52.3.0esr-x86_64-1gv.txz
#? ^C
root@porteus:/home/guest# 
Ed

SxN
White ninja
White ninja
Posts: 6
Joined: 27 Jan 2015, 16:23
Distribution: Porteus
Location: Canada

How to update Firefox

Post#3 by SxN » 30 Aug 2017, 13:46

Hi Ed_P et Al.

As I haven't updated anything in ages, I was asked to perform a

Code: Select all

usm -u all
, which I did. I left the system on overnight, and in the morning I continued:

Code: Select all

usm -g mozilla-firefox

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) mozilla-firefox-24.1.0esr-x86_64-1.txz
2) mozilla-firefox-45.4.0esr-x86_64-1gv.txz
#? 2

Processing:   mozilla-firefox-45.4.0esr-x86_64-1gv.txz 

Libraries required:  42
Libraries found in system: 41
Libraries to resolve: 1

Processing library: liblgpllibs.so


 The following packages are required. 
mozilla-firefox-45.4.0esr-x86_64-1gv.txz []

Total size: 0 KB

 Press [r] to remove packages, [q] to quit, or enter to start downloading.
Downloading: mozilla-firefox-45.4.0esr-x86_64-1gv.txz  DONE


 Commencing package conversion ... 
Verifying package mozilla-firefox-45.4.0esr-x86_64-1gv.txz.
xz: (stdin): File format not recognized
Installing package mozilla-firefox-45.4.0esr-x86_64-1gv.txz:
PACKAGE DESCRIPTION:
WARNING:  Package has not been created with 'makepkg'
Package mozilla-firefox-45.4.0esr-x86_64-1gv.txz installed.

Creating /tmp/usm/mozilla-firefox-45.4.0esr-x86_64-1gv.xzm
Conclusions:
- still does not work ("file format not recognized" and the follow up might be the culprit)
- even if it were to work, it looks to me like upgrading the image in memory, not the ISO on the thumb drive. This is not what I'm looking for, as I won't wait one night every time I need to use a higher version of Firefox.

Is there anything else I could do?

Thanks,
SxN

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

How to update Firefox

Post#4 by donald » 30 Aug 2017, 14:26

Hi, do:

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# update-firefox
Checking internet ...
Downloading: update-firefox-live  DONE

 Getting latest firefox version ... 
[PASS] Latest version: firefox-56.0b7
 Checking for Porteus ... 
[PASS] Distro is Porteus

The porteus server version is:  50.1.0 
The latest version is:  firefox-56.0b7 
 Would you like to download the porteus server version? [y/n] => no
 Would you like to build the latest version? [y/n] => yes

A slackware package will be created. 
 Would you like to create a Porteus module? [y/n] => yes
Downloading: firefox-56.0b7.tar.bz2  DONE
....................................................................

User avatar
Ed_P
Contributor
Contributor
Posts: 3415
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

How to update Firefox

Post#5 by Ed_P » 30 Aug 2017, 14:35

SxN if update-firefox isn't available in your version of Porteus ( 3.0?) you could try downloading a more current firefox module from here: http://dl.porteus.org/x86_64/Porteus-v3.2.2/modules/

You don't need to rebuild your ISO to use it just put the new firefox module in your modules folder and reboot. All your bookmarks and setting should be there.

-BTW-

Do you have these alldesktops and fixes modules?

Code: Select all

guest@porteus:~$ ls /mnt/live/memory/images | grep 00
000-kernel.xzm/
001-core.xzm/
001-core_alldesktops-150124.xzm/
002-xorg.xzm/
002-xorg_alldesktops-150126.xzm/
If not click on menu > System Tools > Porteus Settings Centre and it's the top entry on the General Settings menu. Once downloaded put them into the /porteus/modules/ directory and reboot.
Ed

SxN
White ninja
White ninja
Posts: 6
Joined: 27 Jan 2015, 16:23
Distribution: Porteus
Location: Canada

How to update Firefox

Post#6 by SxN » 31 Aug 2017, 11:02

Hi All,

Donald, thanks for the tip; however, as Ed_P guessed, I don't have update-firefox.

Ed_P, thanks for the tip as well, this seems to be a promissing direction. With the module placed in the right directory, I can try to launch a newer version of FireFox. It fails due to a dependency (it is looking for GTK 3+). Would that be available as a module somewhere? More generally, how do I find modules for Porteus?

As a temporary work around, I tried to install gtk 3 using usm. After another update of "all" overnight, it offered version 3-3.8.2 of the library (3.4 is required, as per Mozilla's page here: https://www.mozilla.org/en-US/firefox/4 ... uirements/). Anyway, it did not finalize the installation, due to an error:

Code: Select all

...

Processing:   libXevie-1.0.3-x86_64-1.txz 

Libraries required:  6
Libraries found in system: 6
Libraries to resolve: 0


/usr/share/usm/funcpackageGet: line 65: declare: 7452K: value too great for base (error token is "7452K")
Can I get another push forward?

Thanks again,
SxN

privateip
White ninja
White ninja
Posts: 14
Joined: 17 Aug 2017, 18:34
Distribution: LFS

How to update Firefox

Post#7 by privateip » 31 Aug 2017, 12:10

Hi,
I use Firefox by downloading the version I prefer from https://ftp.mozilla.org/pub/firefox/releases/

Extract the file in /mnt/sda1/programs and make link firefox, then put that link in Desktop

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 1021
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

How to update Firefox

Post#8 by ncmprhnsbl » 31 Aug 2017, 12:31

3.1 is getting pretty long in the tooth, getting the latest firefox to work with it is a tough one..
you might have better luck with palemoon, at least it doesn't need gtk3 ... no guarantees though
SxN wrote:
31 Aug 2017, 11:02
More generally, how do I find modules for Porteus?
1. USM
2. Navigate around the Porteus server(or mirror) linked above
3.The modules section of the forum for ARCH(are you 32bit or 64bit btw?)
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Ed_P
Contributor
Contributor
Posts: 3415
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

How to update Firefox

Post#9 by Ed_P » 31 Aug 2017, 14:59

Ok SxN lets see what we can do with your 3.0 release.

For starters it's not necessary to update USM every time you run it if you have saved the updates from the last run.

Based on your overnight USM runs you might benefit with a script that finds the fastest mirrors. Look here: http://forum.porteus.org/viewtopic.php?f=39&t=7000 for •Script to Set the fastest Slackware Mirrors (aka sesm.sh). Click Select All, copy the selected code, create a text file, paste the copied code into the file and save it as sesm.sh. Then run it.

As for your funcpackageGet error, there is a script update that may help with that, but, the script may not work with your version of USM. USM Skirting Sync Issue

For better support you should consider updating Porteus to a more current release. It may be quicker than fighting with all the problems you're experiencing staying with the old one.
Ed

M. Eerie
Black ninja
Black ninja
Posts: 32
Joined: 31 Aug 2017, 21:18
Distribution: APorteus BUDGIE x64

How to update Firefox

Post#10 by M. Eerie » 31 Aug 2017, 22:00

First contribution :roll:

I have 2 lines in a text file (pretty sure it can be scripted somehow):
  • Check latest known version branch:

    Code: Select all

    curl http://ftp.mozilla.org/pub/firefox/releases/ | grep 55
    Then, from the results, subversion can be retrieved. In this case, is 55.0.3 so...
  • Code: Select all

    wget https://ftp.mozilla.org/pub/firefox/releases/55.0.3/linux-x86_64/es-ES/firefox-55.0.3.tar.bz2
In my case, I'm getting the es-ES version ;)

Afterwards, Is just a process of:
1.- Unpacking the obsolete module
2.- Unpack the downloaded archive
3.- Replace the usr/lib64/firefox folder in the obsolete extracted module with the firefox folder extracted from downloaded version.
4.- Recreate the new fox module.

Awful, I know, but one must deal with his clumsiness :sorry: :good:

M. Eerie
Black ninja
Black ninja
Posts: 32
Joined: 31 Aug 2017, 21:18
Distribution: APorteus BUDGIE x64

How to update Firefox

Post#11 by M. Eerie » 31 Aug 2017, 22:15

Also, I'm saving the personal profile from Firefox to a independant module like this:

Code: Select all

#!/bin/sh
NOW=`date +%Y%m%d-%H%M`
cd /home/guest/Desktop/
XZ_OPT=-e9 tar cJf profile.firefox-$NOW.tar.xz /home/guest/.mozilla
mkdir profile-firefox && XZ_OPT=-d tar -xf profile.firefox-* -C profile-firefox
dir2xzm /home/guest/Desktop/profile-firefox/ /home/guest/Desktop/profile.firefox-$NOW.xzm -n
sleep 5 && rm -rf /home/guest/Desktop/profile-firefox/
if [ "$(which kdialog)" ]; then
	kdialog --msgbox "Firefox config SAVED, copy the resulting .xzm in BASE or MODULES folder inside your porteus folder"
else
	Xdialog --msgbox "Firefox config SAVED, copy the resulting .xzm in BASE or MODULES folder inside your porteus folder" 0 0
fi
wich needs to be saved as a plain text file, and settled with proper permissions

Cheers.

User avatar
Ed_P
Contributor
Contributor
Posts: 3415
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

How to update Firefox

Post#12 by Ed_P » 01 Sep 2017, 04:33

M. Eerie wrote:
31 Aug 2017, 22:00
I have 2 lines in a text file (pretty sure it can be scripted somehow):
  • Check latest known version branch:

    Code: Select all

    curl http://ftp.mozilla.org/pub/firefox/releases/ | grep 55
    Then, from the results, subversion can be retrieved. In this case, is 55.0.3 so...
  • Code: Select all

    wget https://ftp.mozilla.org/pub/firefox/releases/55.0.3/linux-x86_64/es-ES/firefox-55.0.3.tar.bz2
In my case, I'm getting the es-ES version ;)
Have you ever tried:

Code: Select all

wget -O FirefoxSetup.exe "https://download.mozilla.org/?product=firefox-esr-latest&os=linux64&lang=en-US"
However whether it would work with SxN's 3.0 system is questionable. :(
Ed

M. Eerie
Black ninja
Black ninja
Posts: 32
Joined: 31 Aug 2017, 21:18
Distribution: APorteus BUDGIE x64

How to update Firefox

Post#13 by M. Eerie » 02 Sep 2017, 07:55

Thanks very much for the tip, Ed_P.

I think this kind of url has been changing over all these years, hopefully it will now stay stable

:good:

User avatar
Ed_P
Contributor
Contributor
Posts: 3415
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

How to update Firefox

Post#14 by Ed_P » 02 Sep 2017, 20:24

Ed

SxN
White ninja
White ninja
Posts: 6
Joined: 27 Jan 2015, 16:23
Distribution: Porteus
Location: Canada

How to update Firefox

Post#15 by SxN » 10 Sep 2017, 14:31

Hello again,

I'm afraid that I'm at the end of the rope... Most likely my system is too old to be patched the way it's needed.

I tried to install a new Firefox; it needs GTK3 libraries. I tried to install these, well, there are other dependencies (which I don't remember) which lead to other dependencies...

I tried Opera. Opera allows me to install a .deb or an .rpm. However, I ran again into the dependencies tree.

I tried Seamonkey, Konqueror, Midori, no luck.

I decided then to just put the newest Porteus on an USB. First surprise was that I cannot configure it the way it used to be in the old times :( But that would be OK as long as I could get to a working solution. However, the second surprise came: I couldn't find any browser whatsoever. Ironically, there is a torrent client :%)

I found wget to be present, so I might have to use another system to find URLs and feed them to this one, but this promises to be a lenghty process.

Too much time involved, I'm not sure I can invest it.

I don't want to conclude before thanking all for your input.

Regards,
SxN

Post Reply