CAOS-Assignment 0 - Part 1: We Need To Download, Modify, Compile and Install A Kernel On Ubuntu Server 14.10
CAOS-Assignment 0 - Part 1: We Need To Download, Modify, Compile and Install A Kernel On Ubuntu Server 14.10
CAOS-Assignment 0 - Part 1: We Need To Download, Modify, Compile and Install A Kernel On Ubuntu Server 14.10
To update the links . you need to become a superuser . After entering superuser mode
enter
cd /etc/apt
nano sources.list
In this file replace all instances of "in.archive" and "security" by "old-releases" and then
"ctrl+o" and "enter" to save. What this does is that it enables “apt” command to get links to
install packages essential to this assignment otherwise it produces error.
“update” and “upgrade” downloads essential packages which 14.10 version Ubuntu
server doesn’t already have
Now we will install some package and modules which are essential to the process of
kernel compilation
Now we will download the kernel source v3.16 using the command
“uname -r” gets the old kernel version and this commands download this which in this
case is v3.16
After installing is done type "ls" to view the download files
What this command does is it copies the configuration file of the old kernel and paste it
into the new kernel version file
This command configures the file by asking questions. “yes ‘ ‘ “ selects yes for every
question automatically so we don’t have enter it manually everytime.
To append the kernel with a customized string enter
make menuconfig
After exiting out of the kernel menu enter the command " make clean " to clean the
directory and to compile enter
After compilation has finished three(or four ) deb files will be installed
cd ..
ls *.deb
Now we will install deb packages using "dpkg"
This command install the deb files automatically so we don’t have to write the whole
name of the files
After completion we need to update grub
sudo update-grub
This command updates the grub so it boots up the newly install kernel version
sudo reboot
Now at the gub menu select ubuntu which will be our modified kernel ubuntu
Now to check the kernel version and the appended string enter
uname -a
We can see the kernel version is the updates one from 3.16.0 --> 3.16.7 and it contains
the appended string "nandesh"