gabrielgio.me @ cd45776f92981fd98a59f605075272265d3a0174

ref: Add more info to the alpine seteup
diff --git a/content/posts/2022-12-10-alpine-setup.md b/content/posts/2022-12-10-alpine-setup.md
index fb251dab001fe37ce298e084dc5f193535769c36..1fa9027833b2d0631f77141e7adf7fd54de9a44b 100644
--- a/content/posts/2022-12-10-alpine-setup.md
+++ b/content/posts/2022-12-10-alpine-setup.md
@@ -40,7 +40,10 @@
 * _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 @@ [^1]: https://wiki.alpinelinux.org/wiki/Installation#Questions_asked_by_setup-alpine
 [^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