Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ How to Install Linux kernel 4.0 on Ubuntu / CentOS     - Normal start Lazarus 1.0.8 under Ubuntu (Linux)

- Installation under Linux to deploy Java (Linux)

- MySQL Data Types (Database)

- CentOS / Linux install VNC Server (Linux)

- Guide: Trickle restrict application bandwidth usage (Linux)

- Security experience: to see how the experts deal with DDoS attacks (Linux)

- Linux installation Jetty deployment under RedHat5 8 (Linux)

- How to enable fbcon in Debian (Linux)

- Linux 10 useful examples of command-line completion (Linux)

- Ubuntu 14.04 Fixed update information is outdated error (Linux)

- Log4j configuration file Explanation (Linux)

- Linux CentOS configuration SVN + SVN hook (Server)

- STL source code analysis - iterator each container classification (Programming)

- OpenGL shadow map (Programming)

- Ubuntu install video conversion tool Selene (Linux)

- Use of the storage-level replication technology will quickly clone a ASM database to the target environment (Database)

- MongoDB start under Linux (Database)

- CentOS 6.3 compile and install LNMP environment (Server)

- Detailed software to run UnixBench (Linux)

- Zabbix system email alert Python script (Server)

 
         
  How to Install Linux kernel 4.0 on Ubuntu / CentOS
     
  Add Date : 2018-11-21      
         
         
         
  Hello everyone, today we learn how to install the latest Linux kernel source code from Elrepo or 4.0. Codenamed 'Hurr durr I'm a sheep' of the Linux kernel 4.0 is by far the latest trunk kernel. It is the stable version 3.19.4 released after the kernel. April 12th is the big day for all lovers of the open source movement, Linux Torvalds announced the Linux kernel 4.0 release, it is now already available. Due to the inclusion of some great features, such as non-patch reboot (real-time patches), new upgrade drive, the latest hardware support, and a lot of interesting features have a new version, which was originally expected to be a major release. But in fact 4.0 kernel is not considered to be desirable in the major release, Linus expressed the expectation that 4.1 will be a more important version. Real-time patching has been integrated into the SUSE Enterprise Linux operating system. You can view the announcement about more detailed information in this release.

Install Linux kernel 4.0 on Ubuntu 15.04

If you are using Linux distributions Ubuntu 15.04, you can directly through the Web site to install Ubuntu kernel. Install the latest Linux kernel on your Ubuntu15.04 4.0, you need to shell or a terminal run the following command at the root access.

In the 64-bit Ubuntu 15.04

$ Wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0-vivid/linux-headers-4.0.0-040000-generic_4.0.0-040000.201504121935_amd64.deb
$ Sudo dpkg -i linux-headers-4.0.0 * .deb linux-image-4.0.0 * .deb
 
In the 32-bit Ubuntu 15.04

$ Wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0-vivid/linux-headers-4.0.0-040000-generic_4.0.0-040000.201504121935_i386.deb
$ Sudo dpkg -i linux-headers-4.0.0 * .deb linux-image-4.0.0 * .deb
 
Install Linux kernel 4.0 on CentOS 7

We can install Linux 4.0 kernel with two simple ways on CentOS 7.

Install from Elrepo depot
Build and install from source
We first ElRepo installation, which is the easiest way:

Use Elrepo installation

1. Download and install ELRepo

We ELRepo first download and install the GPG key relrepo-release package. Because we are using CentOS 7, we use the following command to install elrepo-release-7.0-2.el7.elrepo.noarch.rpm.

NOTE: If you enable secure boot, please see this page for more information.

# Rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
# Rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
Add Elrepo source

2. Upgrade the Linux kernel to version 4.0

Now, we are ready to install the latest stable version of the kernel from 4.0 ELRepo depot. We need to install it, enter the following command in CentOS 7 of the shell or terminal.

# Yum --enablerepo = elrepo-kernel install kernel-ml

The above command will automatically install the CentOS 7 build Linux kernel 4.0.

Now, here is another way to install the latest 4.0 kernel by compiling the source code.

Build and install from source

1. Install prerequisite software

First, we need to compile the linux kernel to install software dependencies. To accomplish this, we need to run the following command in a terminal or shell.

# Yum groupinstall "Development Tools"
# Yum install gcc ncurses ncurses-devel

Then, we will upgrade our whole system.

# Yum update
 
2. Download the source code

Now we download the latest 4.0 release of the linux kernel source code of the Linux kernel from the official repository via wget command. You can also use your browser to download the kernel from kernel.org website.

# Cd / tmp /
# Wget https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.0.tar.xz

3. Extract tar archive

After we unpacked file is downloaded with the following command in the folder / usr / src / file.

# Tar -xf linux-4.0.tar.xz -C / usr / src /
# Cd /usr/src/linux-4.0/

4. Configuration

Configure the Linux kernel has two options. We can create a new custom configuration file or to build and install the Linux kernel using the existing configuration files. It all depends on your needs.

Configure the new kernel

Now we run make menuconfig command shell or terminal to configure the Linux kernel. We will execute the following command to display a pop-up menu that contains all. Here we can choose our new kernel configuration. If you are not familiar with the menu, then tap the ESC key twice to exit.

# Make menuconfig

Existing configuration

If you want to configure your new kernel with the existing configuration files, then enter the following command. If you have any adjustments to the configuration, you can select Y or N, or just press the Enter key to continue.

# Make oldconfig
 

5. Compile the Linux kernel

Next, we'll make command to compile the kernel 4.0. Depending on your system configuration, the compiler would need at least 20-30 minutes.

NOTE: If compiling the kernel appears bc command not found error, you can install bc fix this with yum install bc command.

# Make

6. Install the Linux kernel 4.0

After compilation, we finally have to install the kernel on your Linux system. The following command creates a file in the / boot directory and create a new kernel entry in the Grub menu.

# Make modules_install install
 

7. Verify that the kernel

After installing the latest kernel 4.0 we want to verify it. We only need to do this, enter the following command in the terminal. If all went well, we'll see that the kernel version, for example, 4.0 appears in the output list.

# Uname -r
 

in conclusion

Well, we have succeeded in our CentOS 7 operating system to install the latest Linux kernel version 4.0. Usually you do not need to upgrade the linux kernel, because the previous version and run good hardware may not be appropriate for the new version. We want to make sure that it includes your hardware working features and accessories. But in most cases, a new stable version of the kernel you can make better hardware performance. So, if you have any questions, comments, feedback, in the comments box below to let us know what problems need to add or delete.
     
         
         
         
  More:      
 
- Struts2 study notes -Valuestack (value stack) and OGNL expression (Programming)
- Oracle View Object Information (Database)
- Observation network performance tools for Linux (Linux)
- DataGuard add temporary data files bug (Database)
- Oracle 11g users to create, authorize and import dmp file (Database)
- To change CentOS7 runlevel (Linux)
- Guide: Trickle restrict application bandwidth usage (Linux)
- Oracle table space create large files (Database)
- Get and Post requests Comments (Linux)
- Windows Desktop use VNC remote connect Linux (Linux)
- Compiling source code Nginx module installation subs_filter (Server)
- Java Virtual Machine Basics (Programming)
- Oracle 12C with multi-column index (Database)
- Windows using SSH management Ubuntu (Linux)
- Qt shared memory interprocess communication (Programming)
- Python programming style (Programming)
- linux network security experience (Linux)
- Ubuntu 12.04 installation DHCP Server (Server)
- Iptables Instructions (Linux)
- Ubuntu 14.04 LTS 64-bit installation and activation Sublime Text 3 can not solve the Chinese input method to solve the problem (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.