When I installed Ubuntu I named my computer "test". after the installation was finished, I renamed the hostname to somewhat nicer:
sudo hostname silversurfer
and I added the hostname to /etc/hosts
But still even after a reboot, in syslog all messages are preceeded by "test":
tail -f /var/log/syslog
Feb 24 04:51:28 test ntpd[4598]: peers refreshed
Feb 24 04:51:28 test ntpd[4598]: Listening on routing socket on fd #24 for interface updates
...
My /etc/hosts/
looks like this:
127.0.0.1 localhost
127.0.1.1 test silversurfer
solution:
the first hostname for 127.0.1.1 in /etc/hosts
is mentioned in syslog, so you have to change:
from:
127.0.0.1 localhost
127.0.1.1 test silversurfer
to:
127.0.0.1 localhost
127.0.1.1 silversurfer test