From: Randall Parker
Joe Hunt wrote:
>> How could I set the name?
>>
>
> On Knoppix, it is the contents of the file /etc/hostname while in
> Slackware, it it named /etc/HOSTNAME so I'd look for either of those
> files. I'm sure that there's a way to use a gui tool, but I don't
> know how you do that with Fedora/gnome.
/etc does not have hostname or HOSTNAME. Here's what locate turned up
(and it turned up nothing for HOSTNAME):
[randall{at}localhost ~]$ locate hostname
/bin/hostname
/proc/sys/kernel/hostname
/usr/lib/gettext/hostname
/usr/lib/perl5/5.8.8/hostname.pl
/usr/share/doc/selinux-policy-2.3.2/html/system_hostname.html
/usr/share/man/de/man1/hostname.1.gz
/usr/share/man/fr/man1/hostname.1.gz
/usr/share/man/man1/hostname.1.gz
/usr/share/man/man2/gethostname.2.gz
/usr/share/man/man2/sethostname.2.gz
/usr/share/man/man3/BIO_get_conn_hostname.3ssl.gz
/usr/share/man/man3/BIO_set_conn_hostname.3ssl.gz
/usr/share/man/man3p/gethostname.3p.gz
/usr/share/man/pt/man1/hostname.1.gz
/usr/share/selinux/devel/include/system/hostname.if
[randall{at}localhost ~]$
Of the first 3 only /proc/sys/kernel/hostname has text contents:
[randall{at}localhost ~]$ cat /proc/sys/kernel/hostname localhost.localdomain
[randall{at}localhost ~]$
The other two are binary. Is that the one to edit? Or does that
localhost{at}localdomain do something useful?
>
> There are many ways to do
> this depending upon the linux distribution, but even then, you need to
> look at your firewall (dhcp server) to see which range of addresses
> are being dynamically assigned, so that you don't choose one of those
> which then might conflict with one the dhcp server hands out.
I know how to adjust the firewall's address range of dynamic addresses. So
I can open up space for static addresses. I just need to figure out how to
set the static address on the Linux box.
--- BBBS/NT v4.01 Flag-5
* Origin: Barktopia BBS Site http://HarborWebs.com:8081 (1:379/45)
SEEN-BY: 633/267 270 5030/786
@PATH: 379/45 1 106/2000 633/267
|