--- title: Archlinux date: 2023-11-29T20:33:48+0100 lastmod: 2024-04-13T19:45:11+0000 tags: - archlinux #showDate: false showReadingTime: false showWordCount: false showPagination: false #showAuthor: false showBreadcrumbs: true feed_exclude: true # site_exclude: true draft: true --- ## Predictable network interfaces Get back the "old" interface names like `eth0` or `wlan0` with [systemd.link](https://www.man.page/5/systemd.link). ### Ethernet This makes my ethernet interface be called **eth0** again. Create `/usr/lib/systemd/network/80-ether.link` with this content: ~~~systemd [Match] Type=ether [Link] NamePolicy=keep kernel ~~~ Reboot. ### Wireless This makes my wireless interface be called **wlan0** again. Create `/usr/lib/systemd/network/80-wlan.link` with this content: ~~~systemd [Match] Type=wlan [Link] NamePolicy=keep kernel ~~~ Reboot. ## Prefer local DNS instead of systemd-resolved defaults ## Setup WiFi networks ### Using **iwctl** ~~~console $ iwctl device list $ iwctl station wlan0 scan $ iwctl station wlan0 get-networks $ iwctl station wlan0 connect {ssid} ~~~ ### Using **nmcli** (NetworkManager) ~~~console $ nmcli device wifi list $ nmcli device wifi rescan $ nmcli device wifi connect {ssid} --ask $ nmcli device wifi show-password ~~~ Last command shows the connected SSID and a QR-code within the terminal. ## CPU frequency scaling ## YubiKeys ## LunarVim custom key mappings I know, this is an Arch Linux post but hey, I don't care. ## Mounting nfs shares with systemd ### Arch Linux ARM installation on a Raspberry Pi 2 The wiki page is for Raspberry Pi 4. ## Create a 32-bit Wine prefix I create my wine prefixes usually like this: ~~~console $ export WINEPREFIX=/home/dominic/.wine-winlink $ export WINEARCH=win32 $ wine wineboot ~~~