You are not logged in.
Pages: 1
Sometime after the move of hostname from net-tools to inetutils my computer's hostname became very erratc.
By erratic I mean it occasionally does not get set. I will boot my computer, and have no hostname. But only sometimes. Other times it works. Sometimes I will get it, and then suspend to ram, and then I lose it again. But other times, suspend to ram does not cause trouble.
This lack of hostname causes other problems, such as unable to start gui programs.
Anyone have an idea on how to fix this?
Offline
Do you have inetutils installed?
Last edited by karol (2011-10-18 14:10:43)
Offline
Do you have inetutils installed?
Yes. inetutils is installed.
Offline
What's the output of 'echo $HOSTNAME'?
Offline
What's the output of 'echo $HOSTNAME'?
the $HOSTNAME variable is blank when I have no hostname.
Offline
cat /etc/rc.conf | grep HOSTNAMEWhat does the command above give you? If it's blank, try to type in the hostname you want.
Offline
karol wrote:What's the output of 'echo $HOSTNAME'?
the $HOSTNAME variable is blank when I have no hostname.
And other times it's set to what you have in rc.conf?
cat /etc/rc.conf | grep HOSTNAMEWhat does the command above give you? If it's blank, try to type in the hostname you want.
Save the cat!
grep ^HOSTNAME /etc/rc.conf;P
Last edited by karol (2011-10-18 15:48:03)
Offline
Yes, my HOSTNAME is set in rc.conf.
Sometimes I get that hostname, other times, I get no host name. There seems to be no pattern to it, but it's probably close to 50% of the time. Also, there appears to be a 50%* chance to lose the hostname upon resuming from pm-suspend.
*this percentage is entirely arbitrary...I just know it happens a lot.
Offline
Not sure if it's related, but awfully suspicious that I was having terrible connection problems after upgrading to inetutils 1.8-6 a couple of days ago. Just downgraded to 1.8-5 and connection is solid as a rock. Using b43 driver for my wifi, by the way.
Scott
Edit: probably disregard this. Looks like I spoke too soon. Sorry
My connection isn't dropping but I'm still regularly losing my DNS info...therefore no internet but SSH sessions stay active.
Last edited by firecat53 (2011-10-19 00:19:08)
Offline
Well, I have ruled out the possibility of the kernel (I downgraded and had the same issue) and I also tried downgrading inetutils. Now I am at a loss of what to try next.
When does the hostname get set? Is there an error log I can look at? Where is the hostname stored (besides $HOSTNAME in the shell)?
Offline
cat /etc/hosts? And FWIW, for me:
cur_work$ echo $HOSTNAME
moonshine
cur_work$ pacman -Q net-tools inetutils
error: package "net-tools" not found
error: package "inetutils" not foundLast edited by Leonid.I (2011-10-21 16:04:55)
Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd
Offline
Yeah, I know the hostname is in /etc/hosts, I just have a suspicion that is not the only place. After doing a little research I discovered the hostname set by the rc.sysinit script goes into /proc/sys/kernel/hostname. I'll watch that value the next time I lose my hostname (which will probably be tomorrow).
EDIT: After much experimentation I discovered that my hostname is being erased by dhclient.
Last edited by namelessone (2011-11-08 14:53:24)
Offline
Pages: 1