- Install
huawei-lte-api
export HUAWEI_ROUTER_IP_ADDRESS="" # Router IP address| /* | |
| * | |
| * Original code by Miononno | |
| * https://www.youtube.com/watch?v=1kanq1w2DA0 | |
| * | |
| * Enhanced by unknown @ lteforum.at | |
| * | |
| */ | |
| console.log("Loading ZTE Script v" + "2025-04-17-#1"); |
| javascript: ftb(); | |
| siginfo = | |
| "lte_ca_scell_present,lte_ca_scell_ca_activated,lte_ca_scell_earfcn,lte_ca_scell_pci," + | |
| "lte_ca_scell_rsrp,lte_ca_scell_rsrq,lte_ca_scell_serv_rssnr," + | |
| "rssi_1,rssi_2,rssi_3,rssi_4,rscp_1,ecio_1,rscp_2,ecio_2,rscp_3,ecio_3,rscp_4,ecio_4," + | |
| "evdo_sinr,tx_power,wan_csq,wan_lte_ca_dl_channel,tx_power,Z5g_rsrp,Z5g_rsrq,Z5g_SINR," + | |
| "wan_lte_ca_sinr,lte_rsrp_1,lte_rsrp_2,lte_rsrp_3,lte_rsrp_4," + | |
| "lte_snr_1,lte_snr_2,lte_snr_3,lte_snr_4,5g_rx0_rsrp,5g_rx1_rsrp," + | |
| "lte_pci,lte_pci_lock,lte_earfcn_lock,wan_ipaddr,wan_apn,pm_sensor_mdm,pm_modem_5g," + |
| deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
| deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
| deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
| deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
| deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
| deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
| deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse |
huawei-lte-apiexport HUAWEI_ROUTER_IP_ADDRESS="" # Router IP address| /interface bridge add name=bridge | |
| /interface bridge port | |
| add bridge=bridge interface=ether3 | |
| add bridge=bridge interface=ether2 | |
| add bridge=bridge interface=ether1 | |
| /interface list | |
| add comment=defconf name=WAN | |
| add comment=defconf name=LAN |
| # install | |
| firefox https://www.wireguard.com/install/ | |
| # for macOS use the brew/ports version, not the app | |
| # be root | |
| sudo -i | |
| mkdir /etc/wireguard || true | |
| cd /etc/wireguard | |
| # create keys |
| #!/bin/bash | |
| # By B Shea Dec2018 & Mar2020 | |
| # https://www.holylinux.net | |
| # Test for OpenSSL - if not installed stop here. | |
| if ! [[ -x $(which openssl) ]]; then | |
| printf "\nOpenSSL not found or not executable.\nPlease install OpenSSL before proceeding.\n\n" | |
| exit 1 | |
| fi |
sudo useradd --system --shell /bin/false node_exporter
curl -fsSL https://github.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.linux-amd64.tar.gz \
| sudo tar -zxvf - -C /usr/local/bin --strip-components=1 node_exporter-1.3.1.linux-amd64/node_exporter \
&& sudo chown node_exporter:node_exporter /usr/local/bin/node_exporter
| #!/usr/bin/env python | |
| """ | |
| <Program Name> | |
| say_lte.py | |
| <Author> | |
| Lukas Puehringer <luk.puehringer@gmail.com> | |
| <Purpose> | |
| Script to help me position my `Alcatel Linkhub HH40v` LTE modem for the |
| #!/bin/bash | |
| if [[ ! -v SUPRNOVA_KEY ]] | |
| then | |
| echo -e "SUPRNOVA_KEY environment variable isn't set.\n\nThis should be the API key from your Suprnova account." | |
| exit 1 | |
| fi | |
| if [[ ! -v SUPRNOVA_TARGET ]] | |
| then | |
| echo -e "SUPRNOVA_TARGET environment variable isn't set.\n\nThis should be 'zcl' if you are connecting to 'zcl.suprnova.cc'" |