Ubuntu下GNURadio及HackRF環境安裝

來源:互聯網
上載者:User

在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 install pybombs
sudo pip install pybombs 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

安裝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

測試
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

) 測試gnuradio
如果非root帳號啟動gnuradio-companion時也要配置一下環境
source setup_env.sh
gnuradio-companion
啟動後增加一個

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.