Get the bootstrap ISO from Voidlinux
The reference: https://docs.voidlinux.org/installation/index.html#downloading-installation-media
For the lastest x86_64 version, download this: https://repo-default.voidlinux.org/live/current/void-live-x86_64-20250202-base.iso
Also get also the SHA sums:
- https://repo-default.voidlinux.org/live/current/sha256sum.sig
- https://repo-default.voidlinux.org/live/current/sha256sum.txt
Then check that the checksum matches by using the tool sha256:
sha256 -C sha256sum.txt void-live-x86_64-20250202-base.iso
(SHA256) void-live-x86_64-20250202-base.iso: OK
Make the ISO bootable
Choose your most beautiful USB key and start by execute one of dd or cat
dd bs=4M if=path/to/void-live-x86_64-20250202-base.iso of=/dev/disk/by-id/usb-My_flash_drive conv=fsync oflag=direct status=progress
Or with cat
cat path/to/void-live-x86_64-20250202-base.iso > /dev/disk/by-id/usb-My_flash_drive
On the live system
Change the shell to bash for the completion with /bin/bash
Change the keyboard layout if need, e.g: loadkeys fr
Connect to the wifi if not wired
Voidlinux has only wpa_supplicant for the wifi, so we going to use the interactive mode here.
Configuration for the interactive mode to allow the change:
vi /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/run/wpa_supplicant
update_config=1
Launch the daemon: wpa_supplicant -B -i interface -c /etc/wpa_supplicant/wpa_supplicant.conf and start the cli
wpa_cli
> scan
> scan_results
> add_network
> set_network 0 ssid "MYSSID"
> set_network 0 psk "passphrase"
> enable_network 0
> save_config
> quit
By running all this, you should be connected…
Dependencies
From now, we going to install required dependencies:
xbps-install -S ruby xz gptfdisk openssl git
Clone my git repository in /tmp.
git clone https://github.com/szorfein/getch /tmp/getch
cd /tmp/getch
And we finally ready, it going to be fast now.
Execute Getch
Determine the disk who should be used to install Voidlinux, we going to use a whole disk with at least 30G.
ruby -I lib bin/getch --disk sda --zoneinfo "Europe/Paris" --language fr_FR --keymap fr --os void --encrypt
Getch will ask for a password (because --encrypt). After that, just wait for the end, once time the script finished, you can reboot.