Installing Firefox in Debian 6.0.2.1-i386, (Squeeze)

Share your own howto's etc. Not for support questions!

Re: Installing Firefox in Debian 6.0.2.1-i386, (Squeeze)

Postby craigevil » 2012-08-07 22:37

BLTicklemonster wrote:Ice Weasel was just bare bones, that's all. I hadn't put firefox in yet when I decided to try dropping the folder in and trying it.


first update iceweasel to the current release version then copy your firefox profile into the iceweasel directory.
Debian Sid KDE Kernel 3.17 Thinkpad R40 Intel M 1.3 CPU 2GB RAM Radeon Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Debian upgrade script smxi | sysinfo script inxi
User avatar
craigevil
 
Posts: 5192
Joined: 2006-09-17 03:17
Location: Oz

Re: Installing Firefox in Debian 6.0.2.1-i386, (Squeeze)

Postby BLTicklemonster » 2012-08-07 23:41

Oops! Too late, but thanks! I should have known that. How basic. :roll:
BLTicklemonster
 
Posts: 8
Joined: 2012-08-07 17:24

Re: Installing Firefox in Debian 6.0.2.1-i386, (Squeeze)

Postby stevepusser » 2012-08-26 22:10

You know what, these single deb i386 and amd64 builds in the MEPIS community repo should work just fine in Squeeze. You would have to update your plugins if you've been running 32-bit plugins on a 64-bit OS, then switch to a 64-bit Firefox. Otherwise, installing the single deb file with gdebi is the best bet, and your menu entries should get automatically created.

Scroll to very near the bottom for the Firefox-build1 debs, the language file debs take up most of the top parts in that folder.

http://main.mepis-deb.org/mepiscr/testr ... f/firefox/

I would not recommend installing debs from just anyone, but I think I've built up enough trust in the MEPIS community and here to be taken seriously...if not, get the sources from the repo, look at them, and build your own debs.

Edit: Just checked the source PPA, and 15.0 final is out. They have lots of changes in the build procedure, and finally dropped the deprecated tarball.mk procedure. I went through, made all the usual changes, and have it building on all cores. Usually I get to the end and have a build fail due to a missing comma or something like that. :(
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8905
Joined: 2009-10-06 05:53

Re: Installing Firefox in Debian 6.0.2.1-i386, (Squeeze)

Postby Hralgmir » 2012-10-07 02:31

How to install, update and uninstall Mozilla Firefox in Debian 6 with the Gnome 2 desktop, when downloading from the Mozilla website:
An improved code synopsis including various suggestions, all items set in the Iceweasel package installation scripts, and gconf settings.
Commands written so they can be issued from any directory.
# = command as root $ = command not as root
It is important to not be root where indicated and to be root where indicated or commands may create incorrect file permissions or not execute properly.

Installing Firefox and removing Iceweasel:
Download and save the latest stable release of Firefox. Use the path to this file and it's version-dependent filename as appropriate below.
Backup ~/.mozilla which contains Iceweasel data - Firefox uses this directory and may rewrite it.
Code: Select all
$ cp -R ~/.mozilla ~/.Iceweaselbackupmozilla.old

If the directory /usr/local/share/man/man1 does not already exist, create it:
Code: Select all
# mkdir -p /usr/local/share/man/man1

# cp /usr/share/man/man1/iceweasel.1.gz /usr/local/share/man/man1/pagefromiceweasel.1.gz[/code]
(use:- $man pagefromiceweasel -:to subsequently access, these details are available on the Mozilla website but it may be useful to keep this page)
Code: Select all
# apt-get remove iceweasel

If /opt/firefoxx does not already exist, create it:
Code: Select all
# mkdir /opt/firefoxx
# mv /path/to/firefox-11.0.tar.bz2 /opt/firefoxx
# tar --directory /opt/firefoxx -xjvf /opt/firefoxx/firefox-11.0.tar.bz2
# ln -s /opt/firefoxx/firefox/firefox /usr/local/bin

If /usr/lib/mozilla/plugins and /usr/lib/mozilla/extensions do not already exist, create directories for plugins and extensions :
Code: Select all
# mkdir -p /usr/lib/mozilla/plugins
# mkdir -p /usr/lib/mozilla/extensions


Create this directory if it does not already exist:
Code: Select all
# mkdir -p /usr/local/share/applications


As root, create and save the following file entry as 'firefox.desktop' in the directory : /usr/local/share/applications

[Desktop Entry]
Name=Firefox
GenericName=Web Browser
X-GNOME-FullName=Firefox Web Browser
Comment=Blaze through the web
Exec=/opt/firefoxx/firefox/firefox %U
StartupNotify=true
StartupWMClass=Firefox
Terminal=false
Type=Application
Icon=/opt/firefoxx/firefox/chrome/icons/default/default32.png
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;

Code: Select all
# update-desktop-database

#  update-alternatives --install /usr/bin/gnome-www-browser gnome-www-browser /usr/local/bin/firefox 100 \
--slave /usr/share/man/man1/gnome-www-browser.1.gz gnome-www-browser.1.gz /usr/local/share/man/man1/pagefromiceweasel.1.gz

# update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/local/bin/firefox 100 \
--slave /usr/share/man/man1/x-www-browser.1.gz x-www-browser.1.gz /usr/local/share/man/man1/pagefromiceweasel.1.gz


As root, create and save the following file as 'firefox-browser' in the directory : /etc/menu

?package(firefox-browser):needs="x11" \
section="Applications/Network/Web Browsing" \
title="Firefox" \
longtitle="Firefox Web Browser" \
icon="/opt/firefoxx/firefox/chrome/icons/default/default32.png" \
command="/usr/local/bin/firefox" \
hints="Web browsers"

Code: Select all
# update-menus


As root, create and save the following file named 'firefox' in the directory : /usr/lib/mime/packages

text/html; /usr/local/bin/firefox %s; description=HTML Text; test=test -n "$DISPLAY"; nametemplate=%s.html; priority=5
text/xml; /usr/local/bin/firefox %s; description=XML Text; test=test -n "$DISPLAY"; nametemplate=%s.xml; priority=5
image/png; /usr/local/bin/firefox %s; description=PNG Image; test=test -n "$DISPLAY"; nametemplate=%s.png; priority=2
image/jpeg; /usr/local/bin/firefox %s; description=JPEG Image; test=test -n "$DISPLAY"; nametemplate=%s.jpeg; priority=2
image/gif; /usr/local/bin/firefox %s; description=GIF Image; test=test -n "$DISPLAY"; nametemplate=%s.gif; priority=2

Code: Select all
# update-mime


Make a backup of mimeapps.list if it already exists, for reference and to protect against editing errors :
$ cp ~/.local/share/applications/mimeapps.list ~/.local/share/applications/mimeapps.old

While not root, edit ~/.local/share/applications/mimeapps.list to set the default browser.
Create or edit this file. Under [Added Associations] put firefox.desktop after the '=' for : application/xhtml+xml and : text/html
The first xx.desktop; application is the default - if it's not installed the next one is selected.
Example of file contents - it might contain other entries too which can be left alone:

[Added Associations]

application/xhtml+xml=firefox.desktop;epiphany.desktop;iceweasel.desktop;gedit.desktop;
text/html=firefox.desktop;epiphany.desktop;iceweasel.desktop;gedit.desktop;

'gconf' settings in the user's home directory.
(You may prefer to set 'ftp' for a dedicated ftp program if it's installed, e.g filezilla)

Code: Select all
$ gconftool-2 --set \
"/desktop/gnome/applications/browser/exec" --type string "firefox" \
"/desktop/gnome/applications/browser/nremote" --type bool "false" \
"/desktop/gnome/url-handlers/about/command" --type string "firefox %s" \
"/desktop/gnome/url-handlers/chrome/command" --type string "firefox %s" \
"/desktop/gnome/url-handlers/ftp/command" --type string "firefox %s" \
"/desktop/gnome/url-handlers/http/command" --type string "firefox %s" \
"/desktop/gnome/url-handlers/https/command" --type string "firefox %s" \
"/desktop/gnome/url-handlers/unknown/command" --type string "firefox %s"


Setting system - wide gconf defaults.
These settings are used if the equivalent user values are unset.
Before changing default preference values, ensure the GConf daemon is not running for any user. Ensure other users are logged out.
Shutdown and spawn the gconf daemon as the user you logged in as. Starting a root shell in a terminal does not start a root gconf daemon.
To see if gconfd is running and for which users :
Code: Select all
$ ps -eF | grep gconfd

username 2073 1 0 1525 2508 0 09:29 ? 00:00:00 /usr/lib/libgconf2-4/gconfd-2
username 2075 1867 0 838 732 0 09:29 pts/1 00:00:00 grep gconfd
(Example output, also shows grep looking for gconfd)

Code: Select all
$ gconftool-2 --shutdown
# gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults \
  --type string --set "/desktop/gnome/applications/browser/exec" "firefox" \
  --type bool --set "/desktop/gnome/applications/browser/nremote" "false" \
  --type string --set "/desktop/gnome/url-handlers/about/command" "firefox %s" \
  --type string --set "/desktop/gnome/url-handlers/chrome/command" "firefox %s" \
  --type string --set "/desktop/gnome/url-handlers/ftp/command" "firefox %s" \
  --type string --set "/desktop/gnome/url-handlers/http/command" "firefox %s" \
  --type string --set "/desktop/gnome/url-handlers/https/command" "firefox %s" \
  --type string --set "/desktop/gnome/url-handlers/unknown/command" "firefox %s"
$ gconftool-2 --spawn


Make a launcher on a desktop panel: drag and drop from the Applications menu.

To upgrade to a new release of Firefox:

Download the new tar.bz2 package.

Code: Select all
# mv /path/to/firefox-15.0.1.tar.bz2 /opt/firefoxx
# rm -r /opt/firefoxx/firefox
# tar --directory /opt/firefoxx -xjvf /opt/firefoxx/firefox-15.0.1.tar.bz2


The other items previously set should work with the new version.

To uninstall Firefox and return to Iceweasel:

Right click the Firefox launcher icon and select Remove From Panel.

If values unrelated to Firefox had been assigned for gconf settings, for example ftp, then do not unset the relevant settings.

If system - wide gconf settings were used :
Code: Select all
$ gconftool-2 --shutdown
# gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --unset \
"/desktop/gnome/applications/browser/exec" \
"/desktop/gnome/applications/browser/nremote" \
"/desktop/gnome/url-handlers/about/command" \
"/desktop/gnome/url-handlers/chrome/command" \
"/desktop/gnome/url-handlers/ftp/command" \
"/desktop/gnome/url-handlers/http/command" \
"/desktop/gnome/url-handlers/https/command" \
"/desktop/gnome/url-handlers/unknown/command"
$ gconftool-2 --spawn


If user gconf settings were used :
Code: Select all
$ gconftool-2 --unset \
"/desktop/gnome/applications/browser/exec" \
"/desktop/gnome/applications/browser/nremote" \
"/desktop/gnome/url-handlers/about/command" \
"/desktop/gnome/url-handlers/chrome/command" \
"/desktop/gnome/url-handlers/ftp/command" \
"/desktop/gnome/url-handlers/http/command" \
"/desktop/gnome/url-handlers/https/command" \
"/desktop/gnome/url-handlers/unknown/command"


Code: Select all
# update-alternatives --remove gnome-www-browser /usr/local/bin/firefox
# update-alternatives --remove x-www-browser /usr/local/bin/firefox

# rm /usr/lib/mime/packages/firefox \
/etc/menu/firefox-browser \
/usr/local/share/applications/firefox.desktop \
/usr/local/bin/firefox \
/usr/local/share/man/man1/pagefromiceweasel.1.gz

# update-mime
# update-menus
# update-desktop-database


While not root, edit ~/.local/share/applications/mimeapps.list
This step can be skipped, because if Firefox is not installed the entry will be ignored and the next application in the ; seperated list used instead.
Remove firefox.desktop; where it was previously added. Refer to ~/.local/share/applications/mimeapps.old if required.
Other changes may have been made by GUI selections since the backup, so use mimeapps.old for reference only.

(If you might reinstall Firefox skip this next step)
Code: Select all
# rm -r /opt/firefoxx


Backup ~/.mozilla which contains Firefox data if you might reinstall Firefox, then replace the backup from Iceweasel.
Code: Select all
$ mv ~/.mozilla ~/.Firefoxbackupmozilla.old
$ mv ~/.Iceweaselbackupmozilla.old ~/.mozilla


Option 1:
(Useful for experimentation)
Install the previously uninstalled version of Iceweasel from /var/cache/apt/archives/ without downloading it again, for example iceweasel_3.5.16-13_i386.deb
Code: Select all
# dpkg -i /var/cache/apt/archives/iceweasel_3.5.16-13_i386.deb


Option 2:
Install the latest Iceweasel, the version you get depends on which repositories you have configured.
Code: Select all
# apt-get install iceweasel
Hralgmir
 
Posts: 48
Joined: 2012-07-16 01:05

Re: Installing Firefox in Debian 6.0.2.1-i386, (Squeeze)

Postby craigevil » 2012-10-07 04:43

wow rather than go through all that I would just shoot myself.

Just install Iceweasel.

If you are running stable you can install the current ESR version from backports, or the current release from mozilla.debian.net

iceweasel:
Installed: 15.0.1-1
Candidate: 15.0.1-1

Or just do it my lazy way
download Firefox
extract
create a new profile by opening iceweasel -profilemanager
copy my existing iceweasel profile to the new profile
copy the iceweasel.desktop file in /usr/share/applications and edit it so the Exec= and Icon= lines point to the correct places
personally I just leave the firefox directory in my Downloads directory
edit ~./local/applications/defaults.list and ~/.local/share/applications/mimeapps.list
adding text/html=firefox.desktop to both files

5 minutes work including the download time and you have Firefox
Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20100101 Firefox/15.0.1

Or just use Iceweasel, the maintainer has been doing a great job of keeping up with Mozilla's releases.
Debian Sid KDE Kernel 3.17 Thinkpad R40 Intel M 1.3 CPU 2GB RAM Radeon Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Debian upgrade script smxi | sysinfo script inxi
User avatar
craigevil
 
Posts: 5192
Joined: 2006-09-17 03:17
Location: Oz

Re: Installing Firefox in Debian 6.0.2.1-i386, (Squeeze)

Postby Hralgmir » 2012-10-10 02:47

craigevil wrote:wow rather than go through all that I would just shoot myself.

Just install Iceweasel.



There is another reason to install Iceweasel I noted, the i386 Iceweasel 15 deb is about 2.5MB to download, while Firefox from Mozilla is 18.4MB. I think this is probably because the Mozilla download is compiled as a more or less stand alone installation, while the .deb depends on various libraries already installed with Debian. Using a Firefox .deb from another distro like Mepis as suggested would get around this perhaps, but I think I may have solved the Firefox from Mozilla installation question! It takes less than an hour when you get the hang of it :)

There was a bug in the iceweasel_3.5.16-13_i386.deb iceweasel.desktop file by the way:
StartupWMClass=Firefox-bin

xprop says WM_CLASS(STRING) = "Navigator", "Iceweasel"

This should read :
StartupWMClass=Iceweasel

to agree with xprop's output, or the desktop may give occasional errors shutting down Iceweasel.

This is not the current Iceweasel version package, so maybe it has been fixed now?
Hralgmir
 
Posts: 48
Joined: 2012-07-16 01:05

Re: Installing Firefox in Debian 6.0.2.1-i386, (Squeeze)

Postby L_V » 2012-11-10 07:23

Hralgmir wrote:There is another reason to install Iceweasel I noted, the i386 Iceweasel 15 deb is about 2.5MB to download, while Firefox from Mozilla is 18.4MB.

Not sure this is fully relevant because xulrunner is a dependency of Iceweasel, and needs to be updated accordingly, plus may be some other dependencies which also need to be updated.
Moreover, the local mirror Packages list needs to be updated to check for updates, which requires some bandwidth.
L_V
 
Posts: 696
Joined: 2007-03-19 09:04

Re: Installing Firefox in Debian 6.0.2.1-i386, (Squeeze)

Postby llivv » 2013-04-09 09:55

L_V wrote:
Hralgmir wrote:There is another reason to install Iceweasel I noted, the i386 Iceweasel 15 deb is about 2.5MB to download, while Firefox from Mozilla is 18.4MB.

Not sure this is fully relevant because xulrunner is a dependency of Iceweasel, and needs to be updated accordingly, plus may be some other dependencies which also need to be updated.
Moreover, the local mirror Packages list needs to be updated to check for updates, which requires some bandwidth.

In juxtaposition
I just updated chromium today ( not that I ever use it ) to the tune of 41MB download

what a load
in the kitchen with Julia ....
[...]
Get on the D bus to B Can ....
[...]
User avatar
llivv
 
Posts: 5586
Joined: 2007-02-14 18:10
Location: willo the tree

Re: Installing Firefox in Debian 6.0.2.1-i386, (Squeeze)

Postby L_V » 2013-05-24 11:20

A bit of topic, but If you look for something really ligth, qupzilla is a good alternative: http://packages.debian.org/jessie/qupzilla
It includes adblock.
L_V
 
Posts: 696
Joined: 2007-03-19 09:04

Re: Installing Firefox in Debian 6.0.2.1-i386, (Squeeze)

Postby Hralgmir » 2013-05-27 14:03

A further modification / update to the above installation code:
In the firefox.desktop file, add an extra directory to the path for the icon, /browser/ eg.
Icon=/opt/firefoxx/firefox/browser/chrome/icons/default/default32.png

Upgrading to Firefox 21.0 from 19 - there was probably a version 20 I missed out - saw a blank patch appear on the task bar where the launcher icon had been. Changing the firefox.desktop file then right clicking the launcher and removing it, and dragging and dropping a new Firefox launcher into place from the Applications - Internet menu fixed this.

The above installation procedure refers to Debian 6 Squeeze and Gnome 2, which I am still currently using. Debian 7 Wheezy and Gnome 3 have some changes:
(Taken from the Debian 7 Wheezy release notes)
2.2.10.2. Settings

Most technologies underlying GNOME are still here: the D-Bus
messaging system, the PolicyKit permissions manager, the
    GStreamer multimedia system, the gvfs virtual file system, the
MIME system, the ConsoleKit, udisks and upower interfaces to
hardware management; all are kept without major changes.

However, the underlying configuration system to GNOME has
undergone a major evolution, from GConf to a new system named
GSettings, which is much faster and more versatile. The settings
    can be browsed or edited using the (recommended) gsettings
command-line tool, or the dconf-editor graphical tool. The GConf
system is still available for third-party applications that use
it.

Most settings are migrated upon upgrade, but for technical and
conceptual reasons, a selected number of settings are not:

* default session and language (now managed by the
accountsservice daemon);

* desktop wallpaper;
   
* default GTK+ theme (none of the previous themes exist
anymore);

* panel and applets configuration (applets now use relative
positioning);

* default browser and mailer (the settings are now part of the
MIME system through x-scheme-handler/* types).
Hralgmir
 
Posts: 48
Joined: 2012-07-16 01:05

Previous

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable