cd sdr/
sudo git clone git://github.com/antirez/dump1090.git
cd dump1090/
sudo make
如果报下面的错误:
Package librtlsdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtlsdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'librtlsdr' found
cc -O2 -g -Wall -W -c dump1090.c
dump1090.c:46:21: fatal error: rtl-sdr.h: No such file or directory
则在make之前执行:
sudo apt-get install librtlsdr-dev
sudo apt-get install libusb-1.0-0-dev
插上RTL-SDR
./dump1090 --interactive
如果出现下面错误:
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Terratec T Stick PLUS
Kernel driver is active, or device is claimed by second instance of librtlsdr.
In the first case, please either detach or blacklist the kernel module
(dvb_usb_rtl28xxu), or enable automatic detaching at compile time.
usb_claim_interface error -6
运行
sudo rmmod dvb_usb_rtl28xxu
也不好使,那就在
/etc/modprobe.d
随便用sudo gedit 打开一个.conf的文件,在里面添加
blacklist dvb_usb_rtl28xxu
保存文件,重启虚拟机,应该就搞定了。
或者
./dump1090 --interactive --net
然后打开浏览器,输入
localhost:8080
长沙 28.21 113