Jump to content
!_30

Kernel recompilation script

Recommended Posts

Script recompilare kernel .

Acest script are rolul de a va scuti chinuiala de a va recompila un kernel ( aici model pe 2.6.18 ) , folosind grub ( bootloader ) si a va configura o configuratie alternativa in grub pentru a putea alee intre kernelul vechi si cel nou ( 2.6.18 ).

#Kernel Recompilation (script)

#This script will download , install and configure Linux kernel 2.6.18 , it also include some trick's , for not becoming the victim of old error's.

# Have fun !

#download Linux kernel 2.6.18 source.

echo -n " Download kernel 2.6.18 source"

sleep 2

cd /usr/src

wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.tar.bz2 #download

bzip2 -d linux-2.6.18.tar.bz2 # extract kernel

tar -xvf linux-2.6.18.tar # dezarhivation

cd linux-2.6.18

make menuconfig #configure kernel options

#you can also try make xconfig or make gconfig , but make menuconfig is included in this script and run as default :)

# Now it's all about compilation

make

make modules

make modules_install

# Install kernel 2.6.18

make install

# If you use grub ( as bootloader ) this will configure an alternative configuration for you bootloader : ( if this kernel fails to work , you cand restart and choose again the old kernel ).

update-grub # update grub bootloader

devfs=nomount # some old trick , not becoming victim for kernel panic !

echo -n " Restart and try your new kernel"

sleep 2

# EOF !

:)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...