debian下安装fire fox

源码安装嘛顺便还要弄个链接啥的

# http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest/linux-x86_64/zh-CN/
tar xf firefox-7.0.1.tar.bz2 -C /opt

update-alternatives --install /usr/bin/x-www-browser x-www-browser /opt/firefox/firefox 500

ln -s /opt/firefox/firefox /usr/local/bin/firefox
ln -s /opt/firefox/chrome/icons/default/default16.png /usr/share/icons/hicolor/16x16/apps/firefox.png
ln -s /opt/firefox/chrome/icons/default/default32.png /usr/share/icons/hicolor/32x32/apps/firefox.png
ln -s /opt/firefox/chrome/icons/default/default48.png /usr/share/icons/hicolor/48x48/apps/firefox.png
update-icon-caches /usr/share/icons/hicolor/
cat > /usr/share/applications/firefox.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Firefox Web Browser
Exec=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;
StartupWMClass=Firefox-bin
StartupNotify=true
EOF

搞定!

posted @ 2012-04-28 11:18  Phenix.  阅读(454)  评论(0编辑  收藏  举报