Open o-alquimista opened 2 years ago
I believe this method is responsible for setting the hostname when the uesr clicks on the Finish Setup
button.
The utility method is here:
If I'm reading this correctly, we just use org.freedesktop.hostname1.set-static-hostname
and don't manually do anything else to set the hostname; I'd imagine the FreeDesktop DBus interface should handle that?
Also this proposed device name Inspiron-3583-abcdefgh
is used in syslog
and maybe other logs.
I have a bit more strange behavior. During installation I changed proposed Lenovo-IdeaPad-Y580-d4dce24c
to prid-PC
. Later during Dropbox authentication it showed me a pridPC
name without a dash. And the /etc/hostname
, /etc/hosts
files contained only the initially proposed Lenovo-IdeaPad-Y580-d4dce24c
name.
After changing manually the name in these 2 files and rebooting several times, I've noticed the Lenovo-IdeaPad-Y580-d4dce24c
name in syslog
:
Jan 25 02:29:42 Lenovo-IdeaPad-Y580-d4dce24c kernel: [26215.856346] [UFW BLOCK] ...
Something strange is going on with the device name.
This causes a secondary problem where sudo
commands are really slow if you choose anything other than the default hostname. See the following for reference: https://stackoverflow.com/questions/22249688/linux-sudo-is-working-slow-after-changing-the-hostname
What Happened?
/etc/hosts
my-hostname
).Inspiron-3583-abcdefgh
) even if you decide to use a different name.Steps to Reproduce
my-hostname
. The hostname field will be pre-filled with something likeInspiron-3583-abcdefgh
; delete that and set a custom name instead.cat /etc/hosts
Expected Behavior
Expected contents of
/etc/hosts
:Actual contents of
/etc/hosts
:It's a bit messy too, right? But the relevant problem here is the absence of
my-hostname
.OS Version
6.1 (Jólnir)
Software Version
Latest release (I have run all updates)
Log Output
No response
Hardware Info