Configure allowed callback urls:
https://pad.server.com/auth/oauth2/callback
http://pad.server.com/auth/oauth2/callback
Configure scopes:
| # DO NOT EDIT THIS FILE | |
| # | |
| # Please edit /boot/armbianEnv.txt to set supported parameters | |
| # | |
| setenv load_addr "0x45000000" | |
| setenv overlay_error "false" | |
| # default values | |
| setenv verbosity "1" | |
| setenv console "both" |
| #!/bin/sh | |
| #### amf.yaml ausf.yaml nrf.yaml nssf.yaml pcf.yaml smf.yaml udm.yaml udr.yaml upf.yaml | |
| NFLIST={amf,susf,nrf,nssf,pcf,smf,udm,udr,upf} | |
| dostart() { | |
| for nf in $NFLIST; do | |
| echo systemctl start open5gs-${nf}d | |
| done | |
| } |
| arch: amd64 | |
| cores: 2 | |
| hostname: kodipriv | |
| memory: 2048 | |
| net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=56:94:2A:9A:8E:1B,ip=dhcp,ip6=auto,type=veth | |
| ostype: ubuntu | |
| parent: before_first_boot | |
| rootfs: encrypted_zfs:subvol-103-disk-0,size=8G | |
| swap: 512 | |
| lxc.cgroup2.devices.allow: c 226:* rwm |
| #!/bin/bash | |
| #set -x | |
| for drive in sd{a,b,c,d,e,f} | |
| do | |
| rdisk=$drive | |
| ## Warning: this will spin up the disk! | |
| ## TODO: just check for USB and or Vendor ID | |
| if dd if=/dev/$rdisk bs=512 skip=0 count=1 status=none | grep -q BENNVENN ; then |
| #!/bin/bash | |
| # Set traps to catch exite signals | |
| trap stopservice SIGINT | |
| trap stopservice SIGKILL | |
| trap stopservice SIGTERM | |
| function stopservice { | |
| if [[ ! -z ${DATA_HANDLE} && ! -z ${CLIENT_CID} ]] | |
| then |
| #!/usr/bin/env python | |
| """ | |
| Runs "ip xfrm state" and outputs lines to be added to ~/.wireshark/esp_sa | |
| This process must be run using sudo. | |
| This allows Wireshark to decrypt ipsec traffic captured with 'sudo tcpdump -vni any -U -w /tmp/esp.pcap "ip proto 50"' | |
| """ | |
| import sys | |
| import subprocess |
| /* | |
| Battery Guard | |
| Use an arduino nano and connect the input voltage with an voltage divider to A0 | |
| I used 9kOhm and 1kOhm to get a /10 divider to be able to measure up to 50V | |
| Switch points are for a 12v AGM battery. | |
| The relais is controlled via D7. | |
| */ | |
| #define NUM_READINGS 10 | |
| #define RELAIS_PIN 7 | |
| #define ADC_REF 5.0 |