Computer ID says LOCALHOST

Questions and Answers : Unix/Linux : Computer ID says LOCALHOST
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile NightHawke

Send message
Joined: 14 May 99
Posts: 16
Credit: 2,494,119
RAC: 0
United States
Message 458058 - Posted: 15 Nov 2006, 0:16:36 UTC

Ubuntu Linux dapper with full updates.

From what I can tell the system is named JUNIOR, but according to the S@H computer listing it's LOCALHOST. Is there an option that i'm missing here that is supposed make the system naming official?

All of your WU's are belong to me now!
ID: 458058 · Report as offensive
Desti
Volunteer tester

Send message
Joined: 28 Feb 03
Posts: 123
Credit: 519,284
RAC: 1
Message 458525 - Posted: 15 Nov 2006, 23:17:10 UTC - in response to Message 458058.  

Ubuntu Linux dapper with full updates.

From what I can tell the system is named JUNIOR, but according to the S@H computer listing it's LOCALHOST. Is there an option that i'm missing here that is supposed make the system naming official?



Hello,
does 'hostname -f' show the right computer name?
ID: 458525 · Report as offensive
Dotsch
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 2422
Credit: 919,393
RAC: 0
Germany
Message 458785 - Posted: 16 Nov 2006, 5:45:28 UTC
Last modified: 16 Nov 2006, 5:47:33 UTC

It could be, if your hostname is right set, as Desti posted, that there are wrong entries in the /etc/hosts and so the boinc client could not resolve the hostname correctly.
For example :
127.0.0.1 localhost HOSTNAME

Change HOSTNAME in the hostname you have named your computer


If you change it in :
127.0.0.1 localhost
IP_OF_THE_INTERFACE HOSTNAME

Change IP_OF_THE_INTERFACE in the example above in the ip address, you have assigned to your interface.
But the IP_OF_THE_INTERFACE depends how you connect to the outside. If you connecting with ehternet to a router, the example above may be right.

If you connecting with ppp (dialup with ISDN or modem) and get a dynamicly IP this change of the /etc/hosts should work :
127.0.0.0.1 HOSTNAME localhost
ID: 458785 · Report as offensive
Profile NightHawke

Send message
Joined: 14 May 99
Posts: 16
Credit: 2,494,119
RAC: 0
United States
Message 461960 - Posted: 19 Nov 2006, 19:55:51 UTC
Last modified: 19 Nov 2006, 20:27:22 UTC

Here is what is in my HOSTS file:

127.0.0.1 localhost JUNIOR
127.0.1.1 JUNIOR

The rest is nomenclature for IPv6 capable hosts.
All of your WU's are belong to me now!
ID: 461960 · Report as offensive
Dotsch
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 2422
Credit: 919,393
RAC: 0
Germany
Message 461981 - Posted: 19 Nov 2006, 20:38:13 UTC - in response to Message 461960.  

Here is what is in my HOSTS file:

127.0.0.1 localhost JUNIOR
127.0.1.1 JUNIOR

The rest is nomenclature for IPv6 capable hosts.

If you change the hosts to following it would work :
127.0.0.1 localhost
x.x.x.x JUNIOR
-> x.x.x. is the IP of the Interface you are going outside.

If your host made a reverse lookup to the only one IP (127.0.0.1), it get the localhost entry as first hostname, so the boinc client see "localhost" as hostname.
ID: 461981 · Report as offensive
Profile NightHawke

Send message
Joined: 14 May 99
Posts: 16
Credit: 2,494,119
RAC: 0
United States
Message 463542 - Posted: 22 Nov 2006, 14:28:30 UTC

Hmm, Can't seem to touch the HOSTS file.. It's write-locked and the properties says that i'm not the owner so I can't unlock it..

I guess I need the SUDO command to disable the write lock.
All of your WU's are belong to me now!
ID: 463542 · Report as offensive
Dotsch
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 2422
Credit: 919,393
RAC: 0
Germany
Message 463597 - Posted: 22 Nov 2006, 16:56:27 UTC - in response to Message 463542.  

Hmm, Can't seem to touch the HOSTS file.. It's write-locked and the properties says that i'm not the owner so I can't unlock it..

I guess I need the SUDO command to disable the write lock.

Yes, you need root permitsions to edit it. A "su - root" or a "sudo vi /etc/hosts" would help.
ID: 463597 · Report as offensive

Questions and Answers : Unix/Linux : Computer ID says LOCALHOST


 
©2025 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.