From bb36a303ed13b946d33fece8ddcc8175dff9f0a3 Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Sat, 26 Oct 2024 13:51:51 +0200 Subject: [PATCH] update arch linux notes page --- content/notes/archlinux/index.md | 33 ++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/content/notes/archlinux/index.md b/content/notes/archlinux/index.md index de40e16..565403f 100644 --- a/content/notes/archlinux/index.md +++ b/content/notes/archlinux/index.md @@ -1,7 +1,7 @@ --- title: Archlinux date: 2023-11-29T20:33:48+0100 -lastmod: 2024-09-28T23:48:06+0000 +lastmod: 2024-10-26T11:51:51+0000 tags: - archlinux - systemd @@ -97,11 +97,11 @@ $ nmcli device wifi show-password Last command shows the connected SSID and a QR-code within the terminal. -## Using NetworkManager +### Using NetworkManager We create some files in `/etc/NetworkManager/conf.d`: -## Using `iwd` as the WiFi backend +#### Using `iwd` as the WiFi backend `wifi_backend.conf`: @@ -110,7 +110,7 @@ We create some files in `/etc/NetworkManager/conf.d`: wifi.backend=iwd ``` -## Using `dhcpcd` as DHCP client +#### Using `dhcpcd` as DHCP client `dhcp-client.conf`: @@ -119,6 +119,31 @@ wifi.backend=iwd dhcp=dhcpcd ``` +### Using **systemd-networkd** + +```console +# wpa_passphrase MyNetwork SuperSecretPassphrase > /etc/wpa_supplicant/wpa_supplicant-wlan0.conf +# systemctl enable wpa_supplicant@wlan0 +``` + +Create `/etc/systemd/network/00-wireless-dhcp.network` and fill it with: + +```systemd +[Match] +Name=wlan0 + +[Network] +DHCP=yes +``` + +Enable systemd-networkd: + +```console +# systemctl enable systemd-networkd.service +``` + +Reboot. + ## Using the CPU with hashcat ```console