Skip to content

Instantly share code, notes, and snippets.

@robotamer
Last active January 30, 2023 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robotamer/918d0f1dbfcf88e6ed8abb103d1336b6 to your computer and use it in GitHub Desktop.
Save robotamer/918d0f1dbfcf88e6ed8abb103d1336b6 to your computer and use it in GitHub Desktop.
Void Linux post install & cheatsheet

Void Linux Cheatsheet

Service

sv up <services>
sv down <services>
sv restart <services>
sv status <services>

Service status

sv status /var/service/*
sv status ntpd

https://docs.voidlinux.org/config/services/index.html

Package Manager

Upgrade System:

xbps-install -Su

Upgrade System && Install apps:

xbps-install -Su appname

Remove App:

xbps-remove appname

Remove Orphans:

xbps-remove -o

Install pkg

xbps-install -Su void-repo-nonfree
xbps-install linux-firmware-amd
xbps-install base-devel
xbps-install libatomic_ops-devel
xbps-install plocate

Logging Daemon

By default, Void comes with no logging daemon. There are different implementations available, socklog is simplistic and easy to use:

xbps-install socklog-void
ln -s /etc/sv/socklog-unix /var/service/
ln -s /etc/sv/nanoklogd /var/service/

xbps-install git
xbps-install lua
xbps-install marker
xbps-install liteide
xbps-install vlc
xbps-install tree
xbps-install okular
xbps-install age
xbps-install qalculate-qt
xbps-install lxd
xbps-install libreoffice

ntpd (System time update)

xbps-install openntpd
ln -s /etc/sv/ntpd /var/service/
ntpctl -s all                    # Check status

Install & enable zram

xbps-install zramen
ln -s /etc/sv/zramen /var/service
nano /etc/sv/zramen/conf 
check zram status
# cat /proc/swaps
Filename			Type		Size		Used		Priority
/dev/sda4			partition	4140352		89384		-2
/dev/zram0			partition	853916		0   		32767

TODO:

Profile Sync Daemon (PSD)

PSD is a service that symlinks & syncs browser profile directories to RAM, thus reducing HDD/SSD calls & speeding up browsers.
You can get it from here. This helps Firefox & Chromium reduce ram usage.

git clone https://github.com/madand/runit-services
cd runit-services
mv psd /etc/sv/
ln -s /etc/sv/psd /var/service/
chmod +x etc/sv/psd/*

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