Re: New on cable. Bash prompt name changed?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Message: 7
> Date: Mon, 10 Apr 2006 22:33:06 +0100
> From: Andy Green <andy@xxxxxxxxxxx>
> Subject: Re: New on cable. Bash prompt name changed?
> To: For users of Fedora Core releases <fedora-list@xxxxxxxxxx>
> Message-ID: <443ACF12.5020502@xxxxxxxxxxx>
> Content-Type: text/plain; charset="utf-8"

> ron wrote:

>> After setting up my high speed cable account, my bash prompt changed.
>> How do I change it? Is the address:
>>
>> c-53-131-25-317.hsd1.fl.comcast.net
>>
>> my permanent "back" address? It does not seem to change.

> It seems you get your address by DHCP from Comcast, and their DHCP
> server instructs the DHCP client to change your hostname, the same way
> that it can set your client DNS server address to use for example.

> If your dhcp client app is dhclient

> ps -Af | grep dhclient

> which it is IIRC for Fedora, you can use a supersede keyword to defeat
> the dhcp server from changing your locally preferred value.  See

> man dhclient.conf

> Or another way to come at it is to mess with

> /etc/bashrc

> if you don't mind the fact your hostname changed but just want to
> control the bash prompt.

> -Andy
> -------------------------------

Andy,

I CHANGED THIS FILE:

 /etc/dhclient-eth0.conf

I tried adding:

supersede host-name "localhost.localdomain";

And:

supersede domain-name "localhost.localdomain";

but it doesn't seem to work. What am I doing wrong?

the original dhclient-eth0.conf file had one entry:

send host-name "localhost.localdomain";  # temporary RHL ifup addition

This is what my dhclient-eth0.conf file looks like now after rebooting:

supersede host-name "localhost.localdomain";

send host-name "localhost.localdomain";  # temporary RHL ifup addition

-ron-


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux