Here’s a little script that will identify your system and install the correct version of Linux Kernel 3.6.0 for you.

If you want to upgrade to the latest version of Linux Kernel (3.6), follow this short tip and update your system. This script was tested in Ubuntu 12.04 and 12.10 and it worked flawlessly.

Objectives:

  • Install / Upgrade to Linux Kernel 3.6.0 in Ubuntu 12.04 / 12.10
  • Enjoy!

 

To get started, press Ctrl – Alt – T on your keyboard to open the terminal. When it opens, run the commands below to create the script.

gedit /tmp/linux-kernel-3.6

 

kernel_linux_precise

 

Next, copy and paste this script into the file and save it.

 

#!/bin/bash
 
#### Script Created By SociallyUncensored.eu ####
 
#i386 links
 
link1="http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.6-quantal/linux-headers-3.6.0-030600_3.6.0-030600.201209302035_all.deb"
 
link2="http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.6-quantal/linux-headers-3.6.0-030600-generic_3.6.0-030600.201209302035_i386.deb"
 
link3="http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.6-quantal/linux-image-3.6.0-030600-generic_3.6.0-030600.201209302035_i386.deb"
 
link4="http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.6-quantal/linux-image-extra-3.6.0-030600-generic_3.6.0-030600.201209302035_i386.deb"
 
#amd64 links
 
url1="http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.6-quantal/linux-headers-3.6.0-030600-generic_3.6.0-030600.201209302035_amd64.deb"
 
url2="http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.6-quantal/linux-image-3.6.0-030600-generic_3.6.0-030600.201209302035_amd64.deb"
 
url3="http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.6-quantal/linux-image-extra-3.6.0-030600-generic_3.6.0-030600.201209302035_amd64.deb"
 
#System architecture
 
arch=`uname -m`
if  [ $arch = i686 ] || [ $arch = i386 ]; then
 
mkdir $HOME/kernel3.6-i386
 
sudo rm -rf $HOME/kernel3.6-i386/*
 
cd $HOME/kernel3.6-i386
 
wget $link1
wget $link2
wget $link3
wget $link4
 
sudo dpkg -i *.deb
 
sudo rm -rf $HOME/kernel3.6-i386
 
elif [ $arch = "x86_64" ]; then
 
 
mkdir $HOME/kernel3.6-amd64
 
sudo rm -rf $HOME/kernel3.6-amd64/*
 
cd $HOME/kernel3.6-amd64
 
wget $link1
wget $url1
wget $url2
wget $url3
 
sudo dpkg -i *.deb
 
sudo rm -rf $HOME/kernel3.6-amd64
 
    else
        echo "Unsupported Architecture"
fi

 

kernel_linux_precise_4

 

After saving the file, run the commands below to make the file executable.

chmod +x /tmp/linux-kernel-3.6

 

kernel_linux_precise_1

 

Finally, run the commands below to install / upgrade your kernel to version 3.6

sudo sh -c '/tmp/linux-kernel-3.6'

 

kernel_linux_precise_2

 

After installing, you must restart your computer.

 

Enjoy!

 

kernel_linux_precise_3

 

The original script can be found here.