mkdir /data/docker/
cd /data/docker/
git clone https://github.com/Scouts-Victoria-Program/lora-network-server.git
sudo ln -sf `pwd`/configuration/netplan/01-lora-network-config.yaml /etc/netplan/01-lora-network-config.yaml
sudo netplan apply
Source: https://ubuntu.com/server/docs/network-configuration
sudo vim /etc/sysctl.conf
sudo /etc/init.d/networking restart
Edit the following line:
net.ipv4.ip_forward = 1
Dont use docker via snap!
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh ./get-docker.sh
rm ./get-docker.sh
Source: https://www.turek.dev/posts/disable-systemd-resolved-cleanly/
sudo mkdir -p /etc/systemd/resolved.conf.d/
sudo tee -a /etc/systemd/resolved.conf.d/disable-stub.conf > /dev/null << EOF
[Resolve]
DNSStubListener=no
EOF
sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo systemctl restart systemd-resolved
cp .env.template .env
# Copy result to use as the secret key in the env file
openssl rand -base64 32
vim .env
sudo docker compose up -d
To later stop the containers use
sudo docker compose down
sudo chown darends:user ./lorawan-devices-repo
git clone https://github.com/brocaar/lorawan-devices ./lorawan-devices-repo
sudo docker compose exec chirpstack sh
# inside container
chirpstack -c /etc/chirpstack import-legacy-lorawan-devices-repository -d /tmp/lorawan-devices
exit
# outside container
rm -rf ./lorawan-devices-repo
- Browse to http://lora-gateway.darends.scouthack.com
- Login using username
sentrius
and password:RG1xx
- Login using username
- Find the gateway id Gateway ID (EUI64)
- Copy it
- Optional steps
- Navigate to "Settings > Save/Restore Settings" to make a back up of the configuration
- Navigate to "LoRa > Forwarder"
- Check forwarder address is au1.cloud.thethings.network:1700
- Browse to http://chirpstack.darends.scouthack.com
- Login using username
admin
and password:admin
- Login using username
- Create Gateway
- Configure gateway id "Gateway ID (EUI64)"
- Browse to http://chirpstack.darends.scouthack.com
- Login using admin:admin
- Create new application
- Copy the id of the application
- Edit
.env
- Set
CHIRPSTACK_APPLICATION_ID=
to the new application id
- Set
sudo docker compose up -p lora-proxy