I tried to install NS8 according to the instructions found here:
When trying to install Nethserver after initial Rocky 9.1 I get:
[root@localhost ~]# curl https://raw.githubusercontent.com/NethServer/ns8-core/main/core/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3284 100 3284 0 0 10359 0 --:–:-- --:–:-- --:–:-- 10327
Checking machine hostname
Current hostname ‘localhost’ is not valid. The hostname must not contain ‘localhost’.
Please set a valid FQDN like ‘myserver.nethserver.org’.
[root@localhost ~]#
Do what it says: set the system hostname to a FQDN. hostnamectl set-hostname foo.bar.baz followed by systemctl restart systemd-hostnamed. If you’d set the hostname during installation, this wouldn’t be necessary.
[root@localhost ~]# hostnamectl set-hostname foo.bar.baz
[root@localhost ~]# systemctl restart systemd-hostnamed
[root@localhost ~]# curl https://raw.githubusercontent.com/NethServer/ns8-core/main/core/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3284 100 3284 0 0 7856 0 --:–:-- --:–:-- --:–:-- 7875
Checking machine hostname
The machine hostname should be inside /etc/hosts, otherwise the system will be unresponsive.
You can fix it with the following command:
echo '127.0.0.1 foo.bar.baz' >> /etc/hosts
Restart the installation when the problem has been solved.
So I did the “echo ‘127.0.0.1 foo.bar.baz’ >> /etc/hosts” and now the install script runs.
If it’s capable of determining that the hostname hasn’t been properly set, I’d think the best thing for the installer to do would be to actually set it.