From 93036093da703f7da7ff96603f5a2fdf1bfaa6bf Mon Sep 17 00:00:00 2001 From: Deven Blake Date: Thu, 21 Apr 2022 01:12:14 -0400 Subject: [PATCH] move most artix stuff into alpine --- homepage/knowledge/alpine.html | 59 ++++++++++++++++++++++++++++++++-- 1 file changed, 57 insertions(+), 2 deletions(-) diff --git a/homepage/knowledge/alpine.html b/homepage/knowledge/alpine.html index 01d8b5e..cadff47 100644 --- a/homepage/knowledge/alpine.html +++ b/homepage/knowledge/alpine.html @@ -16,18 +16,38 @@

alpine

-

updated 2022-04-20

+

updated 2022-04-21


Resources

-

Always install manual pages

+

Alpine: 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.

+

Arch and Artix: Install essential packages

+

+On Artix, use basestrap(8). +On Arch, use pacstrap(8). +

+

+At a minimum you need base on both Arch and Artix. +On Artix, you need to select the initialization you want to use: 66, dinit, openrc, runit, or s6-base. +On both Arch and Artix, select a kernel; linux, linux-lts, or another Linux configuration or fork. +Arch says you need to install linux-firmware, technically you don't need to do so but you should. +Artix says you need to install the appropriate elogind package (elogind-$(INIT_SYSTEM); e.g. elogind-66). +This isn't necessary if you aren't using elogind, but you most likely want elogind. +Install base-devel if you plan on using the AUR or if you don't know what the AUR is yet. +

+

+It's also a good idea to install any utilities you'll need on the bootstrapped system. +Text editors, network managers or utilities, and other administration tools, for example. +Manual utilities such as man-db and others would also be useful. +

+

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

@@ -59,6 +79,7 @@ busybox's vi(1) on the other hand is a very useable implementation

fstab

See fstab(5).

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

Arch and Artix have fstab generators at genfstab(8) and fstabgen(8) respectively in their installation scripts.

Mount LUKS encrypted partitions at boot

Sources

@@ -74,6 +95,32 @@ Make sure that service is added to runlevel boot and then configure /etc/c 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.

+

Partitions and filesystems

+

See also

+ +

+Don't use partitioners included with OS media where the same job can be done by GParted (which has live media available) or another good general-purpose partitioner. +BSDs and Plan 9 are exceptions to this rule due to their exotic partitioning systems. +Using utilities from a shell or TUIs does not make you "cooler" than someone who needs a GUI for partitioning; in some cases, messing up partitioning can have serious consequences, so it's always nice to have some idiot-proofing. +I always partition my disks with the GParted live media. +

+

+You should do your own research on how you should partition your disks. +I personally use separate partitions for /boot, /home, /, and swap. +Your needs will vary. +

+

+Please note that a separate boot partition is mandatory if you intend to boot via (U)EFI. +Check out the linked pages in the "See also" section. +

+

+Use mkfs(8) for creating filesystems and mount(8) for mounting partitions' filesystems. +

+

postmarketOS: Random MAC address generation on Wifi

By default, postmarketOS will generate a random software MAC address when connecting to a new WLAN network. @@ -87,5 +134,13 @@ 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.

+ +

WiFi

+

+I use iwd(8) and iwctl(8). +Some prefer NetworkManager and I believe that's the default on Debian. +The Artix wiki suggests connman. +

+