I would like to install the eduroam executable provided here for linux as .py file compatible for python2.7 and python3, please see an old tutorial for reference where eduroam provided .sh files.
On a Dragino DLOS8 LoRaWAN gateway with following os:
root@dragino-227794:~# cat /etc/os-release
NAME="OpenWrt"
VERSION="18.06-SNAPSHOT"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt 18.06-SNAPSHOT"
VERSION_ID="18.06-snapshot"
HOME_URL="http://openwrt.org/"
BUG_URL="http://bugs.openwrt.org/"
SUPPORT_URL="http://forum.lede-project.org/"
BUILD_ID="r16-e8e7956"
LEDE_BOARD="ar71xx/generic"
LEDE_ARCH="mips_24kc"
LEDE_TAINTS="no-all busybox"
LEDE_DEVICE_MANUFACTURER="OpenWrt"
LEDE_DEVICE_MANUFACTURER_URL="http://openwrt.org/"
LEDE_DEVICE_PRODUCT="Generic"
LEDE_DEVICE_REVISION="v0"
LEDE_RELEASE="OpenWrt 18.06-SNAPSHOT r16-e8e7956"
Please check the manual here and the guide for configuring the luci package here.
I have installed python-base and tried executing the .py installer from eduroam but there are packages missing:
import argparse
import base64
import getpass
import os
import re
import subprocess
import sys
import uuid
from shutil import copyfile
Installing python-pip was not possible due to available data, after opkg remove python-base and trying opkg install python-base again, not even installing this package was possible:
root@dragino-227794:~# opkg install python-base
Installing python-base (2.7.18-3) to root...
Downloading https://downloads.openwrt.org/releases/packages-18.06/mips_24kc/packages//python-base_2.7.18-3_mips_24kc.ipk
Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREFER. Using latest.
Collected errors:
* pkg_write_filelist: Failed to open //usr/lib/opkg/info/python-base.list: No space left on device.
* opkg_install_pkg: Failed to extract data files for python-base. Package debris may remain!
* opkg_install_cmd: Cannot install package python-base.
* opkg_conf_write_status_files: Can't open status file //usr/lib/opkg/status: No space left on device.
root@dragino-227794:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 8.8M 8.8M 0 100% /rom
tmpfs 29.4M 1.2M 28.2M 4% /tmp
/dev/mtdblock4 5.6M 5.5M 116.0K 98% /overlay
overlayfs:/overlay 5.6M 5.5M 116.0K 98% /
tmpfs 512.0K 0 512.0K 0% /dev
Please see a list of installed packages here as well as the python installer from eduroam here.
I will probably first need to uninstall packages again and then try to get the old .sh-installer or a minimum size solution with python.