netboot/netboot.tar.gz
# tar xf netboot.tar.gz
# ls -l
total 25896
drwxrwxr-x 3 root root
4096 May
6 04:43 debian-installer
259
Chapter 10 — Kali Linux in the Enterprise
lrwxrwxrwx 1 root root
47 May
6 04:43 ldlinux.c32 -> debian-installer/amd64/boot
å
-screens/ldlinux.c32
-rw-r--r-- 1 root root 26507247 May
6 04:43 netboot.tar.gz
lrwxrwxrwx 1 root root
33 May
6 04:43 pxelinux.0 -> debian-installer/amd64/
å
pxelinux.0
lrwxrwxrwx 1 root root
35 May
6 04:43 pxelinux.cfg -> debian-installer/amd64/
å
pxelinux.cfg
-rw-rw-r-- 1 root root
71 May
6 04:43 version.info
The unpacked files include the pxelinux bootloader, which uses the same configuration files as
syslinux and isolinux. Because of this, you can tweak the boot files in
debian-installer/amd64/
boot-screens/
as you would when generating
custom Kali Linux live ISO images
.
For example, assuming that you have picked the textual installer, you can add boot parameters
to preseed the language, country, keymap, hostname, and domain name values. You can also
point the installer to an external preseed URL and configure the timeout so that the boot happens
automatically if no key is pressed within 5 seconds. To accomplish this, you would first modify
the
debian-installer/amd64/txt.cfg
file:
label install
menu label ^Install
kernel debian-installer/amd64/linux
append vga=788 initrd=debian-installer/amd64/initrd.gz --- quiet language=en
å
country=US keymap=us hostname=kali domain= url=http://192.168.101.1/
å
preseed.cfg
Then, you would modify the
debian-installer/amd64/syslinux.cfg
file to adjust the timeout:
# D-I config version 2.0
# search path for the c32 support libraries (libcom32, libutil etc.)
path debian-installer/amd64/boot-screens/
include debian-installer/amd64/boot-screens/menu.cfg
default debian-installer/amd64/boot-screens/vesamenu.c32
prompt 0
timeout 50
Armed with the ability to boot any machine from the network via PXE, you can take ad-
vantage of all the features outlined in section
4.3
, “
Unattended Installations
” [page 95], en-
abling you to do full booting, preseeding, and unattended installation on multiple comput-
ers without physical boot media. Also, don’t forget the flexibility of the boot parameter pre-
seed/url=http://
server
/preseed.cfg (nor the use of the url alias), which allows you to set a network-
based preseed file.
260
Kali Linux Revealed
|