kota's memex

doas

Execute commands as another user.

iwd

A wireless daemon aiming at replacing wpa_supplicant.

openrc

Simple and fast init system.

apk

Fast as fuck package manager.

awall

Alpine Wall is a firewall frontend designed for alpine linux.

ash (default shell)

Part of busy-box. Okay for really basic stuff.

pam / shadow

Allowing users / groups to have limits set on files open or non-root users setting niceness requires PAM. You should install the shadow package and probably the openssh-server-pam. Also open /etc/ssh/sshd_config and enable PAM in the config. Then you can configure stuff in /etc/security/limits.conf see man limits.conf for help.

lsblk

cat /proc/partitions

guides

https://as.bt.ht/

Very nice desktop guide.

add user

adduser kota
adduser kota wheel
apk add doas\

docs

doas apk add docs

common linux utils

doas apk add build-base abuild lang util-linux pciutils usbutils coreutils binutils findutils grep iproute2 rtkit

doas rc-update add openrc-settingsd boot

xdg-user-dirs-update

fonts

doas apk add font-noto-all font-noto-emoji

doas nvim /etc/font/local.conf

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

 <alias>
   <family>sans-serif</family>
   <prefer>
     <family>Noto Sans</family>
     <family>Noto Color Emoji</family>
     <family>Noto Emoji</family>
   </prefer>
 </alias>

 <alias>
   <family>serif</family>
   <prefer>
     <family>Noto Serif</family>
     <family>Noto Color Emoji</family>
     <family>Noto Emoji</family>
   </prefer>
 </alias>

 <alias>
  <family>monospace</family>
  <prefer>
    <family>Noto Sans Mono</family>
    <family>Noto Color Emoji</family>
    <family>Noto Emoji</family>
   </prefer>
 </alias>
</fontconfig>

audio

doas apk add pipewire-pulse pipewire-alsa pipewire-jack pipewire-spa-bluez
doas rc-update add dbus

bluetooth

doas adduser kota lp
doas rc-service bluetooth start
doas rc-update add bluetooth default

tlp

doas apk add tlp
doas rc-service tlp start
doas rc-update add tlp default

network manager

setup-devd udev
doas adduser kota plugdev
doas apk add networkmanager networkmanager-wifi networkmanager-cli networkmanager-tui
doas rc-update add networkmanager
doas rc-update del networking boot
doas rc-update del wpa_supplicant boot
doas nvim /etc/NetworkManager/NetworkManager.conf

[main]
dhcp=internal
plugins=ifupdown,keyfile

[ifupdown]
managed=true

[device]
wifi.scan-rand-mac-address=no
wifi.backend=wpa_supplicant

mkdir -p /etc/NetworkManager/conf.d
doas nvim /etc/NetworkManager/conf.d/any-user.conf

[main]
auth-polkit=false

printing

doas apk add cups cups-filters
doas rc-service cupsd start
doas rc-update add cupsd

sway setup

doas apk add eudev dbus sway elogind polkit-elogind
setup-devd udev
doas rc-update add dbus
doas rc-update add elogind boot
doas rc-update add polkit
doas reboot

i3wm setup

doas apk add eudev i3wm-gaps dbus
doas setup-xorg-base
doas rc-update add dbus
doas reboot
create .xinitrc

TTY autologin

install util-linux

Edit /etc/inittab

Change the tty1 line to the following with "usernamehere" being your username:
tty1::respawn:/sbin/agetty -a usernamehere 38400 tty1

gnome/xfce/kde setup

doas setup-desktop
You can do this immediately after a fresh install and it will grab all the packages and do all the setup needed. For gnome you might also want to install network manager so you can control the network connections from the gui. You'll probably also want to install some extra fonts for the web.

gnome software

doas rc-update add apk-polkit-server default
doas rc-service apk-polkit-server start
doas apk add flatpak gnome-software-plugin-flatpak
flatpak remote-add flathub https://dl.flathub.org/repo/flathub.flatpakrepo

groups

Here's a list of some common alpine linux groups you may wish/need to join.

adm         Used for system monitoring tasks.
disk        Raw access to disks.  Mostly equivalent to root access.
lp          Members of this group can enable and use printers.
wheel       Administrator group, members can use doas to run commands as root if enabled in the doas configuration.
floppy      Access to floppy drives and other removable (non-optical) drives (like USB flash drives).
audio       Direct access to sound hardware (the soundcard or a microphone).
cdrom       For access to disk writers and mounting DVD, BR or CD-ROM disk as normal user.
dialout     Full and direct access to serial ports.
input       Access to input devices.
tape        Needed to give a set of users access to a tape drive.
video       Access to video capture devices (like a webcam).
netdev      For network connections management as normal user.
kvm         Needed to use the KVM acceleration of virtual machines.
games       Access to some game software.
cdrw        Needed to write RW-DVD, RW-BR or RW-CD disk on a disk writing device.
usb         Needed to access special USB devices, deprecated group.
users       Needed if you plan to used common files for all users, mandatory as desktop usage.