|
发表于 2008-2-11 17:55:08
|
显示全部楼层
knoppix使用udev+hwsetup实现automatic hardware detection,把knoppix安装到硬盘后仍然具有这种能力。由于knoppix是基于debian的,我们可以通过把knoppix的相关软件包安装到debian上使其也具有这种自动硬件探测能力。
我把hwsetup安装到debian上面,开机仍然没有出来knoppix自动探测硬件的画面。经过多次仔细观察knoppix的硬盘安装运行情况,发现knoppix下有一个knoppix-autoconfig脚本开机运行。这个脚本属于knoppix-initscripts这个包,把这个包装上,然后让knoppix-autoconfig脚本开机运行就可以了。具体步骤如下:
1、编辑/etc/apt/sources.list,加入如下条目:
# KNOPPIX Precompiled binaries
deb http://debian-knoppix.alioth.debian.org ./
2、运行apt-get update
3、安装如下的软件包:
[root@sid tmp]# cat /home/zhangshoug/packages.txt
ii console-tools 1:0.2.3dbs-65 Linux console and font utilities
ii alsa-utils 1.0.14-2 ALSA utilities
ii hal 0.5.9.1-6 Hardware Abstraction La yer
ii udev 0.114-2 /dev/ and hotplug manag ement daemon
ii hwsetup 1.2-7 Automatic hardware setu p using the kudzu lib
ii ddcxinfo-knoppix 0.6-8 Monitor/Graphics card D DC hardware detection
ii hwdata-knoppix 0.172-5 hardware identification / configuration data
ii knoppix-initscripts 0.5-16 KNOPPIX startup/shutdow n/autoconfig init scr
ii knoppix-installer 0.3.19.20 installs knoppix to hd
ii mount-ntfs-knoppix 0.5-7 mounts and manages ntfs partitions via fuser
ii netcardconfig-knoppix 0.5-23 Minimalistic ncurses/di alog-based network co
ii rebuildfstab-knoppix 0.5-10 fstab-rebuilder for KNO PPIX
ii scanpartitions-knoppix 0.5-17 fstab-helper for KNOPPI X
ii soundcardconfig-knoppix 0.5-2 Starts sndconfig as roo t
ii usleep-knoppix 0.5-1 sleeps for a number of microseconds, see man
ii xorgconfig-knoppix 1:0.9-12 Xorg template config fi les and setup program
ii ntfs-3g 1:1.913-1 read-write NTFS driver for FUSE
[root@sid tmp]#
4、在/etc/rcS.d/目录建立启动脚本的链接:
[root@sid tmp]#cd /etc/rcS.d/
[root@sid rcS.d]#ln -s S00knoppix-hd-autoconfig ../init.d/knoppix-hd-autoconfig |
|