After installing openSUSE RC1 KDE4 on my desktop. I renamed the hostname using Yast–>Network Devices–>Network Settings–>Hostname/DNS tab -->Hostname field to “opensuse-rc1” (without the quotes).
Yast was to save the changes. I logged out and logged in the hostname did NOT change. The machine name assigned to the network card appeared at my prompt, Yast title bar and the application launcher window.
I ran the Online Updater. After which, renaming the hostname worked. Logging out and logging in showed the new hostname. However, if I shutdown and reboot the computer, the machine name assigned to the network card reappeared again. My renamed hostname was lost.
I thought it was recommended not to assign your local a hostname. In all version of openSUSE 10 - 12.1, all I had to do was assign a new name in the hostname field.
I didn’t have to uncheck anything. After looking at my y2log. It appears that Yast is trying to write to /etc/modprobe.d/50-yast.conf.
There is no file called 50-yast.conf. Interesting…
It actually assigns the name to 127.0.0.2 rather than 127.0.0.1
I use “sendmail” (instead of “postfix”), and sendmail complains if it is unable to fully qualify the local hostname. That entry in “/etc/hosts” solves that problem.
An additional comment. When I assign a hostname, that name is written to “/etc/HOSTNAME”. You might check whether that file was updated on your system.
I see similar lines in y2log. After grepping for “50-yast.conf”, I get:
2012-07-12 19:15:36 <3> linux(2464) [agent-modules] ModulesConf.cc(getTimeStamp):282 Failed to stat /etc/modprobe.d/50-yast.conf: No such file or directory
2012-07-12 19:15:36 <3> linux(2464) [agent-modules] ModulesConf.cc(getTimeStamp):282 Failed to stat /etc/modprobe.d/50-yast.conf: No such file or directory
2012-07-12 19:15:38 <3> linux(2464) [agent-modules] ModulesConf.cc(getTimeStamp):282 Failed to stat /etc/modprobe.d/50-yast.conf: No such file or directory
2012-07-12 19:15:55 <3> linux(2464) [agent-modules] ModulesConf.cc(getTimeStamp):282 Failed to stat /etc/modprobe.d/50-yast.conf: No such file or directory
2012-07-12 19:15:55 <3> linux(2464) [agent-modules] ModulesConf.cc(getTimeStamp):282 Failed to stat /etc/modprobe.d/50-yast.conf: No such file or directory
2012-07-12 19:16:06 <3> linux-9esv(2464) [agent-modules] ModulesConf.cc(getTimeStamp):282 Failed to stat /etc/modprobe.d/50-yast.conf: No such file or directory
2012-07-12 19:16:06 <3> linux-9esv(2464) [agent-modules] ModulesConf.cc(getTimeStamp):282 Failed to stat /etc/modprobe.d/50-yast.conf: No such file or directory
2012-07-12 19:16:35 <3> linux-9esv(2464) [agent-modules] ModulesConf.cc(getTimeStamp):282 Failed to stat /etc/modprobe.d/50-yast.conf: No such file or directory
2012-07-12 19:16:35 <3> linux-9esv(2464) [agent-modules] ModulesConf.cc(getTimeStamp):282 Failed to stat /etc/modprobe.d/50-yast.conf: No such file or directory
2012-07-12 19:20:39 <3> dhcppc255(11646) [agent-modules] ModulesConf.cc(getTimeStamp):282 Failed to stat /etc/modprobe.d/50-yast.conf: No such file or directory
2012-07-12 19:20:39 <3> dhcppc255(11646) [agent-modules] ModulesConf.cc(getTimeStamp):282 Failed to stat /etc/modprobe.d/50-yast.conf: No such file or directory
2012-07-12 19:21:14 <3> dhcppc255(11646) [agent-modules] ModulesConf.cc(getTimeStamp):282 Failed to stat /etc/modprobe.d/50-yast.conf: No such file or directory
2012-07-12 19:21:14 <3> dhcppc255(11646) [agent-modules] ModulesConf.cc(getTimeStamp):282 Failed to stat /etc/modprobe.d/50-yast.conf: No such file or directory
2012-07-12 19:21:47 <3> nwr2(11646) [agent-modules] ModulesConf.cc(getTimeStamp):282 Failed to stat /etc/modprobe.d/50-yast.conf: No such file or directory
2012-07-12 19:21:47 <3> nwr2(11646) [agent-modules] ModulesConf.cc(getTimeStamp):282 Failed to stat /etc/modprobe.d/50-yast.conf: No such file or directory
I’m not quite sure what is happening there. The first few lines are presumably before automatic configuration of the hostname. The next few show a hostname of “linux-9esv”, which is probably the randomly generated default set during the final stage of install. Then some lines show a hostname of “dhcppc255”. That seems to come from my router, via DHCP, though I am not aware of how to set that in the router. And the last few have a hostname of “nwr2” which is what I set.
Those logs are for a desktop system with ethernet card. I guess I should also check laptops with WiFi networking.
In any case “/etc/modprobe.d/50-yast.conf” does not exist here either, and that did not interfere with setting a hostname.