本人懒,不喜欢截图,都是从网上参考的资料整理的,敬请谅解,欢迎交流。
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
sudo rm -rf /var/lib/apt/lists/*
sudo apt clean
sudo apt update
sudo apt upgrade
sudo add-apt-repository -y ppa:myriadrf/drivers
sudo apt-get update
#安装limesuite 套件
sudo apt-get -y install limesuite liblimesuite17.06-1 liblimesuite-dev limesuite-udev limesuite-images
#安装soapysdr 支持 可以使用SoapySDR 接口
sudo apt-get -y install soapysdr soapysdr-module-lms7
sudo add-apt-repository -y ppa:myriadrf /drivers sudo apt-get update
#install核心库和构建依赖项
sudo apt-get install git g ++ cmake libsqlite3-dev
#install硬件支持依赖项
sudo apt-get install libsoapysdr-dev libi2c-dev libusb-1.0-0-dev
#install 图形依赖
sudo apt-get install libwxgtk3.0-dev freeglut3-dev
git clone https://github.com/myriadrf/LimeSuite.git
cd LimeSuite mkdir builddir && cd builddir
cmake ../
make -j4
sudo make install
sudo ldconfig
cd LimeSuite/udev-rules
sudo ./install.sh
先安装依赖包
sudo apt-get install cmake g ++ libpython-dev python-numpy swig python-dev
从git首次存储库克隆
git clone https://github.com/pothosware/SoapySDR.gitcd SoapySDR
更新可以执行
git pull origin master
开始构建
mkdir buildcd buildcmake ../make -j4sudo make installsudo ldconfig
sudo add-apt-repository -y ppa:pothosware/framework
sudo add-apt-repository -y ppa:pothosware/support
sudo add-apt-repository -y ppa:myriadrf/drivers
sudo add-apt-repository -y ppa:bladerf/bladerf
sudo add-apt-repository -y ppa:ettusresearch/uhd
sudo apt-get update
sudo apt-get install cmake g ++ libpython-dev python-numpy swig python-dev
sudo apt-get -y install build-essential cmake git-core autoconf automake libtool g++ python-dev swig pkg-config libfftw3-dev libcppunit-dev libusb-dev sdcc libsdl1.2-dev python-numpy python-cheetah python-lxml doxygen python-qt4 python-qwt5-qt4 libxi-dev libqt4-opengl-dev libqwt5-qt4-dev libfontconfig1-dev libxrender-dev
sudo apt-get install pothos-all
sudo apt-get install python-pothos
sudo apt-get install python3-pothos
sudo apt-get install pothos-python-dev
sudo apt-get install soapysdr
sudo apt-get install python-soapysdr python-numpy
sudo apt-get install python3-soapysdr python3-numpy
sudo apt-get install soapysdr-module-remote soapysdr-server
sudo apt-get install osmo-sdr soapysdr-module-osmosdr
sudo apt-get install rtl-sdr soapysdr-module-rtlsdr
sudo apt-get install bladerf soapysdr-module-bladerf
sudo apt-get install hackrf soapysdr-module-hackrf
sudo apt-get install uhd-host uhd-soapysdr soapysdr-module-uhd
sudo apt-get install umtrx uhd-host uhd-soapysdr soapysdr-module-uhd
sudo apt-get install miri-sdr soapysdr-module-mirisdr
sudo apt-get install soapysdr-module-rfspace
sudo apt-get install airspy soapysdr-module-airspy
sudo apt-get -y install git cmake libboost-dev libcppunit-dev libfftw3-dev python-numpy doxygen python-cheetah python-gtk2-dev python-qt4 python-qwt5-qt4 libxi-dev libqt4-opengl-dev libqwt5-qt4-dev python-lxml
sudo apt-get install gnuradio
wget http://www.sbrac.org/files/build-gnuradio && sudo chmod a + x build-gnuradio && ./build-gnuradio
sudo apt-get install libsoapysdr-dev
sudo apt install gr-fcdproplus
git clone git://git.osmocom.org/gr-osmosdr
cd gr-osmosdr/
mkdir build
cd build/
cmake ../
make
sudo make install
sudo ldconfig
sudo gedit /etc/gnuradio/conf.d/grc.conf
xterm_executable = 1
#!/usr/bin/env python
#coding=utf-8
import shlex
import subprocess
aa = ['sudo add-apt-repository -y ppa:myriadrf/drivers', \
'sudo apt-get update', \
'sudo apt-get -y install limesuite liblimesuite17.06-1 liblimesuite-dev limesuite-udev limesuite-images', \
'sudo apt-get -y install soapysdr soapysdr-module-lms7',\
'sudo add-apt-repository -y ppa:pothosware/framework',\
'sudo add-apt-repository -y ppa:pothosware/support',\
'sudo add-apt-repository -y ppa:myriadrf/drivers',\
'sudo add-apt-repository -y ppa:bladerf/bladerf',\
'sudo add-apt-repository -y ppa:ettusresearch/uhd',\
'sudo apt-get update',\
'sudo apt-get -y install python-dev swig'\
'sudo apt-get -y install pothos-all',\
'sudo apt-get -y install python-pothos',\
'sudo apt-get -y install python3-pothos',\
'sudo apt-get -y install pothos-python-dev'\
'sudo apt-get -y install soapysdr',\
'sudo apt-get -y install python-soapysdr python-numpy',\
'sudo apt-get -y install python3-soapysdr python3-numpy',\
'sudo apt-get -y install soapysdr-module-remote soapysdr-server',\
'sudo apt-get -y install osmo-sdr soapysdr-module-osmosdr',\
'sudo apt-get -y install rtl-sdr soapysdr-module-rtlsdr',\
'sudo apt-get -y install bladerf soapysdr-module-bladerf',\
'sudo apt-get -y install hackrf soapysdr-module-hackrf',\
'sudo apt-get -y install uhd-host uhd-soapysdr soapysdr-module-uhd',\
'sudo apt-get -y install umtrx uhd-host uhd-soapysdr soapysdr-module-uhd',\
'sudo apt-get -y install miri-sdr soapysdr-module-mirisdr',\
'sudo apt-get -y install soapysdr-module-rfspace',\
'sudo apt-get -y install airspy soapysdr-module-airspy',\
'PothosUtil --system-info',\
'SoapySDRUtil --info',\
'sudo apt-get -y install git cmake libboost-dev libcppunit-dev libfftw3-dev python-dev swig python-numpy doxygen python-cheetah python-gtk2-dev python-qt4 python-qwt5-qt4 libxi-dev libqt4-opengl-dev libqwt5-qt4-dev python-lxml',\
'sudo apt-get -y install gnuradio',\
'sudo apt-get -y install libsoapysdr-dev',\
'sudo apt-get -y install gr-fcdproplus',
]
for i in aa:
args=shlex.split(i)
p=subprocess.Popen(args)
p.wait()
sub = subprocess.call('git clone git://git.osmocom.org/gr-osmosdr && cd gr-osmosdr/ && mkdir build && cd build && cmake .. && make && sudo make install && sudo ldconfig', shell=True)
if sub == 0:
print 'Sucessfull!'
卸载脚本
#!/usr/bin/env python
#coding=utf-8
import shlex
import subprocess
aa = ['sudo apt-get -y remove pothos-all',\
'sudo apt-get -y remove python-pothos',\
'sudo apt-get -y remove python3-pothos',\
'sudo apt-get -y remove pothos-python-dev'\
'sudo apt-get -y remove soapysdr',\
'sudo apt-get -y remove python-soapysdr python-numpy',\
'sudo apt-get -y remove python3-soapysdr python3-numpy',\
'sudo apt-get -y remove soapysdr-module-remote soapysdr-server',\
'sudo apt-get -y remove osmo-sdr soapysdr-module-osmosdr',\
'sudo apt-get -y remove rtl-sdr soapysdr-module-rtlsdr',\
'sudo apt-get -y remove bladerf soapysdr-module-bladerf',\
'sudo apt-get -y remove hackrf soapysdr-module-hackrf',\
'sudo apt-get -y remove uhd-host uhd-soapysdr soapysdr-module-uhd',\
'sudo apt-get -y remove umtrx uhd-host uhd-soapysdr soapysdr-module-uhd',\
'sudo apt-get -y remove miri-sdr soapysdr-module-mirisdr',\
'sudo apt-get -y remove soapysdr-module-rfspace',\
'sudo apt-get -y remove airspy soapysdr-module-airspy',\
'sudo apt-get -y remove libboost-dev libcppunit-dev libfftw3-dev python-dev swig python-numpy doxygen python-cheetah python-gtk2-dev python-qt4 python-qwt5-qt4 libxi-dev libqt4-opengl-dev libqwt5-qt4-dev python-lxml',\
'sudo apt-get -y remove gnuradio',\
'sudo apt-get -y remove libsoapysdr-dev',\
'sudo apt-get -y remove gr-fcdproplus',
]
for i in aa:
args=shlex.split(i)
p=subprocess.Popen(args)
p.wait()
sub = subprocess.call('rm -rf gr-osmosdr', shell=True)
if sub == 0:
print 'Uninstall Sucessfull!'