Memo REMASTERING KNOPPIX

FIXME First work by VERHILLE Arnaud copyright FDL

Boot on the knoppix CD then

Put the whole Knoppix filesystem on HD

su -
mount -o rw /dev/hde2 /mnt/hde2
mkdir /mnt/hde2/knx
mkdir /mnt/hde2/knx/source

mkdir /mnt/hde2/knx/master
mkdir /mnt/hde2/knx/source/KNOPPIX
mkdir /mnt/hde2/knx/master/KNOPPIX
cp -Rp /KNOPPIX/* /mnt/hde2/knx/source/KNOPPIX

Get 1Go of virtual Memory

Create a 800Mbyte file :

dd if=/dev/zero of=/mnt/hda6/swapfile bs=1024 count=800k
mkswap /mnt/hda6/swapfile

Activate swap

swapon /mnt/hda6/swapfile

Destroy swapfile

swapoff /mnt/hda6/swapfile
rm -rf /mnt/hda6/swapfile

Now you can

Chroot Knoppix filesystem

xhost + 127.0.0.1
su -
umount /mnt/hde2;mount -o rw /dev/hde2 /mnt/hde2
chroot /mnt/hde2/knx/source/KNOPPIX/
mount -t proc /proc proc
export DISPLAY=127.0.0.1:0

Configuring Internet access

joe /etc/resolv.conf

Add at the end of the file : nameserver 193.252.19.3

Apt-get

Update index
apt-get update

Add more pkg
apt-get install pkg

Remove pkg
apt-get remove pkg

Clean up pkg
apt-get clean

Packages listed by size
dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -n > pkg.txt

Remove orphaned package
deborphan >orphaned; dpkg -P `cat orphaned`

Remove package configuration
COLUMNS=200 dpkg -l | grep ^rc | awk '{print $2}' > topurge; dpkg -P `cat topurge`

XFCE4-Rox Configuration

Get Oscillation's packages; Add the following in /etc/apt/sources.list :

# Packages from Oscillation archives (Xfce4+Rox)
deb http://www.os-works.com/debian testing main
deb-src http://www.os-works.com/debian testing main

Default desktop and lang choices :

/KNOPPIX/etc/init.d/knoppix-autoconfig

Need to adapt startxfce4 script in :

/KNOPPIX/etc/X11/Xsession.d/45xsession

/home/knoppix files should put here : /etc/skel

Add CUPS initialization : /usr/bin/configure_printer

Last configuration can be put in : /knx/master/KNOPPIXConfig.tar.bz2

Rox Freedesktop mime-types

/mnt/archive/knx/source/KNOPPIX/usr/share/mime/packages/
update-mime-database /usr/share/mime

Knosciences shortcuts

Examples  :/usr/share/knosciences
Docs : /usr/share/doc/knosciences
AppDirs : /usr/share/Apps/
Icons : /usr/share/pixmaps/knosciences

JAVA JRE : /usr/lib/java
JAVA Apps : /usr/share/java/

Where is desktop boot screen ?

/mnt/hde2/knx/master/KNOPPIX/background.jpg

/mnt/hde2/knx/source/KNOPPIX/usr/share/xfce4/backdrops/background.jpg

How-to build a debian .deb

mkdir /opt
cd nom-version
export DEBFULLNAME="VERHILLE Arnaud"
export DEBEMAIL="gist@wanadoo.fr"
dh_make

gunzip -cd <../patch.gz | patch -p1

LaTeX fonts under Debian

joe /etc/texmf/updmap.d/00updmap.cfg
update-updmap
updmap

Do not forget when quitting chroot

rm -rf /var/cache/apt/archives/*
umount /proc
then press Ctrl-D
rm -rf /mnt/hde2/knx/source/KNOPPIX/var/tmp/*
rm -rf /mnt/archive/knx/source/KNOPPIX/root
mkdir /mnt/hde2/knx/source/KNOPPIX/root

Modifying Boot Screen

  a) Boot logo

logo.16 is the image displayed on boot screen. It is encoded in a special format. For replacing it grab a 640*400 16 color image. I downloaded an image from gnu.org. Convert the image to a png file ( call it logo.png)

#pngtopnm <logo.png >logo.pnm #ppmtolss16 <logo.pnm >logo.16 #cp logo.16 /mnt/hda3/image/logo.16

 
(Keep the size of the final log.16 around 50 k). Unmount image directory. Copy the boot.img to a floppy
 #dd if=boot.img of=/dev/fd0

Boot the machine from the floppy you have made. If it boots up properly you are done

Build a bootable knoppix CD iso

cp /mnt/hde2/knx/source/KNOPPIX/usr/bin/create_compressed_fs /usr/bin/

Methode 1

cd /mnt/hde2/knx/source/KNOPPIX; mkisofs -R -V "KNOPPIXFS" -P "KNOSCIENCES" ./  |  create_compressed_fs - 65536  > /mnt/hde2/knx/master/KNOPPIX/KNOPPIX

Methode 2

cd /mnt/hde2/knx/source/KNOPPIX ; mkisofs -R -U -V "KNOSCIENCES" -publisher "GISTLABS" -hide-rr-moved -cache-inodes -no-bak -pad ./ | nice -5 /usr/bin/create_compressed_fs - 65536 > /mnt/hde2/knx/master/KNOPPIX/KNOPPIX

Build final iso

cd /mnt/hde2/knx/master/; mkisofs -pad -l -r -J -v -V "KNOSCIENCES" -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -hide-rr-moved -no-emul-boot -boot-load-size 4 -boot-info-table -o /mnt/hde2/knx/Knosciences_tmp.iso /mnt/hde2/knx/master

Burn iso

cdrecord -v speed=24 dev=0,0,0 /mnt/hde2/knx/Knosciences_tmp.iso
knosciences/knosciences_memo.txt · Dernière modification: 2013/06/13 03:12 (modification externe)
 
Sauf mention contraire, le contenu de ce wiki est placé sous les termes de la licence suivante : GNU Free Documentation License 1.3
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki