Script for Installing Kernel 3.9 on Ubuntu 13.04

If you do not like to compile kernels or download the packages and install them you can use this script for install kernel 3.9 on your Ubuntu 13.04, Ubuntu 12.10 or Ubuntu 12.04 (or even older ones). The script does not uninstall your current kernel version, so you can still use it.

Do not worry, this script is no malware or virus. I have pasted the entire script at the end of the article, you can read it before you use it.

Let’s start.

Download the installation script:

I have named the script kernelinstall.txt because I cannot upload *.sh files on the host, from security reasons:

$ wget -O kernelinstall.sh https://linuxg.net/wp-content/uploads/2013/05/kernelinstall.txt

Set execution permissions:

$ sudo chmod +x kernelinstall.sh

Exec the script:

$ sudo ./kernelinstall.sh

This is the script you have just downloaded:

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-raring/linux-headers-3.9.0-030900_3.9.0-030900.201304291257_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-raring/linux-headers-3.9.0-030900-generic_3.9.0-030900.201304291257_i386.deb &&
echo " " &&
echo "Downloading File 3 of 3, 12 MB" &&
echo " " &&
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9-raring/linux-image-3.9.0-030900-generic_3.9.0-030900.201304291257_i386.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-raring/linux-headers-3.9.0-030900-generic_3.9.0-030900.201304291257_amd64.deb &&
echo " " &&
echo "Downloading File 3 of 3, 12 MB" &&
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9-raring/linux-image-3.9.0-030900-generic_3.9.0-030900.201304291257_amd64.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

Tagged with: , , , , , , ,
Posted in The Linux and Unix Articles!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!