Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
doku:knf2009-linux-live-uck [17.11.2009 08:44] kfr |
doku:knf2009-linux-live-uck [22.11.2009 14:25] (aktuell) kfr |
||
---|---|---|---|
Zeile 35: | Zeile 35: | ||
* => im Live-System kann alles überschrieben werden, z.B. Updates | * => im Live-System kann alles überschrieben werden, z.B. Updates | ||
* Live-System kann auch auf Festplatte und USB-Stick installiert werden | * Live-System kann auch auf Festplatte und USB-Stick installiert werden | ||
- | + | ===== uck Übersicht ===== | |
- | ===== uck Übersicht===== | + | |
{{:doku:uck-logo-kurz.png|}} | {{:doku:uck-logo-kurz.png|}} | ||
* uck: Ubuntu Customization Kit | * uck: Ubuntu Customization Kit | ||
Zeile 42: | Zeile 41: | ||
* macht aus einer Ubuntu-CD eine neue CD | * macht aus einer Ubuntu-CD eine neue CD | ||
* keine komplette Entwicklungsumgebung nötig | * keine komplette Entwicklungsumgebung nötig | ||
+ | ===== uck Übersicht 2 ===== | ||
+ | {{:doku:uck-ablauf.png?700|}} | ||
+ | |||
===== uck Voraussetzungen ===== | ===== uck Voraussetzungen ===== | ||
{{:doku:uck-logo-kurz.png|}} | {{:doku:uck-logo-kurz.png|}} | ||
Zeile 76: | Zeile 78: | ||
* desktop environments: gnome | * desktop environments: gnome | ||
* choose an ISO Image to be used as the basis: meine-vorlage.iso | * choose an ISO Image to be used as the basis: meine-vorlage.iso | ||
- | * enter the name for the CD: ''KNF Live CD 2009'' | + | * enter the name for the CD: ''KNF Live Live CD 2009'' |
* Do you want to customize during building? yes | * Do you want to customize during building? yes | ||
* Do you want to delete all windows-related files from the CD: yes/no | * Do you want to delete all windows-related files from the CD: yes/no | ||
Fasten seatbelts... (nach Passwortabfrage). | Fasten seatbelts... (nach Passwortabfrage). | ||
- | |||
===== uck Ordnerstruktur ===== | ===== uck Ordnerstruktur ===== | ||
Zeile 89: | Zeile 90: | ||
* customizations-scripts/ | * customizations-scripts/ | ||
* //Scripts für CD-Anpassung// | * //Scripts für CD-Anpassung// | ||
- | * //wird automatisch angelegt und überschrieben// | + | * //wird automatisch angelegt und überschrieben :!:// |
* iso-mount/ | * iso-mount/ | ||
* // Mount-Point für Original-CD // | * // Mount-Point für Original-CD // | ||
Zeile 107: | Zeile 108: | ||
* .X11-unix | * .X11-unix | ||
* //zwischen mehreren Läufen manuell löschen // | * //zwischen mehreren Läufen manuell löschen // | ||
+ | |||
===== uck "manually"-Script 1/3 ===== | ===== uck "manually"-Script 1/3 ===== | ||
Zeile 128: | Zeile 130: | ||
rm -rf $ZIEL/etc/skel/.local/share/Trash/ || exit 2 | rm -rf $ZIEL/etc/skel/.local/share/Trash/ || exit 2 | ||
rm -rf $ZIEL/etc/skel/.xsession-error || exit 2 | rm -rf $ZIEL/etc/skel/.xsession-error || exit 2 | ||
+ | rm -rf $ZIEL/etc/skel/.mozilla/firefox/*/urlclassifier3.sqlite || exit 2 | ||
+ | rm -rf $ZIEL/etc/skel/.mozilla/firefox/*/Cache/* || exit 2 | ||
+ | |||
... | ... | ||
</code> | </code> | ||
+ | |||
===== uck "manually"-Script 2/3 ===== | ===== uck "manually"-Script 2/3 ===== | ||
Zeile 144: | Zeile 150: | ||
## updates | ## updates | ||
chroot $ZIEL apt-get update || exit 2 | chroot $ZIEL apt-get update || exit 2 | ||
- | chroot $ZIEL apt-get -y --purge remove 'gimp-data' || exit 2 | + | chroot $ZIEL apt-get -y --purge remove 'gimp*' || exit 2 |
chroot $ZIEL apt-get -y --purge remove 'openoffice*' || exit 2 | chroot $ZIEL apt-get -y --purge remove 'openoffice*' || exit 2 | ||
chroot $ZIEL apt-get -y install 'abiword' || exit 2 | chroot $ZIEL apt-get -y install 'abiword' || exit 2 | ||
Zeile 152: | Zeile 158: | ||
chroot $ZIEL apt-get install checkbox checkbox-gtk || exit 2 | chroot $ZIEL apt-get install checkbox checkbox-gtk || exit 2 | ||
chroot $ZIEL apt-get -y upgrade || exit 2 | chroot $ZIEL apt-get -y upgrade || exit 2 | ||
- | chroot $ZIEL apt-get -y autoremove || exit 2 | + | |
... | ... | ||
</code> | </code> | ||
- | |||
===== uck "manually"-Script 3/3 ===== | ===== uck "manually"-Script 3/3 ===== | ||
Zeile 161: | Zeile 166: | ||
<code> | <code> | ||
... | ... | ||
- | ## kernel updates | + | # Kernel Update und alte löschen |
- | #chroot $ZIEL apt-get -y install \ | + | |
- | linux-generic linux-headers-generic \ | + | |
- | linux-image-generic \ | + | |
- | linux-restricted-modules-generic || exit 2 | + | |
- | # mit Kernel Update wird das iso Image ca 40MB groeser :-( | + | |
- | + | ||
- | # neuer Versuch: | + | |
chroot $ZIEL apt-get -y dist-upgrade || exit 2 | chroot $ZIEL apt-get -y dist-upgrade || exit 2 | ||
+ | |||
# von http://kanotix.com/index.php?module=pnWikka&tag=OldKernelEntsorgen | # von http://kanotix.com/index.php?module=pnWikka&tag=OldKernelEntsorgen | ||
- | chroot $ZIEL KERNEL=$(dpkg -l| \ | + | echo "KERNEL=\$(dpkg -l| \ |
- | awk '/linux-image|linux-headers|linux-restricted-modules/{print $2}'| \ | + | awk \ |
- | grep -v $(uname -r|sed 's/\([^-]*-[^-]*\)-.*/\1/')); \ | + | '/linux-image|linux-headers|linux-restricted-modules/{print \$2}' \ |
- | [ "$KERNEL" ] && apt-get remove --yes --purge $KERNEL | + | | grep -v $(uname -r|sed 's/\([^-]*-[^-]*\)-.*/\1/')); \ |
+ | [ \"\$KERNEL\" ] && apt-get remove --yes --purge \$KERNEL" \ | ||
+ | > $ZIEL/tmp/remove_old_kernels.sh | ||
+ | chroot $ZIEL sh -x /tmp/remove_old_kernels.sh || exit 2 | ||
+ | rm $ZIEL/tmp/remove_old_kernels.sh | ||
+ | |||
+ | chroot $ZIEL apt-get -y autoremove || exit 2 | ||
exit 0 | exit 0 | ||
</code> | </code> | ||
- | |||
===== exit 0 ===== | ===== exit 0 ===== | ||
{{:doku:bildschirmfoto-remaster-new-files_-_datei-browser.png|}} | {{:doku:bildschirmfoto-remaster-new-files_-_datei-browser.png|}} | ||
+ | |||
+ | ===== Tipps & Tricks ===== | ||
+ | ==== Sprachanpassung ISO-Image Boot (Grub) ==== | ||
+ | <code> | ||
+ | echo "cat \$ISO_REMASTER_DIR/isolinux/de.tr | | ||
+ | perl -ne '\$_ =~ s/Tastaturbelegung/Tastatur/; print;' | | ||
+ | perl -ne '\$_ =~ s/Weitere Optionen/Mehr Optionen/; print;' | | ||
+ | perl -ne '\$_ =~ s/Barrierefreiheit/Barrierefrei/; print;' | | ||
+ | perl -ne '\$_ =~ s/Ubuntu \^ausprobieren \(Rechner bleibt unverändert\)/Mac Life Ubuntu \^Rettungssystem/; print;' > \$ISO_REMASTER_DIR/isolinux/de.tr-NEU || exit 2" >> $UCKDIR/customization-scripts/customize_iso || exit 2 | ||
+ | echo "mv \$ISO_REMASTER_DIR/isolinux/de.tr-NEU \$ISO_REMASTER_DIR/isolinux/de.tr || exit 2" >> $UCKDIR/customization-scripts/customize_iso || exit 2 | ||
+ | </code> | ||
+ | |||
+ | ==== Timezone ==== | ||
+ | ''/etc/rc.local (in rootfs)'' <code> | ||
+ | # Zeitzone | ||
+ | mv /etc/localtime /etc/localtime.ORIG | ||
+ | ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime | ||
+ | </code> | ||
+ |