|
|
@ -1,7 +1,7 @@
|
|
|
|
---
|
|
|
|
---
|
|
|
|
title: Archlinux
|
|
|
|
title: Archlinux
|
|
|
|
date: 2023-11-29T20:33:48+0100
|
|
|
|
date: 2023-11-29T20:33:48+0100
|
|
|
|
lastmod: 2024-09-28T23:48:06+0000
|
|
|
|
lastmod: 2024-10-26T11:51:51+0000
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
- archlinux
|
|
|
|
- archlinux
|
|
|
|
- systemd
|
|
|
|
- systemd
|
|
|
@ -97,11 +97,11 @@ $ nmcli device wifi show-password
|
|
|
|
|
|
|
|
|
|
|
|
Last command shows the connected SSID and a QR-code within the terminal.
|
|
|
|
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`:
|
|
|
|
We create some files in `/etc/NetworkManager/conf.d`:
|
|
|
|
|
|
|
|
|
|
|
|
## Using `iwd` as the WiFi backend
|
|
|
|
#### Using `iwd` as the WiFi backend
|
|
|
|
|
|
|
|
|
|
|
|
`wifi_backend.conf`:
|
|
|
|
`wifi_backend.conf`:
|
|
|
|
|
|
|
|
|
|
|
@ -110,7 +110,7 @@ We create some files in `/etc/NetworkManager/conf.d`:
|
|
|
|
wifi.backend=iwd
|
|
|
|
wifi.backend=iwd
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Using `dhcpcd` as DHCP client
|
|
|
|
#### Using `dhcpcd` as DHCP client
|
|
|
|
|
|
|
|
|
|
|
|
`dhcp-client.conf`:
|
|
|
|
`dhcp-client.conf`:
|
|
|
|
|
|
|
|
|
|
|
@ -119,6 +119,31 @@ wifi.backend=iwd
|
|
|
|
dhcp=dhcpcd
|
|
|
|
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 <kbd>systemd-networkd</kbd>:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```console
|
|
|
|
|
|
|
|
# systemctl enable systemd-networkd.service
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reboot.
|
|
|
|
|
|
|
|
|
|
|
|
## Using the CPU with hashcat
|
|
|
|
## Using the CPU with hashcat
|
|
|
|
|
|
|
|
|
|
|
|
```console
|
|
|
|
```console
|
|
|
|