https://github.com/p10ns11y/arch-machine
**The only Arch Linux setup that audits itself harder than your ex audits your text messages ππ**. Meet arch-machine π‘οΈπ€ β your AI-forged, profile-based Arch Linux fortress π° that turns a fresh install into a paranoid, self-healing, ML/AI-ready workstation β‘ faster than you can say βyay/paru/pacman β¦ oh god why is it still compilingβ π©οΏ½
https://github.com/p10ns11y/arch-machine
agents ai archlinux devex installers ml security sentinels shell system-audit tools virusscan vulenrability
Last synced: about 1 month ago
JSON representation
**The only Arch Linux setup that audits itself harder than your ex audits your text messages ππ**. Meet arch-machine π‘οΈπ€ β your AI-forged, profile-based Arch Linux fortress π° that turns a fresh install into a paranoid, self-healing, ML/AI-ready workstation β‘ faster than you can say βyay/paru/pacman β¦ oh god why is it still compilingβ π©οΏ½
- Host: GitHub
- URL: https://github.com/p10ns11y/arch-machine
- Owner: p10ns11y
- License: other
- Created: 2026-04-07T16:37:16.000Z (3 months ago)
- Default Branch: sentinel
- Last Pushed: 2026-05-28T19:56:13.000Z (about 1 month ago)
- Last Synced: 2026-05-28T20:04:07.277Z (about 1 month ago)
- Topics: agents, ai, archlinux, devex, installers, ml, security, sentinels, shell, system-audit, tools, virusscan, vulenrability
- Language: Shell
- Homepage:
- Size: 797 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS-MOTTO.md
Awesome Lists containing this project
README
# arch-machine

Profile-based bootstrap and maintenance system for Arch Linux workstations focused on ML/AI development and security hardening.
[](https://github.com/p10ns11y/arch-machine/actions/workflows/ci.yml)
[](https://github.com/p10ns11y/arch-machine/actions)
[](https://github.com/p10ns11y/arch-machine/tree/sentinel#evidence--the-differentiator)
For a more entertaining introduction, see [FUNREADME.md](FUNREADME.md) β where security meets humor.
## Prerequisites
- **Arch Linux** (primary target)
- **Internet access** for downloads
- **sudo privileges** for system operations
- **yq** or **jq** for YAML/JSON processing (auto-installed if missing)
## Safety Note
The security-dev profile includes security hardening and scans. Review [Safety & Requirements](docs/SECURITY.md) before choosing profiles.
## Quick Start (Thin Sentinel First)
```bash
# Clone the repository
git clone
cd arch-machine
# Make scripts executable
chmod +x install.sh migrate.sh
# 1. Thin install (default β recommended first step)
# Only the tinfoil guardian CLI + TUI. Fast, minimal footprint.
./install.sh
# (or ./install.sh --thin)
# 2. Use the sentinel immediately
tinfoil tui # interactive menus (audit, profiles, remediation, evidence)
tinfoil # quick global audit
# 3. Later β full hardened workstation (via same installer or from the TUI)
./install.sh --profile ml-dev
# or
./install.sh --profile security-dev
# Post-installation (after full profile)
maintenance/systemd-setup.sh setup
```
## Installation Profiles
### `minimal`
Basic development tools (git, python, node, rust) and essential system packages.
### `ml-dev` (Recommended)
Everything in `minimal` plus ROCm GPU acceleration, ML/AI environments, and data science packages.
Pre-configured Conda environments:
- **ai_amd**: AI/ML environment with PyTorch, ROCm GPU support, JupyterLab, and essential data science packages (numpy, pandas, scikit-learn, xgboost, etc.)
- **xai_exp**: Experimental AI environment with similar packages optimized for latest Python versions
### `security-dev`
Everything in `minimal` plus Kubernetes security hardening, runtime monitoring, and encrypted storage.
See [Installation Guide](docs/INSTALLATION.md) for detailed profile information and customization options.
## Adapting for Other Distributions
#### Ubuntu/Debian
```bash
# Replace pacman with apt
sed -i 's/pacman -S/apt install/g' modules/system/install.sh
# Update package names
# arch-package β debian-package equivalents
# Example: reflector β apt update
```
#### Fedora/RHEL/CentOS
```bash
# Replace pacman with dnf/yum
sed -i 's/pacman -S/dnf install/g' modules/system/install.sh
# Update service management
# systemctl β systemctl (same, but check init system)
```
#### General Adaptation Steps
1. **Update Package Manager**: Replace `pacman` calls with your distro's package manager
2. **Service Management**: Verify systemd compatibility (most modern distros use it)
3. **Package Names**: Update package names to match your distribution
4. **Paths**: Check `/usr/local/bin`, `/etc/systemd/system` availability
5. **Dependencies**: Ensure `yq`, `jq`, `curl`, `git` are available
#### Testing on Other Distros
```bash
# Test package manager detection
./install.sh --validate
# Dry run installation
./install.sh --profile minimal --dry-run
# Check for missing packages
grep "pacman -S" modules/system/install.sh
```
## Maintenance
The system includes automated weekly maintenance for system updates, security scans, and health monitoring.
- **Automated**: Runs weekly via systemd timers
- **Manual**: Individual maintenance scripts in `maintenance/`
- **Evidence Extraction**: Generates AI-optimized evidence bundles from logs
See [Maintenance Guide](docs/MAINTENANCE.md) for complete maintenance documentation.
## Interactive TUI (New in 2026 Sentinel)
Launch the beautiful gum-powered vigilant control center:
```bash
tinfoil tui # after system install (or go run bin/tinfoil.go tui in dev)
./install.sh --tui # during setup
```
Flows include:
- π Full security audit (live vulns, SBOM, Lynis...)
- π§Ή Policy-guided remediation (ruthless audit β kill, with multiple confirms)
- π¦ Profile installer with live yq-powered module toggles + dry-run
- π Evidence extraction, maintenance, log browser (fzf)
- Humorous self-aware tone: "The Sentinel sees your choices, citizen"
Zero extra deps beyond what's already in the fortress. Pure shell + gum.
## Key Features
- **Modular Installation**: Choose from different profiles
- **Automated Maintenance**: Weekly system updates and security scans
- **Backup & Recovery**: Configuration backups with rollback
- **Log Evidence Extraction**: Token-efficient AI agent integration
- **Migration Support**: Seamless transition from existing setups
## Project Structure
```
arch-machine/
βββ config/ # Tool definitions and profiles
βββ modules/ # Installation modules
βββ maintenance/ # Maintenance and automation
βββ lib/ # Shared libraries
βββ systemd/ # Systemd units
βββ logs/ # Log files and reports
βββ docs/ # Detailed documentation
```
## Documentation
- [Safety & Requirements](docs/SECURITY.md) - Important safety information and system requirements
- [Installation Guide](docs/INSTALLATION.md) - Detailed setup and profiles
- [Maintenance Guide](docs/MAINTENANCE.md) - System maintenance and automation
- [Evidence Extraction](docs/EVIDENCE.md) - AI-optimized log processing (legacy content in EVIDENCE-EXTRACTION.md during transition)
- [Backup Guide](docs/BACKUP.md) - Backup and recovery procedures
- [Troubleshooting](docs/TROUBLESHOOTING.md) - Common issues and solutions
- [Development](docs/DEVELOPMENT.md) - Contributing and development guide
- [Author's Motto](AUTHORS-MOTTO.md) - Project philosophy ("Solve your own machine first, then empower others to adapt") β prominently linked from docs/INDEX.md too. Full sentinel lore lives only in [FUNREADME.md](FUNREADME.md).
## Verification
After installation, verify your setup:
```bash
# Run comprehensive validation
./install.sh --validate
# Check maintenance status
maintenance/systemd-setup.sh status
# View recent logs
tail logs/installer.log
```
## License
See LICENSE file for details.
## Contributing
1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Test thoroughly
5. Submit a pull request
Please ensure all changes include appropriate logging and error handling.