Step 6: Upgrade Your Debian Linux kernel to the latest stable version.

Source: Internet
Author: User
Step 6: Upgrade Your Debian Linux kernel to the latest stable version-general Linux technology-Linux programming and kernel information. Read the following for details. This article is based on the following environment:
The original Debian version is: Debian GNU/Linux 3.1.
The original kernel version is 2.6.8-2-686.
The downloaded new kernel version is 2.6.15.6.
The storage path of the downloaded file is/tmp.
Reference:/usr/share/doc/kernel-package/README.gz

About this document:
/*************************************** ******************************
* Filename: Upgrade Your Debian Linux kernel to the latest stable version.
* Purpose: Kernel upgrade experience
* Wrote by: zhoulifa (zhoulifa@163.com) Zhou Lifa (http://zhoulifa.bokee.com)
Linux enthusiasts Linux knowledge disseminators sohowhose developers are best at C Language
* Date time: 2006-03-16 23:55:00
* Note: Anyone can copy the code and use these documents, including your commercial use.
* But follow the GPL
**************************************** *****************************/
The latest stable version of the Linux kernel is: 2.6.15.6

First, you have to go to the http://www.kernel.org to download the latest Linux kernel, 2.6.15.6 is the kernel.
Step 2: Decompress your kernel. If the downloaded Kernel File is stored in the/tmp directory, run the following command:

Cd/tmp
Tar-xjvf linux-2.6.15.6.tar.bz2

The/tmp/linux-2.6.15.6 directory will be generated after decompression
Step 3 (a) copy the current configuration file to the directory where the new kernel is located, and enter the following command:

D/tmp/linux-2.6.15.6
Cp/boot/config-2.6.8-2-686. config

Step 3 (B) Re-compile your kernel and enter the following command:

Make-kpkg clean
Make-kpkg kernel_image

This command runs for a long time and generates a deb file in the/tmp directory.
Kernel-image-2.6.15.6_10.00.Custom_i386.deb
Step 4: install the new kernel and run the following command:

Cd/tmp
Dpkg-I kernel-image-2.6.15.6_10.00.Custom_i386.deb

This command also generates the/lib/modules/2.6.15.6 directory
Step 5: generate the initrd. imgfile and enter the following command:

Mkinitrd-o initrd. img-2.6.15.6/lib/modules/2.6.15.6

This command generates the initrd. img-2.6.15.6 file in the/boot directory
Step 6: Update Grub and enter the following command:

Update-grub
OK. Restart your computer to enjoy your results.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.