gabrielgio.me @ cd45776f92981fd98a59f605075272265d3a0174

ref: Add more info to the alpine seteup
  1diff --git a/content/posts/2022-12-10-alpine-setup.md b/content/posts/2022-12-10-alpine-setup.md
  2index fb251dab001fe37ce298e084dc5f193535769c36..1fa9027833b2d0631f77141e7adf7fd54de9a44b 100644
  3--- a/content/posts/2022-12-10-alpine-setup.md
  4+++ b/content/posts/2022-12-10-alpine-setup.md
  5@@ -40,7 +40,10 @@
  6 * _Which timezone are you in?_ **Europe/Berlin**
  7 
  8 * _HTTP/FTP proxy URL?_ **none**
  9-* _Which NTP client to run?_ chrony
 10+
 11+* _Which NTP client to run?_ **busybox** [I don't have a good experience with
 12+  chrony, busybox works better for me]
 13+
 14 * _Enter mirro number?_ **f** [I pick this one to speed up things a bit, default
 15   one is fine as well]
 16 
 17@@ -132,6 +135,80 @@ add user <NAME> input`
 18 add user <NAME> video`
 19 ```
 20 
 21+## Networking
 22+
 23+It uses `networking` by default, which I don't like very much, so let's switch
 24+to `NetworkManager`[^6].
 25+
 26+First install it and its requirement:
 27+
 28+```bash
 29+apk add networkmanager networkmanager-wifi # for wifi support
 30+```
 31+
 32+Add user to group:
 33+
 34+```bash
 35+adduser <USER> plugdev
 36+```
 37+
 38+And as every group change you will have to logout and login again to those
 39+changes take effect.
 40+
 41+Now let's edit its configuration on `/etc/NetworkManager/NetworkManager.conf`
 42+
 43+```bash
 44+[main] 
 45+dhcp=internal
 46+plugins=ifupdown,keyfile
 47+
 48+[ifupdown]
 49+managed=true
 50+```
 51+
 52+
 53+Now, we need to swap services:
 54+
 55+```bash
 56+rc-service networking stop          # stop networking service
 57+rc-update del networking boot       # remove it from start up from boot level
 58+
 59+rc-service networkmanager start     # start networkmanager service
 60+rc-update add networkmanager boot   # add it from start up on boot level
 61+```
 62+
 63+Also, install `np-applet`[^7] for desktop tray icon
 64+
 65+```bash
 66+apk add network-manager-applet 
 67+```
 68+
 69+### WIFI
 70+By default if it will setup `wpa_supplicant`[^5] for WIFI, but I opted for
 71+`iwd`[^8].
 72+
 73+```bash
 74+apk add iwd
 75+```
 76+
 77+Now append to the `/etc/NetworkManager/NetworkManager.conf`:
 78+
 79+```bash
 80+# ...
 81+[device]
 82+wifi.backend=iwd
 83+```
 84+
 85+Swap WIFI services:
 86+
 87+```bash
 88+rc-service wpa_supplicant stop          # stop wpa_supplicant service
 89+rc-update service del wpa_supplicant    # remove it from start up 
 90+
 91+rc-service iwd start                    # start iwd service
 92+rc-update service add iwd               # add it to start up
 93+```
 94+
 95 ## Extras 
 96 
 97 There is a list go command that I use that may be helpful:
 98@@ -156,3 +233,7 @@ [^1]: https://wiki.alpinelinux.org/wiki/Installation#Questions_asked_by_setup-alpine
 99 [^2]: https://wiki.alpinelinux.org/wiki/Installation#The_general_course_of_action
100 [^3]: https://wiki.alpinelinux.org/wiki/Repositories#Enabling_the_community_repository
101 [^4]: https://wiki.alpinelinux.org/wiki/Setting_up_a_laptop
102+[^5]: https://wiki.alpinelinux.org/wiki/Wi-Fi
103+[^6]: https://wiki.alpinelinux.org/wiki/NetworkManager
104+[^7]: https://pkgs.alpinelinux.org/packages?name=network-manager-applet&branch=edge&repo=&arch=x86_64&maintainer=
105+[^8]: https://wiki.archlinux.org/title/Iwd