Posts by Walt Gribben

1) Message boards : BOINC Manager : boinc_gui execution errors on Linux (Message 6559)
Posted 21 Nov 2006 by Walt Gribben
Post:
Offhand I'd say the wxGTK library was compiled with a different version of GCC than boincmgr. What version of gcc are you using (gcc --version) and where did you get wxGTK?

Walt
2) Message boards : BOINC client : BOINC 5.4.9 Linux detecting incorrect host name (Message 5720)
Posted 23 Sep 2006 by Walt Gribben
Post:
The entry in etc/hosts must be in the following order

127.0.0.1 hostname localhost


Changed the hosts file, restarted the boinc client, updated the project.
Now, instead of 'localhost' my hostname is PC0031, and that is correct, but the IP in the seti stats for this host shows 127.0.0.1, instead of the real IP of the network interface...


We can't see the name or the IP address, thats only available to you.

If you're using DHCP to get an IP address, it can't go into the hosts file. Thats because it can change each time you boot your system, and why the name is assigned to 127.0.0.1.

If you're using a static IP address, and one thats not in the range of DHP addresses controlled by your gateway/router then it to your hosts file. 192.168.2.107 looks like its assigned by DHCP, they're usually in the range of 100-149 (50 addresses).

If you configure the network adapter with a static IP address, say 192.168.2.20, then put that address in the hosts file:

192.168.2.20 PC0031
127.0.0.1 localhost
(remove the line with 127.0.1.1)

3) Message boards : BOINC client : BOINC 5.4.9 Linux detecting incorrect host name (Message 5717)
Posted 23 Sep 2006 by Walt Gribben
Post:

looking at the hosts tab of the networkinfo, i see this (leaving out the ipv6 lines):

127.0.0.1 localhost PC0031
127.0.1.1 PC0031

nothing listed for the eth1 interface (it has ip 192.168.2.107)

But... shouldn't boinc get the hostname the same way as the 'hostname' command does, and not care about some reverse dns lookup for the 127.0.0.1 addres


BOINC does a gethostname() to get the hostname, then uses that in a call to gethostbyname() to get the domain name. Gethostbyname is defined to return the first name after the IP address in the hosts file. Thats asuming your domain name server doesn't know about your host, and the resolver is set to use the hosts file (default in the Linux distributions I've seen.)

4) Message boards : BOINC client : BOINC 5.4.9 Linux detecting incorrect host name (Message 5712)
Posted 23 Sep 2006 by Walt Gribben
Post:
Not really anything to do with dial-up, shouldn't have asked that.

The 'name' you see on the 'Your Computer' web page is the domain name of the host, not the hostname. Its really a network configuration problem if you see 'localhost'; the hosts configuration file isn't set up correctly. Some distributions do this wrong and it has to be corrected manually.

Get into the Network Settings dialog. On Ubuntu click 'System', 'Applications', 'Networking' and the Network Settings dialog will appear. FC5 is similar, but the menu item is 'Network'.

In the Network Settings dialog switch to the Hosts tab. Look for the line with IP address 127.0.0.1. Whats the first name after the address? It should be the hostname.

If it isn't, select that line, click 'Properties' and move the entries around to get the name you want on top. You have to move them manually by retyping the lines, theres no 'up' or 'down' buttons.

Or edit (as root) the file /etc/hosts and make sure the name you want is the first one after the IP address.

Walt




Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.