uaf-t3 / t3x

The cuddly waffle toolset for T3 Raspberry Pi image creation & maintance.
Other
4 stars 0 forks source link

nodered tool features + locale fix #43

Open SushiFanta opened 1 month ago

SushiFanta commented 1 month ago

Built on Petie & Dayne's work to flesh out the features of the nodered tool.

setup: Runs the Node-RED installer to install or update Node-RED and dependencies. Loads a default Node-RED configuration file set to host Node-RED locally. Runs the node_installer script.

unlock: Modifies the Node-RED configuration to enable password authentication for editor access. Then, comments out all uihost parameters so that Node-RED uses its original (public) behavior.

lockdown: Uncomments or adds uihost parameter targeting the loopback device, overriding the original behavior so that it can only be accessed locally. Then, disables password authentication.

change_pw: use node-red admin to generate a hash for user-defined password, then replace the hash in the config.

node_installer: Modified to chmod the node_modules folder before and after so that it can remain a protected directory, while allowing the installers to temporarily access it without running them as root.

Additional fixes

introduced script to starship setup that sets UTF-8 locales so that the nerdfont can be displayed