Skip to content
Colin Cogle edited this page Oct 10, 2024 · 5 revisions

aprs-weather-submit on Linux

The way it should be.

System Requirements

Linux.

How to Get It

Use my PPA (for Ubuntu, Raspbian, and other Debian-based Linuxes)

The simplest way to install my app and have it update automatically is to add my PPA. Do this:

# The add-apt-repository command is not included in Raspbian by default.
# This will install it on your computer.
sudo apt install software-properties-common

# Now we can add my PPA!
sudo add-apt-repository ppa:signofzeta/aprs-weather-submit
sudo apt update
sudo apt install aprs-weather-submit

Use my PPA by adding it manually (for Ubuntu, Raspbian, and other Debian-based Linuxes)

If you don't want to use the add-apt-repository command, follow these instructions to do it the long way.

# Download my PPA's GPG key.
# We may or may not need to install cURL.
sudo apt install curl -y
curl 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xee9de8a8ca2f3f87049a6424d6d3a14d49360d49' \
        | gpg --dearmor \
        | sudo tee /etc/apt/trusted.gpg.d/colincogle-launchpad.gpg > /dev/null

# Create an APT source file.
echo "deb [signed-by=/etc/apt/trusted.gpg.d/colincogle-launchpad.gpg] https://ppa.launchpadcontent.net/signofzeta/aprs-weather-submit/ubuntu $(lsb_release -sc) main" \
        | sudo tee /etc/apt/sources.list.d/aprs-weather-submit.list
echo "deb-src [signed-by=/etc/apt/trusted.gpg.d/colincogle-launchpad.gpg] https://ppa.launchpadcontent.net/signofzeta/aprs-weather-submit/ubuntu $(lsb_release -sc) main" \
        | sudo tee /etc/apt/sources.list.d/aprs-weather-submit.list

# Finally:
sudo apt update && sudo apt install -y aprs-weather-submit

The PPA only supports Ubuntu distributions. If you're running another Debian-based distribution, you may need replace that call to lsb_release with the equivalent Ubuntu name.

Installing a .deb file (for all Debian-based Linuxes, including Raspbian and Ubuntu)

Download the latest .deb file from the GitHub releases. Then:

sudo dpkg -i the-file-your-downloaded.deb

Note that this does not add the APT sources, so you will need to update manually.

Compiling from Source Code

If you're not using a Debian-based version of Linux, more power to you! Fortunately, I use the same tools that most Linux packages use, so this shouldn't be too bad.

Prerequisites

You will need a C compiler (such as GCC), as well as the Automake tools. If these aren't installed by default, look at your package manager and figure out how to install them. On Debian-based systems, this can be installed with:

sudo apt install build-essential automake

Building

Extract the source code, change into that folder, then run these four commands.

./autogen.sh
./configure
make
sudo make install

The binary will be installed in /usr/bin with the man page available as well.

Roadmap

I'm an Automake noob

Can I improve the packaging and compilation experience? Probably. If you can recommend changes to my autogen.sh, configure script, or Makefile, let me know! Please!