[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

badele/archlinux-auto-install

Repository files navigation

archlinux-auto-install

DO NOT EDIT DIRECTLY THIS README.MD (edit the README.tpl) and execute make doc-generate

Automatic installation of Archlinux for vagrants and physical hosts.

This project install minimal Archlinux from scratch, other packages and configuration are done with ansible

Image contains :

  • Archlinux 2021.04.01
  • Encrypted LUKS disk (for vagrant, the password is vagrant)
  • grub and grub-theme
  • networkmanager
  • yay package (for installaling AUR packages)
  • git for clonning some project (ex: ansible-archlinux)
  • ansible (for customize automatically your installation)

Vagrant box

Logo Name Description
Archlinux Base Archlinux version
Ansible Archlinux + Ansible support
Nixos Archlinux + Nix support

Help(commands)

archlinux-versions   List all archlinux versions
doc-generate         Generate main Readme commands list
help                 This help
toolkit              Homelab toolkit(for building a homelab stack)
vagrant-build        [ARCHVERSION] <NAME> Build vagrant box 
vagrant-destroy      Destroy vagrant box [ARCHVERSION] <NAME>
vagrant-push         Push vagrant box [ARCHVERSION] <NAME>
vagrant-ssh          Connect to vagrant box [ARCHVERSION] <NAME>
vagrant-up           Test vagrant box [ARCHVERSION] <NAME>

Build

make archlinux-versions
make NAME=base vagrant-build
make NAME=ansible vagrant-build
make NAME=nix vagrant-build

make NAME=base vagrant-up
make NAME=base vagrant-ssh
make NAME=base vagrant-destroy

Host

From booted archlinux live cd (use ventoy)

# configure wireless
iwctl device list
iwctl station <device> scan
iwctl station <device> get-networks
iwctl station <device> connect <SSID>

# Clone
rm -f /var/lib/pacman/sync/*.db
pacman -Sy git
git clone https://github.com/badele/archlinux-auto-install.git
cd archlinux-auto-install

# Set installation configuration
cp config/xxx > install/config
vim install/config
./install/install.sh

Usage

# From vagrant cloud
vagrant init badele/ansiblearch && vagrant up

Use case

Install 99% of Achlinux automatically, it installs it in less than two minutes. After installed the minimal arch, you can customized with ansible and dotfiles

Thanks

Thanks to zenithar for his documentation https://blog.zenithar.org/post/2020/04/01/archlinux-efi-ssd-luks2-lvm2-btrfs/

Information for vagrant cloud project page