参考以上帖子,不过有两几个地方可能需要调整
1、下载路径:
2、图标的路径有问题,需要修改:
-
sudo ln -s /opt/firefox/browsers/icons/mozicon128.png /usr/share/icons/hicolor/128x128/apps/firefox.png
-
sudo ln -s /opt/firefox/browsers/icons/mozicon128.png /usr/share/pixmaps/firefox.png
原文摘抄如下:
Install Firefox
Download Firefox
Download latest version of the original Mozilla Firefox for Linux from the official Mozilla website here, and put it in the Downloads folder within your Home directory (/home/YourUserName/Downloads).
.
Install Firefox
Copy and extract Firefox archive
Open Terminal, and change directory (cd) to the Downloads folder:
cd Downloads
Then run the following commands (one-by-one):
sudo cp firefox-*.tar.bz2 /opt
cd /opt
sudo tar -xvf firefox-*.tar.bz2
sudo rm firefox-*.tar.bz2
Create symbolic link to firefox binary
Backup (move) any existing firefox bin:
sudo mv /usr/bin/firefox /usr/bin/firefox.backup
Create symbolic link to the real firefox binary:
sudo ln -s /opt/firefox/firefox /usr/bin/firefox
Create Firefox Application Shortcut
Create symbolic links for firefox icon
sudo ln -s /opt/firefox/icons/mozicon128.png /usr/share/icons/hicolor/128x128/apps/firefox.png
sudo ln -s /opt/firefox/icons/mozicon128.png /usr/share/pixmaps/firefox.png
Create firefox.desktop file in /usr/share/applications
Open gedit (or another text editor app) with root privilege:
gksu gedit /usr/share/applications/firefox.desktop
Then copy-paste the following text:
[Desktop Entry]
Encoding=UTF-8
Name=Firefox
Comment=Browse the World Wide Web
GenericName=Web Browser
X-GNOME-FullName=Firefox Web Browser
Exec=/opt/firefox/firefox %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=firefox
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
StartupWMClass=Firefox-bin
StartupNotify=true
Save the file (as “firefox.desktop” in /usr/share/applications folder)
阅读(1855) | 评论(0) | 转发(0) |