Created
July 7, 2015 06:45
-
-
Save niltonvasques/c39842f35728cae6b3a0 to your computer and use it in GitHub Desktop.
firefox-install-debian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!bin/bash | |
| #wget https://download.mozilla.org/?product=firefox-33.0.2-SSL&os=linux64&lang=en-US | |
| cd ~/Downloads/ | |
| cp firefox-33.0.2.tar.bz2 /opt/ | |
| cd /opt/ | |
| tar -xvf firefox-33.0.2.tar.bz2 | |
| rm firefox-33.0.2.tar.bz2 | |
| #Removing iceweasel | |
| apt-get remove iceweasel | |
| ln -sf /opt/firefox/firefox /usr/bin/firefox | |
| ln -sf /opt/firefox/firefox /usr/bin/firefox.real | |
| ln -sf /opt/firefox/browser/icons/mozicon128.png /usr/share/icons/hicolor/128x128/apps/firefox.png | |
| ln -sf /opt/firefox/browser/icons/mozicon128.png /usr/share/pixmaps/firefox.png | |
| cd /usr/share/applications/ | |
| #Creating entry for firefox on gnome applications | |
| cat <<EOF > firefox.desktop | |
| [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 | |
| EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment