##### PREREQUEST\\ Download unzip and put on sd card the ARM software (Raspbian Stretch Lite)\\ Win32DiskImager\\ Write File SSH into root\\ PuTTY login as: pi\\ password: raspberry\\ ##### SETUP\\ passwd\\ sudo apt-get update\\ sudo apt-get upgrade\\ sudo raspi-config (Network Options/N1/N2, Localisation Options I2)\\ sudo reboot\\ ##### INSTALL RTL-SDR Library\\ sudo apt-get install -y git cmake pkg-config libusb-1.0-0-dev\\ git clone git://git.osmocom.org/rtl-sdr.git \\ cd rtl-sdr\\ mkdir build\\ cd build\\ cmake ../ -DINSTALL_UDEV_RULES=ON\\ make\\ sudo make install\\ sudo cp ../rtl-sdr.rules /etc/udev/rules.d/\\ sudo ldconfig\\ rm -rf *\\ ##### Blacklist the DVB-T Drivers\\ sudo nano /etc/modprobe.d/blacklist-rtl.conf\\ # This creates a new file so enter the following lines:\\ blacklist dvb_usb_rtl28xxu\\ blacklist rtl2832\\ blacklist rtl2830\\ # Press control-X followed by Y to exit and save the modified file.\\ sudo reboot\\ rtl_test -t\\ rtl_tcp -a 192.168.1.36\\ ##### INSTALL AriSpy HF+ Library\\ # sudo apt-get install -y cmake libusb-1.0.0-dev\\ wget https://github.com/airspy/airspyhf/archive/master.zip\\ unzip master.zip\\ cd airspyhf-master\\ mkdir build\\ cd build\\ cmake ../ -DINSTALL_UDEV_RULES=ON\\ make\\ sudo make install\\ sudo ldconfig\\ rm -rf *\\ # cd /home/pi\\ # rm master.zip\\ ##### INSTALL SPYSERVER\\ mkdir ~/spyserver\\ wget https://airspy.com/downloads/spyserver-arm32.tgz\\ tar -xvf spyserver-arm32.tgz -C ~/spyserver\\ cd ~/spyserver\\ sudo chmod +x spyserver\\ ##### Configure SpyServer\\ sudo nano spyserver.config\\ sudo reboot\\ cd ~/spyserver\\ ./spyserver spyserver.config\\ ##### SERVICE\\ sudo nano /etc/systemd/system/spyserver.service\\ ###\\ [Unit]\\ Description=AirSpy HF+ SpyServer Service\\ Wants=network-online.target\\ After=multi-user.target\\ [Service]\\ Type=idle\\ ExecStart=/home/pi/spyserver/spyserver /home/pi/spyserver/spyserver.config\\ StandardOutput=inherit\\ StandardError=inherit\\ Restart=always\\ [Install]\\ WantedBy=multi-user.target\\ ###\\ sudo chmod 777 /etc/systemd/system/spyserver.service\\ sudo systemctl daemon-reload\\ sudo systemctl enable spyserver.service\\ #sudo systemctl disable spyserver.service\\ ##### SERVICE\\ sudo nano /etc/systemd/system/rtlsdr.service\\ ###\\ [Unit]\\ Description=RTL-SDR Server\\ Wants=network-online.target\\ After=multi-user.target\\ [Service]\\ Type=idle\\ ExecStart=/bin/sh -c "/usr/local/bin/rtl_tcp -a 192.168.1.36"\\ WorkingDirectory=/home/pi\\ StandardOutput=inherits\\ StandardPutput=inherits\\ Restart=always\\ [Install]\\ WantedBy=multi-user.target\\ ###\\ sudo chmod 777 /etc/systemd/system/rtlsdr.service\\ sudo systemctl daemon-reload\\ sudo systemctl enable rtlsdr.service\\ #sudo systemctl disable rtlsdr.service\\ sudo reboot sudo service spyserver stop\\ sudo service spyserver start\\ sudo service spyserver restart\\ vcgencmd measure_temp && date\\ htop\\ ###### Timekeeping\\ sudo nano /etc/systemd/timesycd.conf\\ ###\\ NTP=0.ch.pool.ntp.org 1.ch.pool.ntp.org 2.ch.pool.ntp.org 3.ch.pool.ntp.org\\ ###\\ sudo reboot\\ timedatectl status\\ cat /var/log/syslog | grep systemd-timesyncd ##### Prevent dropping WiFi\\ sudo iw wlan0 get power_save\\ sudo iw wlan0 set power_save off\\ sudo nano /etc/rd.local\\ ###\\ /sbin/iw/dev wlan0 set power_save off\\ ###\\ ##### Midnight commander\\ sudo apt-get install mc -Y\\