当前位置: 代码迷 >> 综合 >> kali2022.1 firefox developer (换成开发者版本火狐)
  详细解决方案

kali2022.1 firefox developer (换成开发者版本火狐)

热度:1   发布时间:2023-11-29 13:21:42.0

目录

  • 简介
  • Download Firefox Developer Edition
  • Extract Firefox Developer Edition
  • Moving files
        • must
  • Set up Firefox binary
  • Create desktop shortcut

简介

单纯的不喜欢黄色图标
大佬们别打我(



Ubuntusudo apt remove firefoxDebian/kalisudo apt-get remove firefox-esrArch Linuxsudo pacman -R firefoxFedorasudo dnf remove firefoxOpenSUSEsudo zypper remove firefox

Download Firefox Developer Edition

Step 1: Firefox Developer Edition needs to be downloaded from the official Mozilla website. To get a copy, click on this link to head over to this page.

Step 2: Once on the page, you’ll see a few different releases of Firefox (Beta, Developer, and Nightly). Scroll down the page, look for the download button and click on it to start the download for Linux.

Step 3: When downloading is complete, close your browser window, as you won’t need it. Then, launch a terminal window by pressing Ctrl + Alt + T, or by browsing for it.

Extract Firefox Developer Edition

Now that the FF Developer Edition TarBZ2 archive is done downloading, it’s time to gain access to the files inside. To do this, you must CD into the ~/Downloads folder. Then, run the tar command to extract the TarBZ2 archive.

cd ~/Downloads
tar -xvf firefox-*.tar.bz2

Moving files

Once the files are fully extracted, it’s time to move them. In the case of Firefox, it needs to be put in the /opt folder. However, before we can move the files to this directory, you’ll need to elevate your command-line session from a standard user to Root, using the su or sudo -s command.

su -orsudo -s

Now that there is Root access in the terminal use the mv command to place the Firefox system files in the /opt directory of your Linux PC’s filesystem.

Note: please change “username” in the command below with the username on your computer, or the files will not move.

must

mv /home/username/Downloads/firefox /opt

Set up Firefox binary

Firefox Developer Edition’s files are in place in the /opt directory on your Linux PC. Still, you won’t be able to launch the browser app or use any of its functions, as the binary isn’t in the right place.

To set the binary in the right place, you must make a symlink from the /opt/firefox/ folder to the /usr/local/bin/ folder using the ln command.

Note: be sure your terminal is still using Root!

ln -s /opt/firefox/firefox /usr/local/bin/firefox

Create desktop shortcut

After putting the Firefox binary in the /usr/local/bin, you’ll need to set up a new desktop shortcut by using the touch command.

touch /usr/share/applications/firefox-developer.desktop

With the new desktop file made, we can start editing the shortcut. To modify the file, you must open it up in a text editor. In this tutorial, we’ll edit the file in Nano, as it’s easy to use for most users. Don’t like Nano? Feel free to use your favorite instead!

nano /usr/share/applications/firefox-developer.desktop

With the desktop shortcut open in Nano, paste the code below inside of the editor.

[Desktop Entry]Name=Firefox DeveloperGenericName=Firefox Developer EditionExec=/usr/local/bin/firefoxTerminal=falseIcon=/opt/firefox/browser/chrome/icons/default/default48.pngType=ApplicationCategories=Application;Network;X-Developer;Comment=Firefox Developer Edition Web Browser

Save the edit with Ctrl + O and exit with Ctrl + X. Then, update the permissions of the file with chmod.

chmod +x /usr/share/applications/firefox-developer.desktop

With the permissions updated, you’ll be able to access Firefox developer edition in your application menu under “Internet.”

  相关解决方案