New on cable. Bash prompt name changed?

Alexander Dalloz ad+lists at uni-x.org
Wed Apr 12 17:03:06 UTC 2006


Am Mi, den 12.04.2006 schrieb ron um 18:31:

> My  /etc/sysconfig/network-scripts/ifcfg-eth0 :
> 
> # nVidia Corporation CK804 Ethernet Controller
> DEVICE=eth0
> BOOTPROTO=bootp
> HWADDR=00:11:D8:CF:C4:8C
> ONBOOT=yes
> DHCP_HOSTNAME=localhost.localdomain
> USERCTL=yes
> IPV6INIT=no
> PEERDNS=yes
> TYPE=Ethernet
> 
> After rebooting  my shell domain name is:
> 
> [ron at c-67-191-14-212 ~]$
> 
> After using the System Configure Network  Gui:
> 
> [ron at localhost ~]$
> 
> But after reboot it reverts back to:
> 
> [ron at c-67-191-14-212 ~]$
> 
> It's in here somewhere:
> 
> [ron at c-67-191-14-212 ~]$ locate  dhclient
> 
> /etc/dhclient-eth0.conf
> /etc/resolv.conf.predhclient
> /sbin/dhclient
> /sbin/dhclient-script
> /usr/share/doc/dhclient-3.0.3
> /usr/share/doc/dhclient-3.0.3/dhclient.conf.sample
> /usr/share/man/man5/dhclient.conf.5.gz
> /usr/share/man/man5/dhclient.leases.5.gz
> /usr/share/man/man8/dhclient-script.8.gz
> /usr/share/man/man8/dhclient.8.gz
> /var/lib/dhclient
> /var/lib/dhclient/dhclient-eth0.leases
> /var/run/dhclient-eth0.pid
> 
> [ron at c-67-191-14-212 ~]$
> 
> Concerning a hardware router. Do you have any suggestions (wired and
> wireless ) for a novice with one personal computer that has expansion
> capabilities as I learn? I keep the SElinux Firewall on with Strict
> Enforcing.
> 
> -ron-

Use a hostname which is not localhost or localhost.localdomain. Else (in
your case actually) the DHCP client network scripts in these cases
rewrite the hostname dynamically. Use something like "core5.lan" or
similar.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
Serendipity 19:00:48 up 29 days, 19:48, load average: 0.09, 0.04, 0.05 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060412/fc2257b5/attachment-0001.sig>


More information about the fedora-list mailing list