This repository contains repeatable Arch Linux installation scripts and Flipper Zero BadUSB (DuckyScript) payloads for different hardware/boot scenarios.
The goal is a predictable “wipe-and-reinstall” workflow for disposable systems.
These scripts WIPE THE TARGET DISK. They are destructive by design.
- Double-check the target disk (
/dev/sda,/dev/nvme0n1, etc.) before running. - These scripts are intended for machines where data is disposable or backed up.
- Use at your own risk.
Typical layout (adjust to match your filenames):
Use this when the device is Legacy-only (or you intentionally want BIOS boot).
- Script:
scripts/archinstall-legacy.sh - Ducky:
ducky/flipper-legacy.txt
Notes:
- Boot the Arch ISO in Legacy mode.
- Bootloader setup will be BIOS/MBR-style (or BIOS GRUB on GPT depending on script).
Use this when the device supports UEFI. This is the most reliable modern install pattern.
- Script:
scripts/archinstall-uefi-luks-xfce.sh - Ducky:
ducky/flipper-uefi-luks-xfce.txt
Boot flow: BIOS → GRUB (UEFI) → LUKS passphrase → LightDM → XFCE desktop
ThinkPad T420 note:
- Older firmware can ignore NVRAM boot entries.
- The UEFI script installs GRUB to the fallback path (
EFI/BOOT/BOOTX64.EFI) using--removable+--no-nvramso it boots reliably.
- Secure Boot: Disabled (recommended for simplicity)
- If the machine has both UEFI + Legacy options:
- Set UEFI first if using the UEFI installers.
- For ThinkPad T420 specifically:
UEFI/Legacy Boot: BothUEFI/Legacy Priority: UEFI First
- Boot the Arch ISO in the same mode as your installer:
- UEFI installer → boot ISO as UEFI
- Legacy installer → boot ISO as Legacy
- Network access (Ethernet is easiest). If using Wi-Fi, connect first with
iwctl.
- Boot into the Arch ISO
- (Optional) Confirm the target disk:
lsblk
chmod +x ./archinstall-.sh ./archinstall-.sh