Install and compile the new core in Step 4 in Ubuntu [super simple]

Source: Internet
Author: User
Install patches for the N-card to install the new core. For details, refer. The environment of my experiment is 6 of Ubuntu9.04.

N card to install new core needs to add patches, can refer to https://bugs.launchpad.net/ubuntu/+source/nvidia-common/+bug/384639/comments/8

Prerequisites:

Work is completed under the terminal,

You need to use the root permission. I modified the root password and then su ran it to the root user,

Of course, sudo can also be added before each sentence.

The experiment environment is Ubuntu 9.04 64-bit. If you are a 32-bit version, pay attention to the file name.

Step 1: Install the package required to compile the kernel

It sounds complicated. You only need to enter four package names.

Apt-get install build-essential kernel-package libncurses5-dev libqt3-mt-dev

Of course, you still need a lot. apt-get will fix it for you.

Step 2: Download the kernel source program and decompress it

: Http://www.kernel.org/

The link that says [the latest stable version of The Linux kernel is:] That line F is

Of course, you can use

Wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.1.tar.bz2

I compiled the kernel from 2.6.30 to 1. I will use this as an example.

And put it in the/usr/src directory, and then decompress

Tar xf linux-2.6.30.1.tar.bz2

The current tar can automatically determine the compression format, which is really convenient!

Step 3: Compile and Package

In fact, you only need one sentence!

Go to the/usr/src/linux-2.6.30.1 directory and enter

Make-kpkg -- initrd -- revision = 20090707 kernel_image

-- The revision parameter is followed by a small version of the compiled file.

Linux-image-2.6.30.1_20090707_amd64.deb this file

Note: many problems will be raised at the beginning of compilation! Select whether to compile something,

Basically, they are all the latest devices.

I press enter directly. (I plan to have a good time)

It takes 2-3 hours to test the machine performance.

Step 4: Install

First go back to the upper-level directory, and then get it done in one sentence!

Dpkg-I linux-image-2.6.30.1_20090707_amd64.deb

Okay. Restart the machine and try again.

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.