op25/install.sh

46 lines
1.4 KiB
Bash
Raw Normal View History

2017-06-30 14:25:45 +00:00
#! /bin/sh
# op25 install script for debian based systems
# including ubuntu 14/16 and raspbian
if [ ! -d op25/gr-op25 ]; then
echo ====== error, op25 top level directories not found
echo ====== you must change to the op25 top level directory
echo ====== before running this script
exit
fi
2022-09-25 22:53:44 +00:00
sudo sed -i -- 's/^# *deb-src/deb-src/' /etc/apt/sources.list
2017-06-30 14:25:45 +00:00
sudo apt-get update
sudo apt-get build-dep gnuradio
2022-09-25 22:53:44 +00:00
sudo apt-get install gnuradio gnuradio-dev gr-osmosdr librtlsdr-dev libuhd-dev libhackrf-dev libitpp-dev libpcap-dev cmake git swig build-essential pkg-config doxygen python3-numpy python3-waitress python3-requests
sudo apt-get install liborc-dev
2017-06-30 14:25:45 +00:00
mkdir build
cd build
cmake ../
make
sudo make install
sudo ldconfig
2017-12-22 21:52:30 +00:00
echo ======
echo ====== NOTICE
echo ======
echo ====== The gnuplot package is not installed by default here,
echo ====== as its installation requires numerous prerequisite packages
echo ====== that you may not want to install.
echo ======
echo ====== In order to do plotting in rx.py using the \-P option
echo ====== you must install gnuplot, e.g., manually as follows:
echo ======
echo ====== sudo apt-get install gnuplot-x11
echo ======
echo ======
echo ====== Separately, we suggest you set device and driver permissions:
echo ====== \$ cd scripts
echo ====== \$ ./udev_rules.sh
echo ====== It is only necessary to do this once. Currently this script
echo ====== handles the rtl-sdr and airspy only.
echo ======