#!/bin/bash #Author: 8bitpal #This script is published under the GPL. This script is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. More information under http://creativecommons.org/licenses/GPL/2.0/ echo "Install required packages..." su -c "apt-get install xorg-dev libtiff4-dev libpng12-dev libpango1.0-dev libatk1.0-dev libgtk2.0-dev gettext libxul-dev" cd $HOME echo "Create main directory..." mkdir firefox cd firefox echo "Create temp directory..." mkdir temp #glib cd $HOME/firefox/temp echo "Get glib 2.16.6..." wget http://ftp.gnome.org/pub/gnome/sources/glib/2.16/glib-2.16.6.tar.bz2 cd .. echo "Unpack glib 2.16.6..." tar -jxvf ./temp/glib-2.16.6.tar.bz2 cd glib-2.16.6 echo "Configure glib 2.16.6..." ./configure --prefix=$HOME/firefox/ make install #pango cd $HOME/firefox/temp echo "Get pango-1.20.5..." wget http://ftp.gnome.org/pub/gnome/sources/pango/1.20/pango-1.20.5.tar.bz2 cd $HOME/firefox/ tar -jxvf $HOME/firefox/temp/pango-1.20.5.tar.bz2 cd pango-1.20.5 export PKG_CONFIG_PATH=$HOME/firefox/lib/pkgconfig export LD_RUN_PATH=$HOME/firefox/lib ./configure --prefix=$HOME/firefox make install #gtk+ cd $HOME/firefox/temp/ echo "Get gtk+-2.12.0..." wget http://ftp.gnome.org/pub/gnome/sources/gtk+/2.12/gtk+-2.12.0.tar.bz2 cd .. tar -jxvf ./temp/gtk+-2.12.0.tar.bz2 cd gtk+-2.12.0 ./configure --prefix=$HOME/firefox sed 's/tests //g' ./Makefile make install echo "Get firefox-3.0.3..." cd $HOME/firefox/temp/ wget http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.0.3/linux-i686/en-US/firefox-3.0.3.tar.bz2 tar -jxvf $HOME/firefox/temp/firefox-3.0.3.tar.bz2 cd $HOME/firefox echo "Create Firefox startup file..." cat < startff #!/bin/bash cd firefox export LD_LIBRARY_PATH=$HOME/firefox/lib ./firefox EOD_CAT chmod u+x startff cd $HOME/Desktop echo "Create Desktop Starter..." cat < Firefox.desktop [Desktop Entry] Version=1.0 Encoding=UTF-8 Name=Firefox Type=Application Exec=$HOME/firefox/startff TryExec= Icon=$HOME/firefox/firefox/icons/mozicon128.png X-GNOME-DocPath= Terminal=false Name[de_DE]=Firefox GenericName[de_DE]= Comment[de_DE]= GenericName= Comment= EOD_CAT chmod u+x Firefox.desktop cd $HOME/firefox/temp/ rm ./glib-2.16.6.tar.bz2 ./pango-1.20.5.tar.bz2 ./gtk+-2.12.0.tar.bz2 ./firefox-3.0.3.tar.bz2 rm -rf $HOME/firefox/temp/ cd $HOME/