PDA

View Full Version : New KNOPPIX remastering HOWTO



eadz
11-14-2002, 08:09 AM
update : this version is now maintained at http://www.knoppix.net/docs/index.php/KnoppixRemasteringHowto so use that version instead of this

This is a guide that will show you howto remaster KNOPPIX.

( notes : commands showen in bold are on one line, so please mazimise the window, if you have any comments/sugestions please post below )

Requirements:

at least 1.5 Gig of RAM+Swap total
3 gig free on a disk

Instructions:

Boot from Knoppix CD
Configure your internet connection ( we'll need this later )
Open a root shell ( Kmenu->Knoppix->Root Shell ) - all commands below are ru
n from root shell
Make 2 directories, one for your new Master CD, one for the source, on a dis
k partition. You'll have to m
Make 2 directories, one for your new Master CD, one for the source, on a dis
k partition. You'll have to make sure these are mounted read-write. If say, you
have a partition with 3 gig free, mounted read-write /mnt/hda4, then mkdir /
mnt/hda4/knxmaster; mkdir /mnt/hda4/knxsource
mkdir /mnt/hda4/knxsource/KNOPPIX ( replace /mnt/hda4 with where your
harddisk is mounted )
now, copy the KNOPPIX files to your source directory : cp -Rp /KNOPPIX/* /
mnt/hda4/knxsource/KNOPPIX that will take a little while :)
mkdir /mnt/hda4/knxmaster/KNOPPIX
cp /cdrom/index.html /mnt/hda4/knxmaster/
now, copy everything in /cdrom/KNOPPIX/ to /mnt/hda4/knxmaster/KNOPPIX/ except the ~700 Mb KNOPPIX file.

Now you can "chroot" into the copied KNOPPIX : chroot /mnt/hda4/knxsource
/KNOPPIX - new - I get a whole lot of [b]/dev/null permission denied
errors, I'm not sure what thats all about, but I press CTRL+C and carry on anyway...
Update : fixed ! Well, check your mount status if you met the problem:
# mount
/dev/hda12 on /mnt/hda12 type ext3 (rw,nosuid,nodev)

where "nodev" means that you are not accessible on mounted filesystem
and you can not access /dev/null. And some scripts get output redirect
to /dev/null...
To solve this you should mount target partition before you do chroot
like this:

# mount /dev/hda12 /mnt/hda12

And see whats changed:

# mount
/dev/hda12 on /mnt/hda12 type ext3 (rw)

then you can carry on and chroot.

You are now chrooted. "/" is actually "/mnt/hda4/knxsource/KNOPPIX"
To use the internet you need to mount proc mount -t proc /proc proc
now edit /etc/resolv.conf and add your nameserver
check your chrooted internet connection : ping google.com
Now you can change stuff. If you want to add programs, you'll probally have
to remove some programs to free up space. apt-get remove <program>
will remove that program.
change stuff.. user settings are in /etc/skel
...
Unmount /proc - very imporntant! umount /proc
Press CTRL+D to leave being chrooted.

Notes :
interesting stuff in /etc/init.d/knoppix-autoconfig :
The X background file is /cdrom/KNOPPIX/background.gif
As well as floppyconfig, there is cdromconfig which will run /cdrom/KNOPPIX/knoppix.sh
interesting stuff in /etc/init.d/xsession
it ALSO sets background as /usr/local/lib/knoppix.gif
Now, onto creating the ISO file

we've finished customizing and ready to burn!
first do some cleanup : remove .bash_history files, tmp files etc
rm -rf /mnt/hda4/knxsource/KNOPPIX/.rr_moved
Now we'll make the big KNOPPIX file which is a cloop compressed ISO 9660 filesystem : mkisofs -R -U -V "KNOPPIX.net filesystem" -P "KNOPPIX www.knoppix.net" -hide-rr-moved -cache-inodes -no-bak -pad /mnt/hda4/knxsource/KNOPPIX | nice -5 /usr/bin/create_compressed_fs - 65536 > /mnt/hda4/knxmaster/KNOPPIX/KNOPPIX
if all went well, onto making the final CD-ROM Image :
cd /mnt/hda2/knxmaster
mkisofs -pad -l -r -J -v -V "KNOPPIX" -b KNOPPIX/boot.img -c KNOPPIX/boot.cat -hide-rr-moved -o /some/where/knoppix.iso /mnt/hda2/knxmaster ( replace /some/where/ with where you want to store the final image ready for burning. )
all done!


Thats it. This is an updated version of my previous howto. This is not meant for linux beginers, you will need to know your way around linux... to get this to work. I'll update this as corrections/improvemtns/etc come through.

Thanks to aay for some corrections

aay
11-14-2002, 10:22 PM
Thanks for the howto on remastering knoppix. This is something that I'd really like to do. However if having 1.5 Gig of RAM is a requrirement for this proceedure, it's doubtful that many people will be able to do this. Maybe I misunderstood you. Were you saying that the total amount of RAM and swap needs to add up to 1.5 gig? That's certainly more reasonable.

eadz
11-14-2002, 10:32 PM
Thanks for the howto on remastering knoppix. This is something that I'd really like to do. However if having 1.5 Gig of RAM is a requrirement for this proceedure, it's doubtful that many people will be able to do this. Maybe I misunderstood you. Were you saying that the total amount of RAM and swap needs to add up to 1.5 gig? That's certainly more reasonable.

The total of SWAP and RAM added together needs to be 1.5Gig. so you'll do fine with 256MB ram and 1.25 gig swap.

aay
11-14-2002, 10:55 PM
Thanks. I thought for sure I must be missunderstanding you. I look forward to giving this a try....when I've got some time! BTW, Great site!

andrej
11-14-2002, 11:46 PM
I've added some directories and files to /etc/skel but they don't appear in /home/knoppix.
(if i use adduser knoppix2, these files do appear in /home/knoppix2) what do i need to change to copy these files from /etc/skel/ to /home/knoppix ?

Thanks,
Andrej

eadz
11-14-2002, 11:56 PM
I've added some directories and files to /etc/skel but they don't appear in /home/knoppix.
(if i use adduser knoppix2, these files do appear in /home/knoppix2) what do i need to change to copy these files from /etc/skel/ to /home/knoppix ?

Thanks,
Andrej

hmm I'll have to check up on this.. i think you need to check the permissions. make the ownership/permissions the same as the other files.

TimSanders
11-15-2002, 01:19 AM
Somewhere there is a how-to and a script (from Klaus?) on how to re-order the files on the remastered CD image so that the new CD will run as fast as the original KNOPPIX. If this isn't done, I have read posts that say it runs quite a bit slower. YMMV

eadz
11-15-2002, 01:51 AM
Somewhere there is a how-to and a script (from Klaus?) on how to re-order the files on the remastered CD image so that the new CD will run as fast as the original KNOPPIX. If this isn't done, I have read posts that say it runs quite a bit slower. YMMV

no howto but some scripts, in them is commands to order the files..
http://listas.hispalinux.es/pipermail/meta-distros/2002-September/000046.html

blivius
11-16-2002, 12:35 AM
I use Klaus's KNOPPIX.build scripts to do my remastering with great success.
But the one thing I have yet to figure out is how to order files on the CD
when making the iso.

Unless I'm missing something his script looks for a file "/KNOPPIX.build/mkisofs.sort"
and if it exists it sorts per the way files are arranged in that file. How Klaus creates
"/KNOPPIX.build/mkisofs.sort" remains a mystery to me.

eadz, if you like I can provide you with the slightly modified KNOPPIX.build
scripts I use plus a small how-to that explains their usage. Do you have a
download area?

Regards,
blivius

aay
11-16-2002, 01:26 AM
I for one would like to have a chance to see the script and the howto that blivius mentions. Sounds like it would be helpful. I'm hoping that after a little more light is shed on the file ordering issue, eadz will be able to incorporate this knowledge into his howto. This is certainly proving enlightening.

eadz
11-16-2002, 03:37 AM
I use Klaus's KNOPPIX.build scripts to do my remastering with great success.
But the one thing I have yet to figure out is how to order files on the CD
when making the iso.

Unless I'm missing something his script looks for a file "/KNOPPIX.build/mkisofs.sort"
and if it exists it sorts per the way files are arranged in that file. How Klaus creates
"/KNOPPIX.build/mkisofs.sort" remains a mystery to me.

eadz, if you like I can provide you with the slightly modified KNOPPIX.build
scripts I use plus a small how-to that explains their usage. Do you have a download area?


This is how the sort file is created. ( unless there are 2 knoppix.sort files.. )


# Make sure that the boot floppy file is at the beginning of the image.
# Some controllers seem to depend on this.
rm -f /tmp/knoppix.sort
echo "$DEST/KNOPPIX/boot.img 100002" >/tmp/knoppix.sort
echo "$DEST/KNOPPIX/KNOPPIX 100001" >>/tmp/knoppix.sort
echo "$DEST/Demos/Audio/*.mp3 -100000" >>/tmp/knoppix.sort
echo "$DEST/Demos/Audio/*.ogg -100000" >>/tmp/knoppix.sort


and Yes, you could always post the scripts in the forum?

blivius
11-16-2002, 06:55 PM
Well there are two sort files, /tmp/knoppix.sort controls
the ordering of the boot.img etc. It does not handle
the ordering of files on the compressed filesystem (/cdrom/KNOPPIX/KNOPPIX)

Here's the scripts I use and a readme. I hope line wrapping
doesn't mess them up. -blivius


$ cat Knoppix.blivius.readme

How to remaster knoppix from inside chroot using Klaus's build tools [1] [2]
================================================== ==================

In your chroot jail make these 2 directories from the root level

mkdir /KNOPPIX.build
mkdir /KNOPPIX.build/cdrom

copy Knoppix.clean to /KNOPPIX.build
copy Knoppix.mkcompressed to /KNOPPIX.build
copy Knoppix.postupgrade to /KNOPPIX.build
and make sure they have execute permissions

Inside /KNOPPIX.build/cdrom you need to copy over
all the files and dirs that were on the original knoppix cdrom
(along with your changes, if any, perhaps you changed the boot.img for example).
Ofcourse one exception is the original /KNOPPIX/KNOPPIX compressed filesystem
which is not needed naturally as we are making a new one.

Now cd to /KNOPPIX.build
Run the following and watch the magic.
It will ask you a few questions.

./Knoppix.mkcompressed /KNOPPIX.build/cdrom

Once it finishes ( it can take an hour or so) you will
whave a finished iso suitable for burining as

/KNOPPIX.build/cdrom-EN.iso

Regards,
blivius

[1] Note I made some small changes to Klaus's build scripts to suit my needs

[2] One non-essential piece is missing and that is /KNOPPIX.build/mkisofs.sort
this is a file the determines in what order things get placed on
the CD. I believe Klaus has some way of generating this file.
But it is not clear to me how he did it. Feed back is welcome on this point.


$ cat Knoppix.postupgrade
#!/bin/sh
# Remove unwanted init scripts and KDE-autostart files

STOP=""
for i in `ls -d1 /etc/rc?.d/* | egrep -v -e '(README|knoppix|xsession)'`; do
BASE=`basename $i`
BASE=${BASE##[KS]??}
case "$STOP" in *${BASE}*) ;; *) STOP="$STOP $BASE"; ;; esac
rm -vf $i
done

for i in $STOP; do
/etc/init.d/$i stop
done


for i in `ls -d1 /usr/share/autostart/* | egrep -v -e '(panel|kdesktop|khotkeys)\.desktop'`; do
rm -vf $i
done

chmod u+s /usr/bin/cdrecord /usr/bin/cdrdao /usr/bin/cdparanoia

# Some GTK programs HAVE to run as root. :-/

for i in `egrep -q -l -r -e '(xcdroast|ethereal)' /usr/share/applnk/.`; do
perl -pi -e 's|Exec=/|Exec=sudo /|g' "$i"
done

# Replace kdesu (needs password) by sudo (doesn't)
for i in `grep -q -l -r 'Exec=.*kdesu' /usr/share/applnk/.`; do
perl -pi -e 's|Exec=.*kdesu |Exec=sudo -H |g' "$i"
done

# Remove -ncp in xboard startup file
for i in `grep -q -l -r 'Exec=.*xboard.*-ncp' /usr/share/applnk/.`; do
perl -pi -e 's| -ncp||g' "$i"
done

for i in "alias net-pf-17 af_packet" "alias ide_cs ide-cs" "alias usbcore off" "alias autofs autofs4"; do
grep -q "$i" /etc/modutils/aliases || { echo "$i" >> /etc/modutils/aliases; update-modules; }
done

#for i in "vendor 0x055d product 0x9001 module pwc"; do
#grep -q "$i" /etc/usbmgr/usbmgr.conf || echo "$i" >> /etc/usbmgr/usbmgr.conf
#done

#blivius# # Euro font stuff
#blivius# perl -pi -e 's/iso8859-1( |$)/iso8859-15$1/g' /etc/X11/fonts/misc/xfonts-base.alias && update-fonts-alias /usr/lib/X11/fonts/misc

$ cat Knoppix.clean
#!/bin/sh
umask 022

/etc/init.d/autofs stop

# remove only "temporary" or saved files in the given directories
nuke(){
for i in `find "$@" -name \*.gz -o -name \*.bz2 -o -name \*.0 -o -name \*.0.log -o -name browse.dat 2>/dev/null`; do
rm -f "$i"
done
}

# set all files in the given directories to a length of zero
zero(){
for i in `find "$@" -type f -size +0 -not -name \*.ini 2>/dev/null`; do
:> "$i"
done
}

rmdir /mnt/cdrom?* /mnt/hd?* 2>/dev/null
rm -f /etc/ifstate /etc/X11/XF86Config /etc/X11/XF86Config-4 \
/etc/XF86Config /etc/XF86Config-4 /etc/sysconfig/* \
/etc/ssh/*key* \
/etc/samba/*.SID /var/lib/samba/* /var/cache/samba/* /etc/samba/*.tdb \
/dev/mouse* /dev/cdrom* /dev/cdwriter* \
/var/run/*/* /var/run/* /var/log/ksymoops/* /var/lock/*/* /var/lock/* \
/var/state/*/* /var/state/* /var/log/nessus/* /var/lib/nessus/* \
/halt /reboot /ash.static /etc/dhcpc/*.info /etc/dhcpc/resolv* \
/etc/resolv.conf /etc/*passwd- /etc/*shadow- /etc/*group- 2>/dev/null
mkdir -p /etc/sysconfig/network-scripts /etc/sysconfig/provider
cat >/etc/dhcpc/resolv.conf <<EOT
# insert nameservers here
# nameserver 127.0.0.1
EOT
chmod 644 /etc/dhcpc/resolv.conf
ln -s /etc/dhcpc/resolv.conf /etc/
rm -rf /tmp/* /var/tmp/* /var/backups/* /.ssh /root/.ssh /home/*/.ssh \
/root/.bash_history /home/*/.bash_history \
/home/knoppix/* /home/knoppix/.??* /var/lib/texmf/ls-R \
/var/spool/texmf/ls-R /var/run/screen/*
nuke /var/log /var/cache
zero /var/local /var/log /var/spool /var/mail \
/var/lib/games /var/cache/man /var/lib/wine \
/var/lib/nfs /var/lib/xkb

for i in `find /usr/*/man -name \*.\[0-9ln\]` ; do
[ -f "$i".gz -o -f "$i".bz2 ] && rm -f "$i"
done

# delete old dowloaded packages
apt-get clean

# Recreate empty utmp and wtmp
:>/var/run/utmp
:>/var/run/wtmp
# regenerate module dependencies and ls.so.cache
echo -n "Updating ld.so.cache..."
ldconfig
echo " Done."
echo -n "Updating modules.dep..."
depmod -a 2>/dev/null
echo " Done."
echo -n "Updating texhash..."
mktexlsr
echo " Done."
echo -n "Updating mandb..."
mandb -c
man doesnotexist >/dev/null 2>&1
echo " Done."
echo -n "Updating menus..."
/usr/sbin/mkmenusfromkde
echo " Done."
echo -n "Updating locate-database..."
updatedb --prunepaths="/KNOPPIX.build /mnt/hd /mnt/cdrom /tmp /usr/tmp /var/tmp"
echo " Done."

echo -n "Fixing permissions in /dev/..."
chown root.root /dev/ttyp*
chmod 666 /dev/ttyp* /dev/sg* /dev/audio* /dev/dsp* /dev/mixer* /dev/sequencer*
echo " Done".

echo -n "Removing unused architecture Kernel sources: "
for i in `ls -1 /usr/src/linux/arch/ | grep -v i386`; do
echo -n "$i "; rm -rf /usr/src/linux/arch/"$i" /usr/src/linux/include/asm-"$i"
done
echo " Done."

echo -n "Creating auto.mnt..."
cat >/etc/auto.mnt <<EOT
# Knoppix automounter file for Directory /mnt/auto
# umask=000 only works for msdos/vfat floppies, but otherwise the floppy is read-only.
floppy -fstype=auto,user,exec,umask=000 :/dev/fd0
cdrom -fstype=auto,user,exec,ro :/dev/cdrom
# The following entries (if any) are auto-generated by knoppix-autoconfig
EOT
echo " Done".
echo "Setting OpenOffice Link to default EN"
rm -f /etc/alternatives/soffice.resource ; ln -sf /opt/openoffice/program/resource-en /etc/alternatives/soffice.resource

$ cat Knoppix.mkcompressed
#!/bin/bash

DEST="$1"

[ -z "$DEST" -o ! -d "$DEST" ] && { echo "Usage: $0 DESTINATIONDIR" >&2 ; exit 1; }
[ ! -x /usr/bin/create_compressed_fs ] && { echo "Need /usr/bin/create_compressed_fs." ; exit 1; }

# Compression blocksize (must be multiple of 512)
# All block headers must fit into a kmalloc segment (ca. 130000 bytes)
BLOCKSIZE=65536
# BLOCKSIZE=53248
# BLOCKSIZE=102400

echo -n "Update Bootfloppy file(s)? "
read answer
if [ "$answer" = "y" ]; then
cp -uv /KNOPPIX.build/Knoppix.System/bootdisk/Knoppix/boot-*.img "$DEST"/KNOPPIX/
( cd "$DEST"/KNOPPIX && ln -f -v boot-de.img boot.img ) || exit 1
fi

[ ! -f "$DEST"/KNOPPIX/boot.img ] && { echo "Missing required file $DEST/KNOPPIX/boot.img" >&2 ; exit 1; }

echo -n "Recreate KNOPPIX compressed FS? "
read answer
if [ "$answer" = "y" ]
then
rm -f "$DEST"/KNOPPIX/KNOPPIX

# Remove files that need to be autogenerated from source dir!
echo -n "Sweep/Clean system before remastering? "
read answer
[ "$answer" = "y" ] && { . /KNOPPIX.build/Knoppix.postupgrade; . /KNOPPIX.build/Knoppix.clean; }

cat >/etc/network/interfaces <<EOT
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback

EOT

cat >/etc/dhcpc/resolv.conf <<EOT
# Insert nameservers here
# nameserver 127.0.0.1
EOT

#blivius# # Mount root read-only, so no files change while generating image
#blivius# mount -o ro,remount / || { echo "Error: Cannot mount / read-only" >&2 ; exit 0; }

# Hide unwanted LOCALEs.
HIDELOCALE=""
HIDEMAN=""
MYLOCALE=$(awk -F'[="_]' '/^(LANG|LANGUAGE)=/{if(!/[$]/){x=x" "$3}}END{print x}' /etc/init.d/knoppix-autoconfig)
MYLOCALE="$MYLOCALE C en uk fi ja be"
LOCALEDIR=/usr/share/locale
MANPAGEDIR=/usr/share/man
for LOCALE in `/bin/ls -1 $LOCALEDIR`; do
[ -d "$LOCALEDIR/$LOCALE/LC_MESSAGES" ] || continue
FOUND=""
for l in $MYLOCALE; do
case "$LOCALE" in $l*) FOUND="yes" ;; esac
done
if [ -z "$FOUND" ]; then
HIDELOCALE="$HIDELOCALE -m $LOCALEDIR/$LOCALE"
[ -d "$MANPAGEDIR/$LOCALE" ] && HIDELOCALE="$HIDELOCALE -m $MANPAGEDIR/$LOCALE"
fi
done

# -U implies: -d, -l, -L, -N, -relaxed-filenames, -allow-lowercase,
# -allow-multidot and -no-iso-translate
# -iso-level 3 -U -cache-inodes -no-bak -pad \
# -hide-rr-moved \
# -m /var/lib/dpkg/available\* \
SORT=""
[ -e /KNOPPIX.build/mkisofs.sort ] && SORT="-sort /KNOPPIX.build/mkisofs.sort"
# mkisofs -pad -R -l -v $SORT \
mkisofs -R -U -v $SORT \
-V "KNOPPIX ISO9660 Filesystem" \
-P "Knopper.Net http://www.knopper.net/" \
-p "Klaus Knopper <knoppix@knopper.net>" \
-hide-rr-moved -cache-inodes -no-bak -pad \
-m /proc/\* -m /tmp/\* -m /var/tmp/\* -m /home/\* -m /initrd/\* \
-m /KNOPPIX.build -m /mnt/\*/\* -m \*.dpkg-\* \
-m /mnt/hd/\* -m /mnt/hd\* -m /mnt/cdrom\* -m /etc/fstab\* \
-m /etc/sysconfig/\* -m /etc/exports -m /etc/dhcpc/dhcpcd\* \
-m /var/spool/mail/\* -m /var/spool/mqueue/\* \
-m /etc/driveprm -m .ssh -m .bash_history \
-m /etc/printcap\* -m /var/spool/cups/tmp/\* \
-m /etc/cups/certs/\* -m /etc/cups/\*.O -m /etc/cups/ppd/\* \
-m /etc/gpm.conf -m /etc/isapnp.\* -m /etc/minirc.dfl \
-m /var/cache/debconf/\*-old -m /var/lib/\*/\*- \
-m /var/lib/\*/\*-old -m /var/log/XFree86.\* \
-m /var/samba/\*.pid -m /var/lib/samba/\* -m /var/cache/samba/\* \
-m /var/mail/\* -m /var/apt/cache/archives/lock \
-m /var/log/ksymoops\* -m /var/spool/exim/db/\* -m /etc/\*.old \
-m /etc/\*.save -m /etc/ssl/certs/\* -m \*.preserved \
-m .viminfo -m .\*.swp -m lost+found \
-m /.\?\?\* -m /root/.\?\?\* -m /etc/.\?\?\* \
-m /boot/map -m /boot/boot.0\* \
-m /usr/src/kernel\*.deb -m /usr/src/kernel\*.dsc -m /usr/src/kernel\*.changes -m /usr/src/kernel\*.tar.gz \
-m /usr/src/modules/pcmcia\* \
-m /usr/src/linux\*/drivers \
-m /usr/src/linux\*/fs \
-m /usr/src/linux\*/init \
-m /usr/src/linux\*/mm \
-m /usr/src/linux\*/net \
-m /usr/src/linux\*/vmlinu\* \
-m /usr/src/linux\*/System.map \
-m /usr/src/linux\*/ipc \
-m /usr/src/linux\*/kernel \
-m /usr/src/linux\*/lib \
-m /usr/src/linux\*/Rules.make \
-m /usr/src/linux\*/scripts \
$HIDELOCALE \
/ \
| nice -5 /usr/bin/create_compressed_fs - $BLOCKSIZE \
>"$DEST"/KNOPPIX/KNOPPIX || exit 1
mount -o rw,remount /
chmod 444 "$DEST"/KNOPPIX/KNOPPIX
# swapoff /dev/hdc2 2>/dev/null
fi

mkfinal(){
TARGET="$1.iso"
# Alternate boot record
# -eltorito-alt-boot \
# -b KNOPPIX/boot-en.img -c KNOPPIX/boot.cat \
mkisofs -pad -l -r -J -v \
-sort /tmp/knoppix.sort \
-V 'KNOPPIX' -A 'KNOPPIX CD-ROM' \
-P "KNOPPER.NET http://www.knopper.net/" \
-p "KNOPPIX CD-ROM Taskforce <knoppix@knopper.net>" \
-b KNOPPIX/boot.img -c KNOPPIX/boot.cat \
-hide-rr-moved \
-o "$TARGET" "$DEST"
}

#blivius# echo -n "Recreate KNOPPIX-DE isofile '$DEST.iso'? "
echo -n "Skipping over german version"
#blivius# read answer
answer=y
if [ "$answer" = "y" ]; then
# Make sure that the boot floppy file is at the beginning of the image.
# Some controllers seem to depend on this.
rm -f /tmp/knoppix.sort
echo "$DEST/KNOPPIX/boot.img 100002" >/tmp/knoppix.sort
echo "$DEST/KNOPPIX/KNOPPIX 100001" >>/tmp/knoppix.sort
echo "$DEST/Demos/Audio/*.mp3 -100000" >>/tmp/knoppix.sort
echo "$DEST/Demos/Audio/*.ogg -100000" >>/tmp/knoppix.sort
# Make final CD Image
## echo mkfinal "$DEST" ## echo added by blivius to disable

echo -n "Recreate KNOPPIX-EN isofile '$DEST-EN.iso'? "
read answer
if [ "$answer" = "y" ]; then
( cd "$DEST"/KNOPPIX && ln -f -v boot-en.img boot.img ) || exit 1
mkfinal "$DEST-EN"
( cd "$DEST"/KNOPPIX && ln -f -v boot-de.img boot.img ) || exit 1
fi
rm -f /tmp/knoppix.sort
fi

echo -n "BURN german CD version? "
read answer
if [ "$answer" = "y" ]; then
echo disabled by blivius, it wants to do...
echo cdrecord -v -pad -eject dev=0,1,0 speed=16 fs=24M "$DEST.iso"
fi

Tech2k
11-16-2002, 11:01 PM
Thanks for sharing that info blivius :wink:

I thinks its wonderful to have both eadz manual remaster howto and your knoppix.build howto all on one page.This site rox!

aay
11-20-2002, 05:14 PM
I stumbled upon this site http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/gnumed/gnumed/gnumed/test-area/knoppix/readme.html which has a bit of info on remastering. He has some helpful scripts which consolidates some of the steps in eadz's howto.

As more and more info is gathered on remastering, it would be really cool to have these things consolidated into a single (or series) customization script(s) that would walk one through the whole remastering process.

Jamie Nelson
11-25-2002, 11:02 PM
Hi, I've been trying to remaster the KNOPPIX CD and even though I change the desktop wallpaper it always changes back to the knoppix.gif. It manages to save the other wallpaper fine when I use floppyconfig.

Does anyone have a solution to this?

eadz
11-28-2002, 10:49 AM
Hi, I've been trying to remaster the KNOPPIX CD and even though I change the desktop wallpaper it always changes back to the knoppix.gif. It manages to save the other wallpaper fine when I use floppyconfig.

Does anyone have a solution to this?

The desktop file is stored in mutiple locations, you'll have to replace them all.
type :
locate knoppix.gif

Jamie Nelson
11-29-2002, 03:19 PM
The desktop file is stored in mutiple locations, you'll have to replace them all.
type :
locate knoppix.gif

Does this mean that the new wallpaper has to be saved as knoppix.gif in all those places or can all the knoppix.gifs be just deleted?

eadz
11-30-2002, 02:15 AM
you have to save it in all the places

12-02-2002, 01:12 PM
Hi, I've been trying to remaster the KNOPPIX CD and even though I change the desktop wallpaper it always changes back to the knoppix.gif. It manages to save the other wallpaper fine when I use floppyconfig.

Does anyone have a solution to this?

knoppix stores its default wallpaper at two places: /usr/local/lib/knoppix.gif, but modifying this is not enough, as you pointed. try to change KNOPPIX/knoppix.gif , directly on the cdrom.
(right besides boot.img, etc.)

linuxfan

eadz
12-04-2002, 01:02 PM
One non-essential piece is missing and that is /KNOPPIX.build/mkisofs.sort
this is a file the determines in what order things get placed on
the CD. I believe Klaus has some way of generating this file.
But it is not clear to me how he did it. Feed back is welcome on this point.



found how to make it :

from http://mailman.linuxtag.org/pipermail/debian-knoppix/2002-May/000400.html

someone asked about the file :

> -------------
> 4. mkisofs.sort
> Where can I get this file? (it is needed by knoppix.mkcompressed) I
> didn't find it on the CD. And are there other scripts/tools necessary or
> recommended for building the KNOPPIX CD?

Klaus replied :

I use the atime timestamp from the files on the master system to
generate the sortlist, but there are probably better ways. The results
may vary, so you may just leave out the -sort option at all and get
an even faster CD.

12-24-2002, 07:32 PM
Thanks for the howto on remastering knoppix. This is something that I'd really like to do. However if having 1.5 Gig of RAM is a requrirement for this proceedure, it's doubtful that many people will be able to do this. Maybe I misunderstood you. Were you saying that the total amount of RAM and swap needs to add up to 1.5 gig? That's certainly more reasonable.

The total of SWAP and RAM added together needs to be 1.5Gig. so you'll do fine with 256MB ram and 1.25 gig swap.

Well, I don't think so :) I've created my own knoppix succesfully in a notebook P-II 266 with 160 Mb + 160 Mb swap. Greetings for de how2, it's very good

javafreak
12-30-2002, 04:32 PM
Anyone found the answer yet? This is the last problem I'm having, and I'm dying to finish my remastered Knoppix CD!

luro95
12-31-2002, 05:09 AM
I successful remaster KNOPPIX, I installed new theme styles, icons,background,etc...
but I like change the icons and style default on my new ISO, so my question is: how can I change on shell console preferences on KDE,and make KDE use them on my new iso cd? I need some HOW TO. Thanks!

A. Jorge Garcia
01-05-2003, 04:34 AM
Is this remastering howto differrent than the one on the FAQ/WIKI page?

eadz
01-05-2003, 08:47 AM
Is this remastering howto differrent than the one on the FAQ/WIKI page?

Slightly older.. best use the wiki one at http://www.knoppix.net/docs/index.php/KnoppixRemasteringHowto

esprout
01-23-2003, 10:48 PM
I'd like to put some extra big files on the knoppix boot disk, some vmware images :D

That stuff will not fit into the 700M of a CD. I created an image (which ended up being about 1G) using the regular remastering instructions. When I tried to boot, I get an error during boot:

Accessing KNOPPIX CDROM at /dev/scd0.../modules/cloop.o: init_module:
Hint: insmod errors can be caused by incorrect modules parameters, including invalid IO or IRQ parameters
Can't find KNOPPIX filesystem, sorry.
Dropping you to a (very limited) shell.
Press reset button to quit.

...

Does anyone know how to make KNOPPIX work off of a DVD? It'd allow me to put tons more stuff on that disk. Whoot.

01-29-2003, 06:18 AM
Has anyone ported the filesystem image prep tools (compress/expand) from cloop to DOS or Windows? It sure would make it easier for us mostly-Windows-users to make small changes/additions to the KNOPPIX file, using Windows-based ISO editors.