AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 548003
Accepted
blade19899
blade19899
Asked: 2014-11-11 10:32:22 +0800 CST2014-11-11 10:32:22 +0800 CST 2014-11-11 10:32:22 +0800 CST

如何安装 Firefox 开发者版?

  • 772

Mozilla 发布 Firefox 开发者版!我如何在 Ubuntu 上安装它?

资源:

  • Mozilla 发布适用于 Windows、Mac 和 Linux 的“Firefox 开发者版”——我的天哪!Ubuntu!
firefox
  • 12 12 个回答
  • 262631 Views

12 个回答

  • Voted
  1. Best Answer
    blade19899
    2014-11-11T10:34:48+08:002014-11-11T10:34:48+08:00

    Firefox 开发版


    Firefox Developer Edition 是 Firefox 的修改版本,专为 Web 开发人员设计。它使用与普通版本的 Firefox不同的配置文件。这意味着您可以在开发版旁边安装 Firefox 或 F-beta。请注意,您的 FDE 将是一个完全由 UN 定制的浏览器。要统一设置,您可以使用Firefox sync。

    这是使用 FDE 时的众多好处之一:

    “通过使用 Developer Edition,您至少可以在 Firefox 主要发布渠道发布前 12 周访问工具和平台功能。” -开发版- Mozilla | MDN#The_latest_Firefox_features

    安装


    目前有三种方法可以做到这一点,手动、PPA 或通过Ubuntu Make。

    手动


    从Mozilla Firefox Developer Edition 网页下载。将其解压缩并将file-roller文件夹移动到其最终位置。一个好的做法是将它安装在/opt/或中/usr/local/。

    将文件移动到它们的最终位置(比如/opt/firefox_dev/)后,您可以创建以下文件~/.local/share/applications/firefox_dev.desktop来获得一个启动器,其图标与普通 Firefox 不同。

    [Desktop Entry]
    Name=Firefox Developer 
    GenericName=Firefox Developer Edition
    Exec=/opt/firefox_dev/firefox %u
    Terminal=false
    Icon=/opt/firefox_dev/browser/chrome/icons/default/default128.png
    Type=Application
    Categories=Application;Network;X-Developer;
    Comment=Firefox Developer Edition Web Browser.
    StartupWMClass=Firefox Developer Edition
    

    请注意,添加该参数StartupWMClass是为了防止启动器中出现重复图标,如此处所述。

    要将启动器标记为受信任,请使其可执行:

    chmod +x ~/.local/share/applications/firefox_dev.desktop
    

    要启动它,请使用“文件”应用程序导航至 ~/.local/share/applications/(确保打开隐藏文件夹),然后双击 firefox_dev.desktop。或者,搜索Firefox Developer,然后简单地运行firefox二进制文件,然后就可以了。

    请注意,当您手动安装时,FDE 默认没有统一全局菜单。

    PPA


    面向开发者的 Firefox 目前驻留在Firefox Aurora 构建:“Ubuntu Mozilla Daily Build Team”团队。应当指出的是:

    “Firefox Developer Edition 在Firefox Release Process中取代了 Aurora 频道。与 Aurora 一样,在每晚构建稳定后,功能将每六周登陆一次 Developer Edition。” -开发版- Mozilla | MDN #The_latest_Firefox_features

    还:

    “版本 35.0a2,于 2014 年 11 月 10 日首次提供给 Firefox Developer Edition 用户”- Firefox — Aurora Notes (35.0a2) — Mozilla#main-content

    安装 Firefox Developer Edition,以前称为 Aurora,如下所示:

    sudo add-apt-repository ppa:ubuntu-mozilla-daily/firefox-aurora
    sudo apt-get update
    sudo apt-get install firefox
    

    Mozilla PPA 仅包含受支持的 Ubuntu 版本的软件包,不包含 EOL(生命周期结束)版本。

    请注意,使用上述 ppa 安装将导致您当前的 Firefox 安装被替换!

    Ubuntu制作

    此方法由Jorge Castro提供。我在这里添加它,因为它也是安装 Firefox Developer Edition(以及许多其他开发工具)的绝佳方式。

    sudo add-apt-repository ppa:lyzardking/ubuntu-make
    sudo apt-get update
    sudo apt-get install ubuntu-make
    

    安装 ubuntu-make 后,告诉它安装web工具firefox-dev。

    umake web firefox-dev
    

    卸载


    如果您希望保留当前默认的 Firefox,因为 FDE 没有您喜欢的新功能,或者出于其他原因,这里有几种卸载它的方法。

    PPA


    您可以使用 ppa-purge 删除 ppa 及其包。

    像这样安装它:

    sudo apt-get install ppa-purge
    

    以下将删除 PPA 及其包:

    sudo ppa-purge ppa:ubuntu-mozilla-daily/firefox-aurora
    

    手动


    使用命令删除二进制文件rm(将路径重命名为您实际提取 FDE 的位置)。或者使用您的文件管理器:

    sudo rm -r /opt/firefox_dev/
    

    同时删除firefox_dev.desktop

    sudo rm ~/.local/share/applications/firefox_dev.desktop
    

    之后您已成功删除 Firefox Developer Edition。

    Ubuntu制作

    以下命令将删除 Firefox Developer Edition:

    umake web firefox-dev -r
    

    您还可以删除 umake 及其 PPA(ppa-purge需要,请参阅上面的安装说明):

    sudo ppa-purge ppa:lyzardking/ubuntu-make
    

    截屏

    在此处输入图像描述 Ubuntu 14.04.1 上的 Firefox 开发者版

    改变主题

    在撰写本文时,FDE 提供三个主题。以下是启用它们的方法。

    在网址栏中输入:

    关于:配置

    在搜索过滤器中输入时theme。然后双击devtools.theme。之后,输入light,主题将被应用。

    多个 FDE 主题

    FDE 可用的多个主题的屏幕截图

    特征


    Mozilla 吹捧的一些(但不是全部)功能:

    • 网络IDE:

      • 允许您直接在浏览器或 Firefox OS 设备上开发、部署和调试 Web 应用程序。它允许您从模板创建新的 Firefox OS 应用程序(只是一个网络应用程序),或打开现有应用程序的代码。从那里您可以编辑应用程序的文件。只需单击一下即可在模拟器中运行应用程序,再单击一次即可使用开发人员工具对其进行调试。

      • 网络集成开发环境 - YouTube

    • 化合价:

      • (以前称为 Firefox 工具适配器)允许您通过将 Firefox 开发工具连接到其他主要浏览器引擎来跨多个浏览器和设备开发和调试您的应用程序。Valence 还将我们构建的用于调试Firefox OS和Firefox for Android的出色工具扩展到其他主要的移动浏览器,包括 Android 上的 Chrome 和 iOS 上的 Safari。到目前为止,这些工具包括我们的 Inspector、Debugger 和 Console and Style Editor。

      • 效价 - YouTube

    • 响应式设计模式:

      • 在不更改浏览器窗口大小的情况下,查看您的网站或 Web 应用程序在不同屏幕尺寸上的外观。
    • 页面检查员:

      • 检查任何网页的 HTML 和 CSS 并轻松修改页面的结构和布局。
    • 网络控制台:

      • 查看与网页相关的记录信息,使用 Web 控制台并使用 JavaScript 与网页交互。
    • JavaScript 调试器:

      • 单步执行 JavaScript 代码并检查或修改其状态以帮助追踪错误。
    • 网络监视器:

      • 查看您的浏览器发出的所有网络请求、每个请求需要多长时间以及每个请求的详细信息。
    • 风格编辑:

      • 查看和编辑与网页关联的 CSS 样式、创建新样式以及将现有 CSS 样式表应用于任何页面。
    • 网络音频编辑器:

      • 实时检查 Web Audio API 并与之交互,以确保所有音频节点都以您期望的方式连接。

    参考资料:


    • Mozilla 推出首款专为开发人员打造的浏览器:Firefox Developer Edition ✩ Mozilla Hacks – Web 开发人员博客

    • Firefox — Aurora Notes (35.0a2) — Mozilla (Firefox Developer Edition Notes)

      • 版本 35.0a2,于 2014 年 11 月 10 日首次提供给 Firefox Developer Edition 用户
    • Firefox 开发者版——Mozilla

    • Firefox Aurora 构建:“Ubuntu Mozilla Daily Build Team”团队

    • 开发者版 - Mozilla | MDN

    • 296
  2. Jorge Castro
    2015-02-13T07:02:41+08:002015-02-13T07:02:41+08:00

    The Firefox Developer Edition is available as part of Ubuntu Make:

    sudo add-apt-repository ppa:lyzardking/ubuntu-make
    sudo apt-get update
    sudo apt-get install ubuntu-make
    

    After that just run the Firefox installer as your user (don't use sudo in this case):

    umake web firefox-dev
    

    It will prompt you where to install Firefox, and then download it automatically and install it.

    If you are using ubuntu (unity), in the launcher, a new icon Firefox Developer Edition has been pinned. Click on it to launch your freshly installed Firefox Developer Edition.

    Firefox Developer Edition will prompt itself for auto-updates (will not use apt).

    • 31
  3. Kuruyiva
    2014-11-11T18:14:44+08:002014-11-11T18:14:44+08:00

    首先从这里下载 firefox dev 。然后运行以下命令(确保/from更改为您下载的文件的位置)。

    sudo apt-get install gnome-panel 
    sudo mv /from to /opt/firefox_dev/
    sudo chown -R $(whoami):$(whoami) /opt/firefox_dev/
    gnome-desktop-item-edit ~/.local/share/applications --create-new
    

    然后统一搜索

    • 14
  4. Sajad Torkamani
    2014-11-11T13:35:21+08:002014-11-11T13:35:21+08:00
    1. 从https://www.mozilla.org/en-US/firefox/developer/下载 tar.bz2 文件
    2. 在终端中,提取 tar ( tar xvjf filename.tar.bz2)
    3. 进入文件被提取到的新目录。对我来说,它被称为firefox/
    4. 类型./firefox
    • 7
  5. RPiAwesomeness
    2014-11-12T06:25:12+08:002014-11-12T06:25:12+08:00

    如果您没有安装 gnome-panel/gnome-desktop-item-edit,您可以做的一件事是.desktop手动创建一个文件。

    你可以运行这个:

    sudo mv /from_where_it_is to /opt/firefox_dev/
    sudo chown -R $(whoami):$(whoami) /opt/firefox_dev/
    

    然后运行(你显然可以换出nano任何你想使用的应用程序):

    sudo nano ~/.local/share/applications/firefox_dev.desktop
    

    并输入以下内容(或根据您的喜好进行更改):

    [Desktop Entry]
    Encoding=UTF-8
    Version=35.0a2                                  # version of the app.
    Name[en_US]=firefox_dev                         # name of the app.
    GenericName=Firefox Developer Edition           # longer name of the app.
    Exec=/opt/firefox_dev/firefox                   # command used to launch the app.
    Terminal=false                                  # whether the app requires to be run in a terminal.
    Icon[en_US]=firefox                             # location of icon file - Firefox Dev currently has no icon of its own, so just using the system default for Firefox
    Type=Application                                # type.
    Categories=Application;Network;Developer;       # categories in which this app should be listed.
    Comment[en_US]=Firefox Developer Edition Web Browser. # comment which appears as a tooltip.
    
    • 2
  6. srbh
    2015-01-14T02:17:27+08:002015-01-14T02:17:27+08:00

    Assuming you are in your Downloads folder [credit @blade19899]:

    tar xjf  firefox-36.0a2.en-US.linux-x86_64.tar.bz2 
    sudo mv firefox/   /opt/firefox_dev/
    sudo gedit ~/.local/share/applications/firefox_dev.desktop
    

    Now copy and paste [Desktop Entry] as mentioned in manual installation.

    • 1
  7. wheeler
    2018-06-04T16:57:35+08:002018-06-04T16:57:35+08:00

    Shameless plug for for my own solution to this problem: I made a .deb package for Mozilla's tar and published it in releases section of the Github repo that houses the sources for the packaging scripts.

    The repo is located here: https://github.com/wheelerlaw/firefoxdev

    To install, run the following commands (assuming you have jq installed):

    curl -fsSL "https://api.github.com/repos/wheelerlaw/firefoxdev/releases/latest" | jq '.assets[0].browser_download_url' | xargs curl -OL
    sudo dpkg -i firefoxdev_*_.deb
    
    • 1
  8. GabLeRoux
    2021-11-01T10:12:38+08:002021-11-01T10:12:38+08:00

    Here's a copy paste solution that just works. Doing things by hand seems to be the way to go on Linux. Tested working on Ubuntu 20.04.

    # https://www.mozilla.org/en-US/firefox/developer/
    download_url=https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux64&lang=en-CA
    wget $download_url -O firefox.tar.bz2
    tar -xjf firefox.tar.bz2
    sudo mv firefox /opt/firefox-dev
    sudo chown -R $(whoami): /opt/firefox-dev/
    rm firefox.tar.bz2
    
    desktop_file=~/.local/share/applications/firefox-dev.desktop
    # use a heredoc to create desktop file directly
    tee $desktop_file << EOF
    [Desktop Entry]
    Version=1.0
    Name=Firefox Web Browser Developer Edition
    Comment=Browse the WWW
    GenericName=Web Browser
    Keywords=Internet;WWW;Browser;Web
    Exec=/opt/firefox-dev/firefox %u
    Terminal=false
    X-MultipleArgs=false
    Type=Application
    Icon=/opt/firefox-dev/browser/chrome/icons/default/default128.png
    Categories=GNOME;GTK;Network;WebBrowser;
    MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
    StartupNotify=true
    Actions=new-window;new-private-window;
    StartupWMClass=Firefox Developer Edition
    
    [Desktop Action new-window]
    Name=Open a New Window
    Exec=/opt/firefox-dev/firefox -new-window
    
    [Desktop Action new-private-window]
    Name=Open a New Private Window
    Exec=/opt/firefox-dev/firefox -private-window
    EOF
    
    # optional if you want `firefox` in your $PATH:
    sudo ln -s /opt/firefox-dev/firefox /usr/local/bin/firefox
    

    可以通过 Firefox 的常规设置进行更新。还请记住使用 Firefox 设置更改默认浏览器。您可能还想更新BROWSERrc 文件中的变量(~/.zshrc或~/.bashrc等)

    • 1
  9. Faiz
    2014-11-11T22:31:55+08:002014-11-11T22:31:55+08:00

    问题是当您下载文件时,它没有以可执行权限保存。

    • 在此处下载 firefox 开发者版:https:
      //www.mozilla.org/en-US/firefox/developer/

    • 手动解压文件到/opt/firefox/

    • 打开 Nautilus:转到Edit->Preferences-> Behavior-> click on "Run executable text files when they are opened"

    • 转到'firefox'文件/opt/firefox/

    • 右键单击并选择Properties--> Permissions--> Execute: Allow executing file as a program.

    • 打开终端并输入:

    gnome-desktop-item-edit ~/.local/share/applications --create-new

    创建快捷方式,大功告成!

    如果您仍然无法运行它,那么即使按照此处的所有答案进行操作,您在安装 firefox 时也可能遇到问题。这可能是因为如果没有以下库或包,Firefox 根本无法运行:

    • GTK+ 2.18 或更高版本
    • GLib 2.22 或更高版本
    • Pango 1.14 或更高版本
    • X.Org 1.0 或更高版本(推荐 1.7 或更高版本)
    • libstdc++ 4.3 或更高版本

    默认情况下,libstdc++ 不包含在 Ubuntu 中。

    为获得最佳功能,以下是推荐的库或包:

    • NetworkManager 0.7 或更高版本
    • DBus 1.0 或更高版本
    • HAL 0.5.8 或更高版本
    • GNOME 2.16 或更高版本

    要安装包,请打开终端并输入

    sudo apt-get install [package-name]
    

    我无法启动 firefox 目录中文件“firefox”中包含的可执行脚本。

    • 0
  10. David Harbage
    2014-11-12T15:50:35+08:002014-11-12T15:50:35+08:00
    sudo add-apt-repository ppa:ubuntu-mozilla-daily/firefox-aurora
    sudo apt-get update
    sudo apt-get upgrade
    

    这会将 firefox 每日构建添加到您的存储库并安装 firefox-dev。在撰写本文时,这些版本号匹配 (35.0a2)。

    • 0

相关问题

  • Flash 在 Firefox 中无法正常工作。不会响应某些点击[关闭]

  • Firefox 鼠标中键滚动

  • 如何解决 Firefox 中的字体问题?

  • 使用突触或通过 Firefox 的插件菜单安装 adblock?

  • Firefox 的 Ubuntu Firefox 修改扩展有什么作用?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve