AUTHOR: Sylvie Migneault DATE: 2005-11-20 LICENSE: GNU Free Documentation License Version 1.2 SYNOPSIS: finnix-remastering-HOWTO DESCRIPTION: This is a guide that will show you how to remaster finnix-86.1-pre1.iso Note: commands should appear on one line, after the symbol # PREREQUISITES: - at least 512 MB of FREE RAM+Swap total (e.g. 128M ram, and 384M swap AVAILABLE) - 1 GB free on a Linux filesystem formatted disk partition - Host System with SquashFS supported - squashfs-tools - mkisofs - link: http://squashfs.sourceforge.net HINT: Contents -------- 1. Host System Requirements 2. LiveCD's structure 3. My working environment 4. Mount the work partition, create directories 5. Uncompress FINNIX file 6. Copy CD's contents into fxcd 7. Install mksquashfs 8. chroot into fxhd 9. Install any programs (example) 10. Modify the "finnix-autoconfig" file 11. Compress FINNIX file 12. Do md5sum of FINNIX file 13. Create ISO file 14. Burn and test 1. Host System Requirements ------------------------ I use finnix-86.1-pre1 because SquashFS is supported by the kernel. If you want to use your Linux system, patch your kernel with SquashFS. 2. LiveCD's structure ------------------ /FINNIX/FINNIX /FINNIX/md5sums /isolinux/boot.cat /isolinux/config-2.6.14-finnix.gz /isolinux/f1 /isolinux/f2 /isolinux/f3 /isolinux/isolinux.bin /isolinux/isolinux.cfg /isolinux/linux /isolinux/logo16 /isolinux/memtest /isolinux/minirt I work with "FINNIX" file 3. My working environment ---------------------- /dev/hdd my CD device /dev/hdc my writer device /cdrom content of finnix-86.1-pre1 /mnt/hdb5 my working partition /mnt/hdb5/fxcd content of final CD /mnt/hdb5/fxhd chroot environment /mnt/hdb5/fxiso content of ISO files /mnt/hdb5/fxtmp tempory directory 4. Mount the work partition, create directories -------------------------------------------- Boot from the finnix liveCD # mount /dev/hdb5 /mnt/hdb5 # cd /mnt/hdb5 # mkdir fxcd fxhd fxiso fxtmp 5. Uncompress FINNIX file ---------------------- # cd /cdrom/FINNIX # mount FINNIX /mnt/hdb5/fxtmp -o loop # cd /mnt/hdb5/fxtmp # cp -Rp * /mnt/hdb5/fxhd # cd .. # umount fxtmp/ 6. Copy LiveCD's content into fxcd ------------------------------- # cd /cdrom # cp -Rp * /mnt/hdb5/fxcd # cd /mnt/hdb5/fxcd/FINNIX # rm -fr FINNIX 7. Install mksquashfs ------------------ install mksquashfs into host system # dpkg -i squashfs-tools_2.2r2-1_i386.deb or configure your internet connection # apt-get install squashfs-tools 8. chroot into fxhd ----------------- # chroot /mnt/hdb5/fxhd 9. Install any programs (examples) ------------------------------- # dpkg -i foo.deb or configure your internet connexion # apt-get install mc # apt-get install squashfs-tools # apt-get install locales and configure the locales ... # apt-get clean for exit the chroot environment, do exit or CTRL-D # exit 10. Modify the "finnix-autoconfig" file ----------------------------------- # cd /mnt/hdb5/fxhd/etc/init.d # nano finnix-autoconfig This is an example for the French Canadian users: ********Example-Begin************************************************** modify the section "Nice default US-centric config" by # French Canadian users config LANGUAGE="fr" COUNTRY="ca" LANG="fr_FR.ISO-8859-1" KEYTABLE="cf" CHARSET="iso8859-1" CONSOLEFONT="lat1-16" TZ="America/Montreal" at the section "Default keyboard layout for console and X", add echo "CONSOLEFONT=\"$CONSOLEFONT\"" >> /etc/sysconfig/keyboard at the section "Write all, including non standard variables, ...", add echo "CONSOLEFONT=\"$CONSOLEFONT\"" >> /etc/sysconfig/finnix at the section "OpenOffice & others", modify echo "LC_ALL=\"$LC_ALL\"" >> /etc/environment by echo "LC_MESSAGES=\"$LC_MESSAGES\"" >> /etc/environment ***********Example-End************************************************** 11. Compress FINNIX file -------------------- # cd /mnt/hdb5 # mksquashfs fxhd/ /mnt/hdb5/fxcd/FINNIX/FINNIX 12. Do md5sum of FINNIX file ------------------------------- # cd fxcd/FINNIX # md5sum FINNIX use nano for editing the /mnt/hdb5/fxcd/FINNIX/md5sums file 13. Create iso file --------------- Create ISO file with this command: # cd / # mkisofs -pad -l -r -J -v -V "Finnix" -no-emul-boot -boot-load-size 4 -boot-info-table \ -b isolinux/isolinux.bin -c isolinux/boot.cat -hide-rr-moved \ -o /mnt/hdb5/fxiso/finnix-remaster.iso /mnt/hdb5/fxcd 14. Burn and test ------------- # cd /mnt/hdb5/fxiso # cdrecord dev=/dev/hdc speed=52 -dao finnix-qc.iso «Have a fun!» ;-) ACKNOWLEDGEMENTS: Team of Finnix http://www.finnix.org/ All users wich contribute at the OpenSource project. :-) CHANGELOG: [2005-11-20] * Initial hint.