aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-12-24 12:15:36 +0100
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-12-24 12:15:36 +0100
commitcd45776f92981fd98a59f605075272265d3a0174 (patch)
tree1b5ad3388a3dbdebb60c071d3498537036ee4ca0
parent6cd1a496951bc676744413b27cd00b4f2176d64c (diff)
downloadgabrielgio.me-cd45776f92981fd98a59f605075272265d3a0174.tar.gz
gabrielgio.me-cd45776f92981fd98a59f605075272265d3a0174.tar.bz2
gabrielgio.me-cd45776f92981fd98a59f605075272265d3a0174.zip
ref: Add more info to the alpine seteup
-rw-r--r--content/posts/2022-12-10-alpine-setup.md83
1 files changed, 82 insertions, 1 deletions
diff --git a/content/posts/2022-12-10-alpine-setup.md b/content/posts/2022-12-10-alpine-setup.md
index fb251da..1fa9027 100644
--- a/content/posts/2022-12-10-alpine-setup.md
+++ b/content/posts/2022-12-10-alpine-setup.md
@@ -40,7 +40,10 @@ Once you boot your live installation run `setup-alpine` and follow the steps:
* _Which timezone are you in?_ **Europe/Berlin**
* _HTTP/FTP proxy URL?_ **none**
-* _Which NTP client to run?_ chrony
+
+* _Which NTP client to run?_ **busybox** [I don't have a good experience with
+ chrony, busybox works better for me]
+
* _Enter mirro number?_ **f** [I pick this one to speed up things a bit, default
one is fine as well]
@@ -132,6 +135,80 @@ add user <NAME> input`
add user <NAME> video`
```
+## Networking
+
+It uses `networking` by default, which I don't like very much, so let's switch
+to `NetworkManager`[^6].
+
+First install it and its requirement:
+
+```bash
+apk add networkmanager networkmanager-wifi # for wifi support
+```
+
+Add user to group:
+
+```bash
+adduser <USER> plugdev
+```
+
+And as every group change you will have to logout and login again to those
+changes take effect.
+
+Now let's edit its configuration on `/etc/NetworkManager/NetworkManager.conf`
+
+```bash
+[main]
+dhcp=internal
+plugins=ifupdown,keyfile
+
+[ifupdown]
+managed=true
+```
+
+
+Now, we need to swap services:
+
+```bash
+rc-service networking stop # stop networking service
+rc-update del networking boot # remove it from start up from boot level
+
+rc-service networkmanager start # start networkmanager service
+rc-update add networkmanager boot # add it from start up on boot level
+```
+
+Also, install `np-applet`[^7] for desktop tray icon
+
+```bash
+apk add network-manager-applet
+```
+
+### WIFI
+By default if it will setup `wpa_supplicant`[^5] for WIFI, but I opted for
+`iwd`[^8].
+
+```bash
+apk add iwd
+```
+
+Now append to the `/etc/NetworkManager/NetworkManager.conf`:
+
+```bash
+# ...
+[device]
+wifi.backend=iwd
+```
+
+Swap WIFI services:
+
+```bash
+rc-service wpa_supplicant stop # stop wpa_supplicant service
+rc-update service del wpa_supplicant # remove it from start up
+
+rc-service iwd start # start iwd service
+rc-update service add iwd # add it to start up
+```
+
## Extras
There is a list go command that I use that may be helpful:
@@ -156,3 +233,7 @@ to the commands.
[^2]: https://wiki.alpinelinux.org/wiki/Installation#The_general_course_of_action
[^3]: https://wiki.alpinelinux.org/wiki/Repositories#Enabling_the_community_repository
[^4]: https://wiki.alpinelinux.org/wiki/Setting_up_a_laptop
+[^5]: https://wiki.alpinelinux.org/wiki/Wi-Fi
+[^6]: https://wiki.alpinelinux.org/wiki/NetworkManager
+[^7]: https://pkgs.alpinelinux.org/packages?name=network-manager-applet&branch=edge&repo=&arch=x86_64&maintainer=
+[^8]: https://wiki.archlinux.org/title/Iwd