Ubuntu下GNURadio及HackRF環境安裝
在Ubuntu 16.04,17.04下安裝成功
- install pybombs
sudo pip install pybombs - and …
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)測試hackrf
由於hackrf_info需要訪問硬體設定,需要配置許可權,如果懶得配的話就得加個sudo
[email protected]:/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