我使用的是ubuntudapper版,内核是2.6.15.27
ubuntuedgy的内核是2.6.17
最新内核是2.6.19.2
升级内核即是消磨时间又是浪费家里的电的好东西,呵呵
废话不多说了,先下载新内核
2.6.19.2
由于海底光缆的断裂,下载速度可能很慢~~~这种情况据说会持续到月底~~
趁下载的功夫我们安装些必备软件
代码: 全选
sudo apt-get update
sudo apt-get install build-essential kernel-package libncurses5-dev build-essential bin86 kernel-package libqt3-headers libqt3-mt-dev make automake
sudo apt-get -f install
sudo apt-get dist-upgrade
好了,现在开工
代码: 全选
sudo mv linux-2.6.19.2.tar.bz2 /usr/src/
cd /usr/src/
sudo rm -rf linux
sudo tar jxf linux-2.6.19.2.tar.bz2
sudo mv linux-2.6.19 linux-2.6.19-dogfox
sudo ln -s /usr/src/linux-2.6.19-dogfox linux
cd linux
sudo nano Makefile
uname -r
sudo cp /boot/config-2.6.15-27-686 .config
sudo make xconfig
删除老内核,解压新内核,对新内核加上个人标志,以示区别例如-dogfox
建立硬链接到linux,进入linux,修改Makefile,在EXTRAVERSION = .2后添加-dogfox
代码: 全选
EXTRAVERSION = .2-dogfox
为何改为.config呢?因为make xconfig配置后生成的文件就是.config。这样就极大的减低了繁杂的配置过程,只需要对自己机器的具体硬件的部分进行配置,其余按照默认的就好了。建议按照下面的方案添加配置内容
代码: 全选
General Setup
-Support for paging of anonymous memory (swap)
Processor type and features
选择自己的cpu型号
其余的
Preemption Model
--Voluntary Kernel Preemption (Desktop)桌面系统必选
-High Memory Support
选择内存大小,超过1G的选--1GB Low Memory Support -if you have 1GB of RAM
-Timer frequency
官方推荐选--1000 Hz
Device drivers──Block devices找到CFQ I/O scheduler打钩
Kernel hacking
内核级黑客
去除Kernel debugging选项
如果你是骨灰级内核黑客对Kernel hacking就全选吧
无非是增加了更加漫长的编译时间
然后就是制作成deb包了
代码: 全选
sudo make-kpkg clean
sudo make-kpkg -initrd kernel_image kernel_headers
反之则需要你漫长的等待了,呵呵
这时你可以看看电视,或者找你马子随便聊聊~~时间自由支配哈
经过漫长的等待后
代码: 全选
cd ..
sudo dpkg -i <name of the file>
如果顺利,grub会自动进入2.6.19.2-dogfox内核
先别高兴,还得再次安装显卡驱动
最好是到显卡官网上下载驱动,然后
代码: 全选
chmod a+x ati.*.run
sudo sh ati.*.run
ok,就算你是像俺一样的老菜,同样可以轻松升级内核
自动下载最新内核
http://archive.ubuntu.org.cn/ubuntu/poo ... ce-2.6.20/
http://archive.ubuntu.org.cn/ubuntu/poo ... es-2.6.20/