本文假定你对Linux系统有了解,具备一定的计算机知识,文中所提的是简化的步骤转ROOT用户
sudo -s
装编译软件 GCC 库
sudo apt-get install build-essential bin86 kernel-package libqt3-headers libqt3-mt-dev wget libncurses5 libncurses5-dev
进入已经下载好的内核 解压 下载:
cd
内核配置
make menuconfig
第二次包括第二次后编译请
make-kpkg clean
自定义名称(小写,数字)
sudo make-kpkg -initrd --initrd --append-to-version=自定义名称 kernel_image kernel-headers
然后等估计好久,电脑好就快(我花了30分钟)
最后在上目录有2个DEB包
其中Linux-headers 开发人员有用
另外一个就不用说了吧
双击安装 ,命令
sudo dpkg -i Linux-image-包的名称
看看我的结果
dpkg-shlibdeps: warning: dependency on libncurses.so.5 could be avoided if “/home/heray/Downloads/Linux-2.6.33/debian/Linux-headers-2.6.33inspiron1464/usr/src/Linux-headers-2.6.33inspiron1464/scripts/kconfig/conf” were not uselessly linked against it (they use none of its symbols).
test ! -e debian/control~ || rm -f debian/control~
dpkg-gencontrol -isp -DArchitecture=amd64 -pLinux-headers-2.6.33inspiron1464 \
-P/home/heray/Downloads/Linux-2.6.33/debian/Linux-headers-2.6.33inspiron1464/
create_md5sums_fn () { cd $1 ; find . -type f ! -regex ‘./DEBIAN/.*’ ! -regex ‘./var/.*’ -printf ‘%P\0′ | xargs -r0 md5sum > DEBIAN/md5sums ; if [ -z "DEBIAN/md5sums" ] ; then rm -f “DEBIAN/md5sums” ; fi ; } ; create_md5sums_fn /home/heray/Downloads/Linux-2.6.33/debian/Linux-headers-2.6.33inspiron1464
chown -R root:root /home/heray/Downloads/Linux-2.6.33/debian/Linux-headers-2.6.33inspiron1464
chmod -R og=rX /home/heray/Downloads/Linux-2.6.33/debian/Linux-headers-2.6.33inspiron1464
dpkg –build /home/heray/Downloads/Linux-2.6.33/debian/Linux-headers-2.6.33inspiron1464 ..
dpkg-deb: building package `Linux-headers-2.6.33inspiron1464′ in `../Linux-headers-2.6.33inspiron1464_2.6.33inspiron1464-10.00.Custom_amd64.deb’.
cp -pf debian/control.dist debian/control
make[2]: Leaving directory `/home/heray/Downloads/Linux-2.6.33′
make[1]: Leaving directory `/home/heray/Downloads/Linux-2.6.33′
root@heray-laptop:/home/heray/Downloads/Linux-2.6.33#