Skip to content

Instantly share code, notes, and snippets.

@ksophocleous
Last active August 29, 2015 14:02
Show Gist options
  • Save ksophocleous/a6282c4206331de37f5a to your computer and use it in GitHub Desktop.
Save ksophocleous/a6282c4206331de37f5a to your computer and use it in GitHub Desktop.
update kernel on EC2 precise to 3.2.59 (32bit)
#!/bin/bash
# NOTE: This was tested on ami-06d12671
set -e
sudo apt-get update --fix-missing
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
sudo apt-get remove -y apparmor
cd
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2.59-precise/linux-headers-3.2.59-030259_3.2.59-030259.201405181035_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2.59-precise/linux-headers-3.2.59-030259-virtual_3.2.59-030259.201405181035_i386.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2.59-precise/linux-image-3.2.59-030259-virtual_3.2.59-030259.201405181035_i386.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2.59-precise/linux-image-extra-3.2.59-030259-virtual_3.2.59-030259.201405181035_i386.deb
sudo dpkg -i linux-headers-3.2.59-030259_3.2.59-030259.201405181035_all.deb
sudo dpkg -i linux-headers-3.2.59-030259-virtual_3.2.59-030259.201405181035_i386.deb
sudo dpkg -i linux-image-3.2.59-030259-virtual_3.2.59-030259.201405181035_i386.deb
sudo dpkg -i linux-image-extra-3.2.59-030259-virtual_3.2.59-030259.201405181035_i386.deb
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment