Skip to content

Instantly share code, notes, and snippets.

@jaredculp
Last active August 6, 2023 16:56
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jaredculp/820a5696cec0febc6c7e923490741fb6 to your computer and use it in GitHub Desktop.
Void Linux

Void Linux Macbook Air 2013

Flash installer:

$ dd if=void-live-x86_64-musl-20181111.iso of=/dev/X bs=1m

login as root:voidlinux

Base Install:

$ cfdisk -z
  • Choose gpt
  • Delete all partitions and write
$ void-installer

Set up the following partitions:

/dev/sda1 512M EFI
/dev/sda2 4G   swap
/dev/sda3 --   linux

When choosing filesystems, order matters!

/dev/sda3 ext4  /
/dev/sda2 swap
/dev/sda1 vfat  /boot/efi

Post Install:

date

$ date -s "YYYY-mm-dd HH:MM:SS"
$ hwclock --systohc

networking

$ git clone git://github.com/void-linux/void-packages
$ cd void-packages
$ ./xbps-src binary-bootstrap
$ ./xbps-src pkg broadcom-wl-dkms
$ xbps-install --repository=hostdir/binpkgs/nonfree broadcom-wl-dkms
$ xbps-install -S dbus && ln -s /etc/sv/dbus /var/service
$ wpa_passphrase <ssid> <key> >> /etc/wpa_supplicant/wpa_supplicant.conf

sound

$ xbps-install alsa-utils

Choose soundcard with F6 and unmute with 'm'. Add to /etc/asound.conf:

defaults.pcm.card 1
defaults.pcm.device 0
defaults.ctl.card 1

trackpad

Run:

$ echo "add_drivers+=\"bcm5974\"" > /etc/dracut.conf.d/10-touchpad.conf
$ dracut --force

other stuff

Fans:

$ xbps-install mbpfan
$ ln -s /etc/sv/mbpfan /var/service
$ mbpfan -t

Lid hibernate:

$ ln -s /etc/sv/acpid /var/service

Powersave:

$ xbps-install thermald
$ ln -s /etc/sv/thermald /var/service
$ xbps-install powertop
$ powertop --auto-tune

Microcode updates:

$ xbps-install -S intel-ucode
$ xbps-reconfigure -f linux4.19

Desktop env:

$ xbps-install xorg-minimal dejavu-font-ttf xf86-video-intel

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment