Void linux bootstrap.
This is the first post of the 2024, this is a project that I am working on in the last year, is a minimalist voidlinux instalator it is based in some recommendations in a guides that some friends of my have but “semi-automated”.
VoidStrap installer.
A basic minimalist installer of void-linux
with some packages to get ready to enjoy
this amazing GNU/Linux distribution.
Usage:
Running install.sh
Download the iso, and once in root inside the live, git clone this repo:
(You need to update inside the iso and install git
)
NOTE: there are 3 branches:
- main
- This will install
void-musl
. - glibc
- This will install
void-glibc
. - dual
- This will install
void-glibc
dual boot withWindows
.- This branch is tested only with
Windows
, I never try it with other distributions. - If you want musl you can change the link to the mirror in the
install.sh
script:
- This branch is tested only with
1- Change this in line 11:
2export XBPS_ARCH=x86_64 && xbps-install -Suy -R http://mirrors.servercentral.com/voidlinux/current -r /mnt \
3- For this:
4export XBPS_ARCH=x86_64-musl && xbps-install -Suy -R http://mirrors.servercentral.com/voidlinux/current/musl -r /mnt \
1git clone https://git.disroot.org/jpacheco/voidstrap
2cd voidstrap
3sh install.sh
Once there the script will open cfdisk
, and you need to format the HDD in this
specific format:
1- /dev/sdX1 -> as the boot partition.
2- /dev/sdY2 -> as the swap partition.
3- /dev/sdZ3 -> as the root partition.
NOTE: Replace X,Y & Z for your partition name.
I consider to have this structure of partition, but you can change it, but you must
change the code in postinstall.sh
when the scripts make the fstab
archive.
Make sure you do a backup of your files before doing crazy things and trust anyone script
When the install.sh
script finish, you need to run the postinstall script located in /root folder:
Running postinstall.sh
This script its going to create some configuration files, like: fstab
, rc.conf
,
change the password of root
, and add user(s).
1xchroot /mnt
Then run the chroot.sh
script.
1sh /root/postinstall.sh
When the postinsall.sh
script finishes, you only need to reboot and enjoy your
Void-Linux distribution.
When it finish you need to run the postinstall.sh
script, that is going to install
the X server and some other “necessary” packages.
The custom.sh script
This is going to install my personal dotfiles, and a specific packages that I use:
1sh /root/custom.sh
But you can specify your dotfiles repositories and others that you require whit some parameters:
sh custom.sh -r https://codeberg.org/jpacheco/dotfiles # specify a repo url.
sh custom.sh -p otherprogfile.csv # especify a custom package archive to install.
sh custom.sh -b dev # especify the name of a custom branch in case of needed.