Skip to content

Instantly share code, notes, and snippets.

@2075
Last active June 30, 2021 11:24
Show Gist options
  • Save 2075/cba54cf36b2d6f135320ce4132fcc871 to your computer and use it in GitHub Desktop.
Save 2075/cba54cf36b2d6f135320ce4132fcc871 to your computer and use it in GitHub Desktop.
ubuntu install kernel 5.10, 5.12 one liner, get nvidia drivers

Handle with care

5.10.0

mkdir -p /tmp/ && cd /tmp/ && \
  wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10/amd64/linux-headers-5.10.0-051000_5.10.0-051000.202012132330_all.deb && \
  wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10/amd64/linux-headers-5.10.0-051000-generic_5.10.0-051000.202012132330_amd64.deb && \
  wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10/amd64/linux-image-unsigned-5.10.0-051000-generic_5.10.0-051000.202012132330_amd64.deb && \
  wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10/amd64/linux-modules-5.10.0-051000-generic_5.10.0-051000.202012132330_amd64.deb && \
  sudo dpkg -i *.deb

5.11.17

mkdir -p /tmp/ && cd /tmp/ && \
  wget -c https://kernel.ubuntu.com/\~kernel-ppa/mainline/v5.11.17/amd64/linux-headers-5.11.17-051117_5.11.17-051117.202104281235_all.deb && \
  wget -c https://kernel.ubuntu.com/\~kernel-ppa/mainline/v5.11.17/amd64/linux-headers-5.11.17-051117-generic_5.11.17-051117.202104281235_amd64.deb && \
  wget -c https://kernel.ubuntu.com/\~kernel-ppa/mainline/v5.11.17/amd64/linux-image-unsigned-5.11.17-051117-generic_5.11.17-051117.202104281235_amd64.deb && \
  wget -c https://kernel.ubuntu.com/\~kernel-ppa/mainline/v5.11.17/amd64/linux-modules-5.11.17-051117-generic_5.11.17-051117.202104281235_amd64.deb && \
  sudo dpkg -i *.deb

5.12.0

mkdir -p /tmp/ && cd /tmp/ && \
  wget -c https://kernel.ubuntu.com/\~kernel-ppa/mainline/v5.12/amd64/linux-headers-5.12.0-051200_5.12.0-051200.202104252130_all.deb && \
  wget -c https://kernel.ubuntu.com/\~kernel-ppa/mainline/v5.12/amd64/linux-headers-5.12.0-051200-generic_5.12.0-051200.202104252130_amd64.deb && \
  wget -c https://kernel.ubuntu.com/\~kernel-ppa/mainline/v5.12/amd64/linux-image-unsigned-5.12.0-051200-generic_5.12.0-051200.202104252130_amd64.deb && \
  wget -c https://kernel.ubuntu.com/\~kernel-ppa/mainline/v5.12/amd64/linux-modules-5.12.0-051200-generic_5.12.0-051200.202104252130_amd64.deb && \
  sudo dpkg -i *.deb

nvidia drivers for ~ rtx 3070 460 / 465 / 470

  • wget https://us.download.nvidia.com/XFree86/Linux-x86_64/460.84/NVIDIA-Linux-x86_64-460.84.run
  • wget https://us.download.nvidia.com/XFree86/Linux-x86_64/465.24.02/NVIDIA-Linux-x86_64-465.24.02.run
  • wget https://uk.download.nvidia.com/XFree86/Linux-x86_64/465.31/NVIDIA-Linux-x86_64-465.31.run
  • wget https://us.download.nvidia.com/XFree86/Linux-x86_64/470.42.01/NVIDIA-Linux-x86_64-470.42.01.run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment