this post was submitted on 06 May 2022
1 points (100.0% liked)

Void Linux

598 readers
1 users here now

Void Linux is an independent distribution, developed entirely by volunteers.Install once, update daily. Your system will always be up-to-date.Void use runit as the init system and service supervisor. xbps is the native system package manager. https://voidlinux.org/

founded 4 years ago
MODERATORS
 

I set up a new machine with Void, and it took an embarrassing amount of time. I wanted a script to install Void with 1 line of bash from a live iso, so I could look cool next time. Here it is:

xbps-install -S curl

curl https://malinfreeborn.com/autovoid.sh | sh

The idea is to place the script on a public site, execute it, then get the following:

  • a full WM
  • all dotfiles set up
  • all home files

...basically, a full setup.

Results

It's 2 lines of bash, rather than 1, which is less cool.

I remove the need for a password by making the system auto-login to a user in the wheel group. I've tried adding the option to set a variable, password="mypassword123, which would then automatically add that variable as the main user's password, but something's gone wrong there.

The user gets ssh keys pulled from gitlab as a kind of backup.

To Do

  • Atm I can use unison to pull in ~ files from my server, but it'd be nicer to have this done automatically, before the reboot. I guess that'd require another line for authentication.
  • See if something can pull the script without curl, so the script can be a single line of bash
  • I might see about puting in arbitrary usernames/ hostnames later.
  • Any other suggestions?
no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here