Ubuntu下GNURadio及HackRF环境安装

在Ubuntu 16.04,17.04下安装成功

2017-06-05
ubuntu 17.04
1. install pip
https://pip.pypa.io/en/stable/installing/

wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.y

  1. install pybombs
    sudo pip install pybombs
  2. and …

https://github.com/gnuradio/gnuradio

pybombs recipes add gr-recipes git+https://github.com/gnuradio/gr-recipes.git
pybombs recipes add gr-etcetera git+https://github.com/gnuradio/gr-etcetera.git
mkdir ~/gnuradio-prefix
cd ~/gnuradio-prefix
pybombs prefix init .
pybombs install gnuradio
source . ./setup_env.sh
gnuradio-companion

  1. 安装gnuradio的模块库
    国内的源比较好使,参考http://www.hackrf.net/2016/06/pybombs-mirror-tuna/
    注意,只用它的几个库,不要用这个GNU Radio
    pybombs recipes remove gr-recipes
    pybombs recipes remove gr-etcetera
    pybombs recipes add gr-recipes git+https://mirrors.tuna.tsinghua.edu.cn/pybombs/recipes/gr-recipes.git
    pybombs recipes add gr-etcetera git+https://mirrors.tuna.tsinghua.edu.cn/pybombs/recipes/gr-etcetera.git
    pybombs install rtl-sdr hackrf bladeRF gr-osmosdr gr-bluetooth gr-ieee-80211

  2. 测试
    1)测试hackrf
    由于hackrf_info需要访问硬件设置,需要配置权限,如果懒得配的话就得加个sudo
    root@tdz-vm-1704:/dev#
    hackrf_infohackrf_info version: git-72a03cflibhackrf version: git-72a03cf (0.5)Found HackRFIndex: 0Serial number: 0000000000000000308066e6241b274bBoard ID Number: 2 (HackRF One)Firmware Version: 2015.07.2 (API:1.00)Part ID Number: 0xa000cb3c 0x00694f5c

  3. ) 测试gnuradio
    如果非root账号启动gnuradio-companion时也要配置一下环境
    source setup_env.sh
    gnuradio-companion
    启动后增加一个

  4. 安装 xrdp
    sudo apt install xrdp
    sudo apt install vnc4server
    sudo apt-get install xubuntu-desktop
    echo “xfce4-session” >~/.xsession
    sudo service xrdp restart

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值