Created
June 17, 2022 08:23
-
-
Save rvt/36d2904eca16271624116389c7306eb7 to your computer and use it in GitHub Desktop.
Build script for stratux on a already installed stratux system (from VirusPilot)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#set -x | |
set -e | |
# prepare libs | |
sudo apt install libjpeg62-turbo-dev libconfig9 rpi-update dnsmasq git cmake libusb-1.0-0-dev build-essential \ | |
autoconf libtool i2c-tools libfftw3-dev libncurses-dev python3-serial jq ifplugd iptables -y | |
sudo update-ca-certificates | |
# install latest golang | |
if [ ! -d ~/go ] | |
then | |
cd ~ | |
ARCH=$(arch) | |
if [[ $ARCH == aarch64 ]]; then | |
wget --no-check-certificate https://golang.org/dl/go1.18.3.linux-arm64.tar.gz | |
else | |
wget --no-check-certificate https://golang.org/dl/go1.18.3.linux-armv6l.tar.gz | |
fi | |
tar xzf *.gz | |
rm *.gz | |
else | |
echo "Skipping go, already installed" | |
fi | |
# install librtlsdr | |
if [ ! -d ~/rtl-sdr ] | |
then | |
cd ~ | |
git clone https://github.com/osmocom/rtl-sdr.git | |
cd rtl-sdr | |
mkdir build | |
cd build | |
cmake ../ -DDETACH_KERNEL_DRIVER=ON -DINSTALL_UDEV_RULES=ON | |
make -j2 | |
sudo make install | |
sudo ldconfig | |
else | |
echo "Skipping librtlsdr, already installed" | |
fi | |
# install kalibrate-rtl | |
if [ ! -d ~/kalibrate-rtl ] | |
then | |
cd ~ | |
git clone https://github.com/steve-m/kalibrate-rtl | |
cd kalibrate-rtl | |
./bootstrap && CXXFLAGS='-W -Wall -O3' | |
./configure | |
make -j2 | |
sudo make install | |
else | |
echo "Skipping kalibrate-rtl, already installed" | |
fi | |
# Prepare wiringpi for ogn trx via GPIO | |
if [ ! -d ~/WiringPi ] | |
then | |
cd ~ | |
git clone https://github.com/WiringPi/WiringPi.git | |
cd WiringPi | |
./build | |
else | |
echo "Skipping WiringPi, already installed" | |
fi | |
# clone stratux | |
if [ ! -d ~/stratux ] | |
then | |
cd ~ | |
git clone --recursive https://github.com/VirusPilot/stratux.git ~/stratux | |
cd ~/stratux | |
# build Stratux Europe | |
source ~/.bashrc | |
make | |
sudo make install | |
else | |
echo "Skipping stratux, already installed" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment