[opensuse] Inconxixtency in HOSTNAME
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
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, 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?
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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. 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, and is under DHCP.
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
On Thu, 17 Feb 2011 08:08:18 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.
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, and is under DHCP.
Stan, What do you see from the laptop if you connect to it via ssh/telnet from another computer? Do you get the correct prompt then? If so, it may simply be that your terminal's prompt setting has changed. From memory I think this is set in an environment variable, which can be overwritten in ~/.bashrc (for the local user) or globally in /etc/bash.bashrc or /etc/bash.bashrc.local (one of the 3). Indeed in my ~/.bashrc I have the following line to set the prompt for local terminal sessions: PS1="\t \u@\h:\w> " HTH. Regards, Rodney. -- =================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au =================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, Feb 16, 2011 at 16:38, Stan Goodman
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.
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, and is under DHCP.
There's an option somewhere in YaST like "set hostname from DHCP" you might want to try to toggle that off. if you still have issues, edit /etc/resolve. Don't remove localhost, but put your correct hostname before localhost, such as: 127.0.0.1 localhost localhost.localdomain => change to: 127.0.0.1 chipotle localhost localhost.localdomain OR 127.0.0.1 localhost localhost.localdomain chipotle => change to: 127.0.0.1 chipotle localhost localhost.localdomain In default CentOS install I need to add DHCP_HOSTNAME in sysconfig, but I have never seen such a thing in openSUSE. -- Med Vennlig Hilsen, A. Helge Joakimsen -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, Feb 16, 2011 at 9:09 PM, Andrew Joakimsen
On Wed, Feb 16, 2011 at 16:38, 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.
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, and is under DHCP.
There's an option somewhere in YaST like "set hostname from DHCP" you might want to try to toggle that off. if you still have issues, edit /etc/resolve. Don't remove localhost, but put your correct hostname before localhost, such as:
127.0.0.1 localhost localhost.localdomain => change to: 127.0.0.1 chipotle localhost localhost.localdomain
OR
127.0.0.1 localhost localhost.localdomain chipotle => change to: 127.0.0.1 chipotle localhost localhost.localdomain
In default CentOS install I need to add DHCP_HOSTNAME in sysconfig, but I have never seen such a thing in openSUSE. -- Med Vennlig Hilsen,
A. Helge Joakimsen -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
What happens if you run this command #hostname -f This should tell you full host name of your box, you could try this to set your host name. hostname <thehostnameyourwantypehere> With out the -f type the name of host you want, then trying running the command above, you should see the name you type. Terror Pup -- ----------------------------------------- Discover it! Enjoy it! Share it! openSUSE Linux. ----------------------------------------- openSUSE -- en.opensuse.org/User:Terrorpup openSUSE Ambassador/openSUSE Member skype,twiiter,identica,friendfeed -- terrorpup freenode(irc) --terrorpup/lupinstein Register Linux Userid: 155363 Have you tried SUSE Studio? Need to create a Live CD, an app you want to package and distribute , or create your own linux distro. Give SUSE Studio a try. www.susestudio.com. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Andrew Joakimsen
-
Chuck Payne
-
Rodney Baker
-
Serge Bromow
-
Stan Goodman