| Remastering
KNOPPIX has always been a lot of hassle -- requiring numerous intricate
steps on the command line making it easy to forget an important step.
While there are several HOWTOs on the net that explain the steps, Ian
Naylor thought it would be a
good idea to write some scripts to automate the process. He described
this during this year's UKUUG
Linux conference in Leeds,
England. Ian presented a talk on "Building your own Live CD based on
KNOPPIX". Fabian
Franz, a member of the KNOPPIX
team who attended the talk, said afterwards: Ian's scripts just opened
my eyes -- it was a very clear structure and for the first time in my
life I understood the remastering process from a user's point of view. Ian and Fabian started talking after the presentation and were inspired to develop a new graphical remastering tool to build acustomised KNOPPIX distribution. One day later Fabian was demonstrating the new script to a stunned audience. Unlike previous efforts to solve the same problem this is based on Klaus Knopper's originalscripts and written in a way so that future improvements in themaster scripts will be reflected in these. |
| knoppix 2 vga=normal |
| knoppix 2 lang=us vga=normal |
| knoppix |
| knoppix lang=us |
| cfdisk /dev/hda |
| cfdisk /dev/hdb |
| init 6 |
| mkswap
/dev/hda1 swapon /dev/hda1 mke2fs -vj /dev/hda2 mke2fs -vj /dev/hdb1 |
| mount
-t ext3 /dev/hda2 /mnt/hda2 mkdir /mnt/hda2/remaster cd /mnt/hda2 |
| wget
http://debian.tu-bs.de/knoppix/remaster/remaster_0.1-6.tar.gz tar zxvf remaster_0.1-6.tar.gz mv remaster-0.1 scripts cd scripts |
| http://username:passwd@yourproxy.company.com:portnumber/ |
| 136:
cp -f /etc/dhcpc/resolv.conf "$REMASTER_CHOICE"/etc/dhcpc/ 137: CREATE_COMPRESSED_FS="yes" CLEANUP="$REMASTER_CLEANUP" COMPRESSION_BEST="${REMASTER_COMPRESSION_BEST:+--best}" chroot $REMASTER_CHOICE" /KNOPPIX.build/Knoppix-3.4.mkcompressed "$REMASTER_MASTER" auto |
| 136:
cp -f /etc/dhcpc/resolv.conf "$REMASTER_CHOICE"/etc/dhcpc/ 137: export http_proxy="http://username:passwd@yourproxy.company.com:portnumber/" 138: CREATE_COMPRESSED_FS="yes" CLEANUP="$REMASTER_CLEANUP" COMPRESSION_BEST="${REMASTER_COMPRESSION_BEST:+--best}" chroot $REMASTER_CHOICE" /KNOPPIX.build/Knoppix-3.4.mkcompressed "$REMASTER_MASTER" auto |
| ./knoppix-remaster /mnt/hda2/remaster |
| ls /etc/*.conf |
| dpkg-query -l | less |
| dpkg-query -l | grep i18n | grep kde | cut -d' ' -f3 |
| apt-get remove `dpkg-query -l | grep i18n | grep kde | cut -d' ' -f3` |
| apt-get remove openoffice-de-en manpages-de trans-de-en |
| apt-get remove enigma bacula-common |
| apt-get remove emacs21 emacs21-bin-common emacs21-common emacsen-common gettext-el zile |
| export http_proxy="http://username:passwd@yourproxy.company.com:portnumber/" |
| apt-get update |
| apt-get install localepurge aptitude synaptic |
| cp /etc/X11/XF86Config-4 /mnt/hda2/remaster/etc/X11 |
| cp -Rp /etc/skel /home/knoppix |
| chown -R knoppix:knoppix /home/knoppix |
| init 2 |
| cd
/mnt/hda2/scripts ./knoppix-remaster /mnt/hda2/remaster |
| chmod 777 /tmp |
| su - knoppix |
| startx |
| mount -t ext3 /dev/hdb1 /mnt/hdb1 |
| cp -Rp /mnt/hda2/remaster /mnt/hdb1/backup-remaster |
| umount /mnt/hdb1 |
| ./knoppix-remaster /mnt/hda2/remaster |
| rm -rf /etc/skel |
| mv /home/knoppix /etc/skel |
| chown -R root:root /etc/skel |
| rm /etc/X11/XF86Config-4 |
| chmod 555 /tmp |
| 126:
if [ -z "$DONTCHANGE" ]; then 127: # No persistent homedir, copy everything 128: rsync -Ha --ignore-existing /etc/skel/{.kde*,Desktop} $HOME/ 2>/dev/null 129: [ "$USER" = "knoppix" ] && rsync -Ha --ignore-existing /usr/share/knoppix/profile/{.kde*,Desktop} $HOME/ 2>/dev/null |
| 126:
if [ -z "$DONTCHANGE" ]; then 127: # No persistent homedir, copy everything 128: rsync -Ha --ignore-existing /etc/skel/ $HOME/ 2>/dev/null 129: [ "$USER" = "knoppix" ] && rsync -Ha --ignore-existing /usr/share/knoppix/profile/{.kde*,Desktop} $HOME/ 2>/dev/null |
| apt-get clean |
| RecentAppsStat=9 1096000374 /usr/share/applications/mozilla.desktop |
| RecentAppsStat= |
| rm /mnt/hda2/remaster/etc/skel/.bash_history /mnt/hda2/remaster/root/.bash_history |
| ./knoppix-remaster /mnt/hda2/remaster |
| cdrecord -scanbus |
| cdrecord -v gracetime=2 dev=1,1,0 speed=32 -dao driveropts=burnfree -eject -data /mnt/hda2/remaster/Knoppix.build/Knoppix.Master/KNOPPIX-CUSTOM.iso |
Copyright (c) 2004 James Pryor
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU
Free
Documentation License, Version 1.2
published by the Free Software Foundation; with no Invariant Sections,
no Front-Cover Texts, and no Back-Cover Texts.