You are not logged in.
Some days ago I converted Arch to pure Systemd, which is a great system imho.
One lingering problem is that my /etc/hostname file (which has the same hostname as /etc/hosts is not effective?
I get the following:
handy ~ $ hostname
ThisfiletakesprecedenceoveretchostswhereI have searched & can't find any information on this.
In /etc/hostname I have tried using each of the following to no avail:
righpc
"rightpc"
HOSTNAME="rightpc"
HOSTNAME=rightpc
Any ideas?
Last edited by handy (2012-08-18 09:52:04)
I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!
Offline
$ hostname
Archer
$ cat /etc/hostname
ArcherCan you post the contents of you /etc/hostname and /etc/hosts please.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Thanks for your reply.
/etc/hostname :
handy ~ $ hostname
Thisfiletakesprecedenceoveretchostswherehandy ~ $ cat /etc/hostname
# This file takes precedence over /etc/hosts where
# the hostname must also be included:
rightpc /etc/hosts :
#
# /etc/hosts: static lookup table for host names
#
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost rightpc
#192.168.1.2 rightpc.localdomain rightpc ## the HP server
#192.168.1.3 leftpc.localdomain leftpc ## the iMac client
# End of fileI used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!
Offline
Follow loafer's example and remove everything from /etc/hostname except the machine hostname...
Offline
Thanks, that fixed it.
I can't believe that I didn't see that... <hangs his head in shame>
I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!
Offline