d2globalinc
July 28th, 2009, 10:51 PM
I noticed when installing Firefox 3.5 from the repositories in Jaunty that the branding was set to "Shiretoko".. I couldn't have that because it would just confuse our users.. It's bad enough they ask where the "E" or "Internet Explorer" icon is - and when we finally get them using Firefox and noticing it's icon, we don't need to confuse them yet again..
Soooo - I made this little HowTO to Install Firefox 3.5 from the repositories then re-brand it back to Firefox's logo's, name, etc...
- First - close all firefox windows and open a terminal window.
- Next copy and paste the following:
sudo apt-get install firefox-3.5 firefox-3.5-branding firefox-3.5-gnome-support
- After install I do another sudo command to make sure sudo is still active without having to enter a password. If it is not - then you will need to enter your sudo password again after entering this command:
sudo ls
- Finally we copy and paste the following all at once to re-brand Firefox 3.5 using the original Firefox branding information that should still be on your system (because we do not remove Firefox 3.0.x that comes with Jaunty and we leave it on the system):
#
sudo cp -v /usr/lib/firefox-3.0*/icons/* /usr/lib/firefox-3.5*/icons/
cd /usr/lib/firefox-3.5*/defaults/preferences/
sudo cp -v firefox.js_bak firefox.js
sudo cp -v firefox.js firefox.js_bak
sudo sed -i "s/pref(\"general.useragent.extra.firefox\", \"Shiretoko\//pref(\"general.useragent.extra.firefox\", \"Firefox\//g" firefox.js
cd /usr/lib/firefox-3.5*/chrome/
sudo cp browser-branding-en-US.jar_bak browser-branding-en-US.jar
sudo cp browser-branding-en-US.jar browser-branding-en-US.jar_bak
sudo cp browser-branding.jar_bak browser-branding.jar
sudo cp browser-branding.jar browser-branding.jar_bak
cd /usr/lib/firefox-3.0*/chrome/
sudo cp -p browser-branding.jar /usr/lib/firefox-3.5*/chrome/
cd /usr/lib/firefox-3.0*/chrome/icons/default/
sudo cp -p * /usr/lib/firefox-3.5*/chrome/icons/default/
sudo mkdir -p /d2tmp/ffbrandnew/
sudo chmod 755 -R /d2tmp
cd /usr/lib/firefox-3.5*/chrome/
sudo cp browser-branding-en-US.jar /d2tmp/ffbrandnew/
sudo unzip /d2tmp/ffbrandnew/browser-branding-en-US.jar -d /d2tmp/ffbrandnew/
sudo rm -f -r /d2tmp/ffbrandnew/browser-branding-en-US.jar
sudo sed -i "s/<\!ENTITY brandShortName \"Shiretoko\">/<\!ENTITY brandShortName \"Firefox\">/g" /d2tmp/ffbrandnew/locale/branding/brand.dtd
sudo sed -i "s/<\!ENTITY brandFullName \"Shiretoko\">/<\!ENTITY brandFullName \"Mozilla Firefox\">/g" /d2tmp/ffbrandnew/locale/branding/brand.dtd
sudo sed -i "s/<\!ENTITY vendorShortName \"mozilla.org\">/<\!ENTITY vendorShortName \"Mozilla\">/g" /d2tmp/ffbrandnew/locale/branding/brand.dtd
sudo sed -i "s/<\!ENTITY releaseBaseURL \"http:\/\/www.mozilla.org\/projects\/shiretoko\/releases\/\">/ /g" /d2tmp/ffbrandnew/locale/branding/brand.dtd
sudo sed -i "s/brandShortName=Shiretoko/brandShortName=Firefox/g" /d2tmp/ffbrandnew/locale/branding/brand.properties
sudo sed -i "s/brandFullName=Shiretoko/brandFullName=Mozilla Firefox/g" /d2tmp/ffbrandnew/locale/branding/brand.properties
sudo sed -i "s/vendorShortName=mozilla.org/vendorShortName=Mozilla/g" /d2tmp/ffbrandnew/locale/branding/brand.properties
cd /d2tmp/ffbrandnew/
sudo zip -r browser-branding-en-US.jar locale
sudo cp /d2tmp/ffbrandnew/browser-branding-en-US.jar /usr/lib/firefox-3.5*/chrome/
cd /usr/bin/
sudo rm -f -r /d2tmp/
sudo rm -f -r firefox
sudo ln -s firefox-3.5 firefox
sudo sed -i "s/Name=Shiretoko Web Browser/Name=Firefox 3.5 Web Browser/g" /usr/share/app-install/desktop/firefox-3.5.desktop
sudo sed -i "s/Comment=Firefox 3.5 Beta/Comment=Browse the World Wide Web/g" /usr/share/app-install/desktop/firefox-3.5.desktop
sudo sed -i "s/GenericName=Preview Browser/GenericName=Web Browser/g" /usr/share/app-install/desktop/firefox-3.5.desktop
sudo sed -i "s/Name=Shiretoko Web Browser/Name=Firefox 3.5 Web Browser/g" /usr/share/applications/firefox-3.5.desktop
sudo sed -i "s/Comment=Firefox 3.5/Comment=Browse the World Wide Web/g" /usr/share/applications/firefox-3.5.desktop
sudo sed -i "s/GenericName=Preview Browser/GenericName=Web Browser/g" /usr/share/applications/firefox-3.5.desktop
#
There we go! Everything should now be labeled Firefox instead of Shiretoko, and the original link to firefox should now point to firefox 3.5!
- Enjoy!
Shane Menshik
D2 GLOBAL INC
http://www.d2global.com
Soooo - I made this little HowTO to Install Firefox 3.5 from the repositories then re-brand it back to Firefox's logo's, name, etc...
- First - close all firefox windows and open a terminal window.
- Next copy and paste the following:
sudo apt-get install firefox-3.5 firefox-3.5-branding firefox-3.5-gnome-support
- After install I do another sudo command to make sure sudo is still active without having to enter a password. If it is not - then you will need to enter your sudo password again after entering this command:
sudo ls
- Finally we copy and paste the following all at once to re-brand Firefox 3.5 using the original Firefox branding information that should still be on your system (because we do not remove Firefox 3.0.x that comes with Jaunty and we leave it on the system):
#
sudo cp -v /usr/lib/firefox-3.0*/icons/* /usr/lib/firefox-3.5*/icons/
cd /usr/lib/firefox-3.5*/defaults/preferences/
sudo cp -v firefox.js_bak firefox.js
sudo cp -v firefox.js firefox.js_bak
sudo sed -i "s/pref(\"general.useragent.extra.firefox\", \"Shiretoko\//pref(\"general.useragent.extra.firefox\", \"Firefox\//g" firefox.js
cd /usr/lib/firefox-3.5*/chrome/
sudo cp browser-branding-en-US.jar_bak browser-branding-en-US.jar
sudo cp browser-branding-en-US.jar browser-branding-en-US.jar_bak
sudo cp browser-branding.jar_bak browser-branding.jar
sudo cp browser-branding.jar browser-branding.jar_bak
cd /usr/lib/firefox-3.0*/chrome/
sudo cp -p browser-branding.jar /usr/lib/firefox-3.5*/chrome/
cd /usr/lib/firefox-3.0*/chrome/icons/default/
sudo cp -p * /usr/lib/firefox-3.5*/chrome/icons/default/
sudo mkdir -p /d2tmp/ffbrandnew/
sudo chmod 755 -R /d2tmp
cd /usr/lib/firefox-3.5*/chrome/
sudo cp browser-branding-en-US.jar /d2tmp/ffbrandnew/
sudo unzip /d2tmp/ffbrandnew/browser-branding-en-US.jar -d /d2tmp/ffbrandnew/
sudo rm -f -r /d2tmp/ffbrandnew/browser-branding-en-US.jar
sudo sed -i "s/<\!ENTITY brandShortName \"Shiretoko\">/<\!ENTITY brandShortName \"Firefox\">/g" /d2tmp/ffbrandnew/locale/branding/brand.dtd
sudo sed -i "s/<\!ENTITY brandFullName \"Shiretoko\">/<\!ENTITY brandFullName \"Mozilla Firefox\">/g" /d2tmp/ffbrandnew/locale/branding/brand.dtd
sudo sed -i "s/<\!ENTITY vendorShortName \"mozilla.org\">/<\!ENTITY vendorShortName \"Mozilla\">/g" /d2tmp/ffbrandnew/locale/branding/brand.dtd
sudo sed -i "s/<\!ENTITY releaseBaseURL \"http:\/\/www.mozilla.org\/projects\/shiretoko\/releases\/\">/ /g" /d2tmp/ffbrandnew/locale/branding/brand.dtd
sudo sed -i "s/brandShortName=Shiretoko/brandShortName=Firefox/g" /d2tmp/ffbrandnew/locale/branding/brand.properties
sudo sed -i "s/brandFullName=Shiretoko/brandFullName=Mozilla Firefox/g" /d2tmp/ffbrandnew/locale/branding/brand.properties
sudo sed -i "s/vendorShortName=mozilla.org/vendorShortName=Mozilla/g" /d2tmp/ffbrandnew/locale/branding/brand.properties
cd /d2tmp/ffbrandnew/
sudo zip -r browser-branding-en-US.jar locale
sudo cp /d2tmp/ffbrandnew/browser-branding-en-US.jar /usr/lib/firefox-3.5*/chrome/
cd /usr/bin/
sudo rm -f -r /d2tmp/
sudo rm -f -r firefox
sudo ln -s firefox-3.5 firefox
sudo sed -i "s/Name=Shiretoko Web Browser/Name=Firefox 3.5 Web Browser/g" /usr/share/app-install/desktop/firefox-3.5.desktop
sudo sed -i "s/Comment=Firefox 3.5 Beta/Comment=Browse the World Wide Web/g" /usr/share/app-install/desktop/firefox-3.5.desktop
sudo sed -i "s/GenericName=Preview Browser/GenericName=Web Browser/g" /usr/share/app-install/desktop/firefox-3.5.desktop
sudo sed -i "s/Name=Shiretoko Web Browser/Name=Firefox 3.5 Web Browser/g" /usr/share/applications/firefox-3.5.desktop
sudo sed -i "s/Comment=Firefox 3.5/Comment=Browse the World Wide Web/g" /usr/share/applications/firefox-3.5.desktop
sudo sed -i "s/GenericName=Preview Browser/GenericName=Web Browser/g" /usr/share/applications/firefox-3.5.desktop
#
There we go! Everything should now be labeled Firefox instead of Shiretoko, and the original link to firefox should now point to firefox 3.5!
- Enjoy!
Shane Menshik
D2 GLOBAL INC
http://www.d2global.com