This is, how to build kali/i386 with preconfigured German language and keyboard layout. I made it 32-bit, as it is aimed for running on smaller computers like my EEEPC 1005HGO. There is also several and useful software added, which are not in kali by default. These are based of my special needs and, on the other hand, also a great improvement for the general use. For example a browser or skype for communications.
Note: This description will be updated from time to time. So stay tuned.
Last Update: 2014-08-20
NEWS: KALI 1.0.8 is out! It has now UEFI-Support, so now it can boot EFI-images, got bugs fixed, which were described here some time ago and got also added new aplications (i.e. Iceweasel).
Important: Please note, that in the boot menu “EFI Boot Menu” only appears, when there is an EFI-BIOS existent! Otherwise it appears only as “Boot Menu”.
First of all, take a look at kali site for documentation and how to build for different windowmanagers. Here we chose LXDE and commented out Gnome.
Prerequisits:
After the last repo change, you cannot use the live-build of your linux system. Instead you MUST use the live-build in kali-linux itself. To do so, download a kali live image the kali website according to the hardware on which you want to build your kali image.
You have to create a bootable live-cd and boot from it. Connect the running kali with the internet. Once this is done, install the packages “live-build” and “apt-cacher-ng” by using apt or aptitude. I suppose, you are experienced with these tools. In the next step, mount the partition on which you want to build kali to a mountpoint. In this example I suggest to use /mnt as mountpoint. You have to use a new live-build environment due to the massiv changes in latest version 1.0.8. So go into /mnt and enter the following command:
git clone git://git.kali.org/live-build-config.git
The live-build directory and its structure will now be created.
You are now ready to follow the steps below.
Package and Configurations
1. Thank the KALI-team for your great work!
2. Create a new file “~/live-build-config/config/package-lists/mylist.chroot.list” and put here all the additional packages you want to have. You may download mine, which you can get here.
– I suggest to add a fine browser. Iceweasel is now added by default in kali but I suggest to add iceweasel-l10n-de so it is in German
– An e-mail application will be nice, too? Add icedove and icedove-l10n-de (for smaller systems like netbooks or older notebooks you might prefer claws-mail, claws-mail-plugins and claws-mail-plugins-extra instead)
– if you are not happy with network-manager, you can add wicd-gtk
– I personally miss lynx, bluewho, mc, and as my hardware is mostly by Nvidia, I add nvidia-glx, nvidia-kernel-dkms and libgl1-nvidia-glx
– If you MUST use Oracle java, create a debian package with the “make-jpkg” script (from a Debian or Ubuntu system). ATTENTION: You cannot build this in Debian/jessie, you have to build in debian/wheezy or better, in kali itself. I suggest to do this way:
– download kali livefile system, and boot it (as already described above)
– mount the partition where live-build resides and download the jre-**.tgz there.
– now build it with ‘fakeroot make-jpkg jre-**.tgz’
– put the newly build ‘oracle-***.deb’ into the required place.
Any prebuilt packages (whatever-bla.deb), which are not available/downloadable from the kali- or debian-repository, has to be put into your “~/live-build-config/config/packages.chroot/”-folder.
Take care, they are named to debian standard name conditions!
For example, I entered the packages for “jnetmap-*” and “oracle- java-*” into this folder. To rename the “jNetmap-latest.deb“-Package into debian-style, use the command “dpkg-name jNetmap-latest.deb” and put the new package into the mentioned folder. If you are lazy, you can download latest jnetmap from here.
– I missed Skype! Downloading the Debian/Ubuntu package from skype’s site and put it into the folder, where I already put jnetmap (see above) requires pulseaudio. So add pulseaudio in the mylist.conf. If you want to run skype without pulseaudio, you need to download my patched version. It is 4.2.0.11 but shows as 4.3.0.37. Download it here.
– Woah, I missed etherape, so I added this, too (02. apr. 2014)
When you are finished with all prerequisits (adding packages, building and renaming packages, copying everything to the right place), you are ready for the fun part: Downloading and building.
Building
For English environment you go into your ~/live-build-config directory and run the following command to have a clear build environment:
lb clean –purge && lb config –architecture i386 && lb build
For German keyboard and environment you have to run this command:
lb clean –purge && lb config –architecture i386 –bootappend-live “boot=live noconfig=sudo username=root hostname=kali ignore_uuid locales=de_DE.UTF-8 keyboard-layouts=de keyboard-variants=nodeadkeys” && lb build
I made a script for these, which makes things easier. You can download it here.
This will download, unpack, install and create the ISO-image for you. The file will be named binary.hybrid.iso. If anything goes wrong, check the file binary.log. Feel free, to contact me at “kontakt (at) ullrich-it.de” if you have questions.
And as said above: This documentation will be improved from time to time. So stay tuned!
Hints: You can add the command
&& wodim binary.hybrid.iso
to the command and put an empty DVD in your burner. This will automatically burn the resulting ISO. If you are building regularly, you will see, that apt-cacher-ng avoids you to download all the packages again and again.
Good luck folks! Have joy!
Best regards
Hans-J. Ullrich (Ullrich-IT-Consult, admin)
Warning: Kali-Linux is software, which is defined by §202 STGB and §203 STGB (German “Hackerparagraphs”). So do not misuse this software! Otherwise you could be prosecuted.
No comments yet.