Installation et sécurisation d'une station Debian 3.0 stable15/05/2004
II. COMPILATION DU NOYAU
II.a. II.a. Compilation d'un noyau personnalise
II.b. Installation du noyau
II.a. II.a. Compilation d'un noyau personnalise
NDR : exemple avec une recuperation pour la première fois des sources du noyau
2.2.20. Dans le cas contraire, sauvegardez votre fichier de
configuration puis make clean, make mrproper et vérifiez EXTRAVERSION
dans ./Makefile.
Récupérez les sources puis allez dans /usr/src.
ln -s kernel-source-2.2.20 linux_perso
cd linux_perso
sed 's/^EXTRAVERSION\ =$/EXTRAVERSION\ =\ -perso/' Makefile > .perso
cat .perso > Makefile && rm -f .perso
make menuconfig => Choisissez vos options et quittez en sauvant
make dep
make modules
make bzImage
make modules_install
II.b. Installation du noyau
L'exemple pris ici est relatif à la première installation d'un nouveau noyau
sur le système.
cp archi/i386/boot/bzImage /boot/vmlinuz-2.2.20-perso
cp System.map /boot/System.map-2.2.20-perso
cd /boot/
ln -s vmlinuz-2.2.20-perso linux_perso
Editer le fichier /etc/lilo.conf pour ajouter l'entrée suivante :
image=/boot/linux_perso
label=perso
read-only
restricted
Lancez la commande 'lilo' pour mettre à jour le système.
Rebootez le système et si tout est correct :
cp /usr/src/linux_perso/.config /boot/config-2.2.20-perso
puis modifiez le noyau à lancer par défaut ?
Copyright (c) 2003 Simon Castro, scastro [ at ] entreelibre.com.
Permission is granted to copy, distribute and/or modify this document under the
terms of the GNU Free Documentation License, Version 1.2 or any later version
published by the Free Software Foundation; with the Invariant Sections being
LIST THEIR TITLES, with the Front-Cover Texts being LIST, and with the
Back-Cover Texts being LIST.
You must have received a copy of the license with this document and it should
be présent in the fdl.txt file.
If you did not receive this file or if you don't think this fdl.txt license is
correct, have a look on the official http://www.fsf.org/licenses/fdl.txt
licence file.
|