I downloaded Firefox from the official website.
I've extracted the tar.bz2 and moved the folder to /opt/firefox
. My questions are:
- Is
opt
the right place to place the Firefox folder? - 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.
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):
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:
And then upgrade to the Beta version with:
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)).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 usesudo cp -r /file/path/to/unzipped/firefox/folder/ /opt/firefox
)) - this should be a folder calledfirefox
In Terminal run the command
sudo -H gedit /usr/share/applications/newfirefox.desktop
Put the following into the file and save it:
Now when you search for
Firefox
in the Unity dash you should see an icon with the Firefox logo calledNew 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 theLock 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).Yes, it totally depends on your decision. But I think /opt is OK, remember in the /etc make a separate folder first:
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.