Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
最新国际版firefox安装教程
Apps Section
1259
views ·
6
replies ·
To
floor
Go
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.
解压文件
cd ~ #进入home目录
Copy the Code
tar -xvf ~/firefox-72.0.1.tar.bz2 ~ #解压文件
Copy the Code
或者
3.
给
firefox
建立目录
sudo mkdir /opt/mozilla
Copy the Code
4.
把
firefox
移动到第三方软件目录
sudo mv ~/firefox /opt/mozilla
Copy the Code
5.
把
firefox
添加到系统菜单
sudo touch /usr/share/applications/firefox.desktop #建立配置文件
Copy the Code
sudo dedit /usr/share/applications/firefox.desktop #打开配置文件
Copy the Code
输入
[Desktop Entry]
Categories=Network;WebBrowser;
Exec=/opt/mozilla/firefox/firefox
Icon=firefox
Name=Firefox
Type=Application
Copy the Code
保存并退出
6.
把
firefox
添加到
bash
(可选)
dedit ~/.bashrc
Copy the Code
在底部添加
# firefox alias配置 #
alias firefox=/opt/mozilla/firefox/firefox
Copy the Code
保存退出
7.
删除压缩包(可选)
mv ~/firefox-72.0.1.tar.bz2 ~/.local/share/Trash/files #移动到回收站
Copy the Code
打开回收站删除
sudo rm -IR ~/.local/share/Trash/files #删除
Copy the Code
输入
y
并按回车确定删除,不想删除就直接按回车
Reply
Like 0
Favorite
View the author
All Replies
leafgreen
deepin
2020-01-13 12:10
#1
大功告成
Reply
Like 0
View the author
leafgreen
deepin
2020-01-13 12:13
#2
本帖最后由 leafgreen 于 2020-1-13 04:18 编辑
卸载教程
1.
删除
firefox
文件夹
sudo mv /opt/mozilla ~/.local/share/Trash/files #把文件移动到回收站
Copy the Code
2.
删除桌面配置文件
sudo mv /usr/share/applications/firefox.desktop ~/.local/share/Trash/files #把配置文件移动到回收站
Copy the Code
3.
清空回收站
手动清空或者
sudo rm -IR ~/.local/share/Trash/files
Copy the Code
输入
y
并按回车,不想删除就直接按回车
4.
删除
alias
设置
dedit ~/.bashrc
Copy the Code
找到安装第
6
步的内容并删除,然后保存并退出。
# firefox alias配置 #
alias firefox=/opt/mozilla/firefox/firefox
Copy the Code
Reply
Like 0
View the author
leafgreen
deepin
2020-01-13 12:18
#3
彩蛋
其实解压好双击可以直接运行
Reply
Like 0
View the author
Comments
heham
2020-01-13 16:26
我就是这么搞的,运行后固定到菜单栏好好的,一样可以在线更新
deepinuser17
deepin
2020-01-13 13:16
#4
点赞一个。 谢谢分享
Reply
Like 0
View the author
leafgreen
deepin
2020-01-13 16:10
#5
https://bbs.deepin.org/post/187920
点赞一个。 谢谢分享
不客气
Reply
Like 0
View the author
leafgreen
deepin
2020-01-13 16:12
#6
发现论坛已经有一份一样的教程了,不过是没有用命令行的。在这里也贴上https://bbs.deepin.org/post/153432#firefox
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
WiFi Drivers
Popular Events
More