Debian package install/build
parent
ef5e0f3888
commit
501e5f2ad0
54
README.md
54
README.md
|
@ -248,6 +248,60 @@ Then check if the ground station is appearing here:
|
|||
Debian `galmon` builds with source and binaries for arm64 are in the
|
||||
`debian/` directory.
|
||||
|
||||
## Install from Package
|
||||
Debian package built for Debian Bullseye (11/stable) arm64 architecture:
|
||||
|
||||
```
|
||||
sudo apt update
|
||||
sudo apt install libh2o-evloop0.13 libprotobuf23 libwslay1
|
||||
|
||||
# Make sure upstream Debian's gpsd package isn't installed,
|
||||
# or it will mess up dependencies with file conflict:
|
||||
sudo apt remove gpsd
|
||||
|
||||
wget https://spacecruft.org/spacecruft/spacecruft-galmon/raw/branch/main/debian/galmon-0.20220307-1/galmon_0.20220307-1_arm64.deb
|
||||
sudo dpkg -i galmon_0.20220307-1_arm64.deb
|
||||
```
|
||||
|
||||
|
||||
## Building Debian package
|
||||
To build the package from source:
|
||||
|
||||
```
|
||||
sudo apt install ccache build-essential debhelper dpkg-dev help2man \
|
||||
libzstd-dev protobuf-compiler libcurl4-openssl-dev libh2o-evloop-dev \
|
||||
libh2o-dev libssl-dev libeigen3-dev libncurses-dev
|
||||
|
||||
mkdir galmon-deb
|
||||
cd galmon-deb
|
||||
|
||||
# Grab source, preferably from a reputable source, but this will do:
|
||||
wget https://spacecruft.org/spacecruft/spacecruft-galmon/raw/branch/main/debian/galmon-0.20220307-1/galmon_0.20220307.orig.tar.xz
|
||||
|
||||
tar xf galmon_0.20220307.orig.tar.xz
|
||||
cd galmon_0.20220307
|
||||
|
||||
# Get a debian/ directory souce to make .deb packages, such as:
|
||||
wget https://spacecruft.org/spacecruft/spacecruft-galmon/raw/branch/main/debian/galmon-0.20220307-1/galmon_0.20220307-1.debian.tar.xz
|
||||
|
||||
tar xf galmon_0.20220307-1.debian.tar.xz
|
||||
|
||||
# Edit to taste
|
||||
vim debian/control
|
||||
vim debian/changelog
|
||||
|
||||
# Build source, perhaps
|
||||
dpkg-buildpackage -rfakeroot -S -uc -us -sa
|
||||
|
||||
# Build binary package:
|
||||
dpkg-buildpackage -rfakeroot -b -uc
|
||||
|
||||
# Install binary package:
|
||||
cd ..
|
||||
sudo dpkg -i galmon_0.20220307-1_arm64.deb
|
||||
# Check apt is happy
|
||||
sudo apt -f install
|
||||
```
|
||||
|
||||
# Status
|
||||
Three ground stations running.
|
||||
|
|
Loading…
Reference in New Issue