Athena Wiki

Kali Linux Setup for CTF

getting startedbeginner

Detailed Kali Linux hard-disk installation walkthrough with screenshots, partitioning choices, encryption notes, and post-install CTF setup.

setupkalilinuxinstallationhard-disk-installctf-environment

Kali Linux Hard-Disk Install for CTF

This is an original, step-by-step hard-disk install guide for Kali Linux, based on the official install flow and adapted for CTF usage.

It focuses on:

  • Single-boot install on bare metal or VM disk
  • Optional full-disk encryption (LVM)
  • Stable defaults for beginners
  • Post-install setup for CTF tooling

Official Reference

For the canonical installer docs and latest screenshots, see the official Kali page: Installing Kali Linux (Hard Disk)

Installation Flow

Mermaid diagram

Requirements and Preparation

Minimum Practical Specs

  • CPU: amd64 (x86_64)
  • RAM:
    • 512 MB minimum for CLI-only
    • 2 GB recommended for desktop install
    • 8 GB recommended if you use Burp, browser, Ghidra, and debugger simultaneously
  • Disk:
    • 2 GB for minimal CLI install
    • 20+ GB recommended for desktop + common CTF tooling

Download the Correct Image

Use the Installer image from Get Kali.

# Linux/macOS
sha256sum kali-linux-*.iso
# Windows PowerShell
Get-FileHash .\kali-linux-*.iso -Algorithm SHA256

Compare the hash with Kali's published checksum.

Full Installer Walkthrough

1) Boot the Installer

Start from the USB and pick Graphical install.

Kali installer boot menu

If you used a Live ISO, you may also see Live boot entries.

Kali live boot menu

2) Language, Region, Keyboard

Choose your language, location, and keyboard layout.

Language selection Region selection Keyboard selection

3) Network, Hostname, Domain

Installer will try DHCP automatically.

Hostname setup Domain setup

Suggested values for CTF use:

  • Hostname: kali-ctf
  • Domain: leave blank unless you need one

If no DHCP is available:

  • Configure static IP manually
  • Or continue without network and configure later

4) Create User Account

Set full name, username, and strong password.

User full name Username Password

5) Time Zone

Select your time zone.

Timezone

6) Partitioning (Important)

For beginner single-boot installs, choose:

  • Guided - use entire disk

For encrypted install:

  • Guided - use entire disk and set up encrypted LVM

Partition option Disk select Partition scheme Partition confirm Write changes

Recommended for most users:

  • "All files in one partition"

7) Optional Encrypted LVM Notes

If encrypted LVM is selected:

  • Installer may offer secure wipe before encryption
  • Wipe can take a long time on large disks
  • You will set an unlock passphrase used at each boot

Use a strong passphrase and keep a backup in a secure password manager.

8) Proxy and Package Selection

Enter proxy details only if your network requires it.

Proxy setup

Keep default metapackage choices if you are unsure.

Metapackage selection

9) Install GRUB

Confirm GRUB installation and pick the correct target disk.

GRUB install confirm GRUB disk select

10) Reboot Into Installed Kali

Finish installation and reboot.

Reboot prompt

Partitioning Strategy Cheatsheet

ScenarioBest ChoiceNotes
New machine, Kali onlyGuided - entire diskFastest and simplest
Need disk encryptionGuided encrypted LVMStrong privacy for laptop use
Dual boot with existing OSGuided largest free space or ManualBack up first
Advanced custom layoutManualFor separate /home, custom filesystems, etc.

First Boot After Installation

Run these immediately:

sudo apt update
sudo apt full-upgrade -y
sudo apt autoremove -y

Install practical CTF essentials:

sudo apt install -y kali-tools-top10 tmux seclists
pip3 install --break-system-packages pwntools pycryptodome gmpy2 z3-solver

Unpack rockyou wordlist:

sudo gzip -d /usr/share/wordlists/rockyou.txt.gz

CTF Quality-of-Life Setup

Add aliases:

cat >> ~/.zshrc << 'EOF'
alias ctf='mkdir -p ~/ctf && cd ~/ctf'
alias ports='ss -tulpen'
alias py='python3'
alias cs='checksec --file'
EOF
source ~/.zshrc

Quick validation:

python3 -c "from pwn import *; print('pwntools OK')"
gdb -q -ex quit && echo "gdb OK"

Final Checklist

  • Installer ISO hash verified
  • Booted in intended mode (UEFI or BIOS)
  • Correct disk selected for partitioning
  • GRUB installed to correct drive
  • System fully upgraded after first boot
  • CTF tools validated (pwntools, gdb, wordlists)

Next Step

Continue with Setting Up Your Environment and CTF Platforms to prepare your first competition workflow.


Last updated on

On this page