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
-
First Release Candidate for Linux Kernel 6.14 Now Available
Linus Torvalds has officially released the first release candidate for kernel 6.14 and it includes over 500,000 lines of modified code, making for a small release.
-
System76 Refreshes Meerkat Mini PC
If you're looking for a small form factor PC powered by Linux, System76 has exactly what you need in the Meerkat mini PC.
-
Gnome 48 Alpha Ready for Testing
The latest Gnome desktop alpha is now available with plenty of new features and improvements.
-
Wine 10 Includes Plenty to Excite Users
With its latest release, Wine has the usual crop of bug fixes and improvements, along with some exciting new features.
-
Linux Kernel 6.13 Offers Improvements for AMD/Apple Users
The latest Linux kernel is now available, and it includes plenty of improvements, especially for those who use AMD or Apple-based systems.
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.