baseraspberrypisetupbookworm
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| baseraspberrypisetupbookworm [2026/09/18 00:12] – [2. Install Raspberry Pi OS] wikiadmin | baseraspberrypisetupbookworm [2026/09/18 00:35] (current) – [12. Add startup cleanup and recovery] wikiadmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Raspberry Pi Base Setup for ErgoTech Software ====== | ====== Raspberry Pi Base Setup for ErgoTech Software ====== | ||
| + | |||
| + | This article continues from [[PiFreshSetupIntructions]| Setting up Raspberry Pi for MIX or TransSECS Deployments (Bookworm)]] | ||
| Complete this setup before installing MIX or the TransSECS built deployment. | Complete this setup before installing MIX or the TransSECS built deployment. | ||
| Line 199: | Line 201: | ||
| These packages provide serial-port support, SQLite support, system logging, log rotation, Raspberry Pi clock recovery, '' | These packages provide serial-port support, SQLite support, system logging, log rotation, Raspberry Pi clock recovery, '' | ||
| + | ===== 9. Disable Automatic Software Updates ===== | ||
| - | ===== 9. Install Java 8 ===== | + | For an ErgoTech system which will run continuously in production, software updates should be performed as a planned maintenance task rather than installed automatically. |
| + | |||
| + | Automatic operating-system updates can change system libraries, networking components, Chromium, Java-related packages, or other software which the ErgoTech application depends on. Disabling automatic updates helps keep a tested production system in a known configuration. | ||
| + | |||
| + | Stop and disable the unattended-upgrades service: | ||
| + | |||
| + | < | ||
| + | sudo systemctl disable unattended-upgrades | ||
| + | sudo systemctl stop unattended-upgrades | ||
| + | </ | ||
| + | |||
| + | Stop and disable the two automatic APT update timers: | ||
| + | |||
| + | < | ||
| + | sudo systemctl disable apt-daily.timer | ||
| + | sudo systemctl stop apt-daily.timer | ||
| + | |||
| + | sudo systemctl disable apt-daily-upgrade.timer | ||
| + | sudo systemctl stop apt-daily-upgrade.timer | ||
| + | </ | ||
| + | |||
| + | Prevent the system from prompting for an operating-system release upgrade. | ||
| + | |||
| + | First make a dated backup: | ||
| + | |||
| + | < | ||
| + | sudo cp / | ||
| + | </ | ||
| + | |||
| + | Open the configuration file: | ||
| + | |||
| + | < | ||
| + | sudo nano / | ||
| + | </ | ||
| + | |||
| + | Find the line beginning with: | ||
| + | |||
| + | < | ||
| + | Prompt= | ||
| + | </ | ||
| + | |||
| + | Change it to: | ||
| + | |||
| + | < | ||
| + | Prompt=never | ||
| + | </ | ||
| + | |||
| + | Save and exit nano: | ||
| + | |||
| + | * Press **Ctrl+O** to save. | ||
| + | * Press **Enter** to confirm the filename. | ||
| + | * Press **Ctrl+X** to exit. | ||
| + | |||
| + | ==== Verify ==== | ||
| + | |||
| + | Check the automatic-update service and timers: | ||
| + | |||
| + | < | ||
| + | systemctl status unattended-upgrades | ||
| + | systemctl status apt-daily.timer | ||
| + | systemctl status apt-daily-upgrade.timer | ||
| + | </ | ||
| + | |||
| + | The unattended-upgrades service and both APT timers should show which they are disabled or inactive. Press **q** if a status display remains open. | ||
| + | |||
| + | Also verify the release-upgrade setting: | ||
| + | |||
| + | < | ||
| + | grep ' | ||
| + | </ | ||
| + | |||
| + | It should show: | ||
| + | |||
| + | < | ||
| + | Prompt=never | ||
| + | </ | ||
| + | |||
| + | These changes do not prevent an administrator from installing updates manually later. Updates can still be performed deliberately during a maintenance period after they have been reviewed and tested. | ||
| + | |||
| + | |||
| + | ===== 10. Install Java 8 ===== | ||
| ErgoTech applications covered by this guide use **Java 8** unless ErgoTech support specifies otherwise. | ErgoTech applications covered by this guide use **Java 8** unless ErgoTech support specifies otherwise. | ||
| Line 248: | Line 331: | ||
| Register the extracted Java 11 installation using its actual folder name and a lower priority than Java 8. | Register the extracted Java 11 installation using its actual folder name and a lower priority than Java 8. | ||
| - | ===== 10. Keep Linux system logs from filling the SD card ===== | + | ===== 11. Keep Linux system logs from filling the SD card ===== |
| Linux system logs can grow surprisingly large when a device repeatedly reports an error. A nearly full SD card can make SSH and other commands extremely slow and can eventually make the system unusable. | Linux system logs can grow surprisingly large when a device repeatedly reports an error. A nearly full SD card can make SSH and other commands extremely slow and can eventually make the system unusable. | ||
| Line 292: | Line 375: | ||
| </ | </ | ||
| - | ===== 11. Add startup cleanup and recovery ===== | + | ===== 12. Add startup cleanup and recovery ===== |
| '' | '' | ||
| Line 358: | Line 441: | ||
| The test should complete without shell errors. The maintenance log should contain a start time, disk-usage information, | The test should complete without shell errors. The maintenance log should contain a start time, disk-usage information, | ||
| - | The MIX kiosk article adds two browser-specific cleanup commands to this file. | + | The [[SetupChromeKioskOnRpi]|MIX kiosk article]] adds two browser-specific cleanup commands to this file. |
| - | ===== 12. Timekeeping ===== | + | ===== 13. Timekeeping ===== |
| ==== Raspberry Pi 5 ==== | ==== Raspberry Pi 5 ==== | ||
| Line 398: | Line 481: | ||
| </ | </ | ||
| - | If the factory network has no Internet or local time server, the clock may drift. MIX provides another convenient way to set the system time by loading **Get Pre-License Key** on the setup page. | + | If the factory network has no Internet or local time server, the clock may drift. MIX provides another convenient way to set the system time by loading **Get Pre-License Key** on the setup page. In addition, for SECS/GEM tool applications, |
| - | ===== 13. Verify the base setup ===== | + | ===== 14. Verify the base setup ===== |
| Reboot: | Reboot: | ||
baseraspberrypisetupbookworm.1789704771.txt.gz · Last modified: by wikiadmin
