最新国际版firefox安装教程
Tofloor
poster avatar
leafgreen
deepin
2020-01-13 12:02
Author
本帖最后由 leafgreen 于 2020-1-13 04:20 编辑

本教程的目的为把firefox浏览器添加到系统菜单,并让它能在终端里启动。后面有彩蛋
安装教程
1. 从官网下载到home目录下
https://www.mozilla.org/zh-CN/firefox/download/thanks/
2. 解压文件
  1. cd ~ #进入home目录
Copy the Code
  1. tar -xvf ~/firefox-72.0.1.tar.bz2 ~ #解压文件
Copy the Code
或者
3. firefox建立目录
  1. sudo mkdir /opt/mozilla
Copy the Code



4. firefox移动到第三方软件目录
  1. sudo mv ~/firefox /opt/mozilla
Copy the Code



5. firefox添加到系统菜单

  1. sudo touch /usr/share/applications/firefox.desktop #建立配置文件
Copy the Code

  1. sudo dedit /usr/share/applications/firefox.desktop #打开配置文件
Copy the Code



输入
  1. [Desktop Entry]
  2. Categories=Network;WebBrowser;
  3. Exec=/opt/mozilla/firefox/firefox
  4. Icon=firefox
  5. Name=Firefox
  6. Type=Application
Copy the Code



保存并退出

6. firefox添加到bash(可选)
  1. dedit ~/.bashrc
Copy the Code


在底部添加
  1. # firefox alias配置 #
  2. alias firefox=/opt/mozilla/firefox/firefox
Copy the Code



保存退出
7. 删除压缩包(可选)
  1. mv ~/firefox-72.0.1.tar.bz2 ~/.local/share/Trash/files #移动到回收站
Copy the Code


打开回收站删除
  1. sudo rm -IR ~/.local/share/Trash/files #删除
Copy the Code


输入y并按回车确定删除,不想删除就直接按回车



Reply Favorite View the author
All Replies
avatar
leafgreen
deepin
2020-01-13 12:10
#1
大功告成





Reply View the author
avatar
leafgreen
deepin
2020-01-13 12:13
#2
本帖最后由 leafgreen 于 2020-1-13 04:18 编辑

卸载教程
1. 删除firefox文件夹
  1. sudo mv /opt/mozilla ~/.local/share/Trash/files #把文件移动到回收站
Copy the Code
2. 删除桌面配置文件
  1. sudo mv /usr/share/applications/firefox.desktop ~/.local/share/Trash/files #把配置文件移动到回收站
Copy the Code
3. 清空回收站
手动清空或者
  1. sudo rm -IR ~/.local/share/Trash/files
Copy the Code
        输入y并按回车,不想删除就直接按回车
4. 删除alias设置
  1. dedit ~/.bashrc
Copy the Code
找到安装第6步的内容并删除,然后保存并退出。
  1. # firefox alias配置 #
  2. alias firefox=/opt/mozilla/firefox/firefox
Copy the Code



Reply View the author
avatar
leafgreen
deepin
2020-01-13 12:18
#3
彩蛋


其实解压好双击可以直接运行

Reply View the author
Comments
heham
2020-01-13 16:26
我就是这么搞的,运行后固定到菜单栏好好的,一样可以在线更新
avatar
deepinuser17
deepin
2020-01-13 13:16
#4
点赞一个。 谢谢分享
Reply View the author
avatar
leafgreen
deepin
2020-01-13 16:10
#5
https://bbs.deepin.org/post/187920
点赞一个。 谢谢分享

不客气
Reply View the author
avatar
leafgreen
deepin
2020-01-13 16:12
#6
发现论坛已经有一份一样的教程了,不过是没有用命令行的。在这里也贴上https://bbs.deepin.org/post/153432#firefox
Reply View the author