tutorials questions & answers
by

Use custom kernel on Ubuntu VPS

TAGS:
  • ubuntu
  • kernel

Pick a kernel

Find a kernel at http://mirrors.kernel.org/ubuntu/pool/main/l/linux/. In the tutorial, we pick the latest available version 4.14.0-11-generic.

Download and Install

Commands starts with # means you need to run it with root privileges. Per your preference, you can choose either sudo or su -c.

For 64bit installation:

$ wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux/linux-image-4.14.0-11-generic_4.14.0-11.13_amd64.deb
# dpkg -i linux/linux-image-4.14.0-11-generic_4.14.0-11.13_amd64.deb

For 32bit installation:

$ wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux/linux-image-4.14.0-11-generic_4.14.0-11.13_i386.deb
# dpkg -i linux/linux-image-4.14.0-11-generic_4.14.0-11.13_i386.deb

Note: When a prompting box pops up saying "A new version of /boot/grub/menu.lst is available", make sure to pick install the package maintainer's version. Otherwise you'll not be able to update grub.lst automatically.

This is a vpsserver.com specific Ubuntu templates approach. It may not apply if you are using service from other providers.

Update grub

Run the following command `shell

grub-set-default "Ubuntu, with Linux 4.14.0-11-generic"

update-grub


## Install extra modules

If you are planning use Docker or use NFS, you may want to install extra kernel modules as well.  Run:

For 64bit installation:

```shell
$ wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux/linux-image-extra-4.14.0-11-generic_4.14.0-11.13_amd64.deb
# dpkg -i linux-image-extra-4.14.0-11-generic_4.14.0-11.13_amd64.deb

For 32bit installation:

$ wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux/linux-image-extra-4.14.0-11-generic_4.14.0-11.13_i386.deb
# dpkg -i linux-image-extra-4.14.0-11-generic_4.14.0-11.13_i386.deb

Reboot

Reboot your system and you're all set!

comments (1)

  • reply 0 2 months ago

    How to update kernel on centos 7?

    grub-set-default commmand not found

leave comment

Please choose login or register to comment in this thread.

Start now for as low as $4,99 a month!

  • 8 Characters
  • 1 Uppercase Atleast
  • 1 Number Atleast