Quick guide to setup a RTL SDR Server on a Raspberry Pi, running dietpi.
- Dietpi - (https://dietpi.com/#download)
- Raspberry Pi (2 or newer)
$ sudo dd bs=1m if=path_of_your_image.img of=/dev/rdiskn conv=sync
$ sudo dietpi-update
In 2018 no need to compile rtl-sdr package, everything is already available in repo.
$ sudo apt-get install rtl-sdr
Plug your TNT/DVB Dongle.
Everything is installed. You can test it with :
$ rtl_tcp
With systemd the process to create a startup service is a little different than previous version.
sudo nano /etc/systemd/system/rtlsdr.service
Paste the following content :
[Unit]
Description=RTL-SDR Server
After=network.target
[Service]
ExecStart=/bin/sh -c "/usr/bin/rtl_tcp -a $(hostname -I)"
WorkingDirectory=/home/dietpi
StandardOutput=inherit
StandardError=inherit
Restart=always
[Install]
WantedBy=multi-user.target
Save and quit
$ sudo systemctl daemon-reload
$ sudo systemctl start rtlsdr
$ sudo systemctl status rtlsdr # Everything should be green
$ sudo systemctl enable rtlsdr
Almost done
sudo reboot
Your SDR Server is ready to accept connection on port hostname/IP:1234