various stuff including doas(1)
This commit is contained in:
parent
1814d85042
commit
ff7dfd290d
@ -303,6 +303,31 @@ Alpine has _code(`build-base') and Debian has _code(`build-essential').
|
|||||||
For linking to libraries, see _hyperlink(`#pkg-config', `pkg-config').
|
For linking to libraries, see _hyperlink(`#pkg-config', `pkg-config').
|
||||||
</P>
|
</P>
|
||||||
|
|
||||||
|
<H2 ID="doas">doas(1)</H2>
|
||||||
|
<UL>
|
||||||
|
<LI>_hyperlink(`http://man.openbsd.org/doas.1', `doas(1)') (OpenBSD)</LI>
|
||||||
|
<LI>_hyperlink(`http://man.openbsd.org/doas.conf.5', `doas.conf(5)') (OpenBSD)</LI>
|
||||||
|
<LI>_hyperlink(`https://flak.tedunangst.com/post/doas-mastery', `doas mastery')</LI>
|
||||||
|
</UL>
|
||||||
|
<P>
|
||||||
|
_code(`doas(1)') is a systems administration tool that performs a command as a different user.
|
||||||
|
_code(`doas(1)') is configured in _code(`doas.conf(5)').
|
||||||
|
</P>
|
||||||
|
<P>
|
||||||
|
For a pretty typical configuration, where users in the <I>wheel</I> group are meant to be administrating the system, the set-up session usually looks something like this:
|
||||||
|
</P>
|
||||||
|
<PRE>
|
||||||
|
$ su
|
||||||
|
# ed /etc/doas.conf
|
||||||
|
/etc/doas.conf: No such file or directory
|
||||||
|
a
|
||||||
|
permit :wheel
|
||||||
|
.
|
||||||
|
w
|
||||||
|
14
|
||||||
|
q
|
||||||
|
</PRE>
|
||||||
|
|
||||||
<H2 ID="fonts">Fonts</H2>
|
<H2 ID="fonts">Fonts</H2>
|
||||||
|
|
||||||
<H2 ID="fstab">fstab</H2>
|
<H2 ID="fstab">fstab</H2>
|
||||||
@ -407,7 +432,7 @@ Manual utilities such as _code(`man-db') and others would also be useful.
|
|||||||
<H5>Ubiquitous packages missing</H5>
|
<H5>Ubiquitous packages missing</H5>
|
||||||
<P>From the annals of my notes, 2021-06-04:</P>
|
<P>From the annals of my notes, 2021-06-04:</P>
|
||||||
<PRE>
|
<PRE>
|
||||||
Had an issue with pacman missing some ubiquitous packages (esr's `ascii`, xorg-xev, etc).
|
Had an issue with pacman missing some ubiquitous packages (esr's 'ascii', xorg-xev, etc).
|
||||||
This fixed it. I don't really know why - maybe some issues with my repos?
|
This fixed it. I don't really know why - maybe some issues with my repos?
|
||||||
This was cleanly installed artix-openrc.
|
This was cleanly installed artix-openrc.
|
||||||
|
|
||||||
@ -415,7 +440,7 @@ This was cleanly installed artix-openrc.
|
|||||||
[5:46 PM] Bassman Leyla: Then I appended a config block a package maintainer gave me onto /etc/pacman.conf
|
[5:46 PM] Bassman Leyla: Then I appended a config block a package maintainer gave me onto /etc/pacman.conf
|
||||||
[5:46 PM] Bassman Leyla: I'll paste it in
|
[5:46 PM] Bassman Leyla: I'll paste it in
|
||||||
[5:47 PM] Bassman Leyla:
|
[5:47 PM] Bassman Leyla:
|
||||||
```
|
'''
|
||||||
#
|
#
|
||||||
# ARCHLINUX
|
# ARCHLINUX
|
||||||
#
|
#
|
||||||
@ -437,7 +462,7 @@ Include = /etc/pacman.d/mirrorlist-arch
|
|||||||
|
|
||||||
#[multilib]
|
#[multilib]
|
||||||
#Include = /etc/pacman.d/mirrorlist-arch
|
#Include = /etc/pacman.d/mirrorlist-arch
|
||||||
```
|
'''
|
||||||
</PRE>
|
</PRE>
|
||||||
<H4>Artix</H4>
|
<H4>Artix</H4>
|
||||||
<UL>
|
<UL>
|
||||||
@ -445,14 +470,14 @@ Include = /etc/pacman.d/mirrorlist-arch
|
|||||||
<LI><A HREF="https://en.wikipedia.org/wiki/Artix_Linux">Artix Linux</A> (Wikipedia)</LI>
|
<LI><A HREF="https://en.wikipedia.org/wiki/Artix_Linux">Artix Linux</A> (Wikipedia)</LI>
|
||||||
</UL>
|
</UL>
|
||||||
<P>
|
<P>
|
||||||
Artix refers to the series of Arch derivatives which use initialization systems other than SystemD's.
|
Artix is a Linux software distribution based on Arch that doesn't mandate SystemD as its initialization system.
|
||||||
</P>
|
</P>
|
||||||
<H5>Bootstrapping</H5>
|
<H5>Bootstrapping</H5>
|
||||||
<P>
|
<P>
|
||||||
This process differs from Arch's bootstrapping process.
|
This process differs from Arch's bootstrapping process.
|
||||||
Artix uses _code(`basestrap(8)') rather than _code(`pacstrap(8)');
|
Artix uses _code(`basestrap(8)') rather than _code(`pacstrap(8)');
|
||||||
you need to select the initialization you want to use: _code(`66'), _code(`dinit'), _code(`openrc'), _code(`runit'), or _code(`s6-base'), as a package separate from _code(`base');
|
you need to select the initialization you want to use: _code(`66'), _code(`dinit'), _code(`openrc'), _code(`runit'), or _code(`s6-base'), as a package separate from _code(`base');
|
||||||
and Artix's official wiki says you need to install the appropriate <A HREF="#logind">_code(`elogind')</A> package (_code(`elogind-[<I>initialization system</I>]') e.g. _code(`elogind-66')) but like _code(`linux-firmware') though it is helpful it isn't strictly necessary.
|
and Artix's official wiki says you need to install the appropriate _hyperlink(`#logind', `_code(`elogind')') package (_code(`elogind-[<I>initialization system</I>]') e.g. _code(`elogind-66')) but like _code(`linux-firmware') though it is helpful it isn't strictly necessary.
|
||||||
</P>
|
</P>
|
||||||
|
|
||||||
<H4>Debian</H4>
|
<H4>Debian</H4>
|
||||||
@ -467,9 +492,6 @@ Debian uses SystemD as its initialization system, the GNU core utilities, and dp
|
|||||||
<P>
|
<P>
|
||||||
While it's possible to use non-Linux kernels within Debian, it's uncommon and the only non-Linux option currently maintained is the GNU HURD microkernel.
|
While it's possible to use non-Linux kernels within Debian, it's uncommon and the only non-Linux option currently maintained is the GNU HURD microkernel.
|
||||||
</P>
|
</P>
|
||||||
<P>
|
|
||||||
<A HREF="#pkgsrc">pkgsrc</A> can be used on Debian.
|
|
||||||
</P>
|
|
||||||
|
|
||||||
<H4>postmarketOS</H4>
|
<H4>postmarketOS</H4>
|
||||||
<P>
|
<P>
|
||||||
@ -506,7 +528,7 @@ Ubuntu is a derivative of Debian.
|
|||||||
</UL>
|
</UL>
|
||||||
<P>
|
<P>
|
||||||
logind (_code(`systemd-logind.service(8)')) is a component of SystemD that exposes information about active users on the system via the org.freedesktop.login1 D-Bus interface which is used by the popular desktop environments GNOME and KDE.
|
logind (_code(`systemd-logind.service(8)')) is a component of SystemD that exposes information about active users on the system via the org.freedesktop.login1 D-Bus interface which is used by the popular desktop environments GNOME and KDE.
|
||||||
It also handles <A HREF="#acpi">ACPI</A> events.
|
It also handles _hyperlink(`#ACPI', `ACPI') events.
|
||||||
It can be configured in _code(`logind.conf(5)').
|
It can be configured in _code(`logind.conf(5)').
|
||||||
</P>
|
</P>
|
||||||
<P>
|
<P>
|
||||||
@ -767,8 +789,21 @@ This generates an <A HREF="https://en.wikipedia.org/wiki/EdDSA#Ed25519">Ed25519<
|
|||||||
<UL>
|
<UL>
|
||||||
<LI><A HREF="https://www.linux.org/threads/common-pronunciations-of-linux-directories-commands-etc.4445/">Common pronunciations of Linux directories, commands, etc</A></LI>
|
<LI><A HREF="https://www.linux.org/threads/common-pronunciations-of-linux-directories-commands-etc.4445/">Common pronunciations of Linux directories, commands, etc</A></LI>
|
||||||
</UL>
|
</UL>
|
||||||
|
|
||||||
<H2>Task management</H2>
|
<H2>Task management</H2>
|
||||||
<P>_code(`top(1)') comes with busybox, otherwise use _code(`htop').</P>
|
<H3>htop(1)</H3>
|
||||||
|
<UL>
|
||||||
|
<LI>_hyperlink(`https://en.wikipedia.org/wiki/Htop', `htop') (Wikipedia)</LI>
|
||||||
|
<LI>_hyperlink(`https://htop.dev/', `htop - an interactive process viewer')</LI>
|
||||||
|
</UL>
|
||||||
|
<P>
|
||||||
|
_code(`htop(1)') is a featureful alternative to _code(`top(1)').
|
||||||
|
</P>
|
||||||
|
|
||||||
|
<H3>top(1)</H3>
|
||||||
|
<P>
|
||||||
|
Busybox and NetBSD provide implementations of _code(`top(1)'), an interactive in-terminal task manager.
|
||||||
|
</P>
|
||||||
|
|
||||||
<H2 ID="text_editing">Text editing</H2>
|
<H2 ID="text_editing">Text editing</H2>
|
||||||
<P>
|
<P>
|
||||||
@ -817,40 +852,46 @@ X is a graphical windowing system that can be used on Linux, FreeBSD, OpenBSD, N
|
|||||||
X is not the only windowing system; _code(`twin(1)') exists for windowed multitasking within a framebuffer and Wayland is another windowing system intended to replace X.
|
X is not the only windowing system; _code(`twin(1)') exists for windowed multitasking within a framebuffer and Wayland is another windowing system intended to replace X.
|
||||||
</P>
|
</P>
|
||||||
<P>
|
<P>
|
||||||
Xorg requires the user to be a member of the _code(`input') and _code(`video') groups (or superuser), otherwise it won't be able to access the relevent device files.
|
|
||||||
These errors look like _code(`Failed to open /dev/input/event[<I>number</I>] (Permission denied)') when not in the _code(`input') group
|
|
||||||
and _code(`Failed to open /dev/tty[<I>number</I>] (Permission denied)') when not in the _code(`video') group.
|
|
||||||
</P>
|
|
||||||
<P>
|
|
||||||
Some Linux software distributions have included scripts to automatically fetch and install an X server.
|
Some Linux software distributions have included scripts to automatically fetch and install an X server.
|
||||||
Alpine has _code(`setup-xorg-base'), which adds the packages _code(`xorg-server'), _code(`xf86-input-libinput'), _code(`eudev'), and _code(`mesa'), and then enables the OpenRC services for udev.
|
Alpine has _code(`setup-xorg-base'), which adds the packages _code(`xorg-server'), _code(`xf86-input-libinput'), _code(`eudev'), and _code(`mesa'), and then enables the OpenRC services for udev.
|
||||||
</P>
|
</P>
|
||||||
|
|
||||||
|
<H3>Mail</H3>
|
||||||
<P>
|
<P>
|
||||||
_code(`startx(1)') is provided as part of xinit.
|
The (formerly Mozilla) Thunderbird mail suite is a popular though maximal choice.
|
||||||
|
Claws Mail is a nice mail reader with a somewhat similar interface to Thunderbird but, in my experience, easier to use.
|
||||||
</P>
|
</P>
|
||||||
<P>
|
|
||||||
Arch has the _code(`<A HREF="https://archlinux.org/groups/x86_64/xorg/">xorg</A>') and _code(`<A HREF="https://archlinux.org/groups/x86_64/xorg-apps/">xorg-apps</A>') package groups.
|
|
||||||
Documentation can be found within _code(`xorg-docs'),
|
|
||||||
drivers within the _code(`<A HREF="https://archlinux.org/groups/x86_64/xorg-drivers/">xorg-drivers</A>') package group,
|
|
||||||
the server itself as _code(`xorg-server'),
|
|
||||||
the X event monitor as _code(`xorg-xev'),
|
|
||||||
xinit as _code(`xorg-xinit'),
|
|
||||||
xinput as _code(`xorg-xinput'),
|
|
||||||
XRandR as _code(`xorg-xrandr'),
|
|
||||||
the X resource database manager as _code(`xorg-xrdb'),
|
|
||||||
xset as _code(`xorg-xset'),
|
|
||||||
and xsetroot as _code(`xorg-xsetroot').
|
|
||||||
</P>
|
|
||||||
<P>Alpine has xinput as _code(`xinput').</P>
|
|
||||||
|
|
||||||
<H3>Media</H3>
|
<H3>Media</H3>
|
||||||
<P>
|
<P>
|
||||||
_code(`mpv(1)') and _code(`vlc(1)') are good options.
|
_code(`mpv(1)') and _code(`vlc(1)') are good options.
|
||||||
</P>
|
</P>
|
||||||
|
|
||||||
|
<H3>Server</H3>
|
||||||
|
|
||||||
|
<H4>X.org</H4>
|
||||||
|
<UL>
|
||||||
|
<LI>_hyperlink(`https://www.x.org/', `X.org')</LI>
|
||||||
|
<LI>_hyperlink(`https://en.wikipedia.org/wiki/X.Org_Server', `X.Org Server') (Wikipedia)</LI>
|
||||||
|
</UL>
|
||||||
|
<P>
|
||||||
|
The de-facto standard X server is X.org (available on the web at _literal_hyperlink(`https://www.X.org')).
|
||||||
|
NetBSD uses X.org as the default system X server.
|
||||||
|
</P>
|
||||||
|
<P>
|
||||||
|
Arch Linux's package repositories have _code(`_hyperlink(`https://archlinux.org/groups/x86_64/xorg/', `xorg')'),
|
||||||
|
_code(`_hyperlink(`https://archlinux.org/groups/x86_64/xorg-apps/', `xorg-apps')'),
|
||||||
|
and _code(`_hyperlink(`https://archlinux.org/groups/x86_64/xorg-drivers/', `xorg-drivers')') package groups.
|
||||||
|
_hyperlink(`#pkgsrc', `pkgsrc') has _code(`meta-pkgs/modular-xorg').
|
||||||
|
</P>
|
||||||
|
<H5>_code(`Failed to open /dev/input/event[<I>number</I>] (Permission denied)')</H6>
|
||||||
|
<P>You need to be a part of the _code(`input') group to use X.org.</P>
|
||||||
|
<H5>_code(`Failed to open /dev/tty[<I>number</I>] (Permission denied)')</H6>
|
||||||
|
<P>You need to be a part of the _code(`video') group to use X.org.</P>
|
||||||
|
|
||||||
<H3>Window Management</H3>
|
<H3>Window Management</H3>
|
||||||
<P>
|
<P>
|
||||||
It's possible to make X exec a window manager at the end of initialization to ease the creation, deletion, and manipulation of windows.
|
It's possible to make X _code(`exec(3)') a window manager at the end of initialization to ease the creation, deletion, and manipulation of windows.
|
||||||
Contrary to what is now popular belief, window managers are not necessary (thought they're extremely convenient compared to the lack of them).
|
Contrary to what is now popular belief, window managers are not necessary (thought they're extremely convenient compared to the lack of them).
|
||||||
</P>
|
</P>
|
||||||
<H4>ctwm</H4>
|
<H4>ctwm</H4>
|
||||||
@ -864,5 +905,14 @@ Contrary to what is now popular belief, window managers are not necessary (thoug
|
|||||||
TOR Browser is available through pkgsrc at _code(`security/tor-browser').
|
TOR Browser is available through pkgsrc at _code(`security/tor-browser').
|
||||||
</P>
|
</P>
|
||||||
|
|
||||||
|
<H3>xinit(1)</H3>
|
||||||
|
<P>
|
||||||
|
_code(`startx(1)') is usually included with _code(`xinit(1)').
|
||||||
|
</P>
|
||||||
|
<P>
|
||||||
|
On Alpine Linux, _code(`xinit(1)') is provided by the _code(`xinit') package.
|
||||||
|
On Arch Linux, _code(`xinit(1)') is provided by _code(`_hyperlink(`https://archlinux.org/packages/extra/x86_64/xorg-xinit/', `xorg-xinit')').
|
||||||
|
</P>
|
||||||
|
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
Loading…
Reference in New Issue
Block a user