The sys admin's daily grind – Air traffic control
Plane Spotting
When he sees vapor trails in the skies above the Lower Rhine area, sys admin Charly Kühnast doesn't just dream of faraway places. With a Linux system and a DVB-T stick, he grabs the signals from jets flying overhead and tracks their courses on a map.
Most commercial aircraft have an Automatic Dependent Surveillance--Broadcast system on board; this is known as ADS-B for short. It constantly transmits the heading, altitude, speed, GPS position, and flight number on a frequency of 1,090MHz.
If you want to track the position of the jets yourself, you do not necessarily require an airport tower full of technology. All I needed was a Linux computer and a receiver for digital terrestrial television (a.k.a. a DVB-T stick for less than EUR 20, or about US$ 25); the stick uses the Realtek RTL 2832U chipset in conjunction with an E4000 or R820T tuner. In addition to this, I had two software components waiting on the runway: RTL-SDR and Dump1090.
RTL-SDR [1] supports communication with the DVB-T receiver, and Dump1090 [2] decodes the data obtained in this way using a mini-web server to display a map of the machines in the vicinity. Even if you do find the two components on your Linux system, the version is likely to be outdated. It thus makes sense to build the current versions yourself. The tools required for this are shown in the command in the first line of Listing 1. The following lines then fetch RTL-SDR and compile the RTL-2832U driver.
Listing 1
Installing Components
Drivers on a Collision Course
The next step is to create the /etc/modprobe.d/rtlsdr.conf
file and write the following line:
blacklist dvb_usb_rtl28xxu
This prevents Linux loading the DVB-T driver that I would need to watch TV programs rather than planes. Now a reboot is necessary. The installation of Dump1090 is similarly simple. The following commands
cd ~ git clone git://github.com/MalcolmRobb/dump1090.git cd dump1090/ make
copy and compile the software. When I point my browser at the URL http://127.0.0.1:8080, it now shows me a map in which I can zoom in on the location of my DVB-T receiver. To whet your appetite, I have posted a live demo of the airspace on the web [3]. Figure 1 shows a Ryanair jet landing at the provincial airport in Weeze, Germany. Life's exciting when you're part of the cabin crew.
Infos
- RTL-SDR: http://sdr.osmocom.org/trac/wiki/rtl-sdr
- Dump1090: https://github.com/antirez/dump1090
- Charly's flight map: http://kuehnast.com/fr/
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.
-
AlmaLinux 10.0 Beta Released
The AlmaLinux OS Foundation has announced the availability of AlmaLinux 10.0 Beta ("Purple Lion") for all supported devices with significant changes.
-
Gnome 47.2 Now Available
Gnome 47.2 is now available for general use but don't expect much in the way of newness, as this is all about improvements and bug fixes.
-
Latest Cinnamon Desktop Releases with a Bold New Look
Just in time for the holidays, the developer of the Cinnamon desktop has shipped a new release to help spice up your eggnog with new features and a new look.
-
Armbian 24.11 Released with Expanded Hardware Support
If you've been waiting for Armbian to support OrangePi 5 Max and Radxa ROCK 5B+, the wait is over.
-
SUSE Renames Several Products for Better Name Recognition
SUSE has been a very powerful player in the European market, but it knows it must branch out to gain serious traction. Will a name change do the trick?
-
ESET Discovers New Linux Malware
WolfsBane is an all-in-one malware that has hit the Linux operating system and includes a dropper, a launcher, and a backdoor.
-
New Linux Kernel Patch Allows Forcing a CPU Mitigation
Even when CPU mitigations can consume precious CPU cycles, it might not be a bad idea to allow users to enable them, even if your machine isn't vulnerable.
-
Red Hat Enterprise Linux 9.5 Released
Notify your friends, loved ones, and colleagues that the latest version of RHEL is available with plenty of enhancements.
-
Linux Sees Massive Performance Increase from a Single Line of Code
With one line of code, Intel was able to increase the performance of the Linux kernel by 4,000 percent.