0% found this document useful (0 votes)
98 views3 pages

Recompiling The Kali Linux Kernel

Uploaded by

gejib
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views3 pages

Recompiling The Kali Linux Kernel

Uploaded by

gejib
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Home Translators Contribute to Kali Kali Forums F.A.

Have a question? Ask or enter a search term. SEARCH

English Recompiling the Kali Linux Kernel


简体中文 Home / 07. Kali Linux Development
Français
Deutsch
‫اﻟﻌﺮﺑﻴﺔ‬ On occasion, you might want to add certain drivers, patches, or kernel features that are not
Português
included in the stock Kali Linux kernel. The following guide will describe how the Kali Linux kernel
Nederlands
can be quickly modified and recompiled for your needs. Please note that global wireless injection
Italiano
patches are already present by default in the Kali Linux kernel.
Русский
Español

Categories Install Build Dependencies


00. Introduction to Kali Linux Start by installing all the build dependencies required for recompiling your kernel.

01. Downloading Kali Linux


apt-get install kernel-package ncurses-dev fakeroot bzip2
02. Building Custom Kali Images

03. Installing Kali Linux

04. Kali Linux Network Installs Download Kali Linux Kernel Source Code
05. Kali Linux General Use Download and extract the Kali Linux kernel source.
06. Kali Linux ARM Architecture
apt-get install linux-source
07. Kali Linux Development
cd /usr/src/
08. Troubleshooting Kali Linux tar jxpf linux-source-3.7.tar.bz2
cd linux-source-3.7/
09. Kali Community Support

10. Kali Linux Policies


Configure Your Kernel
Latest Articles
Copy over the default Kali kernel .config file and then modify it to your needs. This is the stage
Custom EfikaMX Image where you would apply various patches, etc. In this example, we are re-compiling a 64 bit kernel.

Install Kali ARM on an EfikaMX


cp /boot/config-3.7-trunk-amd64 .config
make menuconfig
Custom Beaglebone Black Image

Install Kali ARM on a Beaglebone


Black
Build the Kernel
Custom CuBox Image
Compile your modified kernel image. Depending on your hardware, this could take a while.
Install Kali ARM on a CuBox

export CONCURRENCY_LEVEL=$(cat /proc/cpuinfo|grep processor|wc -l)


Kali Linux sources.list repositories
make-kpkg clean
fakeroot make-kpkg kernel_image
Install NVIDIA Drivers on Kali Linux

Kali Linux on Galaxy Note 10.1

Submitting Bugs for Kali Linux


Install the Kernel
Once the kernel has successfully compiled, go ahead and install the new kernel and reboot.
Please note that kernel version numbers may change – in our example, it was 3.7.2. Depending on
Twitter Stream
the current kernel version, you might need to adjust it accordingly.

Follow Us! dpkg -i ../linux-image-3.7.2_3.7.2-10.00.Custom_amd64.deb


update-initramfs -c -k 3.7.2
update-grub2
reboot
Once rebooted, your new kernel should be running. If things go wrong and your kernel does not
boot, you can still boot the original stock Kali kernel and fix your issues.

Related Articles

Custom EfikaMX Image

Custom Beaglebone Black Image

Custom CuBox Image

Custom Raspberry Pi Image

© Copyright 2013, Offensive Security

English 简体中文 Français Deutsch ‫اﻟﻌﺮﺑﻴﺔ‬ Português Nederlands Italiano Русский Español

You might also like