Join Nostr
2026-02-06 01:42:48 UTC
in reply to

Daniel Wayne Armstrong on Nostr: nprofile1q…nytzy From my notes when I setup on Chimera: Load module: doas modprobe ...

From my notes when I setup on Chimera:

Load module:

doas modprobe zram

Create a configuration file for the `zram0` device:

cat << EOF | doas tee /etc/dinit-zram.conf > /dev/null
[zram0]
size = 4G
algorithm = lz4
format = mkswap -U clear %0
EOF

Add swap to `fstab`:

echo "/dev/zram0 none swap defaults 0 0" | doas tee -a /etc/fstab > /dev/null

Enable the service:

doas dinitctl enable zram-device@zram0