Alpine Linux setup


Updating APK repositories list

Assuming you've already installed Alpine and have rebooted, there's a few things to do before you're ready to get started:

Adding useful packages

apk add git curl sudo seatd dbus util-linux acpi pciutils usbutils coreutils binutils findutils grep iproute2 alsa-utils alsaconf mesa-dri-gallium elogind polkit-elogind

apk add waybar sway sway-doc xwayland foot wofi

apk add bash bash-doc bash-completion

apk add helix firefox go plan9port

Configuring services

apk add eudev
setup-devd udev
rc-update add seatd
rc-service seatd start
rc-update add dbus
rc-service dbus start
rc-update add alsa
rc-service alsa start

Updating user

adduser jr wheel
adduser jr input
adduser jr video
adduser jr audio
adduser jr seat

Adding config folder

git clone https://git.sr.ht/~jordanreger/dotfiles .config

Updating .profile

Using your favorite editor, add the following to .profile:

export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=sway
export XDG_CURRENT_DESKTOP=sway

export MOZ_ENABLE_WAYLAND=1
export MOZ_DBUS_REMOTE=1

mkdir -p /tmp/sway
export XDG_RUNTIME_DIR=/tmp/sway

if [ "$(tty)" = "/dev/tty1" ]; then
  exec sway
fi

Run sudo reboot to make the changes.