Merge branch 'main' of git.sr.ht:~trinity/wiki

This commit is contained in:
dtb 2022-11-24 11:25:24 -05:00
commit 05cdb68acd
4 changed files with 36 additions and 3 deletions

1
wiki/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/unix/index.html

View File

@ -1,5 +1,5 @@
all: unix/index.html
unix/index.html: unix/*
unix/index.html: unix/*.m4
$(MAKE) -C unix
clean:
$(MAKE) -C unix clean

View File

@ -20,8 +20,10 @@
<LI>All contributions are <STRONG>public domain</STRONG> and anyone may steal, pilfer, and otherwise plaigarize <EM>from</EM> this Wiki.</LI>
<LI>However, contributions <EM>to</EM> this Wiki must be original or properly quoted and cited from other sources.</LI>
<LI>Original research is <EM>encouraged</EM> and this Wiki serves as either a primary or secondary source when appropriate.</LI>
<LI>Articles are written with semantic markup in <A HREF="unix/#m4">m4</A> <A HREF="macros.</LI>
<LI>Articles are written with semantic markup in <A HREF="unix/#m4">m4</A> macros.</LI>
</UL>
<P>
The contents of this site is generated by the Git repository at <A HREF="https://git.sr.ht/~trinity/wiki">https://git.sr.ht/~trinity/wiki</A>.
</P>
</BODY>
</HTML>

View File

@ -79,9 +79,39 @@ _subheader(`Distributions')
Linux is usually obtained as part of a software distribution put together to form a useable operating system.
</P>
<H4>Alpine</H4>
<P>
Alpine Linux is a small Linux distribution based on musl libc.
Its main purpose is to serve as a server distribution, however many have found use for it as a desktop distribution.
</P>
<UL>
<LI><A HREF="https://pkgs.alpinelinux.org/contents">Alpine repositories content search</A></LI>
</UL>
<H5>Bootstrapping</H5>
<P>
Alpine's bootstrapping procedure is quite manual; you should probably use _code(`setup-alpine').
However, it is possible and quite easy to perform the steps manually.
</P>
<UL>
<LI>Copy over the contents of _code(`/etc/apk/keys') to _code(`/mnt/etc/apk/keys')</LI>
<LI>
Add newline-delimited mirrors to _code(`/mnt/etc/apk/repositories'), such as these if you wish to use the _code(`edge') branch:
<PRE>
http://dl-cdn.alpinelinux.org/alpine/edge/main
http://dl-cdn.alpinelinux.org/alpine/edge/community
http://dl-cdn.alpinelinux.org/alpine/edge/testing
</PRE>
_code(`edge') may be replaced with a stable branch, the latest being _code(`v3.17') as of writing.
</LI>
<LI>Run _code(`apk --root /mnt add --initdb alpine-base'). This is an ordinary _man(`apk-add(8)') call; you may wish to install necessities such as a kernel, firmware, and a bootloader at the same time.</LI>
</UL>
<P>
Alpine does not have a _man(`chroot(1)') helper; you must manually do that with a one-liner such as
_code(`for i in dev proc sys; do mount -o bind "/$i" "/mnt/$i"; done; cp /etc/resolv.conf /mnt/etc/resolv.conf')
which you can chroot into.
</P>
<P>
After chrooting in, you must configure basics such as users, passwords, _man(`fstab(5)'), and the bootloader yourself.
</P>
<H5>Always install manual pages</H5>
<P>
Alpine doesn't include man pages in program packages to save on space, instead keeping them in _code(`[<I>package</I>]-doc') sibling packages.