2 votes

Comment télécharger et utiliser un autre noyau que celui qui est installé par défaut ?

Supposons que j'utilise Ubuntu 12.04(LTS), et qu'il utilise le noyau 3.5.0-37.

Si je voulais utiliser le noyau 3.9.6, comment pourrais-je l'utiliser ? Je ne veux pas passer à la version 13.04

Devrais-je télécharger manuellement ce noyau, le compiler et faire son initrd, ou pourrais-je le récupérer en utilisant apt-get install en activant un certain dépôt ?

Veuillez m'aider.

2voto

Joshua McKinnon Points 12379

Les noyaux rétroportés sont disponibles dans la version 12.04, consultez ces questions pour savoir comment les activer :

Une autre alternative est de construire votre propre noyau ou d'utiliser un noyau vanille : Comment obtenir et installer un noyau non modifié ?

2voto

Radu Rădeanu Points 156862

Si vous connaissez quelques scripts de base, à partir des scripts ci-dessous (qui sont très faciles à comprendre même s'ils ont l'air si longs), vous pouvez voir comment télécharger et utiliser n'importe quel autre noyau.

echo " " &&
echo "This script will attempt to install Linux Kernel 3.9 on this machine." &&
echo "Typically, your current version will be kept, and you will be able to ustilise it again later if Kernel 3.9 does not work." &&
echo " " &&
read -p "Press Enter to continue, or abort by pressing CTRL+C" nothing &&
echo " " &&
echo "Downloading Kernel 3.9 Packages" &&
echo "3 Files, 55 MB to Download" &&
echo " " &&
echo "Creating Kernel Directory in Home folder" &&
echo " " &&
mkdir -p $HOME/kernel-htu &&
cd $HOME/kernel-htu &&
echo " " &&
echo "Downloading File 1 of 3, 12 MB" &&
echo " " &&
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9.11-saucy/linux-headers-3.9.11-030911_3.9.11-030911.201307202035_all.deb &&
echo " " &&
if [ $(getconf LONG_BIT) = "64" ]
then
    echo "64bit Detected" &&
    echo " " &&
    echo "Downloading File 2 of 3, 1 MB" &&
    echo " " &&
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9.11-saucy/linux-headers-3.9.11-030911-generic_3.9.11-030911.201307202035_amd64.deb &&
    echo " " &&
    echo "Downloading File 3 of 3, 43 MB" &&
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9.11-saucy/linux-image-3.9.11-030911-generic_3.9.11-030911.201307202035_amd64.deb
else
    echo "32bit Detected" &&
    echo " " &&
    echo "Downloading File 2 of 3, 1 MB" &&
    echo " " &&
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9.11-saucy/linux-headers-3.9.11-030911-generic_3.9.11-030911.201307202035_i386.deb &&
    echo " " &&
    echo "Downloading File 3 of 3, 42 MB" &&
    echo " " &&
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9.11-saucy/linux-image-3.9.11-030911-generic_3.9.11-030911.201307202035_i386.deb
fi &&
echo " " &&
echo "Installing Kernel" &&
echo "This step will require you password." &&
echo "This is the last step you can safely cancel at." &&
echo "Use Ctrl+C to cancel." &&
echo " " &&
sudo dpkg -i *.deb &&
echo " " &&
echo "Installation Complete" &&
echo " " &&
read -p "Press Enter to Delete the Downloads, or CTRL+C to keep them." nothing &&
echo " " &&
sudo rm -rf $HOME/kernel-htu

Source : Comment installer le noyau Linux 3.9 - Comment utiliser Ubuntu ? (consultez la version la plus récente).

echo " " &&
echo "This script will attempt to install Linux Kernel 3.10 on this machine." &&
echo "Typically, your current version will be kept, and you will be able to ustilise it again later if Kernel 3.10 does not work." &&
echo " " &&
read -p "Press Enter to continue, or abort by pressing CTRL+C" nothing &&
echo " " &&
echo "Downloading Kernel 3.10 Packages" &&
echo "3 Files, 57 MB to Download" &&
echo " " &&
echo "Creating Kernel Directory in Home folder" &&
echo " " &&
mkdir -p $HOME/kernel-htu &&
cd $HOME/kernel-htu &&
echo " " &&
echo "Downloading File 1 of 3, 12 MB" &&
echo " " &&
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.6-saucy/linux-headers-3.10.6-031006_3.10.6-031006.201308112316_all.deb &&
echo " " &&
if [ $(getconf LONG_BIT) = "64" ]
then
    echo "64bit Detected" &&
    echo " " &&
    echo "Downloading File 2 of 3, 1 MB" &&
    echo " " &&
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.6-saucy/linux-headers-3.10.6-031006-generic_3.10.6-031006.201308112316_amd64.deb &&
    echo " " &&
    echo "Downloading File 3 of 3, 44 MB" &&
    echo " " &&
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.6-saucy/linux-image-3.10.6-031006-generic_3.10.6-031006.201308112316_amd64.deb
else
    echo "32bit Detected" &&
    echo " " &&
    echo "Downloading File 2 of 3, 1 MB" &&
    echo " " &&
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.6-saucy/linux-headers-3.10.6-031006-generic_3.10.6-031006.201308112316_i386.deb &&
    echo " " &&
    echo "Downloading File 3 of 3, 43 MB" &&
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.6-saucy/linux-image-3.10.6-031006-generic_3.10.6-031006.201308112316_i386.deb
fi &&
echo " " &&
echo "Installing Kernel" &&
echo "This step will require you password." &&
echo "This is the last step you can safely cancel at." &&
echo "Use Ctrl+C to cancel." &&
echo " " &&
sudo dpkg -i *.deb &&
echo " " &&
echo "Installation Complete" &&
echo " " &&
read -p "Press Enter to Delete the Downloads, or CTRL+C to keep them." nothing &&
echo " " &&
sudo rm -rf $HOME/kernel-htu

Source : Comment installer le noyau Linux 3.10 - Comment utiliser Ubuntu ? (consultez la version la plus récente).


Vous pouvez télécharger le noyau de votre choix : http://kernel.ubuntu.com/~kernel-ppa/mainline .

SistemesEz.com

SystemesEZ est une communauté de sysadmins où vous pouvez résoudre vos problèmes et vos doutes. Vous pouvez consulter les questions des autres sysadmins, poser vos propres questions ou résoudre celles des autres.

Powered by:

X