Zum Hauptinhalt springen

Snippets

Dealing with expired GPG Keys

We may use the deprecated apt-key list command in order to show the outdated keys.

sudo apt-key list

Check for keys with the [expired] text, copy it's ID and then run the following command:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <LONG_KEY_ID>

taken from this article

Listing available WiFi networks

nmcli dev wifi list

Listing known WiFi networks

nmcli con | grep wifi

Connecting to WiFi with password

nmcli dev wifi connect "<network_ssid>" password "<network_password>"

Connecting to a known network

nmcli con up "<network_name>"

# Or with the BSSID
nmcli d wifi c "00:11:22:33:44:55"