fmlist_scanner:setup_scanner_software
Differences
This shows you the differences between two versions of the page.
| fmlist_scanner:setup_scanner_software [2025/10/30] – created hayati | fmlist_scanner:setup_scanner_software [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{indexmenu> | ||
| + | {{indexmenu_n> | ||
| + | |||
| + | ====== 3. Installation & setup of scanner software ====== | ||
| + | |||
| + | ===== Installation of the software ===== | ||
| + | |||
| + | after login with the dedicated //scanner// user | ||
| + | |||
| + | < | ||
| + | sudo apt install -y git | ||
| + | cd $HOME | ||
| + | git clone https:// | ||
| + | cd fmlist_scan | ||
| + | cp setup.sh my_setup.sh | ||
| + | </ | ||
| + | |||
| + | copying '' | ||
| + | |||
| + | < | ||
| + | nano my_setup.sh | ||
| + | </ | ||
| + | |||
| + | check the documented/ | ||
| + | save the file and quit nano editor. | ||
| + | |||
| + | now, you are ready to start the setup with | ||
| + | |||
| + | < | ||
| + | sudo ./ | ||
| + | </ | ||
| + | |||
| + | |||
| + | with an additional //SSH// connection on a Pi, you might check/watch the CPU temperature - while the setup is running | ||
| + | |||
| + | < | ||
| + | while true; do cat / | ||
| + | </ | ||
| + | |||
| + | |||
| + | the setup takes a while; go get a coffee .. or tea or .. ! | ||
| + | |||
| + | |||
| + | when finished, you need to reboot, that udev rules for user access of the RTLSDR dongle | ||
| + | |||
| + | < | ||
| + | sudo reboot now | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Prepare the result directory ===== | ||
| + | |||
| + | ==== PC ==== | ||
| + | |||
| + | On a PC, you can also use a regular directory, which has to be configured with the scanner settings | ||
| + | |||
| + | < | ||
| + | nano ~/ | ||
| + | </ | ||
| + | |||
| + | check and configure the lines | ||
| + | |||
| + | < | ||
| + | export FMLIST_SCAN_MOUNT=" | ||
| + | export FMLIST_SCAN_RESULT_DEV="" | ||
| + | export FMLIST_SCAN_RESULT_DSK="" | ||
| + | export FMLIST_SCAN_RESULT_DIR="/ | ||
| + | </ | ||
| + | |||
| + | ==== Pi ==== | ||
| + | |||
| + | On a Pi, you should have an additional external micro SD card for the results. the internal SD card with the operating system shouldn' | ||
| + | |||
| + | edit the settings with | ||
| + | |||
| + | < | ||
| + | nano ~/ | ||
| + | </ | ||
| + | |||
| + | check and configure the lines - especially the device name ''/ | ||
| + | |||
| + | < | ||
| + | export FMLIST_SCAN_MOUNT=" | ||
| + | export FMLIST_SCAN_RESULT_DEV="/ | ||
| + | export FMLIST_SCAN_RESULT_DSK="/ | ||
| + | export FMLIST_SCAN_RESULT_DIR="/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Setup Flash-Friendly-File-System aka F2FS ==== | ||
| + | |||
| + | Despite the non-existing ' | ||
| + | |||
| + | Micro-SD cards generally have a superior quality - compared against USB memory sticks. | ||
| + | But there are differences also. Prefer SD cards labelled with //Max/High Endurance// , which should have superior quality. | ||
| + | |||
| + | Anyway, you will also extend SD cards' lifetime utilizing F2FS | ||
| + | |||
| + | < | ||
| + | scanner_format_f2fs.sh | ||
| + | </ | ||
| + | |||
| + | see also [[devop: | ||
| + | |||
| + | ===== Review & configure all settings ===== | ||
| + | |||
| + | < | ||
| + | nano ~/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | you might want to check following entries for the upload | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | |||
| + | the RTLSDR sometime freezes/ | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | you need to enter the serial of the used RTL-SDR, that an USB reset can take place. without, a reboot would be necesessary! | ||
| + | |||
| + | you can determine the serial number of an RTLSDR dongle with | ||
| + | |||
| + | < | ||
| + | rtl_test | ||
| + | </ | ||
| + | |||
| + | press //Ctrl-C// to abort sample loss check | ||
| + | |||
| + | |||
| + | and surely very important for automatic start of the scanner | ||
| + | |||
| + | * '' | ||
| + | |||
| + | |||
| + | ===== Calibrate your RTLSDR dongle ===== | ||
| + | |||
| + | Actual dongles with an error < 1 ppm won't make a big difference .. but for other dongles, the calibration will be important - especially for DAB. | ||
| + | |||
| + | < | ||
| + | kal.sh | ||
| + | </ | ||
| + | |||
| + | this takes some minutes. the results are saved in the configuration file. | ||
| + | |||
| + | |||
| + | ===== Setup automatic upload of scan results ===== | ||
| + | |||
| + | Check/ | ||
| + | |||
| + | < | ||
| + | crontab -l | ||
| + | crontab -e | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Setup Remote, Monitoring or Service connection ===== | ||
| + | |||
| + | Using the scanner at home in your local network, you should always be able to connect with SSH. | ||
| + | |||
| + | In following cases, it is more difficult: | ||
| + | |||
| + | * you want to connect from outside (you would need to configure your modem' | ||
| + | * with a so-called // | ||
| + | * when the Pi uses mobile internet, e.g. LTE from your cell phone, you usually //DS-Lite// | ||
| + | |||
| + | In any of aboce cases, // | ||
| + | |||
| + | * the Pi automatically connects to a ' | ||
| + | * the device, e.g. smartphone, that wants to establish a connection the that Pi, connects over the waiting connection over my ' | ||
| + | |||
| + | |||
| + | setup of sidedoor | ||
| + | |||
| + | < | ||
| + | cd ~/ | ||
| + | sudo -E ./ | ||
| + | </ | ||
| + | |||
| + | you need to replace the 8001 by a unique port number! simply send me an email request to [[h_ayguen@web.de|h_ayguen@web.de]] | ||
| + | |||
| + | |||
| + | after activation, you can test with | ||
| + | |||
| + | < | ||
| + | ssh -p 9001 scanner@hayguen.hopto.org | ||
| + | </ | ||
| + | |||
| + | again, you need to replace the '' | ||
| + | |||
| + | you can control the sidedoor service with following commands: | ||
| + | |||
| + | < | ||
| + | sudo systemctl status sidedoor | ||
| + | sudo systemctl stop sidedoor | ||
| + | sudo systemctl disable sidedoor | ||
| + | sudo systemctl enable sidedoor | ||
| + | sudo systemctl start sidedoor | ||
| + | </ | ||
| + | |||
| + | |||
| + | Oliver and me gain access to the Pi by installing ssh public keys into a new user account '' | ||
| + | |||
| + | if you don't trust us, simply don't install the sidedoor! | ||
| + | |||
| + | |||
| + | |||
| + | ===== Setup control webserver ===== | ||
| + | |||
| + | Many configuration and monitoring operations can also get carried out through a simple webserver. It is automatically installed, but not activated. | ||
| + | |||
| + | For activation perform | ||
| + | |||
| + | < | ||
| + | cd ~/ | ||
| + | sudo ./ | ||
| + | </ | ||
| + | |||
| + | |||
| + | You can control the service with following commands - if necessary | ||
| + | |||
| + | < | ||
| + | sudo systemctl status scan-webserver.service | ||
| + | sudo systemctl start scan-webserver.service | ||
| + | sudo systemctl stop | ||
| + | </ | ||
| + | |||
| + | |||
| + | The webserver is only accessible from your home network (LAN). | ||
| + | |||
| + | You can connect with your browser on port 8000 - knowing the IP address or hostname of your Pi/scanner: | ||
| + | |||
| + | * http:// | ||
| + | * http:// | ||
| + | * http:// | ||
| + | |||
| + | connection with hostname requires a network router which does provide DNS. you can simply check with '' | ||
| + | |||
| + | < | ||
| + | ping raspberrypi | ||
| + | ping scannerNN | ||
| + | </ | ||
| + | |||
| + | |||
| + | Another alternative is, to allow allow reporting FMLIST the local IP address of your Pi with | ||
| + | |||
| + | * edit/enable the configuration entry '' | ||
| + | * uncomment (remove the ''#'' | ||
| + | |||
| + | < | ||
| + | nano ~/ | ||
| + | crontab -e | ||
| + | </ | ||
| + | |||
| + | and connect with the IP address reported in the **myURDS...** menu at https:// | ||
| + | |||
| + | Despite the fact, that your local IP address and the link to the webserver is listed on FMLIST, access is restricted to your home network (LAN). | ||
| + | |||
| + | The initial/ | ||
| + | |||
| + | |||
| + | ===== Setup Boot Target Console/GUI ===== | ||
| + | |||
| + | With new OS, remote X isn't activated by just setting '' | ||
| + | The GUI needs to be deactivated, | ||
| + | |||
| + | Use following command to check boot-mode: | ||
| + | < | ||
| + | sudo systemctl get-default | ||
| + | </ | ||
| + | |||
| + | to boot into console login: | ||
| + | < | ||
| + | sudo systemctl set-default multi-user.target | ||
| + | </ | ||
| + | |||
| + | to boot into GUI: | ||
| + | < | ||
| + | sudo systemctl set-default graphical.target | ||
| + | </ | ||
