Questions and Answers :
Unix/Linux :
Linux problem with Computer name
Message board moderation
Author | Message |
---|---|
Max65 Send message Joined: 13 Jan 06 Posts: 8 Credit: 738 RAC: 0 ![]() |
new to linux When i show computers my BOINC account my Linux computer name shows "localhost.localdomain" for it's name. However when i show the XP machine the computer name GPS-1 is showen ok. is there some way to show what the computer says it's name is ? thanks for any help on this problem |
Dotsch ![]() Send message Joined: 9 Jun 99 Posts: 2422 Credit: 919,393 RAC: 0 ![]() |
You have got to setup a hostname for your system. Please look into this thread : http://setiathome.berkeley.edu/forum_thread.php?id=343 So far I know, the method of setting a ip address and a hostname differs on the used linux distro. |
Max65 Send message Joined: 13 Jan 06 Posts: 8 Credit: 738 RAC: 0 ![]() |
Here is a little more history on the system i am using linux Ubuntu ver. 5.10 the original HOSTS file was as follows and showed computer name as localhost.localdomain _________________________________________ 127.0.0.1 localhost.localdomain COMPUTER2 __________________________________________ I changed the original HOSTS file to the following and all works ok and the computer name shows as COMPUTER2. _________________________________________ 127.0.0.1 localhost 165.2.10.2 COMPUTER2 _________________________________________ However i am using DHCP and don't always have a static IP. Is there a way i can change the HOSTS file so i can use DHCP with a changing IP address ? Thanks Dotsch for the URL it helps alittle kent |
Dotsch ![]() Send message Joined: 9 Jun 99 Posts: 2422 Credit: 919,393 RAC: 0 ![]() |
However i am using DHCP and don't always have a static IP. Yes. Some posible solutions : - You can configure your DHCP server that is host everytime gets the same IP. - Configure a DNS server and setup your host, that it uses the DNS. So your IP and hostname will differ, but the name will always resolved. - Make a skript, which starts at the boot after the dhcp client, which reads out the IP from the interface and configure your hostname in the /etc/hosts - Make a virtual interface with a IP in a unused range, and confgiure your hostname and IP on this virtual IP in the /etc/hosts |
©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.