Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apevec/eafe8350bfcfaf45575a24a9c3cf8c49 to your computer and use it in GitHub Desktop.
Save apevec/eafe8350bfcfaf45575a24a9c3cf8c49 to your computer and use it in GitHub Desktop.
Steps to restore RMS headless
https://globalmeteornetwork.org//wiki/index.php?title=Main_Page#Backup_and_restore_configuration_and_RSA_keys
> copy the files .config, platepar_cmn2010.cal and mask.bmp to the folder /home/pi/source/RMS/, and the files id_rsa and id_rsa.pub to the folder /home/pi/.ssh/
> cp .config platepar_cmn2010.cal mask.bmp /home/pi/source/RMS/
> cp id_rsa id_rsa.pub /home/pi/.ssh/
> chmod 400 ~/.ssh/id_rsa*
Steps to restore RMS headless (RasPi w/o display) setup on your Linux workstation:
1. create fresh RMS image on a new SD card: unzip -p "RMS_RPi4_image_20210626.zip" | dd of=/dev/mmcblk0 bs=4M status=progress conv=fsync
2. mount the card (e.g. via GNOME Files) and update the hostname in rootfs on the card etc/hostname and etc/hosts (line for 127.0.1.1 <hostname>)
3. if using a static IP address, update static * lines under "interface eth0" in etc/dhcpcd.conf
4. update home/pi/.ssh/authorized_keys with your ssh pubkey from your workstation
5. copy RMS ssh identity from RMS backup: cp id_rsa id_rsa.pub home/pi/.ssh/; chmod 400 home/pi/.ssh/id_rsa*
6. copy RMS config from RMS backup: cp .config platepar_cmn2010.cal mask.bmp home/pi/source/RMS/
7. update .config device line for RasPi4:
-device: rtspsrc location=rtsp://CAMERA.IP:554/user=admin&password=&channel=1&stream=0.sdp ! rtpjitterbuffer ! rtph264depay ! queue ! h264parse ! omxh264dec ! queue ! videoconvert ! appsink sync=1 ; device id
+device: rtsp://CAMERA.IP:554/user=admin&password=&channel=1&stream=0.sdp ; device id
+force_v4l2: false
8. echo 1 > home/pi/.rmsautorunflag
9. in card's bootfs append to cmdline.txt:
net.ifnames=0 init=/usr/lib/raspi-config/init_resize.sh
Unmount the new SD card from your workstation, put it in RasPi4 and boot, after resizing it should reboot again and start RMS automatically.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment