Ubuntu12.04 compile and install kernel3.7.1 tutorial

Source: Internet
Author: User
Ubuntu12.04 compilation and installation of kernel3.7.1 this semester has almost no problem with Linux, except that Gentoo is installed on virtual machines. As soon as the holiday is approaching, my laptop is still messy and cannot be used at all (the notebook is purely used to try a variety of Linux). This is not feasible, no...
Ubuntu12.04 compilation and installation of kernel3.7.1 this semester has almost no problem with Linux, except that Gentoo is installed on virtual machines. As soon as the holiday is approaching, my laptop is still messy and cannot be used at all (the notebook is purely used to try a variety of Linux systems). This is not enough and cannot be programmed. I saw Chakra Linux and it was very brilliant. after installing and trying it, it even removed GTK, Pure QT. this is nothing. I don't pay attention to the graphic interface, at the same time, there is no prejudice against GTK and QT, but you have to solve the problem of the input method. After chromium is installed, there is no way to use fcitx. there is no relevant documentation on the Internet. Www.2cto.com Okay, give up decisively, but what should I do? I still like rolling upgrade, but Arch upgrade is easy to crash. Gentoo is too time-consuming, and I don't want to keep compiling j8. Ubuntu is very quick to build a development platform, but the software packages are not very new, especially the kernel (I have been using fedora for a long time, everyone knows ). Just try to compile the kernel on your own (the last kernel compilation should be under CentOS6.2 ). Before starting the tutorial, I declare that it is highly risky to install the kernel. if you are not prepared to reinstall the system, please do not proceed. Www.2cto.com first describes the configuration of my computer. if you are lucky enough, you can install it with peace of mind. Acer 4750g, i7-2630, Kingston 8g memory, no independent graphics card, Seagate hybrid hard drive 500g, divided into a partition ext4 (/dev/sda1), no swap partition allocated. Root permission 1.download linux-3.7.1.bz2. you can use this permission to go to www.kernel.org or wget. 2.linux-3.7.1.bz2, cp to/usr/src, then bzip2-d linux-3.7.1.tar.bz2, tar-xvf linux-3.7.1.tar 3. apt-get install build-essential libncurses5-dev libncurses5, this is related to make menuconfig later, my computer only installed libncurses5, no other two packages, depending on the situation. 4. cd/usr/src/linux-3.7.1 5.cp .. /linux-headers-3.20.35-generic /. config. this step depends on the situation. I just upgraded the kernel to 3.2.0-35 and. the config copy is only for insurance purposes. after all, no one should like to reload the system all the time. 6. make menuconfig the configuration here should be searched on the wiki. there is a lot of content and I will not describe it one by one. if you are too lazy to read it, you can simply configure it by default. 7. apt-get install kernel-package 8. make-kpkg -- initrd -- append-to-version-01 kernel_image kernel_headers-jN. Note that-01 is only an extension number and has no effect, the kernel compiled here is kernel-3.7.1-01. as for-jN, N here is the number of threads used for compilation. since I am a 4-core 8 thread, N = 8, depending on the configuration, the next step is a long wait. I have compiled it for about 19 minutes. In addition, please prepare for heat dissipation to avoid shutdown due to overheating. 9. if there is no error in the compilation process, congratulations, the kernel compilation is complete. next we will install it. under/usr/src, we will see two deb files, one of which is the kernel file, one is the header file. you can install dpkg-I directly. then shutdown-r now. Good luck! If you can reasonably configure the. config file, the computer performance will be greatly improved, but please do your homework to avoid collapse. Kernel-3.7.1 has brought about nothing to test. I hope the power consumption can be improved...
 
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.