#!/bin/sh -e ################################################################################ # Purpose: Create a Freedom Toaster Installation CD # Inputs : Ubuntu (cd, main, restricted, universe), Freedom Toaster Subversion Repository # Output : Creates Freedom Taoster ISO # Remarks: Run script on an Ubuntu 5.10 server, with admin account as su # Depends: dpkg-scanpackages mkisofs # License: GPL (http://www.gnu.org/) # Created: 2006/05/19 Sean Wheller (sean@inwords.co.za) ################################################################################ # Uncomment and replace value of http_proxy as and when required. # export http_proxy="http://cache.uct.ac.za:8080/" # The Project SVN Revision Control System repos=svn://edison.tsf.org.za/freedomtoaster # The Stable Version Number STABLEVER=V3 ############################ # Create directories mkdir iso mkdir iso/ftpackages ############################ # Download the packages apt-get -d install linux-image-686 linux-source-2.6.12 make gcc gcc-3.4 apache2 tcl8.4-dev xlibs-dev x-dev libstdc++5 tk8.4-dev sharutils libcache-cache-perl libxml-simple-perl libfile-cache-perl build-essential x-window-system-core firefox cdrecord dvd+rw-tools ############################ # copy packages to ftinstall directory cp /var/cache/apt/archives/*.* iso/ftpackages/ ############################ # Create Package List dpkg-scanpackages iso/ /dev/null | gzip -c -9 > iso/Packages.gz ############################ # Get custom firefox and .mozilla with r-kiosk cd iso/ wget -c http://learnlinux.tsf.org.za/ft/dotmozilla.tar.gz wget -c http://learnlinux.tsf.org.za/ft/firefox-1.6a1.en-US.linux-i686.tar.bz2 cd .. ############################ # Get Freedom Toaster Scripts and Application svn export $repos/$STABLEVER/source iso/ ############################ # Create the ISO Image mkisofs -o iso/freedomtoaster-ubuntu-5.10_v3.0.iso -l -R -L -V "1" -P "http://www.freedomtoaster.org" -p "Freedom Toaster Install CD V3.0" -A "Freedom Toaster v3.0 (stable)" .