mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-26 21:30:55 +08:00
commit
35a136ebe7
@ -1,69 +0,0 @@
|
||||
乌龙茶 翻译中
|
||||
Daily Ubuntu Tips – Manually Install Any Version Of Firefox In Ubuntu
|
||||
================================================================================
|
||||
Firefox is the primary web browser in Ubuntu. It comes pre-installed and added to Ubuntu default software repositories which get updated with the latest version of Firefox automatically.
|
||||
|
||||
Most people won’t worry about installing or messing with Firefox because there’s nothing to do. It’s already installed and ready to use. The version of Firefox in Ubuntu’s repositories is what you’ll always get unless Canonical updates its software repositories with the latest versions.
|
||||
|
||||
Now, if you want to try other versions or Firefox, you’ll have to manually download and install it in Ubuntu, and this brief tutorial is going to show you how to do it properly in Ubuntu.
|
||||
|
||||
Because Firefox is so integrated in Ubuntu, if you try to completely remove it, you’ll probably break other things. So the best way to install other versions is to create a separate in folder for each version and symbolically link it.
|
||||
|
||||
### Downloading and installing Firefox in Ubuntu ###
|
||||
|
||||
So, here’s it. If you want to manually download the latest version of Firefox in Ubuntu, go to its [download page][1]. From there you’ll be able to get the latest version and install it.
|
||||
|
||||
If you wish to install other versions of Firefox starting with the initial release, [visit this page][2]. There you’ll see every version ever released beginning with version 0.8.
|
||||
|
||||
After downloading the version you wish to install, change to the Downloads folder of your home directory because that’s where most files get downloaded in Ubuntu.
|
||||
|
||||
cd ~/Downloads
|
||||
|
||||
![](http://www.liberiangeek.net/wp-content/uploads/2014/02/firefoxmanualinstall.png)
|
||||
|
||||
### Configuring Firefox ###
|
||||
|
||||
Since most Firefox Linux downloads get wrapped inside a .tar and bz2 archives, you must extract the files from these archives. There are many ways to extract files from archives in Ubuntu.
|
||||
|
||||
The one I used here is the command below. It extracts the file from both .tar and .bz2 archives easily.
|
||||
|
||||
tar -xjf firefox*.tar.bz2
|
||||
|
||||
After the extractions, there’s will be a new Firefox folder in your Downloads folder. That’s the folder which contains all the Firefox files and executables.
|
||||
|
||||
Since we don’t want to remove the current Firefox installation, we must create a separate folder each version of Firefox. So, for Firefox version 30, create a folder in the /opt directory with the new content of Firefox using the commands below.
|
||||
|
||||
sudo mv firefox/ /opt/firefox30
|
||||
|
||||
Now, **/opt/firefox30/** directory contains all the files for version 30.
|
||||
|
||||
### Create a symbolic link to the new Firefox executable ###
|
||||
|
||||
By default, Firefox executable file lives in this location: **/user/bin/firefox**. What we want to do is temporary create a backup so we can use our custom installed executable.
|
||||
|
||||
To do that, run the commands below.
|
||||
|
||||
sudo mv /usr/bin/firefox /usr/bin/firefox-old
|
||||
|
||||
Now that we’ve move Firefox executable file from its default location, we must link the default location to our new custom installed file. To do that, run the commands below to create a symbolic link to our version 30 install.
|
||||
|
||||
sudo ln -s /opt/firefox30/firefox /usr/bin/firefox
|
||||
|
||||
We’re set. Now our custom installed Firefox is the default in Ubuntu. Every time you launch Firefox, it will pull from the new executable we linked earlier.
|
||||
|
||||
Enjoy!
|
||||
|
||||
![](http://www.liberiangeek.net/wp-content/uploads/2014/02/firefoxmanualinstall1.png)
|
||||
|
||||
This is also a great way to install 64-bit edition of Firefox.+
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.liberiangeek.net/2014/02/daily-ubuntu-tips-manually-install-any-version-of-firefox-in-ubuntu/
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://www.mozilla.org/en-US/firefox/all/
|
||||
[2]:https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/
|
@ -0,0 +1,66 @@
|
||||
每日Ubuntu小贴士 - 在Ubuntu中手动安装任何版本的Firefox
|
||||
================================================================================
|
||||
Firefox是Ubuntu中的主要网络浏览器。它预装在系统中,并添加到默认的Ubuntu软件仓库中以获得Firefox最新版本的自动更新。
|
||||
|
||||
大多数人不用担心安装或使用Firefox的问题,因为没有什么问题了,它已经安装并可以使用了。Firefox在Ubuntu的软件仓库中的版本你总得到是最新版本。
|
||||
|
||||
现在,如果你想尝试其他的Firefox版本,你就必须手动下载并在Ubuntu中安装它,这个简短的教程将告诉你如何正确地在Ubuntu中做到这一点。
|
||||
|
||||
因为Firefox集成在Ubuntu中,如果你试图完全卸载它,可以会破坏其他的东西。因此要安装其他版本最好的办法就是为每个版本分别创建文件夹并进行符号连接。
|
||||
|
||||
### 在Ubuntu中下载并安装Firefox ###
|
||||
|
||||
如果你想手动下载最新的Ubuntu版本Firefox,进入它的[下载页面][1]。通过它你将可以获取到最新版本并安装它。
|
||||
|
||||
如果你想从初始版本安装其他版本的Firefox,[访问这个页面][2]。在这你将看到从0.8开始的每个版本。
|
||||
|
||||
下载完你想要的版本之后,切换到home目录下的下载文件夹,因为Ubuntu的大多数文件被下载到了这。
|
||||
|
||||
cd ~/Downloads
|
||||
|
||||
![](http://www.liberiangeek.net/wp-content/uploads/2014/02/firefoxmanualinstall.png)
|
||||
|
||||
### 配置Firefox ###
|
||||
|
||||
由于大多数Firefox下载文件以.tar和.bz2格式保存,必须从这些压缩包中提取文件。有很多方法可以在Ubuntu中解压缩文件。
|
||||
|
||||
比如我下面使用的命令。很容易从.tar和.bz2中提取文件。
|
||||
|
||||
tar -xjf firefox*.tar.bz2
|
||||
|
||||
解压后,将会有一个新的Firefox文件出现在下载文件夹中。这其中包含了所有的Firefox的文件和可执行文件。
|
||||
|
||||
由于我们不想删除当前安装的Firefox,我们必须给每个版本的Firefox创建一个单独的文件夹。因此,对于Firefox的版本30,使用下面的命令在/opt目录下创建一个包含新Firefox内容的文件夹。
|
||||
|
||||
sudo mv firefox/ /opt/firefox30
|
||||
|
||||
现在,**/opt/firefox30/**目录包含的所有文件都是版本30的。
|
||||
|
||||
### 创建新的Firefox可执行符号链接 ###
|
||||
|
||||
默认情况下,Firefox的可执行文件在这个路径下:**/user/bin/firefox**。我们想要做的是临时创建一个备份,这样我们就可以使用我们的自定义安装的可执行文件。
|
||||
|
||||
要做到这一点,运行下面的命令。
|
||||
|
||||
sudo mv /usr/bin/firefox /usr/bin/firefox-old
|
||||
|
||||
现在,我们已经从其默认位置移动了Firefox的可执行文件,我们必须将默认位置链接为我们的新的自定义安装的文件。要做到这一点,运行下面的命令来创建我们的30版本的一个符号链接。
|
||||
|
||||
sudo ln -s /opt/firefox30/firefox /usr/bin/firefox
|
||||
|
||||
现在,我们自定义安装的Firefox是Ubuntu默认的。每一次启动Firefox,它将通过之前的新链接加载新的可执行文件。
|
||||
|
||||
![](http://www.liberiangeek.net/wp-content/uploads/2014/02/firefoxmanualinstall1.png)
|
||||
|
||||
以上方法同样适用于64-bit版本的Firefox。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.liberiangeek.net/2014/02/daily-ubuntu-tips-manually-install-any-version-of-firefox-in-ubuntu/
|
||||
|
||||
译者:[乌龙茶](https://github.com/yechunxiao19) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://www.mozilla.org/en-US/firefox/all/
|
||||
[2]:https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/
|
Loading…
Reference in New Issue
Block a user