alt text

YouTube | Webstore | Patreon | Twitter | Tip Jar | Linux 101

Building an APRStastic server

NOTE: This page is associated with this video

Foreword

This project was built with a Raspberry Pi Zero 2W running the 64bit version of Pi OS Lite (Bookworm). It should be fine if you use the Bookworm version with the GUI interface. However, this has not been tested on any other versions of Pi OS. Build time for this project is ~1.5 hours. If you need help with burning the OS to the SD card or how to SSH into the Pi, there are plenty of good tutorials on YouTube.

Heltec V3

Pi Zero 2W

APRS Code Generator

APRStastic Github

Install Commands

Note: Run commands one at a time.

sudo apt install -y python3-pip
pip install aprstastic --break-system-packages
python -m aprstastic
nano ~/.config/aprstastic/aprstastic.yaml

Set your call and passcode in the config file

python -m aprstastic

Your server should now be up and running.

Here's the script I wrote to deal with any server crashes. Modify to suit your needs. To use the script, run the following commands

cd
nano startup.sh

One the editor opens, paste the following code into the terminal. After the paste, press ctrl+s to save and ctrl+x to exit

#!/bin/bash

ck=$(ps aux | grep aprstastic | grep python | awk '{print $2}')

if [ -z ${ck} ]; then
        python -m aprstastic &
else
    kill ${ck}
    python -m aprstastic &
fi

Now we need to make the script executable. Do that by running

chmod +x ~/startup.sh

I placed the script in the home directory and call it from cron with:

*/60 * * * * /home/km4ack/startup.sh

You will need to use the correct path for where you put the script on your computer. If you have followed the direction up to this point, the script is in your home directory. However, you need to replace km4ack in the cron job with your user name. If you don't know your username, run:

whoami

and it will return your username.

Last Edit: 15OCT2025

Report abuse