Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save codenamezjames/b6e0110b64f8521c5578 to your computer and use it in GitHub Desktop.
Save codenamezjames/b6e0110b64f8521c5578 to your computer and use it in GitHub Desktop.

Copy current kernel configuration to linux source

cp -vi /boot/config-`uname -r` .config

Decide about new kernel options

make localmodconfig

Compile the kernel

make -j6

Compile kernel modules

sudo make modules_install

Install/Place kernel and libs where they should be

sudo make install

Update GRUB

sudo update-grub2

Update initramfs (possibly optional)

sudo update-initramfs -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment