└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # Raspberry Pi rtl-sdr server setup 2 | 3 | Quick guide to setup a RTL SDR Server on a Raspberry Pi. 4 | 5 | 6 | ## Base 7 | 8 | - Raspbian-litie (https://downloads.raspberrypi.org/raspbian_lite_latest) 9 | - Raspberry Pi (2 or 3) 10 | 11 | ⚠️⚠️ The Pi Zero W seems not enough powerfull to handle rtl_tcp. 12 | 13 | ## Flash the Sdcard 14 | 15 | ```sh 16 | $ sudo dd bs=1m if=path_of_your_image.img of=/dev/rdiskn conv=sync 17 | ``` 18 | 19 | ## Base Setup 20 | 21 | ```sh 22 | $ sudo apt-get update 23 | $ sudo apt-get upgrade 24 | $ sudo rpi-update 25 | ``` 26 | 27 | ## Install rtl-sdr software 28 | 29 | In 2018 no need to compile rtl-sdr package, everything is already available in repo. 30 | 31 | ```sh 32 | $ sudo apt-get install rtl-sdr 33 | ``` 34 | 35 | Plug your TNT/DVB Dongle. 36 | 37 | Done ?! Everything is installed. You can test your setup with : 38 | 39 | ```sh 40 | $ rtl_tcp 41 | ``` 42 | 43 | ## Service & Auto-startup 44 | 45 | With systemd the process to create a startup service is a little different than previous version. 46 | 47 | ```sh 48 | sudo nano /etc/systemd/system/rtlsdr.service 49 | ``` 50 | 51 | Paste the following content : 52 | 53 | ```systemd 54 | [Unit] 55 | Description=RTL-SDR Server 56 | After=network.target 57 | 58 | [Service] 59 | ExecStart=/bin/sh -c "/usr/bin/rtl_tcp -a $(hostname -I)" 60 | WorkingDirectory=/home/pi 61 | StandardOutput=inherit 62 | StandardError=inherit 63 | Restart=always 64 | 65 | [Install] 66 | WantedBy=multi-user.target 67 | ``` 68 | 69 | Save and quit 70 | 71 | ```sh 72 | $ sudo systemctl daemon-reload 73 | $ sudo systemctl start rtlsdr 74 | $ sudo systemctl status rtlsdr # Everything should be green 75 | $ sudo systemctl enable rtlsdr 76 | ``` 77 | 78 | Almost done 79 | 80 | ## Reboot and test 81 | 82 | ```sh 83 | sudo reboot 84 | ``` 85 | 86 | Your SDR Server is ready to accept connection on port ```raspberrypi.local:1234``` 87 | --------------------------------------------------------------------------------