Instructions for installing Kali Linux via Network PXE
Starting and installing Potassium over the Internet (PXE) can be useful from installing a single laptop without a CD-ROM or USB port until deploying a business that supports Kali installation.
PXE Server setup
First, we need to install dnsmasq to provide DHCP / TFTP server and then edit the dnsmasq.conf file.
apt-get install dnsmasq
nano /etc/dnsmasq.conf
In dnsmasq.conf, enable DHCP, TFTP and PXE startup, as well as set dhcp scope to suit your environment. If necessary, you can also define your port and DNS server by indicating the dhcp-option as shown below:
interface = eth0
dhcp-range = 192.168.101.100,192.168.101.200.12h
dhcp-boot = pxelinux.0
enable-tftp
tftp-root = / tftpboot /
dhcp-option = 3.192.168.101.1
dhcp-option = 6.8.8.8.8.8.8.4.4
With on-site edits, the dnsmasq service needs to be restarted for the changes to take effect.
restart dnsmasq service
Download Kali PXE Netboot Image
Now, we need to create a folder to store Kali Netboot Image and download the image we want from the Kali repo.
mkdir -p / tftpboot
cd / tftpboot
# for 64 bit systems:
wget http://repo.kali.org/kali/dists/kali-rolling/main/installer-amd64/current/images/netboot/netboot.tar.gz
# for 32 bit systems:
wget http://repo.kali.org/kali/dists/kali-rolling/main/installer-i386/current/images/netboot/netboot.tar.gz
tar zxpf netboot.tar.gz
rm netboot.tar.gz
Configure the target to boot from the network
Everything has been configured, now you can boot the target system and configure it to boot from the network. It will get the IP address from the PXE server and start Kali.
See more:
- How to create customized Potassium ISO
- How to install Kali Linux on your computer
- How to install Kali Linux dual boot Windows
You should read it
- How to install Kali Linux on macOS
- How to create customized Potassium ISO
- Instructions for installing Kali Linux on Windows 10 are easier than ever
- How to install Kali Linux reduced version
- How to install NVIDIA drivers on Kali Linux
- How to install Kali Linux dual boot on macOS
- How to install Kali Linux dual boot Windows
- How to install VirtualBox Guest Additions on Kali Linux
May be interested
- How to install Kali Linux on macOSsince the release of kali linux 1.0.8, kali linux supports efi. this additional feature simplifies the process of installing and running potassium on various apple macbook air, pro and retina models.
- How to encrypt LVM partitions when installing Kali Linuxsometimes, we have sensitive data and want to encrypt using the entire drive encryption. with kali installer, you can start installing lvm partition encryption on both the hard drive or usb drive. the installation procedure is very similar to the normal kali linux installation, except to choose an encrypted lvm partition during installation.
- How to install Kali Linux reduced versionkali mini iso or kali linux's shortened version is a convenient way to install a minimal potassium system and install it 'from scratch'.
- Learn Forensics Mode in Kali Linuxkali linux 'live' provides users with 'forensic mode', a feature introduced for the first time in backtrack linux.
- How to install NVIDIA drivers on Kali Linuxthis document explains how to install nvidia drivers on kali linux and supports cuda, allowing integration with popular intrusion testing tools.
- How to install VirtualBox Guest Additions on Kali Linuxif you run kali linux as a 'guest' in virtualbox, this article will help you successfully install the 'virtualbox guest additions' tool on kali linux.