0

I downloaded Firefox from the official website.

I've extracted the tar.bz2 and moved the folder to /opt/firefox. My questions are:

  1. Is opt the right place to place the Firefox folder?
  2. I don't want to always open up a terminal to run firefox. Is there a way I can launch Firefox from the Unity toolbar (and be able to see it as the standard firefox icon)?

UPDATE:
It's an Ubuntu 14.04.4 LTS. Release: 14.04. Important note: I'm not asking about installing from PPA. I'm asking about being able to launch the tarball extracted version from the Unity toolbar, but the icon shown on the toolbar should be the Firefox icon.

Nav
  • 1,149
  • 13
  • 26

2 Answers2

8

The most up-to-date one should be available from the Software Center on a supported version of Ubuntu, perhaps you should make sure that your software sources are up-to-date by running the Software Updater or this in Terminal (CTRL + ALT + T):

sudo apt-get update

If you still do not get the latest then you are either running an End-Of-Life version of Ubuntu (in which case you should upgrade to continue receiving updates and support - including from this site) or you have some other system problem or you are wanting the latest Beta version. If it is the Beta version you want then you can add the official Mozilla Firefox Beta PPA with:

sudo apt-add-repository ppa:mozillateam/firefox-next
sudo apt-get update

And then upgrade to the Beta version with:

sudo apt-get dist-upgrade

However to directly answer your question, if you still want just to use the version which you have downloaded then follow these instructions:

Please note that it may be advisable to uninstall the Firefox you have from the repositories first (run sudo apt-get remove firefox in Terminal (CTRL + ALT + T)).

  1. Place the unzipped tarball in /opt (this is the ideal place to place something like this - though you will need to be root to do this (you can use sudo cp -r /file/path/to/unzipped/firefox/folder/ /opt/firefox)) - this should be a folder called firefox

  2. In Terminal run the command sudo -H gedit /usr/share/applications/newfirefox.desktop

  3. Put the following into the file and save it:

    [Desktop Entry]
    Version=1.0
    Name=New Firefox Web Browser
    Comment=Browse the World Wide Web
    GenericName=Web Browser
    Keywords=Internet;WWW;Browser;Web;Explorer
    Exec=/opt/firefox/firefox %u
    Terminal=false
    X-MultipleArgs=false
    Type=Application
    Icon=/opt/firefox/browser/icons/mozicon128.png
    Categories=GNOME;GTK;Network;WebBrowser;
    MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
    StartupNotify=true
    Actions=NewWindow;NewPrivateWindow;
    
    [Desktop Action NewWindow]
    Name=Open a New Window
    Exec=/opt/firefox/firefox -new-window
    
    [Desktop Action NewPrivateWindow]
    Name=Open a New Private Window
    Exec=/opt/firefox/firefox -private-window
    
  4. Now when you search for Firefox in the Unity dash you should see an icon with the Firefox logo called New Firefox Web Browser, if you click on that you will get the Firefox which you put in /opt, you can also pin it to the Unity Launcher by right-clicking on it then once it is open and clicking the Lock to Launcher button:

    Lock to Launcher button

When a new version of Firefox comes out simply download the tarball for that, unzip it, and place the firefox folder in /opt (replacing the old one obviously).

0
  1. Yes, it totally depends on your decision. But I think /opt is OK, remember in the /etc make a separate folder first:

    sudo mkdir YOURFIREFOXFOLDERNAME
    
  2. After you successfully installed Firefox, click on the Dash and search for "firefox". When you find it, open it:

    Next, if you want to have it all the time on the Launcher, just right click on the Firefox icon from the Launcher when it is opened and select "Lock on Launcher":

This the simplest way.

muru
  • 207,228
Zaman
  • 11