Chinaunix首页 | 论坛 | 博客
  • 博客访问: 139944
  • 博文数量: 45
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 466
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-05 16:22
个人简介

热爱开源

文章分类
文章存档

2024年(1)

2022年(1)

2017年(2)

2015年(2)

2013年(4)

2008年(35)

我的朋友

分类: LINUX

2013-06-19 00:34:44



参考以上帖子,不过有两几个地方可能需要调整
1、下载路径:

点击(此处)折叠或打开



2、图标的路径有问题,需要修改:

点击(此处)折叠或打开

  1. sudo ln -s /opt/firefox/browsers/icons/mozicon128.png /usr/share/icons/hicolor/128x128/apps/firefox.png
  2. 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) |
给主人留下些什么吧!~~