1
0

move most artix stuff into alpine

This commit is contained in:
dtb 2022-04-21 01:12:14 -04:00
parent 9b8f6a0d64
commit 93036093da

View File

@ -16,18 +16,38 @@
<SCRIPT SRC="/js/sheets.js" TYPE="application/javascript"></SCRIPT> <SCRIPT SRC="/js/sheets.js" TYPE="application/javascript"></SCRIPT>
<SCRIPT TYPE="application/javascript">window.onload = window.initializesheets;</SCRIPT> <SCRIPT TYPE="application/javascript">window.onload = window.initializesheets;</SCRIPT>
<H1>alpine</H1> <H1>alpine</H1>
<H3>updated 2022-04-20</H3> <H3>updated 2022-04-21</H3>
<HR ALIGN="left" SIZE="1" WIDTH="25%" /> <HR ALIGN="left" SIZE="1" WIDTH="25%" />
<H2>Resources</H2> <H2>Resources</H2>
<UL> <UL>
<LI><A HREF="https://pkgs.alpinelinux.org/contents">Alpine repositories content search</A></LI> <LI><A HREF="https://pkgs.alpinelinux.org/contents">Alpine repositories content search</A></LI>
</UL> </UL>
<H2>Always install manual pages</H2> <H2>Alpine: Always install manual pages</H2>
<P> <P>
Alpine doesn't include man pages in program packages to save on space, instead keeping them in <CODE>[<I>package</I>]-doc</CODE> sibling packages. Alpine doesn't include man pages in program packages to save on space, instead keeping them in <CODE>[<I>package</I>]-doc</CODE> sibling packages.
To always install doc packages with program packages, <CODE>apk add docs</CODE>. To always install doc packages with program packages, <CODE>apk add docs</CODE>.
</P> </P>
<H2>Arch and Artix: Install essential packages</H2>
<P>
On Artix, use <CODE>basestrap(8)</CODE>.
On Arch, use <CODE>pacstrap(8)</CODE>.
</P>
<P>
At a minimum you need <CODE>base</CODE> on both Arch and Artix.
On Artix, you need to select the initialization you want to use: <CODE>66</CODE>, <CODE>dinit</CODE>, <CODE>openrc</CODE>, <CODE>runit</CODE>, or <CODE>s6-base</CODE>.
On both Arch and Artix, select a kernel; <CODE>linux</CODE>, <CODE>linux-lts</CODE>, or another Linux configuration or fork.
Arch says you need to install <CODE>linux-firmware</CODE>, technically you don't need to do so but you should.
Artix says you need to install the appropriate elogind package (<CODE>elogind-$(<B>INIT_SYSTEM</B>)</CODE>; e.g. <CODE>elogind-66</CODE>).
This isn't necessary if you aren't using elogind, but you <I>most likely</I> want elogind.
Install <CODE>base-devel</CODE> if you plan on using the AUR or if you don't know what the AUR is yet.
</P>
<P>
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 <CODE>man-db</CODE> and others would also be useful.
</P>
<H2>Common utilities</H2> <H2>Common utilities</H2>
<P>A lot of common utilities such as <CODE>lsblk(8)</CODE> and <CODE>more(1)</CODE> are provided by <CODE>util-linux</CODE> which is not installed by default.</P> <P>A lot of common utilities such as <CODE>lsblk(8)</CODE> and <CODE>more(1)</CODE> are provided by <CODE>util-linux</CODE> which is not installed by default.</P>
<H3>C language</H3> <H3>C language</H3>
@ -59,6 +79,7 @@ busybox's <CODE>vi(1)</CODE> on the other hand is a very useable implementation
<H2>fstab</H2> <H2>fstab</H2>
<P>See <CODE>fstab(5).</P> <P>See <CODE>fstab(5).</P>
<P>postmarketOS requires that the <CODE>localmount</CODE> OpenRC service be enabled for the system to read <CODE>fstab(5)</CODE>. <P>postmarketOS requires that the <CODE>localmount</CODE> OpenRC service be enabled for the system to read <CODE>fstab(5)</CODE>.
<P>Arch and Artix have fstab generators at <CODE>genfstab(8)</CODE> and <CODE>fstabgen(8)</CODE> respectively in their installation scripts.</P>
<H2>Mount LUKS encrypted partitions at boot</H2> <H2>Mount LUKS encrypted partitions at boot</H2>
<H3>Sources</H3> <H3>Sources</H3>
@ -74,6 +95,32 @@ Make sure that service is added to runlevel boot and then configure <CODE>/etc/c
<CODE>dmcrypt</CODE> will need the UUID of the <I>physical</I> block device while fstab (if being configured with UUIDs will need the UUID of the decrypted block device in the device mapper. <CODE>dmcrypt</CODE> will need the UUID of the <I>physical</I> block device while fstab (if being configured with UUIDs will need the UUID of the decrypted block device in the device mapper.
</P> </P>
<H2>Partitions and filesystems</H2>
<H3>See also</H3>
<UL>
<LI><A HREF="https://wiki.archlinux.org/title/EFI_system_partition">EFI system partition (Arch Wiki)</A></LI>
<LI><A HREF="https://wiki.artixlinux.org/Main/Installation#Partition_your_disk_.28BIOS.29">Installation#Partition your disk - Artix wiki</A></LI>
<LI><A HREF="https://wiki.archlinux.org/title/Installation_guide#Partition_the_disks">Installation guide#Partition the disks - Arch wiki</A></LI>
</UL>
<P>
Don't use partitioners included with OS media where the same job can be done by <A HREF="https://gparted.org/">GParted</A> (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.
</P>
<P>
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.
</P>
<P>
<B>Please note that a separate boot partition is mandatory if you intend to boot via (U)EFI.</B>
Check out the linked pages in the "See also" section.
</P>
<P>
Use <CODE>mkfs(8)</CODE> for creating filesystems and <CODE>mount(8)</CODE> for mounting partitions' filesystems.
</P>
<H2>postmarketOS: Random MAC address generation on Wifi</H2> <H2>postmarketOS: Random MAC address generation on Wifi</H2>
<P> <P>
By default, postmarketOS will generate a random software MAC address when connecting to a new WLAN network. 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
<P> <P>
On a live system you can then <CODE>rc-service networkmanager restart</CODE> to restart NetworkManager and have it load the new configuration. On a live system you can then <CODE>rc-service networkmanager restart</CODE> to restart NetworkManager and have it load the new configuration.
</P> </P>
<H2>WiFi</H2>
<P>
I use <CODE>iwd(8)</CODE> and <CODE>iwctl(8)</CODE>.
Some prefer NetworkManager and I believe that's the default on Debian.
The Artix wiki suggests connman.
</P>
</BODY> </BODY>
</HTML> </HTML>