sudo apt-cache search linux-source
sudo apt-get install linux-source-version
sudo cp /boot/config-`uname -r` .config
make menuconfig
make-kpkg --initrd --append-to-version=-some-string-here kernel-image kernel-headers
cd ..
dpkg -i linux-image-2.6.38.7-some-string-here_2.6.38.7-some-string-here-10.00.Custom_i386.deb
dpkg -i linux-headers-2.6.38.7-some-string-here_2.6.38.7-some-string-here-10.00.Custom_i386.deb
dpkg --get-selections | grep linux-image //查看内核
apt-get remove --purge 2.6.24-21-generic* //移除内核
uame -a //查看当前内核版本
uname -i //查看当前操作系统是32位还是64位
//设置ubuntu启动到字符界面
vim /etc/default/grub
把GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" 改成 GRUB_CMDLINE_DEFAULT="text"
或者改成GRUB_CMDLINE_DEFAULT="quiet splash text"
sudo update-grub