Skip to content

How to connect to eduroam with nmtui

I am using NetworkManager to work with any kind of network connection.

I found my freedom with the nmtui and it was working fine until today. Today, I needed to connect to an eduroam WiFi. Long story short this is currently not possible that easy with nmtui or nmcli.

Since I try to keep the system footprint small, I have not installed any gui for the NetworkManager.

Thanks to GallaFrancesco, I found a way to connect to my eduroam realm.

Execute the following command in your shell.

nmcli connection add \
    type wifi con-name "eduroam" ifname $(ifconfig | grep -i w | cut -d":" -f 1) ssid "eduroam" -- \
    wifi-sec.key-mgmt wpa-eap 802-1x.eap peap \ 
    802-1x.phase2-auth mschapv2 802-1x.identity "<username>@<realm>"

After that, restart your networkmanager service with systemctl restart NetworkManager.service to ensure the eduroam connection was found.

Finally, open nmtui and activate the eduroam connection. Now, you have to provide your password.

I've created a small howto here.

Nextcloud create public upload link

So today I wanted to quickly setup a public shared link so that a friend of mine is able to easily upload a file to me.

Of course, I've stumbled over the file drop but I was not able to find the "File drop (upload only" section when I was creating this share.

I tried to find more information and was digging into the documentation. I was going through the issue list but at the end, I was not able to fix the missing option. I was also quickly updating the server to the latest version, but also, no "File drop" selection.

Than, after reading the logs, investigating the config.php, I finally found the missing link.

As an administrator, you have to go to Sharing and check the Allow public uploads configuration setting. After that, you can finally create your share as a user known as "file drop".

Error: "core.db not found" - Reason: archlinuxarm had stopped support for rasperry pi model 1

I totally missed that this was happening. While I had a big to do list in the real life, the archlinuxarm-team decided to drop the support for armv6 models like the Raspberry Pi Model 1.

I just started a pi a few days ago and while I wanted to run a pacman -Syyu, I just got strange error messages like core.db not found.

The error is something like error: failed retrieving file 'core.db' from mirror.archlinuxarm.org : Resolving timed out after 10000 milliseconds.
If you run pacman -Syyu --debug, you get an output like mentioned in this thread.

The reason for all of this is mentioned in this thread. On the sixth of Januar 2022, cablespaghetti wrote This is in response to the announcement that ARMv6 support is being dropped next month.

There is an archive mirror available but this tends to have outdated packages from day one.

What can you do from now?

I didn't made my mind up yet. Personally, the one device that is most important will be used as scan- and printserver until I will have some time to migrate to something else.

OpenWRT cronjob to check connection status and restart OpenVPN if needed

I am currently using my Raspberry PI travel router in a really unstable internet connection environment.

The connection is that unstable that my vpn is loosing contact to the server multiple times per day.

To fix that, I've just create a dead simple cronjob that checks the connection by running a ping. If the ping fails, the openvpn service is restarted.

You can find the always up to date source here. My initial working cronjob is paste below.

mkdir /root/cronjob

cat > /root/cronjob/test_connection_and_restart_openvpn.sh <<DELIM
#!/bin/sh
####
# Restarts openvpn service if non of the "well known" ip address are pingable
# You have to enable a vpn client config so the restart of the service makes any sense.
####
# @see
#   https://github.com/stevleibelt/General_Howtos/blob/master/operation_system/linux/openwrt/howto/openvpn.md
#   https://openwrt.org/docs/guide-user/base-system/cron
#   https://forum.openwrt.org/t/lede-service-openvpn-start-and-stop-with-uci/20449
#   https://openwrt.org/docs/guide-user/base-system/log.essentials
# @since 2022-02-22
# @author stev leibelt <artodeto@bazzline.net>
####

function _main ()
{
    local RESTART_OPENVPN=0

    logger -p debug -t test_connection_restart_openvpn "   starting pinging google"
    #ping google, feel free to ping something else
    ping -c 1 8.8.8.8 &> /dev/null

    if [ \$? -ne 0 ];
    then
        logger -p debug -t test_connection_restart_openvpn "   starting pinging cloudflare"
        #ping cloudflare, feel free to ping something else
        ping -c 1 1.1.1.1 &> /dev/null

        if [ \$? -ne 0 ];
        then
            logger -p info -t test_connection_restart_openvpn "   connection test failed"
            RESTART_OPENVPN=1
        fi
    fi

    if [ \$RESTART_OPENVPN -eq 1 ];
    then
        logger -p notice -t test_connection_restart_openvpn "   starting openvpn restart"

        /etc/init.d/openvpn stop
        /etc/init.d/openvpn start

        logger -p notice -t test_connection_restart_openvpn "   finished openvpn restart"
    else
        logger -p debug -t test_connection_restart_openvpn "   connection is still ok"
    fi
}

_main

DELIM

chmod +x /root/cronjob/test_connection_and_restart_openvpn.sh

cat >> /etc/crontabs/root <<DELIM
*/5 * * * * /root/cronjob/test_connection_and_restart_openvpn.sh

DELIM

/etc/init.d/cron restart

crontab -l

Enjoy it.