F5OEO-rpitx/install.sh

37 wiersze
910 B
Bash
Czysty Zwykły widok Historia

2018-11-04 22:58:19 +00:00
echo Install rpitx - some package need internet connection -
2018-11-01 18:32:07 +00:00
2015-10-21 16:08:45 +00:00
sudo apt-get update
2018-03-22 10:36:39 +00:00
sudo apt-get install -y libsndfile1-dev git
2018-11-01 15:25:37 +00:00
sudo apt-get install -y imagemagick libfftw3-dev
#For rtl-sdr use
2018-11-06 13:04:49 +00:00
sudo apt-get install -y rtl-sdr buffer
2018-11-01 15:25:37 +00:00
# We use CSDR as a dsp for analogs modes thanks to HA7ILM
git clone https://github.com/simonyiszk/csdr
cd csdr
make && sudo make install
cd ../
2015-10-21 16:08:45 +00:00
cd src
2018-03-22 10:36:39 +00:00
git clone https://github.com/F5OEO/librpitx
cd librpitx/src
make
cd ../../
make
2015-11-01 19:31:49 +00:00
sudo make install
2015-10-21 16:08:45 +00:00
cd ..
2018-11-01 18:32:07 +00:00
read -p "In order to run properly, rpitx need to modify /boot/config.txt. Are you sure (y/n) " CONT
if [ "$CONT" = "y" ]; then
echo "Set GPU to 250Mhz in order to be stable"
LINE='gpu_freq=250'
FILE='/boot/config.txt'
grep -qF "$LINE" "$FILE" || echo "$LINE" | sudo tee --append "$FILE"
echo "Installation completed !"
else
echo "Warning : Rpitx should be instable and stop from transmitting !";
fi