Re: Changing Hostname?
On Sat, Dec 21, 2013 at 9:02 PM, Bob Proulx <bob@proulx.com> wrote:
> Jon N wrote:
>> Dec 21 16:36:38 (none) lightdm: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
>
> "(none)"? It thinks the hostname is "(none)"? That's not right.
> Unless you named your new system "(none)" with the parens which
> shouldn't work.
>
>> Dec 21 16:36:38 (none) avahi-daemon[2285]: Server startup complete.
>> Host name is none.local. Local service cookie is 3853520009.
>
> "none.local"?
>
>> Based on the time stamp these happened during the most recent boot.
>> All the previous lines have 'localhost-01' then all the subsequent
>> lines have '(none)'.
>
> I think there is an error with setting the new name. Just for
> verification what does hostname say?
>
> $ hostname
>
> It should return the hostname of your system. If it doesn't then
> something is wrong with /etc/hostname.
It does return the new hostname. But, I started wondering about legal
characters. If you remember my old one was 'localhost-01' but in my
new one I used an underscore (_). According to
netregister.biz/faqit.htm no symbols are usable except the hyphen (-).
No accented characters either. So I changed the name again and
rebooted once more. This time everything started just fine.
>
> I am thinking the hostname is empty for some reason.
Not empty, but if it contains illegal characters it won't make any
difference. I didn't find any error messages that would clue me in to
the problem (like: "Warning, you have illegal characters in your
hostname" :-)). I did notice on one boot an error message that
'hostname.sh' (in /etc/init.d) had failed, but I searched all my log
files and could not find any reference to it at all. I guess not
everything you see on screen during boot makes it into one of the log
files.
>
> Bob
Thank you very much Bob (and everyone else),
Jon
Reply to: