Burn the ISO image to DVD or USB drive using your preferred tool, such as Etcher or Rufus. 3. Ensure that your computer is set to boot from CD/DVD/USB in BIOS/UEFI settings. In UEFI mode, disable Secure Boot if it’s enabled by default. 4. Insert the Kali Linux media into the appropriate drive and start the installation process. Choose either Graphical install or Install (Text-Mode) option based on your preference. 5. Follow the prompts to select language, geographic location, keyboard layout, network settings, user account creation, clock setup, disk partitioning, encryption options, proxy information, and boot loader configuration. 6. Once the installation is complete, reboot into Kali Linux using the newly installed GRUB bootloader. To optimize package downloads during the build process with sbuild-createchroot or sbuild-shell, follow these additional steps:
1. Install apt-cacher-ng on your system by running `apt install -y apt-cacher-ng` in a terminal window. 2. Check the version that was installed. If it’s below 0.6.1-1, Kali is not supported out of the box, and there’s a little config to do:
# Create a file containing the Kali repository URL and save it in the apt-cacher-ng directory
echo "http://http.kali.org/kali/" | sudo tee /etc/apt-cacher-ng/kali_mirrors
# Create a file containing the Kali download URL and save it in the apt-cacher-ng directory
echo "http://kali.download/kali/" | sudo tee /etc/apt-cacher-ng/backends_kali
# Create a configuration file for Kali in the apt-cacher-ng directory
cat << EOF | sudo tee /etc/apt-cacher-ng/kali.conf
# Repository remapping for Kali. See acng.conf and manual for details.
Remap-klxrep: file:kali_mirrors /kali ; file:backends_kali
EOF
3. Enable apt-cacher-ng by running `sudo systemctl enable apt-cacher-ng –now` in a terminal window. 4. Add the following line of configuration inside your chroot, so that apt is configured to use the proxy:
# Enable apt-cacher-ng by running the following command in a terminal window
sudo systemctl enable apt-cacher-ng --now
# Add the following line of configuration inside your chroot, so that apt is configured to use the proxy
echo 'Acquire::HTTP::Proxy "http://localhost:3142";' > /etc/apt/apt.conf.d/01proxy
# Exit the sbuild-shell and return to the original terminal window
exit
5. Run tail -f /var/log/apt-cacher-ng/apt-cacher.log while you run build a package with sbuild to make sure that everything works and packages are being cached in the directory `/var/cache/apt-cacher-ng/klxrep`.
In this list, there should be at least the mirror that you used with the command sbuild-createchroot above. The file backends_kali lists the mirror that apt-cacher-ng will actually use to download packages. You should set it to a mirror that is close to you.
By following these steps, your package downloads during the build process with sbuild-createchroot or sbuild-shell will be optimized and cached for future builds.