PDA

View Full Version : How to run firefox from unpack



gordon64
2nd April 2017, 02:04 AM
HI

Why
Some people may prefer a different language to American English or like the idea of smaller downloads

eg

dnf info firefox
Last metadata expiration check: 0:18:30 ago on Sun Apr 2 08:14:41 2017.
Available Packages
Name : firefox
Arch : x86_64
Epoch : 0
Version : 52.0
Release : 7.fc25
Size : 84 M
Repo : updates
Summary : Mozilla Firefox Web browser
URL : https://www.mozilla.org/firefox/
License : MPLv1.1 or GPLv2+ or LGPLv2+
Description : Mozilla Firefox is an open-source web browser, designed for standards
: compliance, performance and portability

so although f25 already has firefox, a full upgrade will be likely to be 84 Mb

How

1) Go into current firefox and backup your current bookmarks somewhere easy to get to, eg Desktop or mounted USB storage etc

If you use addons or extensions, these need or likely to need a clean install. More below.

Delete your current desktop icon. A copy exists in /usr/share/applications until you delete the Fedora package.

2) click on link and choose the Language (locale) you prefer

https://download-installer.cdn.mozilla.net/pub/firefox/releases/52.0.2/linux-x86_64/

^^ link may change in future.

as I am aussie lets take the British variant as example

size shows as 54 Mb (truncated to whole integer) actual size = 54.9

https://download-installer.cdn.mozilla.net/pub/firefox/releases/52.0.2/linux-x86_64/en-GB/

3) Download the package to Downloads

4) use file manager to click it and the unpack (extract) to Downloads directory.

use file manager to click on the extracted package directory

at time of writing version was 52.0.2

now use file manager to cut the folder below the version number called firefox and paste it into your home directory.

If you use a mouse and are right handed, left click the folder called firefox hold the button and move to the dir called home and release.....will move it there. There are other ways such as by command etc.

if you want to verify it you can see the new dir contents


ls ~/firefox

5) Create a working icon on your desktop if you are into icons.

copy and paste the box contents and save as Desktop/firefox.desktop


[Desktop Entry]
Version=1.0
Name=firefox
GenericName=Web Browser
Exec=/home/gordon/firefox/firefox %u
Icon=/home/gordon/firefox/browser/icons/mozicon128.png
Terminal=false
Type=Application
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
Categories=Network;WebBrowser;
Keywords=web;browser;internet;

change gordon to your local user name

Make the icon executable


chmod 755 Desktop/firefox.desktop

Go to a new window and icon should now be visible and clickable. So exit current firefox and click on new icon.

6) redo any addons or extensions that you prefer to use.
eg
https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/
https://addons.mozilla.org/en-US/firefox/addon/noscript/

7) Go to test pages to see if your firefox running from unpack as any missing bits
eg
html5 test page
https://www.youtube.com/html5

8) Once you are happy with FF running from unpack un-install the Fedora package

9) When FF detects an upgrade, a point release will only download the patch so can be quite a small download
but I am new to Fedora so I am pretty confident my way will always be smaller for major releases.

EDIT
step (9) was under review by more experienced Fedora users but now appears correct.

10) I have not asked you to delete your .mozilla folder so you can do it if you wish. Choice is yours.

If you get some gremlin....then delete it and FF should start as if its a clean install

gordon64
2nd April 2017, 09:07 AM
I forgot to mention that I am assuming you run a one user setup.

If you want family members to share the same unpack then you will need root powers to copy the unpacked folder into an area common to all users of that PC.

As we are not packaging...../usr/local is available.

and you will need to ask each family member to make their own desktop and modify the pathway from /home/gordon to
/usr/local/