sodcalculator

10 Tech How-To

Kali Linux Install and Setup Guide

Guide 10-32315 · Updated · Step by step

This guide walks you through installing Kali Linux, the leading penetration testing and security auditing distribution, on your own computer. You’ll learn how to prepare a USB drive, boot from it, and complete a full installation, then configure the essentials for daily use. By the end, you’ll have a working Kali system ready for security work or learning.

What You’ll Need

  • A computer with at least 20 GB of free disk space (40 GB recommended) and a minimum of 2 GB RAM (4 GB recommended).
  • A USB drive with at least 8 GB capacity (16 GB recommended) – this will be completely erased.
  • Another computer to download the ISO and write it to the USB drive.
  • Software to write the ISO to the USB drive: Rufus (Windows), balenaEtcher (Windows/macOS/Linux), or the dd command (Linux/macOS).
  • A stable internet connection for downloading the ISO and later updating packages.

Step-by-Step

  1. Download the Kali Linux ISO. Go to the official Kali Linux website (kali.org) and download the latest stable ISO image. Choose the “Installer” version if you want a full install with customization, or “Live” if you just want to try it without installing. The “Installer” is recommended for a permanent setup.
  2. Write the ISO to the USB drive. Insert the USB drive into your computer. Open Rufus (Windows) or balenaEtcher (any OS). Select the downloaded ISO file and the USB drive, then start the writing process. This will erase the USB drive, so make sure you don’t have any important data on it. Wait for the process to complete.
  3. Boot from the USB drive. Restart your computer and enter the boot menu (usually by pressing F12, F2, Esc, or Del during startup – the exact key depends on your motherboard). Choose the USB drive as the boot device. If your computer doesn’t boot from USB, you may need to disable Secure Boot in the BIOS/UEFI settings.
  4. Select the installation mode. When the Kali boot menu appears, choose “Graphical Install” (or “Install” if you prefer a text-based installer). This launches the Debian-based installer.
  5. Choose language, location, and keyboard layout. The installer will ask for your preferred language, location, and keyboard layout. Select the ones that match your region and preferences.
  6. Configure the network. The installer will automatically detect your network. If you’re using Ethernet, it should work out of the box. For Wi-Fi, you’ll need to select your network and enter the password. If you’re not sure, you can skip this step and configure networking later.
  7. Set the hostname and domain. Enter a hostname for your computer (e.g., “kali”). You can leave the domain field empty unless you’re on a domain network.
  8. Create a user account. Set a full name, username, and a strong password for the main user. This user will have administrative (sudo) privileges.
  9. Partition the disk. The installer will ask how to partition your disk. For a simple setup, choose “Guided – use entire disk” and select the disk you want to install Kali on. You can then choose “All files in one partition” for simplicity, or “Separate /home” if you want to keep user data separate. Review the partition layout and confirm to write changes.
  10. Install the base system. The installer will format the partitions and copy the base system files. This takes a few minutes.
  11. Configure the package manager. The installer will ask if you want to use a network mirror. Choose “Yes” to get the latest updates during installation. It will then download and install the base packages.
  12. Install the GRUB boot loader. When prompted, install GRUB to the master boot record of your primary disk. Select “Yes” and choose the disk (e.g., /dev/sda). This allows you to boot Kali from the hard drive.
  13. Finish the installation. Once GRUB is installed, the installer will finish. Remove the USB drive and reboot your computer. If everything went well, you’ll see the GRUB menu and then the Kali login screen.
  14. Log in and update. Log in with the username and password you created. Open a terminal and run sudo apt update followed by sudo apt upgrade to fetch and install the latest security patches and package updates. This is essential for a secure and stable system.
  15. Install additional tools (optional). Kali comes with many tools pre-installed. If you need more, use sudo apt install . For example, sudo apt install metasploit-framework installs the Metasploit framework.

Common Mistakes

  • Not disabling Secure Boot. Many modern computers have Secure Boot enabled, which prevents booting from unofficial media. If your USB drive isn’t recognized, disable Secure Boot in your BIOS/UEFI settings.
  • Choosing the wrong disk during partitioning. If you have multiple drives, you might accidentally install Kali over your existing OS. Double-check the disk size and model before confirming the partition layout.
  • Using a USB drive that’s too small. The Kali ISO is around 4 GB, but the installer needs space to write temporary files. An 8 GB drive is the minimum, but 16 GB is safer.
  • Not updating after installation. The ISO may be months old. Running sudo apt update && sudo apt upgrade right after installation ensures you have the latest security fixes and tool versions.
  • Forgetting to remove the USB drive before reboot. The system might boot back into the installer if the USB drive is still plugged in. Remove it when prompted.

Tips

  • Use a wired connection during installation. Wi-Fi drivers may not be available during the installer, so a wired Ethernet connection is more reliable.
  • Create a snapshot or backup. If you’re installing Kali on a machine you use for other things, back up your important data first. Partitioning can be destructive.
  • Learn the basics of the command line. Kali is heavily command-line oriented. Familiarize yourself with commands like cd, ls, sudo, and apt.
  • Use a virtual machine for practice. If you’re new to Kali, consider installing it in VirtualBox or VMware first. This lets you experiment without risking your main system.
  • Keep the system updated. Security tools change rapidly. Make it a habit to run sudo apt update && sudo apt upgrade weekly.

Troubleshooting

  • USB drive not booting. First, verify that the USB drive was written correctly – try rewriting it with balenaEtcher. Next, check your BIOS/UEFI boot order and ensure USB boot is enabled. Disable Secure Boot if it’s on. If the drive still doesn’t boot, try a different USB port (preferably a USB 2.0 port).
  • Installer freezes or crashes. This can happen due to incompatible hardware or a corrupted ISO. Re-download the ISO and verify its checksum (the SHA256 hash is listed on the Kali download page). If it persists, try the “Live” version instead of the installer.
  • No Wi-Fi after installation. Some Wi-Fi cards require proprietary drivers. Connect via Ethernet and run sudo apt update then sudo apt install firmware-iwlwifi (for Intel cards) or search for the appropriate firmware package. Reboot after installing.
  • GRUB boot loader not installed. If you get a blank screen or “No bootable device” after reboot, the boot loader wasn’t installed correctly. Boot from the USB again, choose “Rescue mode”, and follow the prompts to reinstall GRUB.
  • Forgotten password. If you forget your user password, you can reset it by booting into recovery mode (from GRUB, select “Advanced options” then “Recovery mode”) and using the passwd command.
  • Screen resolution issues. After installation, if the display is too small or too large, install the appropriate graphics drivers. For NVIDIA, run sudo apt install nvidia-driver. For Intel, the drivers are usually included.

Frequently Asked Questions

  1. Is Kali Linux free? Yes, Kali Linux is completely free to download and use. It’s open-source software.
  2. Can I dual-boot Kali with Windows? Yes, you can. During partitioning, choose “Guided – use the largest continuous free space” or manually create a partition for Kali. The GRUB boot loader will let you choose between Windows and Kali at startup.
  3. Do I need to be a hacker to use Kali? No. Kali is a security tool, but it’s also used by IT professionals, students, and enthusiasts for learning about network security, penetration testing, and digital forensics.
  4. How long does the installation take? The base installation typically takes 15-30 minutes, depending on your hardware and internet speed. The package download and installation can take longer if you choose many tools.
  5. Can I install Kali on a Raspberry Pi? Yes, Kali provides ARM images for Raspberry Pi and other single-board computers. The process is similar, but you’ll need to write the image directly to an SD card.
  6. What’s the default username and password? If you used the graphical installer, you set your own username and password. The default credentials (root/toor) only apply to the pre-built VMware or VirtualBox images, not to a fresh install.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →