Advertisement
Guest User

limesdr mini gqrx installation script

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