Linux Kernel Compiling

Source: Internet
Author: User

Last night, the hands of the cheap, in the Ubuntu virtual machine in the update, the results of the last night and finally into the system.

Bloggers after Baidu no fruit, then had to reinstall the virtual machine, and then recompile the kernel (the third time%>_<%).

1. Latest stable kernel from kernel.org up and down: linux-4.0.tar.xz

2. Copy the package to the development directory and unzip:

# sudo CP./downloads/linux-4.0.tar.xz/usr/src

# CD/USR/SRC

# sudo xz-d linux-4.0.tar.xz

# sudo tar-xvf Linux-4.0.tar

3. Configure the kernel:

# CD./linux-4.0

# sudo apt-get install Libncurses5-dev

# sudo make Menuconfig

Then configure the various default values ...

4. Write a batch file in the current directory for compiling:

# sudo nano hehe

The contents are:

#! /bin/sh

sudo make

sudo make Modules_install

sudo make install

Last Ctrl+o Save, ctrl+x exit Edit

5. Start compiling:

# sudo sh hehe

Set Virtual machine Disable Auto lock screen, wait for compilation result ...

When we dig in the dark, we must strive to tears for knowledge.

--Alain de Botton

Linux Kernel Compiling

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.