diff --git a/homepage/knowledge/alpine.html b/homepage/knowledge/alpine.html index 11f7d4f..01d8b5e 100644 --- a/homepage/knowledge/alpine.html +++ b/homepage/knowledge/alpine.html @@ -16,22 +16,76 @@

alpine

-

updated 2021-10-14

+

updated 2022-04-20


Resources

-

Setting up a C compilation environment

-

You will need the following.

+

Always install manual pages

+

+Alpine doesn't include man pages in program packages to save on space, instead keeping them in [package]-doc sibling packages. +To always install doc packages with program packages, apk add docs. +

+ +

Common utilities

+

A lot of common utilities such as lsblk(8) and more(1) are provided by util-linux which is not installed by default.

+

C language

-

You will want the following.

-

Also see the build-base metapackage.

+

LUKS

+

cryptsetup and e2fsprogs.

+

Manual viewer

+

mandoc

+

Make

+

make

+

Login manager

+

elogind

+

Stream Pager

+

less

+

Task manager

+

top(1) comes with busybox; see its derivatives such as htop for curses-based alternatives.

+

Text editing

+

+emacs and vim come to mind. +A particularly shoddy attempt at ed(1) is provided by busybox but will please nobody. +busybox's vi(1) on the other hand is a very useable implementation of the original. +

+ +

fstab

+

See fstab(5).

+

postmarketOS requires that the localmount OpenRC service be enabled for the system to read fstab(5). + +

Mount LUKS encrypted partitions at boot

+

Sources

+ +

See cryptography#LUKS partitioning for how to make a LUKS partition.

+

+cryptsetup-openrc provides a dmcrypt service for OpenRC. +Make sure that service is added to runlevel boot and then configure /etc/conf.d/dmcrypt, and accordingly fstab. +dmcrypt will need the UUID of the physical block device while fstab (if being configured with UUIDs will need the UUID of the decrypted block device in the device mapper. +

+ +

postmarketOS: Random MAC address generation on Wifi

+

+By default, postmarketOS will generate a random software MAC address when connecting to a new WLAN network. +You can disable this by adding a NetworkManager rule. +In /etc/NetworkManager/conf.d/ you can make a file with any name that has the following: +

+

+[device]
+wifi.scan-rand-mac-address=no
+

+

+On a live system you can then rc-service networkmanager restart to restart NetworkManager and have it load the new configuration. +

diff --git a/homepage/knowledge/postmarketos.html b/homepage/knowledge/postmarketos.html deleted file mode 100644 index aff062e..0000000 --- a/homepage/knowledge/postmarketos.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - -postmarketOS - - -

~ Return to the rest of the site

- - - -

postmarketOS

-

updated 2021-11-09

-
-

-postmarketOS is based on Alpine Linux and this site's knowledge article for Alpine applies to postmarketOS as well. -

-

Encrypted SD card with LUKS

-

Sources

- -

I bought a SAMSUNG EVO Select 128GB New Generation card (apologies for the Amazon link, it isn't an associate link though), wiped it, and put one partition on it that spanned the whole drive.

-

See cryptography#LUKS partitioning for how to make a LUKS partition.

-

-To have the SD card auto-mount at boot, add an fstab(5) line for the decrypted block device. -The localmount OpenRC service will also have to be enabled for the system to read fstab(5) - rc-update add localmount. -Then, rc-update add dmcrypt boot and add an entry in /etc/conf.d/dmcrypt to automatically luksOpen the volume. -dm-crypt will need the UUID of the physical block device; in blkid(8) this will be the line that starts with /dev/mmcblk or /dev/sd[X]. -

- -

Random MAC address generation on Wifi

-

-By default, postmarketOS will generate a random software MAC address when connecting to a new WLAN network. -You can disable this by adding a NetworkManager rule. -In /etc/NetworkManager/conf.d/ you can make a file with any name that has the following: -

-

-[device]
-wifi.scan-rand-mac-address=no
-

-

-On a live system you can then rc-service networkmanager restart to restart NetworkManager and have it load the new configuration. -

- -