#!/bin/sh # # Bring everything already installed up-to-date # sudo apt-get --yes update sudo apt-get --yes upgrade # # Install standard tools and compilers # sudo apt-get --yes install make sudo apt-get --yes install gcc sudo apt-get --yes install gfortran sudo apt-get --yes install git sudo apt-get --yes install pkg-config sudo apt-get --yes install cmake sudo apt-get --yes install autoconf sudo apt-get --yes install automake # # Install libraries necessary for compiling # (core) pihpsdr and WSDP # sudo apt-get --yes install libfftw3-dev sudo apt-get --yes install libgtk-3-dev sudo apt-get --yes install libasound2-dev sudo apt-get --yes install libcurl4-openssl-dev sudo apt-get --yes install libusb-1.0-0-dev sudo apt-get --yes install libi2c-dev sudo apt-get --yes install wiringpi # # Install libraries necessary for SOAPY # sudo apt-get install --yes libusb-1.0-0-dev sudo apt-get install --yes libad9361-dev sudo apt-get install --yes bison sudo apt-get install --yes flex sudo apt-get install --yes libxml2-dev # # Dowload, compile and install WDSP # cd $HOME rm -rf wdsp git clone https://github.com/g0orx/wdsp cd $HOME/wdsp make clean make -j 4 sudo make install sudo ldconfig # # Download, compile and install SoapySDR core # cd $HOME rm -rf SoapySDR git clone https://github.com/pothosware/SoapySDR.git cd $HOME/SoapySDR mkdir build cd build cmake .. make -j 4 sudo make install sudo ldconfig # # Download, compile and install libiio # cd $HOME rm -rf libiio git clone https://github.com/analogdevicesinc/libiio.git cd $HOME/libiio mkdir build cd build cmake .. make sudo make install sudo ldconfig # # Download, compile and install the SoapySDR Pluto module # cd $HOME rm -rf SoapyPlutoSDR git clone https://github.com/pothosware/SoapyPlutoSDR cd $HOME/SoapyPlutoSDR mkdir build cd build cmake .. make -j 4 sudo make install # # Download and compile piHPSDR # Remove old pihpsdr directory but save the props in pihpsdr.save # cd $HOME rm -rf pihpsdr.save mkdir pihpsdr.save cp pihpsdr/*.props pihpsdr.save cp pihpsdr/wdsp* pihpsdr.save rm -rf pihpsdr git clone https://github.com/dl1ycf/pihpsdr cd $HOME/pihpsdr make clean make -j 4