My Ubuntu system comes with a Firefox browser version of 17.0.1. Today, the latest version on the official website has reached 23, so I want to upgrade it.
I am not very familiar with Linux. Thanks to the search engine, I finally upgraded it. Here I will record the operation process.
Upgrade Firefox
First download Firefox, I download from here: http://firefox.com.cn/download/
Firefox does not provide installation packages (such as RPM or Deb packages) for download in Linux, but only provides binary executable file packaging. Download the executable file package and decompress the package. However, we usually perform some configuration.
I downloaded the Chinese version of Firefox, address: http://download.firefox.com.cn/releases/firefox/22.0/zh-CN/Firefox-latest.tar.bz2
Linux releases generally contain Firefox, which needs to be uninstalled first:
sudo apt-get remove firefox
Do not use the-Purge option to delete the original configuration file of Firefox.
Then decompress the downloaded firefox-latest.tar.bz2 to the/usr/lib directory:
cd /usr/lib/sudo tar -xvf /home/zyh/software/Firefox-latest.tar.bz2
In this way, Firefox is installed under/usr/lib. Enter the./Firefox command in the directory to start the browser. But in this case, every time you start Firefox, you need to go to this directory, which is very troublesome. We can establish a link to the/usr/bin directory:
cd /usr/bin/sudo ln -s /usr/lib/firefox/firefox
In this way, we can start Firefox in any path of the terminal.
Finally, create a shortcut for Firefox
cd /usr/share/applicationsvi firefox.desktop
Edit the content of the Firefox. desktop file in VI as follows (you can use any editor, such as nano or gedit ):
[Desktop entry] Name = firefoxcomment = Firefox genericname = Firefox-China exec =/usr/lib/Firefox/firefoxicon =/usr/lib/Firefox/Browser/icons/mozicon128.pngterminal = falsetype = applicationcategories = application; network;
After saving and exiting, the Firefox shortcut will appear in/usr/share/applications. Double-click the shortcut to start the Firefox browser. You can also copy it to the desktop or fix it to the unity starter.
Shortcut attributes:
Install Flash Player
Flash video cannot be played at the beginning of Firefox. Although Flash Player is installed, the Chrome browser can play normally, but Firefox cannot play normally. The reason is unknown. Next let's take a look at how to install the Flash Player Plug-in for Firefox.
First download plug-in: http://get.adobe.com/cn/flashplayer/
My ubuntuis 64-bit. The tar.gz package downloaded is as follows:
Decompress the file to libflashplayer.soand readme.txt, and open the readme.txt text file with a usrfolder. The installation instructions for installing flashplayer are as follows:
Installing using the plugin tar.gz:o Unpack the plugin tar.gz and copy the files to the appropriate location. o Save the plugin tar.gz locally and note the location the file was saved to.o Launch terminal and change directories to the location the file was saved to.o Unpack the tar.gz file. Once unpacked you will see the following:+ libflashplayer.so+ /usro Identify the location of the browser plugins directory, based on your Linux distribution and Firefox versiono Copy libflashplayer.so to the appropriate browser plugins directory. At the prompt type:+ cp libflashlayer.so <BrowserPluginsLocation>o Copy the Flash Player Local Settings configurations files to the /usr directory. At the prompt type:+ sudo cp -r usr/* /usr
First copy libflashplayer. so to the Plugins directory of the browser, for my browser, It is the/usr/lib/Mozilla/plugins/directory, and the second is to copy the USR directory to the/usr directory, in this way, the Flash Player Plug-in is successfully installed for the Firefox browser.
The command is as follows:
tar -zxvf install_flash_player_11_linux.x86_64.tar.gzsudo cp libflashplayer.so /usr/lib/mozilla/plugins/sudo cp -r usr/* /usr