Assignment 07
Assignment 07
PRN :21610043
Step-by-Step Process
For Ubuntu/Debian:
bash
Copy code
sudo apt-get update
sudo apt-get install build-essential libncurses-dev bison flex
libssl-dev libelf-dev
For Fedora/CentOS:
bash
Copy code
sudo dnf groupinstall "Development Tools"
sudo dnf install ncurses-devel bison flex elfutils-libelf-devel
openssl-devel
■
2. Downloading the Kernel Source
Download the latest stable kernel from the official Linux Kernel website.
bash
Copy code
wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.14.1.tar.xz
tar -xf linux-5.14.1.tar.xz
cd linux-5.14.1
○
3. Kernel Configuration
○
○ Exit and save the configuration.
4. Compiling the Kernel
○
■ $(nproc) ensures all available CPU cores are used to speed up the
process.
5.
6. Installing the Kernel
○
7. Updating Bootloader (GRUB)
For Fedora/CentOS:
bash
Copy code
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
○
8. Rebooting into the New Kernel
○
○ Select the new kernel from the boot menu.
9. Verifying Kernel Installation
References
1. Kernel.org
2. Fedora Custom Kernel Build Guide
3. Ubuntu Kernel Compilation - Video Guide
4. Tecmint - Kernel Compilation
5. OpenSUSE Kernel Guide