How I built Knoppix from Scratch
Hello Everyone,
Here is how I built Knoppix from scratch:
debootstrap sid /mnt/hda3
chroot /mnt/hda3
mount -t proc /proc proc
mkdir /etc/dhcpc
vi /etc/resolv.conf
vi /etc/fstab
vi /etc/apt/sources.list
mv /etc/inittab /etc/inittab.debian
apt-get update
apt-get -t experimental install x-window-system x-window-system-core
vi /etc/X11/Xsession
comment set -e and all of WRITE_TEST
chmod 755 /etc/X11/xinit/xinitrc
apt-get install hwsetup kudzu-knoppix kudzu-knoppix-vesa
mkdesktophdicons-knoppix hotplug knoppix-remountrw
scanpartitions-knoppix rebuildfstab-knoppix saveconfig-knoppix
mouseconfig netcardconfig-knoppix networkconfig-knoppix
mkdosswapfile-knoppix usleep-knoppix ppp-scripts-knoppix
user-profile-knoppix mkpersistenthome-knoppix testdisk
soundcardconfig-knoppix rootshell-knoppix sudoers-knoppix
sshstart-knoppix syslinux-knoppix sitar genliloconf knoppix-hdinstall
ddcxinfo-knoppix kbdconfig etcskel-knoppix netpipes ash-knoppix
automount-knoppix checkmem xf86config-knoppix xsession-knoppix
xsession-initscript-knoppix knx-live-inst knoppix-terminalserver
gprsconnect-knoppix wlcardconfig-knoppix lilo module-init-tools
debhelper aumix-gtk slocate
rm -fr /etc/inittab
apt-get install sysvinit
dpkg --force-overwrite -i
/var/cache/apt/archives/sysvinit_2%3a2.84-186_i386.deb
groupadd knoppix
useradd knoppix -g knoppix -G cdrom,audio,video,users,sudo
Install the kernel(build out of chroot, then copied into chroot)
cd /usr/src
dpkg -i kernel-image-2.6.9-chw-1_10.00.Custom_i386.deb
kernel-headers-2.6.9-chw-1_10.00.Custom_i386.deb
acx100-2.6.9-chw-1_0.2.0pre8+37-2+10.00.Custom_i386.deb bcm*
cloop-module-2.6.9-chw-1_2.01.5-1+10.00.Custom_i386.deb
hwsetup_1.0-14_i386.deb ipw2* loop-aes_2.1c-1_i386.deb
madwifi-module-2.6.9-chw-1_20041027-1+10.00.Custom_i386.deb
ndiswrapper-utils_0.11_i386.deb
dpkg --force-overwrite -i ndiswrapper-modules_0.11-2.6.9-chw-1_i386.deb
dpkg --force-overwrite -i linux-wlan-ng_0.2.1pre23-1_i386.deb
dpkg --force-overwrite -i orinoco_0.15rc2-1_i386.deb
vi /etc/init.d/knoppix-autoconfig
change to choice of desktop (twm as it is the only one available)
case "$DESKTOP" in
gnome|enlightenment|kde|larswm|xfce|xfce4|windowmaker|wmaker|
icewm|fluxbox|twm|nx|rdp|kiosk) ;; *) DESKTOP="twm"; ;; esac
apt-get install rsync pump alsa-base alsa-utils alsa-headers alsaplayer
alsaplayer-alsa libasound2 libasound2-dev alsamixergui alsa-oss
need snddevices from alsa-drivers to create /dev/snd entries
ldconfig
depmod -a
updatedb
apt-get clean
umount /proc
exit
I then used Fabian's remastering to create the compressed fs and ISO.
I didn't need to install knx-alsa for as ALSA just worked! However if I
don't install knx-alsa(recompiled for installed kernel), knoppix alsa
doesn't work. ALSA doesn't work with multiple cards either?! I also
tried Kano's updated hwdata,hwsetup and kudzu, however X wouldn't
start. Does anyone have suggestions on getting ALSA working in a better
manner?
Thanks,
Cecil
Reply to: