F5OEO-rpitx/install.sh

52 wiersze
1.2 KiB
Bash

#!/bin/sh
2018-11-06 14:43:34 +00:00
echo Install rpitx - some package need internet connection -
sudo apt-get update
sudo apt-get install -y libsndfile1-dev git
2024-03-12 11:45:40 +00:00
sudo apt-get install -y imagemagick libfftw3-dev libraspberrypi-dev
2018-11-06 14:43:34 +00:00
#For rtl-sdr use
sudo apt-get install -y rtl-sdr buffer
# We use CSDR as a dsp for analogs modes thanks to HA7ILM
2020-11-03 14:10:20 +00:00
git clone https://github.com/F5OEO/csdr
cd csdr || exit
2018-11-06 14:43:34 +00:00
make && sudo make install
cd ../ || exit
2018-11-06 14:43:34 +00:00
cd src || exit
2018-11-06 14:43:34 +00:00
git clone https://github.com/F5OEO/librpitx
cd librpitx/src || exit
2021-01-13 09:52:40 +00:00
make && sudo make install
cd ../../ || exit
2019-01-08 15:02:06 +00:00
cd pift8
2021-01-13 09:52:40 +00:00
git clone https://github.com/F5OEO/ft8_lib
cd ft8_lib
make && sudo make install
cd ../
make
2019-01-08 15:02:06 +00:00
cd ../
2018-11-06 14:43:34 +00:00
make
sudo make install
cd .. || exit
2018-11-06 14:43:34 +00:00
printf "\n\n"
printf "In order to run properly, rpitx need to modify /boot/config.txt. Are you sure (y/n) "
read -r CONT
2018-11-06 14:43:34 +00:00
if [ "$CONT" = "y" ]; then
echo "Set GPU to 250Mhz in order to be stable"
LINE='gpu_freq=250'
FILE='/boot/config.txt'
2018-11-06 14:43:34 +00:00
grep -qF "$LINE" "$FILE" || echo "$LINE" | sudo tee --append "$FILE"
2020-11-03 10:56:39 +00:00
#PI4
LINE='force_turbo=1'
grep -qF "$LINE" "$FILE" || echo "$LINE" | sudo tee --append "$FILE"
2018-11-06 14:43:34 +00:00
echo "Installation completed !"
else
echo "Warning : Rpitx should be instable and stop from transmitting !";
fi