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
-
Thousands of Linux Servers Infected with Stealth Malware Since 2021
Perfctl is capable of remaining undetected, which makes it dangerous and hard to mitigate.
-
Halcyon Creates Anti-Ransomware Protection for Linux
As more Linux systems are targeted by ransomware, Halcyon is stepping up its protection.
-
Valve and Arch Linux Announce Collaboration
Valve and Arch have come together for two projects that will have a serious impact on the Linux distribution.
-
Hacker Successfully Runs Linux on a CPU from the Early ‘70s
From the office of "Look what I can do," Dmitry Grinberg was able to get Linux running on a processor that was created in 1971.
-
OSI and LPI Form Strategic Alliance
With a goal of strengthening Linux and open source communities, this new alliance aims to nurture the growth of more highly skilled professionals.
-
Fedora 41 Beta Available with Some Interesting Additions
If you're a Fedora fan, you'll be excited to hear the beta version of the latest release is now available for testing and includes plenty of updates.
-
AlmaLinux Unveils New Hardware Certification Process
The AlmaLinux Hardware Certification Program run by the Certification Special Interest Group (SIG) aims to ensure seamless compatibility between AlmaLinux and a wide range of hardware configurations.
-
Wind River Introduces eLxr Pro Linux Solution
eLxr Pro offers an end-to-end Linux solution backed by expert commercial support.
-
Juno Tab 3 Launches with Ubuntu 24.04
Anyone looking for a full-blown Linux tablet need look no further. Juno has released the Tab 3.
-
New KDE Slimbook Plasma Available for Preorder
Powered by an AMD Ryzen CPU, the latest KDE Slimbook laptop is powerful enough for local AI tasks.