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: Tue, 13 Oct 2009 09:00:15 +1100	[thread overview]
Message-ID: <hb08tv$tfa$1@ger.gmane.org> (raw)
In-Reply-To: <4AD3401C.7080302@gentooist.com>

Xavier Parizet wrote:
> Lie Ryan a écrit :
>> Hi,
>>
>> [SNIP]
>>
>> Extra information:
>>
>> lieryan@lieryan ~/Desktop/pythontrunk/trunk $ /lib/libc.so.6
> 
> Here the output is clear : lieryan is your machine hostname as well as your
> username... So check your /etc/hosts and either edit the line containing
> 127.0.0.1 like this:
> 127.0.0.1 lieryan.<your dns domain name> lieryan localhost
> or set HOSTNAME variable in /etc/conf.d/hostname to localhost, put the error
> returned by python seems to indicate that you forgot to edit /etc/hosts to put
> the definition of lieryan hostname ip address.
> 

Thanks, redirecting 'lieryan' to 127.0.0.1 solves the problem.

Though I'd have preferred not to have my username redirects to the local
machine, changing HOSTNAME in /etc/conf.d/hostname seems to result in
some unwanted side effects[1] to X. I can live with the redirection
though, so problem solved for now.

[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.




  reply	other threads:[~2009-10-12 22:01 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   ` Lie Ryan [this message]
2009-10-14  8:37     ` [gentoo-user] " Lie Ryan

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='hb08tv$tfa$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