Jump to content

Watching Planes on Linux


no42

Recommended Posts

Already have it installed:

librtlsdr-dev is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

What's the deal with "*** No rule to make target `install'. Stop." What "rule" is the program looking for?

I have a feeling that we're not too far from getting it working. Just need to figure out what these "rules to make target "install" are and we'll be good to go.

The rule is for the make install part, like I said, ignore that part, it doesn't do anything.

Wait, I think you may have it now. Try running the command to start the app and see what it does.

Link to comment
Share on other sites

  • Replies 69
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Too late. I've already removed the folder it was in and did an apt-get autoremove to clean up anything floating around on my system. Reason way is because my Gqrx wasn't working with dump1090 installed. Removed it, cleaned things up and it started working again. I really don't want to hose my system since this is the 3rd install of Kali I've done in the last 2 days and I just don't want to have to re-install it again. I do appreciate the help and maybe they'll get an easy to install .deb package or something fixed up for future use but for now it's just stuff that's a bit over my head. Catch ya' later.

Link to comment
Share on other sites

  • 1 month later...

Now you're in the land of finding dependencies!

Run this;

apt-get install librtlsdr-dev
then run your make command again.
A lot of times if you don't have the -dev files you can't compile software.

Hi Gents, sorry for dragging this back up , but I've been trying to follow the steps in this thread , and found myself stuck at this point.. (on kali 1.06)

root@kali:~/SDR/dump1090# make
gcc -O2 -g -Wall -W `pkg-config --cflags librtlsdr` -c dump1090.c
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
dump1090.c:46:21: fatal error: rtl-sdr.h: No such file or directory
compilation terminated.
make: *** [dump1090.o] Error 1
root@kali:~/SDR/dump1090# apt-get update
Hit http://dl.google.com stable Release.gpg
Hit http://dl.google.com stable Release
Hit http://dl.google.com stable/main amd64 Packages
Hit http://security.kali.org kali/updates Release.gpg
Ign http://dl.google.com stable/main Translation-en_AU
Ign http://dl.google.com stable/main Translation-en
Hit http://security.kali.org kali/updates Release
Hit http://security.kali.org kali/updates/main amd64 Packages
Hit http://security.kali.org kali/updates/contrib amd64 Packages
Hit http://security.kali.org kali/updates/non-free amd64 Packages
Ign http://security.kali.org kali/updates/contrib Translation-en_AU
Ign http://security.kali.org kali/updates/contrib Translation-en
Ign http://security.kali.org kali/updates/main Translation-en_AU
Ign http://security.kali.org kali/updates/main Translation-en
Ign http://security.kali.org kali/updates/non-free Translation-en_AU
Ign http://security.kali.org kali/updates/non-free Translation-en
Reading package lists... Done
root@kali:~/SDR/dump1090# apt-get install librtlsdr-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package librtlsdr-dev
Edited by garfin
Link to comment
Share on other sites

Things do get kind of "crazy" with stuff like this. That's why I just gave up and I go to Flightradar24.com to get my ads-b on. No, it's not via my dongle and you do need a wifi connection to get their data but it works and there's no pulling your hair out trying to figure stuff out. Maybe one day I'll learn enough to get ads-b working so I can have it through the dongle and real time but until then the website works fine.

Link to comment
Share on other sites

Ok, quick update. Just for grins I started up rtl_adsb in Kali using the "rtl_adsb | netcat -lp 8080" command. I went to 127.0.0.1:8080 and I'm getting stuff like this out:

*f90fcea928c2b3ec32cdb211743a;

*c6d7b46b295c3e64a39499f61971;

*8da1e24158b982a72ed7b694ff62;

*e606e3a7729e17022b5549c2edaa;

*afd203b5419d0b9c134555e56114;

*ada1e2619984c8222a071591b14b;

*e6c8b0a5d73275203b1618d0c47d;

*8da1625158b9a2e398d78f2f07ff;

*caa151a304eda9174d02aad97b8c;

*92e18eb5977bc27862157e322fe2;

*db4ad1cca822dd110a06fd32867d;

*a9b4b1a358b5f52f224cfd9347a4;

*8e155b653d2f59666218727ace78;

*8170cb48723ed74c1e92b64342a0;

*b5882b9ad3d90dc30eada2950184;

*8fa0e2619944c9222805158daa4b;

*d9f9d3ebab398d79225df94b1bcc;

*90bbc46e97a8db911d753e32df43;

*8081662aa2dee254f4d26b737685;

*b864f5bbfb23580bf424dcbbff26;

*9c8ae5f3a18b01393aa358595cc7;

*8bfb1f7bac6c2938b6030c5b5e8e;

*8da1e24058b98ae96ad6e583c165;

*906dea079ade05369b16d3405431;

*8f21ea439904c822220515e30843;

*d991d7a4511135933a17f343eb86;

*aba9b1064ac446813f94dff20559;

Now I need to figure out how to port this data to a map that I can use to actually see what's going on. Any ideas?

Edited by TN.Frank
Link to comment
Share on other sites

You can use adsbscope on a 2nd computer (running windows) and have it poll your kali linux box..(or we work out the dependency issue with Kali and dump1090) :)

Windows, what's that??? LOL. Sorry but I don't do Windows. Got my fill of it with Windows 98, went Mac and didn't look back until 11 years later when my iMac died from an EMP. Moved to Linux and I've been rockin' Debian ever since.

I'm sure Kali has some kind of program pre-installed that'll pull up a map so I can see the little planes fly around. There's a "modes_gui" but when I click on it nothing happens. I looked for adsbScope in Synaptic and there's nothing. If I can't get it from a package manager or in a .deb package I'd just rather not fool with it because I'm really not at the point in my Linux journey were I'm very good at compiling stuff. There has to be an easy way to get this data over to a map of some kind. Just need to figure it out.

Link to comment
Share on other sites

But thats the whole point of dump1090 isn't it ? Allows you to attach to http://127.0.0.1:8080 where it displays a webpage of the aircraft superimposed over a google map.

Dump1090 README

Dump 1090 is a Mode S decoder specifically designed for RTLSDR devices.

The main features are:

  • Robust decoding of weak messages, with mode1090 many users observed improved range compared to other popular decoders.
  • Network support: TCP30003 stream (MSG5...), Raw packets, HTTP.
  • Embedded HTTP server that displays the currently detected aircrafts on Google Map.
  • Single bit errors correction using the 24 bit CRC.
  • Ability to decode DF11, DF17 messages.
  • Ability to decode DF formats like DF0, DF4, DF5, DF16, DF20 and DF21 where the checksum is xored with the ICAO address by brute forcing the checksum field using recently seen ICAO addresses.
  • Decode raw IQ samples from file (using --ifile command line switch).
  • Interactive command-line-interfae mode where aircrafts currently detected are shown as a list refreshing as more data arrives.
  • CPR coordinates decoding and track calculation from velocity.
  • TCP server streaming and recceiving raw data to/from connected clients (using --net).

What i'm curious on is..

TN.Frank, on 09 Feb 2014 - 04:53 AM, said:snapback.png

Ok, got the .dev files installed

Do you have details on how you managed that? i cant seem to apt-get the dev package , nor figure out how to get the dump1090 'make' see the already part of kali, librtlsdr ..

Edited by garfin
Link to comment
Share on other sites

So dump1090 is the ONLY game in town for doing this? What about adsbScope, where can I get a .deb of it to install or is it also something that'll have to be compiled from a .tar.gz file? Software people, we need more adsb software.

Link to comment
Share on other sites

God, try administering Solaris and Sun workstations and mainframes for 10 years, AS400's, PDP 11's, Prime Hosts, linux, freebsd, netbsd, HPUX, DOS 2, Seattle DOS, OS/2, CP/M, and MP/M for 20 years previous to that.

Consider yourself fortunate. I learned so much, I get PTSD episodes, and have been disabled for 9 years. Not being in the meat grinder of an IT Department has helped my functioning immensely, but I still avoid crowds, people, loud or repetitive noises, etc..

It is possible to learn so much your head explodes, or you have a mild to severe breakdown, chronic insomnia, hallucinations, etc.

Enjoy computer and electronic technology and have fun.

My best recommendation to anyone is just to have fun doing what you love to do. If you get squeezed too hard, quit. Eventually your doctors will tell you when you are done, as in a fried egg on a sidewalk in Arizona.

-Fuzzy Bunny

Link to comment
Share on other sites

I know all about it FB. As an Electronic Tech who graduated from DeVry in '83 I've worked quite a few jobs that really taxed the ol' brain. Back on track though. I did find this web site:

http://www.virtualradarserver.co.uk/Default.aspx

and wonder if something like this would work with rtl_adsb?

Link to comment
Share on other sites

  • 2 weeks later...

Hi

Looks like is working for me as I see all the bellow in my terminal, but on my browser I just see an empty map with no airplanes. Any one can give a hint?

*8fa0fe91f67007b66f8266c39262;
CRC: c39262 (ok)
Single bit error fixed, bit 11289
DF 17: ADS-B message.
Capability : 7 (Level 7 ???)
ICAO Address : a0fe91
Extended Squitter Type: 30
Extended Squitter Sub : 6
Extended Squitter Name: Unknown
Unrecognized ME type: 30 subtype: 6

*8d377092b0d7c2cac6463ab679f0;
CRC: b679f0 (ok)
Single bit error fixed, bit 22550
DF 17: ADS-B message.
Capability : 5 (Level 2+3+4 (DF0,4,5,11,20,21,24,code7 - is on airborne))
ICAO Address : 377092
Extended Squitter Type: 22
Extended Squitter Sub : 0
Extended Squitter Name: Airborne Position (GNSS Height)
Unrecognized ME type: 22 subtype: 0

*8fb4d0b1224612f46fc206e5ca06;
CRC: e5ca06 (ok)
Single bit error fixed, bit 26963
DF 17: ADS-B message.
Capability : 7 (Level 7 ???)
ICAO Address : b4d0b1
Extended Squitter Type: 4
Extended Squitter Sub : 2
Extended Squitter Name: Aircraft Identification and Category
Aircraft Type : Aircraft Type A
Identification : Q?K4??HF

*89f1ffc8316eb9802a13218f0423;
CRC: 8f0423 (ok)
Single bit error fixed, bit 12333
DF 17: ADS-B message.
Capability : 1 (Level 2 (DF0,4,5,11))
ICAO Address : f1ffc8
Extended Squitter Type: 6
Extended Squitter Sub : 1
Extended Squitter Name: Surface Position
Unrecognized ME type: 6 subtype: 1

Link to comment
Share on other sites

  • 2 weeks later...

If you have a Pi and want to run dump1090 all the time have a look at

https://drive.google.com/folderview?id=0B_tFEQ4o1RoTZ21YVmNiWHJKYTg&usp=sharing

It has the details on how to get the data uploaded to http://www.flightradar24.com/ which means you get a free pro account while you are uploading data to them

http://forum.flightradar24.com/threads/6133-Raspberry-Pi-type-B-DVB-T-Dongle-to-feed-FR24?p=37114&viewfull=1#post37114

FR24 will also store how far you can see the planes for. WIth the little 6inch aerial and R820T I am seeing ~130NM an older e4000 could only see 20NM

Edited by Karit
Link to comment
Share on other sites

  • 1 month later...

Just installed Dump1090 have a small problem ha could somebody please point me in the right direction here :)

Found 1 device(s):

0: Realtek, RTL2841UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
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
Failed to open rtlsdr device #0.
Link to comment
Share on other sites

The error was that that module was using the sdr device to do its thing, effectively claiming it exclusively. By running rmmod (remove module) from the kernel the sdr resource is made available again for others to use.

Link to comment
Share on other sites

Thanks a lot your very helpful I was just wondering cause it seem's to happen when I pull out the dongle and plug it back in.

Dump1090 is working flawlessly also have airprobe working with wireshark proper geeking out here ha :D

Edited by james92
Link to comment
Share on other sites

Find a way to prevent that module from loading otherwise each re-insert will require you to rerun that command.

Link to comment
Share on other sites

echo "blacklist <module>" >> /etc/modprobe.d/blacklist.conf

That ought to suffice. <module> here would obviously be that dvb thing.

Link to comment
Share on other sites

  • 3 weeks later...

I got dump1090 up and running on a Kali laptop and took it on the road today. Everything seemed to work fine, but not every plane was tracked. I'm not sure why. I parked in easy view of the airspace over a huge international airport and started scanning with the dongle antenna roof-mounted.

At max count I only had 11 aircraft on screen, yet I could easily count many more that in the sky just using my eyes.

I am a beginner at this, so I am sure there is something I am missing. Do all airlines use the same protocol or are there competing systems and this software only decodes one version or something?

Either way it's cool, and fascinating to watch. See a plane in the sky and know just what it is and where it's going, etc.

BTW, thank you for this thread and the helpful tips on dependencies :) Made it a breeze to install on Kali.

Link to comment
Share on other sites

What kind of plane's are you looking for I noticed that I don't pick up small airplane's but I can pick up commercial one's real far away with a pretty small antenna

maybe some of them don't have the equipment or maybe they do use something else I was also wondering what do helicopter's use would be nice to plot them on a map :grin:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...