This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
app-notes:set-up-alpine [2025/08/12 18:47] – gray | app-notes:set-up-alpine [2025/08/13 13:45] (current) – [2. Further settings under Node-RED] gray | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | | + | |
+ | |||
+ | ===== Goal ===== | ||
+ | |||
+ | This wiki describes how to install an LXC container with the Alpine OS on the router. The LXC container is already prepared with a Node-RED installation and can then be used immediately. | ||
+ | |||
+ | ===== Prerequisites ===== | ||
+ | |||
+ | * NetModule Wireless Router with wireless connection | ||
+ | * NetModule Software [[https:// | ||
+ | * Not available for legacy products NB1600, NB2700, NB3700, NB3710 | ||
+ | |||
+ | ** | ||
+ | <WRAP center round important 95%> | ||
+ | The wiki was tested with router software 5.0.0.100 and the LXC container with Alpine armhf 3.22. | ||
+ | </ | ||
+ | ** | ||
+ | |||
+ | ---- | ||
+ | ===== - Setting up an LXC container with Alpine Linux and a ready-to-run Node-RED implementation ===== | ||
+ | |||
+ | You can download LXC containers via the link. The file contains Alpine for container installation and Node-RED has also been added. | ||
+ | |||
+ | |||
+ | * Alpine Linux with Node-RED[[https:// | ||
+ | |||
+ | Password: '' | ||
+ | |||
+ | Once you have downloaded the file '' | ||
+ | |||
+ | |||
+ | {{: | ||
+ | |||
+ | You can then install the container via the router' | ||
+ | Under '' | ||
+ | < | ||
+ | file:/// | ||
+ | </ | ||
+ | |||
+ | To execute the installation, | ||
+ | |||
+ | ---- | ||
+ | If the installation from the file was performed correctly, the LXC container is installed on the router and visible in the web interface. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | Next, a network connection is submitted for the container. In this example, the container is simply assigned to LAN interface 1. However, you can also set up the container with its own IP network via the '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | The container receives its IP address from LAN 1 via DHCP. To ensure that it always receives the same address, we set this under the '' | ||
+ | |||
+ | Under '' | ||
+ | |||
+ | Under '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Under the router console, you can check whether the router is assigned the correct IP address. | ||
+ | |||
+ | < | ||
+ | ~ $ lxc-info guest0 | ||
+ | Name: | ||
+ | State: | ||
+ | PID: 2653 | ||
+ | IP: | ||
+ | CPU use: 32.63 seconds | ||
+ | BlkIO use: 68.77 MiB | ||
+ | Memory use: | ||
+ | KMem use: 3.77 MiB | ||
+ | Link: | ||
+ | TX bytes: | ||
+ | RX bytes: | ||
+ | Total bytes: | ||
+ | ~ $ | ||
+ | </ | ||
+ | |||
+ | Under the console of the LXC container, you can check again whether the Node-RED daemon has already been started. | ||
+ | |||
+ | < | ||
+ | ~ $ lxc-attach | ||
+ | ~ $ rc-service node-red status | ||
+ | * status: starting | ||
+ | ~ $ | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | If everything worked, you can now access Node-RED in your web browser via the IP address '' | ||
+ | |||
+ | {{: | ||
+ | ---- | ||
+ | |||
+ | ===== - Further settings under Node-RED ===== | ||
+ | |||
+ | No user has been stored for this Node-RED installation. However, one can be stored later for secure access to the Node-RED container. | ||
+ | |||
+ | < | ||
+ | ~ $ node-red admin init | ||
+ | Node-RED Settings File initialisation | ||
+ | ===================================== | ||
+ | This tool will help you create a Node-RED settings file. | ||
+ | ✔ Settings file · / | ||
+ | ✔ That file already exists. Are you sure you want to overwrite it? · Yes | ||
+ | Share Anonymouse Usage Information | ||
+ | ================================== | ||
+ | ✔ Node-RED can notify you when there is a new version available. | ||
+ | This ensures you keep up to date with the latest features and fixes. | ||
+ | This requires sending anonymised data back to the Node-RED team. | ||
+ | It does not include any details of your flows or users. | ||
+ | For full information on what information is collected and how it is used, | ||
+ | please see https:// | ||
+ | · No, do not send my usage data | ||
+ | User Security | ||
+ | ============= | ||
+ | User Security | ||
+ | ============= | ||
+ | ✔ Do you want to setup user security? · Yes | ||
+ | ✔ Username · admin | ||
+ | ✔ Password · ********* | ||
+ | ✔ User permissions · full access | ||
+ | ✔ Add another user? · No | ||
+ | |||
+ | </ | ||
+ | |||
+ | The command '' | ||
+ | |||
+ | ** | ||
+ | <WRAP center round important 85%> | ||
+ | Important Changes to “node-red admin init” will only take effect after restarting the container. | ||
+ | </ | ||
+ | ** | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | === Use this link to return to the Modbus TCP setup === | ||
+ | |||
+ | * Back to Modbus TCP setup / [[app-notes: | ||
+ | |||
+ | ---- |