You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3.1 KiB

title date lastmod tags showReadingTime showWordCount showPagination showBreadcrumbs feed_exclude
Archlinux 2023-11-29T20:33:48+0100 2024-04-21T18:10:00+0000
archlinux
false false false true true

Predictable network interfaces

Get back the "old" interface names like eth0 or wlan0 with systemd.link.

Ethernet

This makes my ethernet interface be called eth0 again.

Create /usr/lib/systemd/network/80-ether.link with this content:

[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:

[Match]
Type=wlan

[Link]
NamePolicy=keep kernel

Reboot.

Setup WiFi networks

Using iwctl

$ iwctl device list
$ iwctl station wlan0 scan
$ iwctl station wlan0 get-networks
$ iwctl station wlan0 connect {ssid}

Using nmcli (NetworkManager)

$ 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.

Using NetworkManager

We create some files in /etc/NetworkManager/conf.d:

Using iwd as the WiFi backend

wifi_backend.conf:

[device]
wifi.backend=iwd

Using dhcpcd as DHCP client

dhcp-client.conf:

[main]
dhcp=dhcpcd

Do not manage one specific USB dongle

99-unmanaged-devices.conf:

[keyfile]
unmanaged-devices=mac:xx:xx:xx:xx:xx:xx

Prefer local DNS instead of systemd-resolved defaults

https://unix.stackexchange.com/a/442599

CPU frequency scaling

https://wiki.archlinux.org/title/CPU_frequency_scaling

YubiKeys

https://wiki.archlinux.org/title/YubiKey

LunarVim custom key mappings

I know, this is an Arch Linux post but hey, I don't care.

https://github.com/LunarVim/LunarVim/issues/2602

Mounting nfs shares with systemd

https://wiki.archlinux.org/title/NFS#Mount_using_/etc/fstab_with_systemd

Arch Linux ARM installation on a Raspberry Pi 2

The wiki page is for Raspberry Pi 4.

https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-4

Create a 32-bit Wine prefix

I create my wine prefixes usually like this:

$ export WINEPREFIX=/home/dominic/.wine-winlink
$ export WINEARCH=win32
$ wine wineboot

Installing multiple ruby versions

I came to the point to test an older website from me and it was made with Jekyll which I had to install quickly. Problems occured with OpenSSL and I finally managed to install ruby version 2.7.1 and 3.0.0 in my home directory.

$ rvm pkg install openssl
$ rvm install "ruby-3.0.0" --with-openssl-dir=$HOME/.rvm/usr
$ rvm install "ruby-2.7.1" --with-openssl-dir=$HOME/.rvm/usr

Later in the desired directory, I re-installed the gems because with ruby 2.7.1 I got another "Directory not found" error.

I had to do this because I used ruby 2.7.1 on one website.

$ bundle install --force