-
Notifications
You must be signed in to change notification settings - Fork 10
Linux
The way it should be.
Linux.
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
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.
# NOTE: If you are using a different version of Ubuntu, replace "noble" with your version name.
# If you're using another Debian-based OS, [find and use the equivalent name](https://askubuntu.com/questions/445487/what-debian-version-are-the-different-ubuntu-versions-based-on#445496).
echo "deb [signed-by=/etc/apt/trusted.gpg.d/colincogle-launchpad.gpg] https://ppa.launchpadcontent.net/signofzeta/aprs-weather-submit/ubuntu noble 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 noble main" \
| sudo tee /etc/apt/sources.list.d/aprs-weather-submit.list
sudo apt update && sudo apt install -y aprs-weather-submit
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.
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
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.
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!