![]() | This web page has been Archived. Its content will not be updated. Use this link to obtain further details of our archive policy . |
Read the following instructions with a pinch of salt and some common sense. They are not a safe recipe, more a diary of what we did.
/home/knoppix directory), and
run knoppix_remaster there. It will ask you if you want to make a new
remaster (yes, you do), and then for a directory, so
tell it the place where you mounted your empty partition. It'll
spend some time copying files, and then come back and ask if you want
to
This is the first script I run. It assumes that /mnt is the
location of my various scripts and data files. I put in a
resolv.conf (http://www.oss-watch.ac.uk/knoppix/resolv.conf)
to get the network as I need it, and a fixed apt sources.list
(http://www.oss-watch.ac.uk/knoppix/sources.list ). The KDE
skeleton files are hand-crafted to add Mozilla Thunderbird and Firefox
to the menu, the background image is changed, and the X startup is changed
to display http://localhost/ on startup. Then we update the apt
cache, do a large set of removes
(see list at http://www.oss-watch.ac.uk/knoppix/Remove)
and then adds
(see list at http://www.oss-watch.ac.uk/knoppix/Add). Finally, we set a
password for MySQL.
#!/bin/sh
mount -t proc /proc proc
# I have mounted my working files on /mnt/Knoppix
cd /mnt/Knoppix
:>/usr/games/frozen-bubble.wav
for i in resolve.conf sources.list background.jpg 45sxession \
kde.tar Add Remove LocalAdd dotmoz.zip
do
wget http://www.oss-watch.ac.uk/knoppix/$i
done
cp resolv.conf /etc/resolv.conf
cp sources.list /etc/apt
cat kde.tar | (cd /etc; tar xf -)
(cd /etc/skel; unzip /mnt/Knoppix/dotmoz)
convert background.jpg /usr/local/lib/knoppix.png
cp 45xsession /etc/X11/Xsession.d/45xsession
apt-get update
apt-get --purge remove `cat Remove`
apt-get --purge remove mozilla-browser
apt-get install `cat Add`
/etc/init.d/mysql start
/usr/bin/mysqladmin -u root password 'adm!n'
umount /proc
#!/bin/sh
mount -t proc /proc proc
IN="xmlstarlet moodle moodle-osswatch exist-standalone \
xslt-process jing \
nxml-mode-tei tei-doc tei-emacs tei-lite tei-p5-doc tei-p5-schema
tei-roma tei-schema tei-xsl tei-xsl-teic
osswatch-knoppix"
for i in `echo $IN`
do
echo add package $i
apt-get install $i
done
umount /proc
These commands make sure MySQL and Tomcat are stopped (some of the local packages need to start services when they install), gets rid of unwanted orphan packages, makes some global definitions, and cleans up the menus
#!/bin/sh mount -t proc /proc proc /etc/init.d/mysql stop /etc/init.d/exist stop deborphan | xargs apt-get --purge remove -y apt-get clean updatedb --prunepaths="/KNOPPIX.build /mnt /mnt/hd /mnt/cdrom /tmp /usr/tmp /var/tmp" update-dlocatedb update-menus umount /proc
Now you can go back to the remaster program, and ask it to make the CD image. When it says "do you want to clean your Master, say NO! Otherwise it trashes your work.
linux24 bootfrom=/dev/hda8/knoppix.iso.
You need to know something about your partitions.