!_30 Posted September 23, 2006 Report Posted September 23, 2006 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 2cd /usr/srcwget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.tar.bz2 #downloadbzip2 -d linux-2.6.18.tar.bz2 # extract kerneltar -xvf linux-2.6.18.tar # dezarhivationcd linux-2.6.18make 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 compilationmakemake modulesmake modules_install# Install kernel 2.6.18make 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 bootloaderdevfs=nomount # some old trick , not becoming victim for kernel panic !echo -n " Restart and try your new kernel"sleep 2# EOF ! Quote
YceFire Posted September 23, 2006 Report Posted September 23, 2006 Si cum folosesc scriptul ???:confused:, trebuie compilat sau ceva ...? Quote
!_30 Posted September 23, 2006 Author Report Posted September 23, 2006 Scriptul nu se compileaza .Fiind pe un shell UNIX-like , faci criptul executabil prin comanda : chmod +x script ...Apoi simplu : sh script sau ./script ..Mai departe face el singur , insa erorile stau de sase Quote
YceFire Posted September 24, 2006 Report Posted September 24, 2006 Aha , am inteles, de acum sa punem in practica si sa speram ca nu vor veni erorile , Ms !_30 Quote
vrila Posted November 15, 2006 Report Posted November 15, 2006 dap ai dreptate !_30 stii tu ceva, like unix ,dar sunt unele distributii care chiar nu necesita recompilare . si sincer un incepator recomand sa mai citeasca cateva documentati( parerea mea) pentru aventualele probleme post here sau documentatiihttp://www.recompile.org/ Quote