Installing Fonts, Wi-Fi, Bluetooth and Flatpak
Let's see in this section how to install Fonts, Wi-Fi, Bluetooth and Flatpak in Alpine Linux.
This section was made based on those pages of Alpine Wiki:
Intro
Now that you have Alpine with Plasma 6 installed you can setup extra stuffs like fonts, wifi and bluetooth.
Steps
1) Basic fonts support
If you need more fonts or a specific font, checkout the first link.
doas apk add font-terminus font-inconsolata font-dejavu font-noto font-noto-cjk font-awesome font-noto-extra
2) Wi-Fi
We will use wpa_supplicant for this, if you want IWD, checkout the second and third links.
- Install network manager wifi support:
doas apk add networkmanager-wifi
- Add network manager service:
doas rc-update add networkmanager default
- Install wpa_supplicant:
doas apk add wpa_supplicant
- Add your user to plugdev group:
doas adduser <your user> plugdev
- Remove network from boot:
doas rc-update del networking boot
- Remove wpa_supplicant from boot:
doas rc-update del wpa_supplicant boot
Edit you Network Manger config like this:
[main]
dhcp=internal
plugins=ifupdown,keyfile
[ifupdown]
managed=true
[device]
wifi.scan-rand-mac-address=yes
wifi.backend=wpa_supplicant
Edit your network interfaces like this:
auto lo
iface lo inet loopback
Done, now you can reboot!
3) Bluetooth
If you need support for a specific bluetooth device checkout the 4th and 5th links.
- Add your user to lp group:
doas adduser <your user> lp
- Install basic packages:
doas apk add bluez bluez-openrc pipewire-spa-bluez
- Install hidapi:
doas apk add hidapi
- Load hidapi module:
doas modprobe uhid
- Add bluetooth service:
doas rc-update add bluetooth
Done, now you can reboot!
4) Flatpak
As Alpine is a distro with busybox userspace and OpenRC init system a lot of softwares does not have support or will not run fine on Alpine. For other apps that are not core we can use flatpak sandbox to execute them.
- Install GTK portal:
doas apk add xdg-desktop-portal-gtk
- Install flatpak:
doas apk add flatpak
- Add flatpak repo:
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
Done, now you can reboot. You have now access to all apps on flathub!