SHARE
TWEET

limesdr mini gqrx installation script

a guest Mar 28th, 2018 411 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # Kid tested, mother approved
  3. # jason@broken.net
  4.  
  5. # use the -c switch to clean up these packages from a previous installation
  6. # ./scriptname -c
  7.  
  8. # who am i?
  9. id=`id -u`
  10. if [ $id -ne 0 ]; then
  11.    echo it is more convenient to install all this as root
  12.    echo either run this script as sudo ./scriptname or
  13.    echo become root and run it.
  14.    echo press control-c to abort, or press enter to continue
  15.    echo if you continue, expect to enter your password a bunch
  16.    echo of times
  17. fi
  18.  
  19. if [ "$1" == "-c" ]; then
  20.    # clean up the old packages
  21.    apt-get remove -y  limesuite liblimesuite-dev limesuite-udev limesuite-images \
  22.                         soapysdr soapysdr-module-lms7  liblimesuite-udev
  23.    apt-get autoremove -y
  24.    
  25. fi
  26.  
  27. sudo add-apt-repository -y ppa:myriadrf/drivers  && \
  28. sudo add-apt-repository -y ppa:bladerf/bladerf && \
  29. sudo add-apt-repository -y ppa:myriadrf/drivers && \
  30. sudo add-apt-repository -y ppa:myriadrf/gnuradio && \
  31. sudo add-apt-repository -y ppa:gqrx/gqrx-sdr && \
  32. sudo apt-get update && \
  33.  
  34. sudo apt-get install -y limesuite liblimesuite-dev limesuite-udev limesuite-images && \
  35. sudo apt-get install -y soapysdr soapysdr-module-lms7 && \
  36.  
  37. echo ==== testing phase ====
  38.  
  39. echo " == testing limeutil =="
  40. LimeUtil --info
  41. echo No info? That is okay. Watch for output on the rest.
  42. echo
  43. echo " == testing SoapySDRUtil --info =="
  44. SoapySDRUtil --info
  45.  
  46. echo " == testing SoapySDRUtil with driver=lime =="
  47. SoapySDRUtil --find="driver=lime" | tee /tmp/outfile
  48. count=`grep "LimeSDR Mini" /tmp/outfile |wc -l`
  49.  
  50. if [ $count -ne 2 ]; then
  51.    echo SoapySDRUtil --find=\"driver=lime\" FAILED.
  52.    echo not install gqrx-sdr
  53. else
  54.    echo === SoapSDRUtil SUCCESS ===
  55.    sudo apt-get install gqrx-sdr
  56. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top