Compile the kernel and install the Nvidia driver in Ubuntu10.04

Source: Internet
Author: User
Ubuntu10.04 if you use the official kernel to install the video card, an error may occur when you use the nvidia restricted driver. The nvidia. ko error occurs. This problem has been solved by Fedora for a long time and has only arrived at Ubuntu. The prompt is that Ubuntu has enabled the kernel nvidia driver module and blocked the nouveau module. Work required before Compilation: # apt-getinstallfakerootbuild-essential # apt-get

If you use the official kernel to install a video card on Ubuntu 10.04, an error occurs when you use the nvidia driver. The nvidia. ko error occurs.

This problem has been solved by Fedora for a long time and has only arrived at Ubuntu. The prompt is that Ubuntu has enabled the kernel nvidia driver module and blocked the nouveau module.

Work required before Compilation:
# Apt-get install fakeroot build-essential
# Apt-get install crash kexec-tools makedumpfile kernel-wedge
# Apt-get build-dep linux
# Apt-get install libncurses5 libncurses5-dev

Download the kernel:
Http://www.kernel.org/pub/linux/kernel/v2.6/
I chose 2.6.33.3, which is the same as the original author.

Compile:
# Make localmodconfig can be used for simplified compilation. It is configured according to the mod used by your current system. During the process, a series of options are displayed, I select all n and finally generate. config I encountered a dot error, but I did not compile the image.
After the. config file is generated, remember to block the module nouveau, which is in uppercase * NOUVEAU. www.linuxidc.com can be edited by gedit to change m to n and y to n.

# Cd/usr/src/linux-2.6 ***
# Fakeroot make-kpkg-initrd-append-to-version =-orange0.1 kernel-image kernel-headers
If an error occurs and you need to install make-kpkg, the system will prompt you to install the software named build-essetial.

Install the generated file:
# Cd .. Two dep files are generated
# Install dpkg-I *
# Mkinitramfs-o/boot/initrd. img-2.6.33.3-orange0.1 2.6.33.3-orange0.1
# Update-grub complete boot update

Restart the host
# Uname-r check

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.