Skip to content

NETHRANAND-20449/blackarch-i3-kvm-setup

Repository files navigation

🐧 BlackArch Linux i3WM KVM Setup

Arch Linux BlackArch i3wm KVM License

Complete automation suite for setting up BlackArch Linux with i3 tiling window manager and KVM virtualization

Perfect for penetration testers, security researchers, and power users

Quick Start β€’ Features β€’ Installation β€’ Documentation


πŸ“– Overview

This repository provides a complete, automated setup for transforming a fresh Arch Linux installation into a powerful penetration testing workstation with:

  • πŸ•·οΈ BlackArch Tools - 2800+ security testing tools
  • πŸͺŸ i3 Window Manager - Lightweight, keyboard-driven tiling WM
  • πŸ’» KVM Virtualization - Full QEMU/libvirt stack for running VMs
  • 🎨 Modern UI - Rofi launcher, Polybar status bar, Picom compositor
  • πŸ“š Complete Documentation - From Windows dual-boot to final setup

✨ Features

πŸ”§ Core Components

  • βœ… Automated BlackArch Repository Setup
  • βœ… i3 Window Manager with optimized configuration
  • βœ… KVM/QEMU Virtualization with Virt-Manager GUI
  • βœ… LightDM Display Manager for graphical login
  • βœ… NetworkManager with GUI applet
  • βœ… Essential Applications: Terminal, browser, file manager
  • βœ… System Optimization scripts included

πŸ› οΈ Security Tools (Optional)

  • 🌐 Web Testing: Burp Suite, SQLMap, Nikto
  • πŸ” Reconnaissance: Nmap, Wireshark, Masscan
  • πŸ”“ Exploitation: Metasploit, ExploitDB
  • πŸ“‘ Wireless: Aircrack-ng suite
  • πŸ” Password Cracking: John the Ripper, Hashcat
  • πŸ•ΈοΈ Directory Enumeration: Gobuster, ffuf

🎯 Optimized For

  • πŸ’» ASUS TUF F15 Gaming Laptops
  • πŸ’» ThinkPad Series (T480, T490, X1)
  • πŸ’» Dell XPS 13/15
  • πŸ’» Custom Desktop PCs
  • πŸ–₯️ 16GB+ RAM systems with virtualization support

πŸš€ Quick Start

Prerequisites

  • βœ… Arch Linux installed (or Windows for dual-boot)
  • βœ… Internet connection
  • βœ… 60GB+ free disk space
  • βœ… Root/sudo access

One-Command Installation

# Clone repository
git clone https://github.com/NETHRANAND-20449/blackarch-i3-kvm-setup.git

# Navigate to directory
cd blackarch-i3-kvm-setup

# Make scripts executable
chmod +x step3\ gui\ setup/blackarch_setup.sh
chmod +x step4\ gui\ troubleshoot/troubleshooting_script.sh

# Run main setup script
sudo ./step3\ gui\ setup/blackarch_setup.sh

⏱️ Installation Time: 20-60 minutes depending on internet speed and selected options.


πŸ“š Documentation

This repository includes comprehensive guides for every step:

πŸ“ Repository Structure

blackarch-i3-kvm-setup/
β”‚
β”œβ”€β”€ πŸ“„ step1 readme/
β”‚   └── Main documentation and project overview
β”‚
β”œβ”€β”€ 🐧 step2 installation guide/
β”‚   └── arch_dualboot_guide.md
β”‚       β€’ Complete Arch Linux installation from scratch
β”‚       β€’ Windows dual-boot setup
β”‚       β€’ Partitioning guide with examples
β”‚       β€’ BIOS/UEFI configuration
β”‚       β€’ Post-installation basics
β”‚
β”œβ”€β”€ βš™οΈ step3 gui setup/
β”‚   └── blackarch_setup.sh
β”‚       β€’ Main automated setup script
β”‚       β€’ BlackArch repository installation
β”‚       β€’ i3 window manager configuration
β”‚       β€’ KVM/QEMU virtualization setup
β”‚       β€’ Essential tools installation
β”‚
β”œβ”€β”€ πŸ”§ step4 gui troubleshoot/
β”‚   └── troubleshooting_script.sh
β”‚       β€’ Interactive troubleshooting menu
β”‚       β€’ System diagnostics
β”‚       β€’ i3 configuration checker
β”‚       β€’ KVM/virtualization diagnostics
β”‚       β€’ Automated common fixes
β”‚       β€’ Log viewer
β”‚
β”œβ”€β”€ 🎯 step5 optimization/
β”‚   └── System optimization tips and scripts
β”‚
β”œβ”€β”€ πŸ’ͺ step6 maximum hardware usage/
β”‚   └── Performance tuning for your hardware
β”‚
└── πŸ“€ step7 arch git upload/
    β”œβ”€β”€ github_readme.md - Extended documentation
    └── github_upload_guide.md - Git workflow guide

πŸ“‹ Installation Guide

Step 1: Prepare Your System

If you have Windows installed:

  1. Follow step2 installation guide/arch_dualboot_guide.md
  2. This guide covers:
    • Shrinking Windows partition
    • Creating bootable USB
    • Installing Arch Linux alongside Windows
    • GRUB dual-boot setup

If you have Arch Linux already:

  • Skip to Step 2

Step 2: Run Main Setup Script

# Clone repository
git clone https://github.com/NETHRANAND-20449/blackarch-i3-kvm-setup.git
cd blackarch-i3-kvm-setup

# Make executable
chmod +x "step3 gui setup/blackarch_setup.sh"

# Run as root
sudo ./step3\ gui\ setup/blackarch_setup.sh

During installation you'll be asked:

Install full BlackArch tools (approx 20GB)? (y/N)
  • Yes: Installs all 2800+ tools (~20GB)
  • No: Installs essential categories only (~5GB)

Step 3: Reboot and Login

sudo reboot
  • System boots to LightDM login screen
  • Enter your username and password
  • i3 window manager starts automatically

Step 4: First-Time i3 Setup

On first login, i3 will prompt:

  1. Press Enter to generate config file
  2. Press Enter to use Win/Super key as modifier

Step 5: Verify Installation

# Check virtualization support
lscpu | grep Virtualization

# Launch Virt-Manager
virt-manager

⌨️ Keyboard Shortcuts

Essential i3 Shortcuts

Shortcut Action
Win + Enter Open terminal (Alacritty)
Win + D Application launcher (Rofi)
Win + Shift + Q Close window
Win + Shift + E Exit i3
Win + Shift + R Reload i3 configuration

Window Management

Shortcut Action
Win + H Split horizontal
Win + V Split vertical
Win + F Toggle fullscreen
Win + 1-9 Switch to workspace 1-9
Win + Shift + 1-9 Move window to workspace

Custom Shortcuts

Shortcut Action
Win + Ctrl + V Open Virt-Manager (VMs)
Win + B Open Firefox browser
Win + R Resize mode

πŸ”§ Troubleshooting

Use the Troubleshooting Script

cd blackarch-i3-kvm-setup
chmod +x "step4 gui troubleshoot/troubleshooting_script.sh"
./step4\ gui\ troubleshoot/troubleshooting_script.sh

The script provides:

  • πŸ“Š System diagnostics (CPU, RAM, disk, network)
  • πŸͺŸ i3 configuration validation
  • πŸ’» KVM/virtualization checks
  • πŸ”§ Automated fixes for common issues
  • πŸ“ Log viewer for debugging
  • ⚑ Quick fix menu

Common Issues

i3 Not Starting

i3 -C -c ~/.config/i3/config  # Check config
i3-config-wizard              # Regenerate config

No Internet

sudo systemctl restart NetworkManager
nmcli device wifi connect "SSID" password "PASSWORD"

Virt-Manager Permission Denied

sudo usermod -aG libvirt $USER
# Logout and login again

KVM Not Working

lscpu | grep Virtualization       # Check CPU support
sudo systemctl start libvirtd     # Start service
sudo virsh net-start default      # Start network

🎨 Customization

Change Terminal

Edit ~/.config/i3/config:

bindsym $mod+Return exec kitty    # Replace alacritty

Add Custom Shortcuts

nano ~/.config/i3/config

# Add lines like:
bindsym $mod+Ctrl+b exec firefox
bindsym $mod+Ctrl+f exec thunar
bindsym $mod+Ctrl+w exec wireshark

Install Additional Tools

# Web testing
sudo pacman -S burpsuite sqlmap nikto

# Development
sudo pacman -S code docker python-pip nodejs

# Productivity
sudo pacman -S libreoffice-fresh gimp vlc

πŸ“Š System Requirements

Minimum Requirements

Component Specification
CPU Dual-core 64-bit with VT-x/AMD-V
RAM 8 GB
Storage 60 GB free space
Graphics Integrated graphics
Boot UEFI mode

Recommended Requirements

Component Specification
CPU Quad-core Intel i5/AMD Ryzen 5+
RAM 16 GB or more
Storage 120 GB+ SSD
Graphics Dedicated GPU (NVIDIA/AMD)
Network WiFi 5/6 or Ethernet

🀝 Contributing

Contributions are welcome! Here's how you can help:

Ways to Contribute

  • πŸ› Report bugs via Issues
  • πŸ’‘ Suggest features or improvements
  • πŸ“ Improve documentation
  • πŸ”§ Submit pull requests

Development Setup

# Fork the repository
# Clone your fork
git clone https://github.com/YOUR_USERNAME/blackarch-i3-kvm-setup.git

# Create feature branch
git checkout -b feature/amazing-feature

# Make changes and commit
git commit -m "Add amazing feature"

# Push to your fork
git push origin feature/amazing-feature

# Open Pull Request

❓ FAQ

Q: Can I use this on an existing Arch installation?

A: Yes! The script checks for existing packages and won't break your setup. Backup important configs first.

Q: How much disk space do I need?

A: Minimum 60GB. Recommended 120GB+ if installing all BlackArch tools.

Q: Will this work in a virtual machine?

A: Yes, but KVM performance will be limited. Enable nested virtualization in your hypervisor.

Q: Can I uninstall everything later?

A: Yes. BlackArch is just a repository. Remove packages individually or reinstall Arch.

Q: Does this work with NVIDIA GPUs?

A: Yes. The script installs appropriate drivers. You may need to configure Optimus for laptops.

Q: How do I update BlackArch tools?

A: Run sudo pacman -Syu regularly to update all packages including BlackArch tools.


πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ™ Acknowledgments


πŸ“ž Support & Contact


πŸ—ΊοΈ Roadmap

  • Add support for Wayland/Sway
  • Create Ansible playbook version
  • Add automated backup/restore
  • Theme customization script
  • Docker integration improvements
  • Support for other window managers (bspwm, awesome)

πŸ“ˆ Project Stats

GitHub stars GitHub forks GitHub watchers


🎯 Quick Links


⭐ Star this repository if you found it helpful!

Made with ❀️ for the security and open-source community


🎊 Happy Hacking! 🐧

About

Automated BlackArch Linux setup with i3WM, KVM virtualization, and complete dual-boot installation guide

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages