Re: [opensuse] Inconsistency in HOSTNAME
On Thursday 17 February 2011 00:46:49 you wrote:
Stan Goodman wrote:
On Wednesday 16 February 2011 22:37:12 Serge Bromow wrote:
Hi Stan,
Most likely your a victim of an update. Goto;
Computer -> Yast -> Network Devices -> Network Settings.
Under "Hostname/DNS" change the hostname as desired and possibly the Domain Name.
Under "Overview". Edit connection and change hostname here as well.
That should do it,
No Cigar. Those were places I looked earlier. Under Hostname/DNS, the name and domain are as they should be (chipotle and hashkedim.com). Under Overview > Edit, the name is chipotle; I see no place for domain.
Nevermind that nonsense. You do NOT need YAST to do this, and in fact, it's far better to learn exactly what YAST was supposed to do (so that, when YaST screws up, as in this instance), you know how to fix it.
1. edit the file /etc/HOSTNAME
It should read something like this: hostname.network.tld
It reads chipotle.hashkedim.com, which is what it shouild be. I ascertained this before I posted.
[with appropriate values filled in for hostname, network (if needed), and tld (tld is something like com, net, or org).]
"Top Level Domain".
Additionally, edit /etc/hosts search for 127.0.0, and make the 127.0.0.1 and 127.0.0.2 lines read like this:
127.0.0.1 localhost hostname hostname.network.tld 127.0.0.2 hostname.network.tld hostname
What is there at present is the following: 127.0.0.1 localhost 127.0.0.2 localhost.localdomain localhost I change this to: 127.0.0.1 localhost 127.0.0.2 chipotle.hashkedim.com chipotle No joy. See the note in answer to Chuck.
If your machine is the network level domain, then
127.0.0.1 localhost hostname hostname.tld 127.0.02 hostname.tld hostname [again, make the appropriate substitutions of hostname, network & tld]
As far as I can see, the right entries are in all the right places, but are ignored in terminal windows.
This is a laptop, BTW,
That doesn't matter
and is under DHCP.
Neither does that.
Serge
On 02/16/2011 02:03 PM, Stan Goodman wrote:
In the years that I have been using this laptop machine (or its predecessor), its hostname has been "chipotle", and the root prompt in terminals has been "chipotle".
Recently the prompt has been "localhost" instead; I do not know what brought this about. I opened /etc/HOSTNAME, and found that what is written there is still "chipotle.hashkedim.com". Why is this being ignored? How can I change the prompt to what it should be?
-- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
Stan Goodman