Are you lot tired of downloading Kali Packages every-time you lot re-install? Kali Linux 2016.1? I know I am. The 2.6G ISO file was released dorsum inwards Jan 2016 together with since together with then it hasn’t been updated. This is an piece of cake together with quick trend for edifice updated Kali Linux ISO for Kali 2016.2 together with escape downloading same packages over together with over together with over again.
Ohh, yes, inwards illustration you lot missed it, Kali Linux 2016.2 has been inwards the wild since 2016-07-21, at that spot precisely wasn’t whatsoever official proclamation every bit it seems similar an internal build-name/code. This also means, if you lot were similar me who tries trend every bit good much together with breaks scheme together with keeps re-installing it, you lot are constantly doing the same apt-get update, upgrade together with dist-upgrade to update you lot onetime Kali Linux 2016.1 to 2016.2. Here is the version information for Kali 2016.1
root@kali: # truthful cat /proc/version
Linux version 4.3.0-kali1-amd64 (debian-kernel@lists.debian.org) (gcc version 5.3.1 20160101 (Debian 5.3.1-5) ) #1 SMP Debian 4.3.3-5kali4 (2016-01-13)
root@kali: #
and here’s is the version information for Kali 2016.2
root@kali: # truthful cat /proc/version
Linux version 4.6.0-kali1-amd64 (devel@kali.org) (gcc version 5.4.0 20160609 (Debian 5.4.0-6) ) #1 SMP Debian 4.6.4-1kali1 (2016-07-21)
root@kali: #
So, Kernel is updated from 4.3.0 to 4.6.0 together with build/release appointment is changed from (2016-01-13) to (2016-07-21). That’s vi months worth of updates or i.e. 2 GB of download together with no I am non fifty-fifty worried virtually the download. Personally, I am concerned virtually the fourth dimension together with effort. This post service volition also attention those alongside slower Internet and/or download cap express users. You practice this once, continue that ISO together with the solely packages you lot volition ask it from that twenty-four hr stream ono. Sounds fair? I bet it does. Lets practice it!
Building an updated Kali ISO is truly real piece of cake together with if you lot read Kali documentations, you lot in all likelihood practice it already. If not, here’s some dot points to convince you:
- This procedure creates an ISO alongside the latest packages, thence you lot don’t ask to download whatsoever (or every bit good many) inwards coming weeks.
- You tin configure diverse desktop environments (such every bit KDE, Gnome, E17, I3WM, LXDE, MATE together with XFCE) together with practice multiple ISO’s. Same bargain for these ISO’s. They volition lead hold the latest together with greatest packages already in.
- You tin command meta-packages inwards your construct together with solely download the packages you lot ask to construct your custom ISO. This fits perfectly for those who operate inwards minimal surround or industrial plant using a detail application. Also less download, smaller ISO.
- You practice role live-build claw scripts inwards diverse stages of the Kali ISO alive build.
- You tin include additional files or scripts inwards your construct together with practice ISO alongside it. This helps when you lot are edifice it for a detail organization.
You tin configure virtually whatsoever facial expression of your Kali ISO construct using the Debian live-build scripts. These scripts allow developers to easily construct alive scheme images past times providing a framework that uses a configuration laid to automate together with customize all aspects of edifice the image. The Kali Linux evolution squad has adopted these scripts together with they’re used to create the official Kali ISO releases.
Requirements
Ensure that your scheme meets the next requirements to avoid issues:
- About 20G gratis disk space.
- A decent Internet connection.
- Existing Kali environment.
Disk infinite seems to live the most of import of all. This total procedure used virtually 17G infinite (I assume the scheme volition role some swap for slower systems). You ask the disk-space every bit this procedure volition download all the packages, uncompress those together with and then practice an ISO. I had some 55GB dedicated on my Samsung 850 EVO – 500GB SSD drive for Kali, thence had absolutely no issues.
Getting Ready — Setting upward the live-build system
We commencement ask to fix the Kali ISO construct surround past times installing together with setting upward live-build together with its requirements alongside the next commands:
root@kali: # apt-get install curl git live-build cdebootstrap
root@kali: # git clone git://git.kali.org/live-build-config.git
Now you lot tin only construct an updated Kali ISO past times entering the live-build-config
directory together with running our build.sh wrapper script, every bit follows:
root@kali: # cd live-build-config
root@kali: /live-build-config# ./build.sh --distribution kali-rolling --verbose
The build.sh
script volition lead hold a piece to complete, every bit it downloads all of the required packages needed to practice your ISO. Good fourth dimension for a coffee. Yeah nah, larn away for a virtually an hr or two.
and the lastly result?
root@kali: /live-build-config# ls -ltrah images/
total 2.8G
-rw-r--r-- 1 origin root 2.8G Aug 4 23:18 kali-linux-rolling-amd64.iso
-rw-r--r-- 1 origin root 1.2M Aug 4 23:19 kali-linux-rolling-amd64.log
drwxr-xr-x 12 origin root 4.0K Aug 4 23:19 ..
drwxr-xr-x 2 origin root 4.0K Aug 4 23:19 .
root@kali: /live-build-config#
a 2.8G Kali Linux rolling ISO for 64-bit systems. Nice!!!
Building a Kali Linux ISO for Older i386 Architectures
The Kali Linux i386 ISO has PAE enabled. If you lot require a default amount for older hardware alongside PAE disabled, you lot volition ask to rebuild a Kali Linux ISO. The rebuilding procedure is much the same every bit described above, except that the 686-pae parameter that needs to live changed to 586 inwards auto/config every bit follows. First, install the prerequisites.
apt-get install git live-build cdebootstrap debootstrap
git clone git://git.kali.org/live-build-config.git
Next, brand the alter inwards auto/config
for the appropriate architecture:
cd live-build-config
sed -i 's/686-pae/586/g' auto/config
Finally, run your build.
./build.sh --distribution kali-rolling --arch i386
Conclusion
I remember this is a bully idea. It truly helps if you lot lead hold a custom wifi card or hardware that requires to a greater extent than packages (i.e. kernel-headers together with drivers etc.). You tin only bundle those inwards your pre-defined construct together with practice an ISO that volition precisely WORK without whatsoever hassle.
Thanks for reading. If you’ve flora this article helpful, practice bookmark together with part it. Any issues, permit us know via comments section. As usual, commenting doesn’t require whatsoever registration together with volition ever rest open.