installingmixonrpi
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| installingmixonrpi [2026/10/27 16:15] – tputman | installingmixonrpi [2026/10/27 17:06] (current) – tputman | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| </ | </ | ||
| - | MIX requires **Java 25 or newer**. | + | MIX requires **Java 25**. |
| The validated Raspberry Pi installation used: | The validated Raspberry Pi installation used: | ||
| Line 19: | Line 19: | ||
| The normal MIX web port is **7226** unless '' | The normal MIX web port is **7226** unless '' | ||
| - | The normal | + | The MIX setup page is: |
| <code text> | <code text> | ||
| - | http://< | ||
| http://< | http://< | ||
| </ | </ | ||
| - | The first opens the deployed | + | After an MIStudio project is deployed, |
| + | |||
| + | <code text> | ||
| + | http://< | ||
| + | </ | ||
| ===== 1. Copy the MIX runtime to the Raspberry Pi ===== | ===== 1. Copy the MIX runtime to the Raspberry Pi ===== | ||
| Line 92: | Line 95: | ||
| If the copied MIX installation contains an '' | If the copied MIX installation contains an '' | ||
| - | Each Raspberry Pi must use the license | + | Each Raspberry Pi must use the runtime |
| ===== 2. Verify Java 25 ===== | ===== 2. Verify Java 25 ===== | ||
| Line 146: | Line 149: | ||
| and its MIX build number. | and its MIX build number. | ||
| - | If a Raspberry Pi license has not yet been installed, MIX will display the system' | + | If a Raspberry Pi runtime |
| - | + | ||
| - | For example: | + | |
| <code text> | <code text> | ||
| Line 156: | Line 157: | ||
| Keep this key for the license request. | Keep this key for the license request. | ||
| - | ===== 4. Install the Raspberry Pi license ===== | + | ===== 4. Install the Raspberry Pi runtime |
| Each Raspberry Pi requires an ErgoTech runtime license associated with that system. | Each Raspberry Pi requires an ErgoTech runtime license associated with that system. | ||
| - | The pre-license key can be obtained from the MIX startup | + | The pre-license key is shown during |
| <code text> | <code text> | ||
| Line 166: | Line 167: | ||
| </ | </ | ||
| - | On the setup page, select | + | Select |
| - | + | ||
| - | Send the displayed | + | |
| Copy the license provided for the Raspberry Pi into: | Copy the license provided for the Raspberry Pi into: | ||
| Line 181: | Line 180: | ||
| ErgoIOTLicense_< | ErgoIOTLicense_< | ||
| </ | </ | ||
| + | |||
| + | If TransSECS has already been licensed on the same Raspberry Pi using the same pre-license key, the Pi-specific ErgoIOT runtime license can also be copied into the MIX runtime directory. | ||
| Start MIX again: | Start MIX again: | ||
| Line 187: | Line 188: | ||
| cd / | cd / | ||
| - | MIX_JAVA_HOME=/ | + | MIX_JAVA_HOME=/ |
| ./ | ./ | ||
| </ | </ | ||
| Line 196: | Line 197: | ||
| Valid IOT System Runtime License detected. | Valid IOT System Runtime License detected. | ||
| </ | </ | ||
| - | |||
| - | Opening **Get Pre-License Key** also provides a way to update the Raspberry Pi's date and time. | ||
| - | |||
| - | The setup page also contains **Network Configuration** for systems which use MIX to manage Raspberry Pi network settings. | ||
| ===== 5. Verify the MIX web server ===== | ===== 5. Verify the MIX web server ===== | ||
| Line 222: | Line 219: | ||
| Verify that the MIX setup page loads. | Verify that the MIX setup page loads. | ||
| - | |||
| - | After an MIStudio application has been deployed, the application can be opened at: | ||
| - | |||
| - | <code text> | ||
| - | http://< | ||
| - | </ | ||
| ===== 6. Deploy an MIStudio project to the Raspberry Pi ===== | ===== 6. Deploy an MIStudio project to the Raspberry Pi ===== | ||
| Line 246: | Line 237: | ||
| Enter the configured MIX password. | Enter the configured MIX password. | ||
| - | Save the MIStudio project. | + | Save the MIStudio project |
| - | Select **Deploy**. | + | During |
| - | + | ||
| - | During deployment, MIX should: | + | |
| * authenticate the MIStudio deployment request, | * authenticate the MIStudio deployment request, | ||
| * stop the currently loaded application logic, | * stop the currently loaded application logic, | ||
| * replace the deployed application files, | * replace the deployed application files, | ||
| - | * load the new application files and '' | + | * receive |
| - | * reload the application, | + | * reload the application |
| * continue running without requiring the MIX process to be stopped manually. | * continue running without requiring the MIX process to be stopped manually. | ||
| Line 265: | Line 254: | ||
| </ | </ | ||
| - | Verify that the deployed application loads. | + | Verify that the newly deployed application loads. |
| - | The MIX console should show the deployment being received and the application logic being reloaded. | + | The MIX console should show the deployment |
| - | + | ||
| - | For production systems, change the default '' | + | |
| - | + | ||
| - | The MIX user administration page is: | + | |
| - | + | ||
| - | <code text> | + | |
| - | http://< | + | |
| - | </ | + | |
| ===== 7. Stop the manual MIX process ===== | ===== 7. Stop the manual MIX process ===== | ||
| - | Before configuring | + | Before configuring automatic |
| - | If MIX is still running in the foreground, press: | + | If MIX is running in the foreground, press: |
| <code text> | <code text> | ||
| Line 303: | Line 284: | ||
| </ | </ | ||
| - | Create | + | Create: |
| <code text> | <code text> | ||
| Line 333: | Line 314: | ||
| Save with **Ctrl+O**, **Enter**, **Ctrl+X**. | Save with **Ctrl+O**, **Enter**, **Ctrl+X**. | ||
| - | Reload systemd | + | Reload systemd, enable MIX at boot, and start it: |
| <code text> | <code text> | ||
| Line 359: | Line 340: | ||
| </ | </ | ||
| - | The process should use the Java 25 installation under: | + | The process should use: |
| <code text> | <code text> | ||
| - | / | + | / |
| </ | </ | ||
| - | Verify port 7226: | + | Verify |
| <code text> | <code text> | ||
| Line 385: | Line 366: | ||
| </ | </ | ||
| - | The log should contain Java and MIX startup messages. | + | Check the MIX build, pre-license key, and license |
| - | + | ||
| - | Check the MIX build and license: | + | |
| <code text> | <code text> | ||
| Line 394: | Line 373: | ||
| </ | </ | ||
| - | A successful | + | A successfully licensed |
| <code text> | <code text> | ||
| Line 402: | Line 381: | ||
| </ | </ | ||
| - | When systemd creates '' | + | Verify the console log file: |
| <code text> | <code text> | ||
| - | root root | + | ls -l / |
| </ | </ | ||
| - | Verify if needed: | + | With the validated systemd configuration, |
| <code text> | <code text> | ||
| - | ls -l / | + | root root |
| </ | </ | ||
| Line 439: | Line 418: | ||
| Save with **Ctrl+O**, **Enter**, **Ctrl+X**. | Save with **Ctrl+O**, **Enter**, **Ctrl+X**. | ||
| - | Check the configuration: | + | Check the rule: |
| <code text> | <code text> | ||
| Line 451: | Line 430: | ||
| * '' | * '' | ||
| - | If the current | + | If the current |
| - | To test the rule, force one rotation: | + | To verify |
| <code text> | <code text> | ||
| Line 459: | Line 438: | ||
| </ | </ | ||
| - | Verify | + | Check the result: |
| <code text> | <code text> | ||
| ls -lh / | ls -lh / | ||
| + | systemctl status mix --no-pager | ||
| + | pgrep -af ' | ||
| </ | </ | ||
| - | The previous contents should be copied to: | + | The previous |
| <code text> | <code text> | ||
| Line 471: | Line 452: | ||
| </ | </ | ||
| - | The active '' | + | The active '' |
| - | + | ||
| - | Verify that MIX is still running: | + | |
| - | + | ||
| - | <code text> | + | |
| - | systemctl status mix --no-pager | + | |
| - | pgrep -af ' | + | |
| - | </ | + | |
| Generate a new request: | Generate a new request: | ||
| Line 499: | Line 473: | ||
| Default Servlet : GET Request: /setup.html | Default Servlet : GET Request: /setup.html | ||
| </ | </ | ||
| - | |||
| - | '' | ||
| ===== 11. Reboot and verify MIX ===== | ===== 11. Reboot and verify MIX ===== | ||
| Line 534: | Line 506: | ||
| </ | </ | ||
| - | Verify the MIX build and license from the new boot: | + | Verify |
| <code text> | <code text> | ||
| Line 541: | Line 513: | ||
| </ | </ | ||
| - | Verify | + | Verify: |
| - | <code text> | + | * MIX is '' |
| - | df -h / | + | * MIX is running with Java 25. |
| - | ls -lh / | + | * Port 7226 is listening. |
| - | ls -lh / | + | * The current MIX build started successfully. |
| - | cat / | + | |
| - | </ | + | * '' |
| Finally, open: | Finally, open: | ||
| Line 556: | Line 528: | ||
| </ | </ | ||
| - | Verify: | + | and verify that the deployed application |
| - | + | ||
| - | * MIX is '' | + | |
| - | * MIX is running with Java 25. | + | |
| - | * Port 7226 is listening. | + | |
| - | * The Raspberry Pi runtime license is accepted. | + | |
| - | * '' | + | |
| - | * The deployed | + | |
| - | * The SD card has sufficient free space. | + | |
| - | * Linux system logs remain bounded. | + | |
| - | * The boot-maintenance log shows a successful run after reboot. | + | |
| - | + | ||
| - | At this point MIX is installed, licensed, running automatically, | + | |
| - | If this SD card will become a master image, verify | + | At this point MIX is installed, licensed, configured for automatic startup, accepting MIStudio deployments, |
installingmixonrpi.1793132121.txt.gz · Last modified: by tputman
