@sir_anders @nixCraft

It reads other files too, of course. Delete your machine-id and machine-info files, and the machine ID and machine info will also not be there for hostnamed to read, for example.

It actually names the latter openly on the hostnamed manual page.

#hostnamectl

@sir_anders @nixCraft

hostnamectl gets its information across the #DesktopBus from hostnamed. And hostnamed in turn gets its information from reading the os-release file(s).

So when that someone has deleted your /etc/os-release (and /usr/lib/os-release and /run/os-release), you'll find that hostnamectl will not be able to give you the information. Because the information isn't there any more.

#hostnamectl

@kde a less experienced Linux user has just pointed out to me that there is no GUI in KDE for setting a system hostname? Or if there is we can't find it.

I've always just used hostnamectl, which is fine. But seems like an oversight!

#kde #plasma #hostname #hostnamectl #sysadmin #linux #areweblind

Filed under: everything is more complicated than you think. I used to think I knew how to change the hostname of my robot. Well not so fast. Apparently there are various tools and daemons who make it their business to "reverse" certain changes that for some reason they deem necessary. Or something. #dns #hostnamectl #hostname #ubunut #linux #robotics #howto : "6.3. Configuring Host Names Using hostnamectl Red Hat Enterprise Linux 7 | Red Hat Customer Portal"(https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec_configuring_host_names_using_hostnamectl)
6.3. Configuring Host Names Using hostnamectl Red Hat Enterprise Linux 7 | Red Hat Customer Portal

Access Red Hat’s knowledge, guidance, and support through your subscription.

Red Hat Customer Portal

Am I missing something or should hostnamectl not have a --user mode similar to systemctl? (It doesn’t currently.)

#systemd #hostnamectl #systemctl #userMode