Re-compile the Kubuntu11.10 Kernel

Source: Internet
Author: User
% 1, installation package: sudoapt-getinstallfakerootdpkg-devlibncurses5-devkernel-package % 2, create sourcedirectorymkdir ~ /Srccd ~ /Src % 3, download kernel source code apt-getsourcelinux-image-$ (uname-r) % 4, configure the kernel cdlinux-3.

% 1. install the software package:

Sudo apt-get install fakeroot dpkg-dev libncurses5-dev (kernel-package)

% 2, create source directory

Mkdir ~ /Src

Cd ~ /Src

% 3. Download the kernel source code

Apt-get source linux-image-$ (uname-r)

% 4, configure the kernel

Cd linux-3.0.0

Make menuconfig

% 5, accelerating building

Export CONCURRENCY_LEVEL = 3

In general, concurrency level = number of processor cores + 1

% 6. Clear temporary files

Make-kpkg clean

% 7. Compile the kernel

Time fakeroot make-kpkg-initrd-append-to-version =-tweak kernel-image kernel-headers

You can replace-tweak with what you want

% 8. Install the kernel

Cd ~ /Src

Sudo dpkg-I linux-image-3.0.6-tweak_3.0.6-tweak-10.00.Custom_amd64.deb

Sudo dpkg-I linux-headers-3.0.6-tweak_3.0.6-tweak-10.00.Custom_amd64.deb

% 9. restart the computer.

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.