installing the linux kernel - simple steps
here are a few simple steps for compiling the linux kernel and installing it !!
first download the source code of the kernel version you want to install from http://kernel.org and extract the archive into the directory /usr/src/ , now after u have finished this run the following commands :
# cd /usr/src/[kernel source directory]
where kernel source directory is the one created on extracting the archive , ... now the next command is
# cp /boot/config-$(uname -r) ./config
this copies the configuration options for your current kernel to the one you are going to compile and install now , after this to make any further changes to the options execute the following command ,:
# make menuconfig
note : there are other options that can be used for configuring the kernel such as " make gconfig " which gives a GUI based configuration window, but they require extra library support , for example to use make gconfig u need to have installed the 'gnome software development ' libraries on your system , so it is better to use "make menuconfig " which almost always works !!!
after doing that u get a list of options , select or unselect the options which u want in your kernel or u don't want in your new kernel , after doing this save and exit , now u are done with configuring the kernel , next run the following command at the prompt :
# make
this compiles the source code and creates a compressed kernel image , once this is finished and u get back to the prompt , run the following command ,
# make modules_install
this installs the kernel modules that were created in the earlier step ,and then
# make install
this will install the kernel and add appropriate options to the GRUB configuration file , all you need to do after this is to reboot and boot into the new kernel !!!!
first download the source code of the kernel version you want to install from http://kernel.org and extract the archive into the directory /usr/src/ , now after u have finished this run the following commands :
# cd /usr/src/[kernel source directory]
where kernel source directory is the one created on extracting the archive , ... now the next command is
# cp /boot/config-$(uname -r) ./config
this copies the configuration options for your current kernel to the one you are going to compile and install now , after this to make any further changes to the options execute the following command ,:
# make menuconfig
note : there are other options that can be used for configuring the kernel such as " make gconfig " which gives a GUI based configuration window, but they require extra library support , for example to use make gconfig u need to have installed the 'gnome software development ' libraries on your system , so it is better to use "make menuconfig " which almost always works !!!
after doing that u get a list of options , select or unselect the options which u want in your kernel or u don't want in your new kernel , after doing this save and exit , now u are done with configuring the kernel , next run the following command at the prompt :
# make
this compiles the source code and creates a compressed kernel image , once this is finished and u get back to the prompt , run the following command ,
# make modules_install
this installs the kernel modules that were created in the earlier step ,and then
# make install
this will install the kernel and add appropriate options to the GRUB configuration file , all you need to do after this is to reboot and boot into the new kernel !!!!
Comments