linux的升级分2种,一是版本,二是内核
我使用的是ubuntudapper版,内核是2.6.15.27
ubuntuedgy的内核是2.6.17
最新内核是2.6.19.2
升级内核即是消磨时间又是浪费家里的电的好东西,呵呵
废话不多说了,先下载新内核 2.6.19.2
由于海底光缆的断裂,下载速度可能很慢~~~这种情况据说会持续到月底~~
趁下载的功夫我们安装些必备软件
[code:1]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[/code:1]
以上安装的软件是为了下一步正常的使用make xconfig命令
好了,现在开工
[code:1]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[/code:1]
把内核文件mv到/usr/src/下,并进入/usr/src/里
删除老内核,解压新内核,对新内核加上个人标志,以示区别例如-dogfox
建立硬链接到linux,进入linux,修改Makefile,在EXTRAVERSION = .2后添加-dogfox
[code:1]EXTRAVERSION = .2-dogfox[/code:1]
接下来是非常关键的一步,拷贝/boot下的config文件,由于目前在dapper默认的内核下,内核版本号是2.6.15-27,它是默认内核的配置文件,现在拷贝到/usr/src/linux下 ,文件名改为.config
为何改为.config呢?因为make xconfig配置后生成的文件就是.config。这样就极大的减低了繁杂的配置过程,只需要对自己机器的具体硬件的部分进行配置,其余按照默认的就好了。建议按照下面的方案添加配置内容
[code:1]
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打钩