CentOS6.5安装最新版 firefox
来源:互联网 发布:js获取当天日期时间 编辑:程序博客网 时间:2024/05/21 21:41
CentOS6.5安装最新版 firefox
1.用你本地的旧版 firefox,访问
http://www.firefox.com.cn
2. 进入存放下载文件(Firefox-latest.tar.bz2)的目录
[root@centos6-5vm ~]# cd /root/下载
3. 在该目录解压 Firefox-latest.tar.bz2,解压后会生成一个 firefox 子目录,里面有最新版本的 firefox 的二进制可执行文件,以及各种扩展模块,插件等等
[root@centos6-5vm 下载]# ll
总用量 41632
-rw-r--r--. 1 root root 42630327 11月 12 11:35 Firefox-latest.tar.bz2
[root@centos6-5vm 下载]# tar -xjvf Firefox-latest.tar.bz2
4. 删除系统默认安装的旧版 firefox ,通常位于 /usr/lib 目录下
[root@centos6-5vm 下载]# ll
总用量 41636
drwxr-xr-x. 8 503 games 4096 11月 12 09:55 firefox
-rw-r--r--. 1 root root 42630327 11月 12 11:35 Firefox-latest.tar.bz2
[root@centos6-5vm 下载]# whereis firefox
firefox: /usr/bin/firefox /usr/lib/firefox /usr/share/man/man1/firefox.1.gz
[root@centos6-5vm 下载]# rm -rf /usr/lib/firefox
5. 将当前目录下的新版 firefox 子目录复制到 /usr/lib 目录下
[root@centos6-5vm 下载]# mv firefox /usr/lib
6. 进入 /usr/bin 目录,删除其下的 firefox 脚本,回到主目录或根目录,创建一个软链接,指向
/usr/lib/firefox/firefox
[root@centos6-5vm 下载]# cd /usr/bin
[root@centos6-5vm bin]# ll firefox
-rwxr-xr-x. 1 root root 6546 11月 30 2016 firefox
[root@centos6-5vm bin]# rm firefox
rm:是否删除普通文件 "firefox"?y
[root@centos6-5vm bin]# cd
[root@centos6-5vm ~]# ln -s /usr/lib/firefox/firefox /usr/bin/firefox
7. 在 shell 终端执行 firefox 命令,就能启动最新版的 firefox (启动前确认已经终止所有旧版的 firefox 进程)
1
[root@centos6-5vm ~]# firefox
前面我们创建软链接的原因,就是为了这一步执行 firefox 命令时,系统在搜索路径 /usr/bin 下找到 firefox 这个软链接,并且指向真正的可执行文件路径
/usr/lib/firefox/firefox
注意,对于这一步而言,需要 firefox 占用一个 shell 虚拟终端(pts/n),该虚拟终端不能执行任何其它命令,直到关闭 firefox 进程,
因此,我们修改系统左上方的 firefox 浏览器图标的属性,在 “命令”字段右侧的文本框中,输入
/usr/lib/firefox/firefox %u
然后关闭对话框,重新点击该图标,就能不占用任何 shell 虚拟终端来启动 firefox
如果你不想用上面这张截图中带有定制公司 logo 的版本,也可以去下面这个官方 FTP 站点下载“纯净版”:
http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/latest/linux-i686/zh-CN/
注:如果中途出错可以用:yum install firefox 修复安装即可。
0 0
- CentOS6.5安装最新版 firefox
- CentOS6.5安装最新版 firefox
- CentOS6.4+ 安装firefox最新版
- 在CentOS6.4中更新安装FireFox浏览器最新版
- centos6 安装最新版git
- ubuntu安装firefox最新版
- debian 安装firefox 最新版
- Redhat6安装最新版Firefox
- 最新版FireFox浏览器安装FireBug
- centos6.5 firefox安装flash-plugin(flash_player)
- CentOS 7安装最新版firefox(Firefox Quantum)
- centos6.5 Confluence5.1 最新版的安装&破解&汉化
- centos6.4 安装chrome浏览器最新版
- centos6.4 安装chrome浏览器最新版
- centos6.8 安装最新版mysql5.7.17
- centos6 yum安装最新版mysql5.7
- ubuntu14.04 LTS安装firefox最新版
- centos6.5 企业知识管理与协同软件 Confluence5.1 最新版的安装&破解&汉化
- 关于 Flash 存储,你应该知道的一些事情
- 缓存框架 Ehcache Memcache Redis
- MFC- 使用问题集
- C++开源库
- JavaScript 原型的概念及使用
- CentOS6.5安装最新版 firefox
- iOS之SDWEBIMAGE的使用
- Meteor Live Template 定义几个快捷键
- 现代c++之线程本地存储thread_local
- Glide加载byte数组
- 在活动中使用toast
- 20170305STL01_泛型编程/模版
- 遭遇“HTTP 错误 500.19 无法访问请求的页面,因为该页的相关配置数据无效。”
- dubbo笔记