# 1. Install Java (Ghidra requires Java 17+) sudo apt update sudo apt install -y openjdk-17-jdk wget unzip # 2. Create a directory for Ghidra mkdir -p ~/Tools/Ghidra cd ~/Tools/Ghidra # 3. Download the latest version of Ghidra wget https://github.com/NationalSecurityAgency/ghidra/releases/latest/download/ghidra_10.4.3_PUBLIC_20240625.zip # 4. Unzip the downloaded archive unzip ghidra_*_PUBLIC_*.zip # 5. (Optional) Clean up the zip file rm ghidra_*_PUBLIC_*.zip # 6. Create a launcher script (optional but convenient) echo -e '#!/bin/bash\n~/Tools/Ghidra/ghidra_*/ghidraRun' > ~/Tools/Ghidra/ghidra chmod +x ~/Tools/Ghidra/ghidra # 7. (Optional) Add it to PATH echo 'export PATH="$HOME/Tools/Ghidra:$PATH"' >> ~/.bashrc source ~/.bashrc