public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Lie Ryan <lie.1296@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user]  Re: Problem with gethostname() returning incorrect   value
Date: Wed, 14 Oct 2009 19:37:58 +1100	[thread overview]
Message-ID: <hb42li$sd6$1@ger.gmane.org> (raw)
In-Reply-To: <hb08tv$tfa$1@ger.gmane.org>

Lie Ryan wrote:
> [1] for some reason, after setting HOSTNAME to localhost I can't start
> new GUI program/create new window after NetworkManager/nm-applet is
> running. I suspect there is some NetworkManager settings lying around
> somewhere that resets the name to lieryan and the change confused X.

btw, in any case someone in the future is wondering; the
NetworkManager's hostname settings are stored in /etc/dhcp/dhclient.conf

on these line:
send host-name "HOSTNAME";
supersede host-name "HOSTNAME";

after changing both this and the one in /etc/conf.d/hostname the
computer's hostname is changed for good with none of the side effect.




      reply	other threads:[~2009-10-14  8:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-12 13:37 [gentoo-user] Problem with gethostname() returning incorrect value Lie Ryan
2009-10-12 14:41 ` Xavier Parizet
2009-10-12 22:00   ` [gentoo-user] " Lie Ryan
2009-10-14  8:37     ` Lie Ryan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hb42li$sd6$1@ger.gmane.org' \
    --to=lie.1296@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox