diff --git a/Installer-USB-Stick/UbuntuCustomizationKit/customize-lip-testing/customize b/Installer-USB-Stick/UbuntuCustomizationKit/customize-lip-testing/customize new file mode 100644 index 0000000000000000000000000000000000000000..3b9e6c1db64b0e5e41da3278a4a58f6c10f428ce --- /dev/null +++ b/Installer-USB-Stick/UbuntuCustomizationKit/customize-lip-testing/customize @@ -0,0 +1,128 @@ +#!/bin/bash + +#is this true for all uck versions?? +SCRIPT_DIR=`dirname "$0"` + +function prepare_install() +{ + echo "# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)]/ precise main restricted + +# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to +# newer versions of the distribution. +deb http://ftp.halifax.rwth-aachen.de/ubuntu/ precise main restricted +deb-src http://ftp.halifax.rwth-aachen.de/ubuntu/ precise main restricted + +## Major bug fix updates produced after the final release of the +## distribution. +deb http://ftp.halifax.rwth-aachen.de/ubuntu/ precise-updates main restricted +deb-src http://ftp.halifax.rwth-aachen.de/ubuntu/ precise-updates main restricted + +## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu +## team. Also, please note that software in universe WILL NOT receive any +## review or updates from the Ubuntu security team. +deb http://ftp.halifax.rwth-aachen.de/ubuntu/ precise universe +deb-src http://ftp.halifax.rwth-aachen.de/ubuntu/ precise universe +deb http://ftp.halifax.rwth-aachen.de/ubuntu/ precise-updates universe +deb-src http://ftp.halifax.rwth-aachen.de/ubuntu/ precise-updates universe + +## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu +## team, and may not be under a free licence. Please satisfy yourself as to +## your rights to use the software. Also, please note that software in +## multiverse WILL NOT receive any review or updates from the Ubuntu +## security team. +deb http://ftp.halifax.rwth-aachen.de/ubuntu/ precise multiverse +deb-src http://ftp.halifax.rwth-aachen.de/ubuntu/ precise multiverse +deb http://ftp.halifax.rwth-aachen.de/ubuntu/ precise-updates multiverse +deb-src http://ftp.halifax.rwth-aachen.de/ubuntu/ precise-updates multiverse + +## N.B. software from this repository may not have been tested as +## extensively as that contained in the main release, although it includes +## newer versions of some applications which may provide useful features. +## Also, please note that software in backports WILL NOT receive any review +## or updates from the Ubuntu security team. + +deb http://ftp.halifax.rwth-aachen.de/ubuntu/ precise-security main restricted +deb-src http://ftp.halifax.rwth-aachen.de/ubuntu/ precise-security main restricted +deb http://ftp.halifax.rwth-aachen.de/ubuntu/ precise-security universe +deb-src http://ftp.halifax.rwth-aachen.de/ubuntu/ precise-security universe +deb http://ftp.halifax.rwth-aachen.de/ubuntu/ precise-security multiverse +deb-src http://ftp.halifax.rwth-aachen.de/ubuntu/ precise-security multiverse + +## Uncomment the following two lines to add software from Canonical's +## 'partner' repository. +## This software is not part of Ubuntu, but is offered by Canonical and the +## respective vendors as a service to Ubuntu users. +# deb http://archive.canonical.com/ubuntu precise partner +# deb-src http://archive.canonical.com/ubuntu precise partner + +## This software is not part of Ubuntu, but is offered by third-party +## developers who want to ship their latest software. +deb http://extras.ubuntu.com/ubuntu precise main +deb-src http://extras.ubuntu.com/ubuntu precise main +" > /etc/apt/sources.list + + echo "# offline repository of the linux install party +deb [ trusted=yes ] file:/cdrom/archives precise lip" > /etc/apt/sources.list.d/lipoffline.list + + add-apt-repository -y ppa:texlive-backports/ppa + + apt-get update +} + +function install_packages() +{ + apt-get upgrade --assume-yes --force-yes + apt-get install aptitude -y + + # Some daily images do not have a kernel ?!? + aptitude install linux-image-generic-lts-quantal + + aptitude full-upgrade -y # make sure we have the newest versions + aptitude install automake cmake aspell-de build-essential ffmpeg htop hunspell lvm2 mencoder screen tofrodos efibootmgr gdisk linux-headers vlc moreutils network-manager-vpnc-gnome vim -y # install general packages + aptitude install --without-recommends mdadm -y # install mdadm without mailserver + aptitude install cm-super context feynmf fragmaster info latex-beamer latex-xcolor latexmk pgf psutils t1utils texinfo texlive-base texlive-bibtex-extra texlive-binaries texlive-common texlive-doc-base texlive-doc-de texlive-doc-en texlive-extra-utils texlive-font-utils texlive-fonts-extra texlive-fonts-extra-doc texlive-fonts-recommended texlive-fonts-recommended-doc texlive-formats-extra texlive-games texlive-generic-extra texlive-humanities texlive-humanities-doc texlive-lang-german texlive-latex-base texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc texlive-latex-recommended texlive-latex-recommended-doc texlive-latex3 texlive-luatex texlive-math-extra texlive-metapost texlive-metapost-doc texlive-music texlive-omega texlive-pictures texlive-pictures-doc texlive-plain-extra texlive-pstricks texlive-pstricks-doc texlive-publishers texlive-publishers-doc texlive-science texlive-science-doc texlive-xetex -y # install stripped version of texlive without all kinds of documentation in foreign languages + + aptitude install hunspell-de-de language-pack-de language-pack-support-de wngerman wogerman wswiss poppler-data libreoffice-l10n-de libreoffice-help-de hyphen-de mythes-de thunderbird-locale-de firefox-locale-de -y # install german language support + + MISSING_LANG_PKG="$(check-language-support -l de_DE)" + MISSING_LANG_PKG="$(check-language-support -l en_US) $MISSING_LANG_PKG" # check for missing packages for de_DE and en_US + + if [ -n "$MISSING_LANG_PKG" ]; then + aptitude install $MISSING_LANG_PKG -y + fi + + EXTRA_LANG_PKG="$(dpkg-query --show | cut -f1 | grep -E '^(language-pack|language-support|firefox-locale|thunderbird-locale|libreoffice-help|libreoffice-l10n)' | grep -Ev "[-](de|en)\>")" # remove extra language packages + + if [ -n "$EXTRA_LANG_PKG" ]; then + aptitude purge $EXTRA_LANG_PKG -y + fi + +} + +function rootfs_patches() +{ + if [ -d "$SCRIPT_DIR/rootfs-patches/" ] + then + echo "Patching rootfs..." + for p in "$SCRIPT_DIR/rootfs-patches/"* + do + cat "$p" | patch -d "/" -p1 + done + echo "done." + fi +} + +function finalize() +{ + echo -n "Europe/Berlin" > /etc/timezone + + rm -rf /var/crash/* +} + +prepare_install +install_packages + +cp "$SCRIPT_DIR/no-bootloader-icon/ubiquity-gtkui-no-bootloader.desktop" /usr/share/applications/ + +rootfs_patches +finalize diff --git a/Installer-USB-Stick/UbuntuCustomizationKit/customize-lip-testing/rootfs-patches/ubiquity-apt-clone-fix.patch b/Installer-USB-Stick/UbuntuCustomizationKit/customize-lip-testing/rootfs-patches/ubiquity-apt-clone-fix.patch new file mode 100644 index 0000000000000000000000000000000000000000..94c0ff23562b679913335764a1ea6ffcc53b98ab --- /dev/null +++ b/Installer-USB-Stick/UbuntuCustomizationKit/customize-lip-testing/rootfs-patches/ubiquity-apt-clone-fix.patch @@ -0,0 +1,12 @@ +--- a/lib/partman/finish.d/01apt_clone_save 2013-01-12 03:31:22.000000000 +0000 ++++ b/lib/partman/finish.d/01apt_clone_save 2013-04-06 16:23:16.103678237 +0000 +@@ -39,6 +39,9 @@ + close_dialog + done + ++#lip patch to prevent the apt-clone save call ++root="" ++ + if [ -z "$root" ]; then + # The partition is going to be formatted; there's nothing to preserve. + exit 0