Skip to content

Instantly share code, notes, and snippets.

@amshinde
Last active March 27, 2019 21:20
Show Gist options
  • Save amshinde/95235cab60534f2916e73a83c01c6f04 to your computer and use it in GitHub Desktop.
Save amshinde/95235cab60534f2916e73a83c01c6f04 to your computer and use it in GitHub Desktop.

Installing uptream kernel on ubuntu:

Kernels can be found at https://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D

For installing kernel 5.0.5 :

curl -LO https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0.5/linux-headers-5.0.5-050005_5.0.5-050005.201903271212_all.deb
curl -LO https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0.5/linux-image-unsigned-5.0.5-050005-generic_5.0.5-050005.201903271212_amd64.deb
curl -LO https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0.5/linux-modules-5.0.5-050005-generic_5.0.5-050005.201903271212_amd64.deb

sudo dpkg -i *.deb

Reboot. In case you want to reboot into another kernel, edit /etc/default/grub

sudo vim /etc/default/grub
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

Comment out the GRUB_TIMEOUT_STYLE=hidden line and increase the GRUB_TIMEOUT

sudo update-grub
sudo reboot

(You can change the default from 0 to any number)

Instructions can be found at: https://wiki.ubuntu.com/Kernel/MainlineBuilds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment