Replace the kernel in ubuntu, and replace the kernel in ubuntu.
First download the Linux kernel source code, and store it in the/usr/src directory, here for testing, is in ubuntu14.04, download the kernel is linux-3.14.10
2. Then enter the downloaded kernel linux-3.14.10 root directory, execute sudo make menuconfig, and then
Select the load item and copy the. config file under ubuntu14.04's original kernel to the linux-3.14.10 for security.
3. Save and exit menuconfig, and then execute make mrproper (do not do it. It is used to clear the previous configuration file to prevent subsequent kernel compilation from being affected)
4. Execute make deb (determine the dependency), make clean (clear the compilation file), make bzImage (compile the kernel), and make modules (generate the module, which is the same as generating the kernel, time), and then install the module
And run make modules_install.
5. If you are running in a virtual machine, you also need to execute mkinittramfs-o/boot/initrd-linux3.14.10.img (build the ramdisk file to be loaded ).
6. Start to install the kernel, execute make install, and automatically generate the grub boot program and reboot at the end of the installation. This test is completed on Lenovo computer, when you enter grub, press F2 (You may not be able to solve the problem and make improvements later). Then, run uanme-r on the terminal to query the kernel version. The preceding commands are all prefixed with sudo, so that the commands can be executed with the root permission.
Reference; http://www.linuxidc.com/Linux/2013-06/85335p5.htm