@DrC Hello again:
That’s a fine idea, potentially: fancy submitting a pull request proof-of-concept for that. It would need to be in the following repository (as I’m sure you realise but just for the general readership):
See our Contributing to Rockstor - Overview Developers subsection: https://rockstor.com/docs/contribute.html#developers
And the associated script might as well sit along side our existing beginner friendly myip script:
i.e. to end up the root users ~/bin directory i.e. /root/bin
I think a shell script wrapper for nmcli that explains it’s own use without parameters would fit nicely. And given that no DHCP is rare we may not want to ‘cloud’ the terminal message as folks who don’t know better may be distracted, i.e. imaging folks having difficulties connecting being mislead thinking that their lack of ability to reach the Web-UI is down to “Whatever this DHCP thing is” and ending up shooting themselves in the foot with a DHCP override. Nmcli is fairly self evident in it’s use but a wrapper may help here. Or the script may even just print out how to setup a static IP via nmcli. But again I’m keen to not distract the vast majority of folks who may missattribute connection difficulties to this strange suggestion on how they can set a static IP. Thinking it’s another hoop to jump through when almost all the time it isn’t. And the folks that know they don’t have DHCP are often very close the the cause/solution anyway so don’t need the hand holding that the myip script grew from.
Hence my suggestion that the install doc could be used to address this usability issue.
Thanks for the suggestion. Always improvements to be made but we must keep things as simple and distraction free for those who are completely unfamiliar with linux/networking etc.