Ubuntu12.04 using the latest Linux kernel methods
First, the environment:
1. Virtual machine installation Ubuntu12.04 64 bits
2, use the system Linux version for Linux-3.13 (Intermediate upgrade once system)
3, the latest Linux kernel Linux-4.5.0 version
Second, compile Linux kernel
1, Linux official website: https://www.kernel.org Download the latest kernel Linux-4.5.0
2, copy to the virtual machine first and decompression
3, access to the Linux kernel source directory
cd/home/test/vm/kernel/linux-4.5
4, Make Mrproper
5, make localmodconfig use the default configuration
6, make DEP some machines do not need
7. Make Clean
8, make Bzimage
9, make modules
10, sudo make Modules_install
Third, add grub option
1, sudo make install this operation will generate config-4.5.0, system.map-4.5.0, vmlinuz-4.5.0 and other files in/boot
2, UPDATE-GRUB2 This operation will modify the contents of/boot/grub/grub.cfg file, add 4.5.0 startup options
3, sudo reboot reboot
Four, use
1, in the boot process, you will see the addition of new options
2, using the UNAME-A command to view the kernel version of information, you will see the latest kernel version is being used Linux-4.5.0