1
0

power, text editing

This commit is contained in:
dtb 2022-04-22 23:55:19 -04:00
parent 41121bfd71
commit 8786b0f4d5

View File

@ -65,12 +65,18 @@ Many Linux software distributions' system package managers have meta-packages th
Alpine has <CODE>build-base</CODE> and Debian has <CODE>build-essential</CODE>.
</P>
<H2>fstab</H2>
<H2>Debian</H2>
<P>
Debian is a Linux software distribution known for its stability and longevity.
Debian uses SystemD as its initialization system, the GNU core utilities, and dpkg and apt for package management.
</P>
<H2 ID="fstab">fstab</H2>
<P>See <CODE>fstab(5).</CODE></P>
<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>Login manager</H2>
<H2 ID="login_manager">Login manager</H2>
<P>Use <CODE>elogind</CODE>.</P>
<H2>Make utility</H2>
@ -140,7 +146,12 @@ Check out the linked pages in the "See also" section.
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</H2>
<P>
postmarketOS is an Alpine-based Linux software distribution that makes configuring and using Linux easy on mobile devices.
It uses OpenRC for initialization, busybox for core utilities, and can come with any of multiple windowing systems and window managers.
</P>
<H3>Random MAC address generation on Wifi</H3>
<P>
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.
@ -154,16 +165,39 @@ wifi.scan-rand-mac-address=no
On a live system you can then <CODE>rc-service networkmanager restart</CODE> to restart NetworkManager and have it load the new configuration.
</P>
<H2>Task management</H2>
<P>
<CODE>top(1)</CODE> comes with busybox, otherwise use <CODE>htop</CODE>.
</P>
<H2 ID="power">Power</H2>
<P>Much of this can be configured in the ACPI settings in your <A HREF="#login_manager">login manager</A>, provided you have one running that can do this.</P>
<P>Check out <CODE>tlp</CODE> for Thinkpads and some other Lenovo devices.</P>
<H2>Text editing</H2>
<H2>Task management</H2>
<P><CODE>top(1)</CODE> comes with busybox, otherwise use <CODE>htop</CODE>.</P>
<H2 ID="text_editing">Text editing</H2>
<P>
<CODE>emacs</CODE> and <CODE>vim</CODE> come to mind.
A particularly shoddy attempt at <CODE>ed(1)</CODE> is provided by <CODE>busybox</CODE> but will please nobody.
busybox's <CODE>vi(1)</CODE> on the other hand is a very useable implementation of the original.
<CODE>nano(1)</CODE> is a text editor that's usually recommended for beginners because its controls are more intuitive.
<CODE>ne(1)</CODE> is like <CODE>nano(1)</CODE> but with different superpowers. Not yet in pkgsrc.
</P>
<H3>ed</H3>
<P>
A particularly shoddy attempt at <CODE>ed(1)</CODE> is provided by <CODE>busybox</CODE>.
A traditional <CODE>ed(1)</CODE> implementation is in plan9ports.
I'm pretty sure some later UNIX-based OSes doubled the <CODE>ed(1)</CODE> buffers, there's pretty much no downside to doing so in the modern era but it should be very easy to do yourself if it hasn't already been done (just double some of the array sizes in the beginning of <CODE>ed.c</CODE>).
</P>
<H3>vi</H3>
<P>
Unlike <CODE>busybox</CODE>'s <CODE>ed(1)</CODE> implementation, its <CODE>vi(1)</CODE> is very useable.
<CODE>vim(1)</CODE> is a popular re-implementation of <CODE>vi(1)</CODE>.
</P>
<H3>emacs</H3>
<P>
Emacs ("editor macros") is a text editor with a very powerful Lisp interpreter included.
Lisp is mostly antiquated due to its undeserved lack of popularity.
Linus Torvalds uses his own fork of uEmacs ("micro Emacs"), an Emacs without the Lisp interpreter(?).
</P>
<H3>cat</H3>
<P>
Technically <CODE>cat(1)</CODE> and other UNIX utilities can be used in a hacky way for text editing functions.
You'd be better off using <CODE>ed(1)</CODE>; the UX is very similar.
</P>
<H2>util-linux</H2>
@ -182,5 +216,15 @@ Some prefer NetworkManager and I believe that's the default on Debian.
The Artix wiki suggests connman.
</P>
<H2>X</H2>
<P>
X is a graphical windowing system that can be used on Linux, FreeBSD, OpenBSD, NetBSD, and some proprietary operating systems as well.
X is not the only windowing system; <CODE>twin(1)</CODE> exists for windowed multitasking within a framebuffer and Wayland is another windowing system intended to replace X.
</P>
<P>
Some Linux software distributions have included scripts to automatically fetch and install an X server.
Alpine has <CODE>setup-xorg-base</CODE>, which adds the packages <CODE>xorg-server</CODE>, <CODE>xf86-input-libinput</CODE>, <CODE>eudev</CODE>, and <CODE>mesa</CODE>, and then enables the OpenRC services for udev.
</P>
</BODY>
</HTML>