• Fedora 8 hostname

    From John Moesner@110:300/1.98 to All on Wed Jun 24 04:36:01 2009
    I have Fedora 8 loaded and am trying to us it primarily as a server.
    Web server, FTP server, telnet server, tftp server, SMB server, etc.
    I messed up when I set the hostname to localhost. I found that
    localhost does not work well for SMB services. I can change the name to something else such as server. That will work well until a power
    failure then the hostname reverts back to local host How can I make the hostname change permanent without reloading the system?
    Thanks,
    John Moesner

    --- FIDOGATE 4.4.10
    * Origin: FTN Gate on kofobbs.net (110:300/1.98)
  • From Jan Gerrit Kootstra@110:300/1.98 to All on Wed Jun 24 05:17:08 2009
    John Moesner schreef:
    I have Fedora 8 loaded and am trying to us it primarily as a server.
    Web server, FTP server, telnet server, tftp server, SMB server, etc.
    I messed up when I set the hostname to localhost. I found that
    localhost does not work well for SMB services. I can change the name to something else such as server. That will work well until a power
    failure then the hostname reverts back to local host How can I make the hostname change permanent without reloading the system?
    Thanks,
    John Moesner
    John,


    vi /etc/sysconfig/network

    or

    system-config-network
    choose the dns tab


    Kind regards,


    Jan Gerrit Kootstra

    --- FIDOGATE 4.4.10
    * Origin: FTN Gate on kofobbs.net (110:300/1.98)
  • From John Thompson@110:300/1.98 to On 2009-06-24, John Moesner on Thu Jun 25 04:38:16 2009
    On 2009-06-24, John Moesner <jmoesner@wowway.com> wrote:

    I have Fedora 8 loaded and am trying to us it primarily as a server.
    Web server, FTP server, telnet server, tftp server, SMB server, etc.
    I messed up when I set the hostname to localhost. I found that
    localhost does not work well for SMB services. I can change the name to something else such as server. That will work well until a power
    failure then the hostname reverts back to local host How can I make the hostname change permanent without reloading the system?

    "man hostname"

    --

    -John (john@os2.dhs.org)

    --- FIDOGATE 4.4.10
    * Origin: FTN Gate on kofobbs.net (110:300/1.98)
  • From Moe Trin@110:300/1.98 to All on Thu Jun 25 21:35:48 2009
    On Wed, 24 Jun 2009, in the Usenet newsgroup comp.os.linux.redhat, in article <slrnh45ooo.9aa.john@vector.os2.dhs.org>, John Thompson wrote:

    John Moesner <jmoesner@wowway.com> wrote:

    I can change the name to something else such as server. That will
    work well until a power failure then the hostname reverts back to
    local host How can I make the hostname change permanent without -------------------------------------------------^^^^^^^^^
    reloading the system?

    "man hostname"

    [compton ~]$ whatis hostname
    hostname (1) - show or set the system's host name
    [compton ~]$

    That only changes the hostname "now" - not permanently. I'm sure
    there is some wonderful ``helper'' tool for the clueless, but if you
    look at the boot scripts, the hostname is set using the HOSTNAME
    variable in /etc/sysconfig/network

    Old guy

    --- FIDOGATE 4.4.10
    * Origin: FTN Gate on kofobbs.net (110:300/1.98)
  • From John Thompson@110:300/1.98 to On 2009-06-25, Moe Trin on Fri Jun 26 02:32:58 2009
    On 2009-06-25, Moe Trin <ibuprofin@painkiller.example.tld> wrote:


    On Wed, 24 Jun 2009, in the Usenet newsgroup comp.os.linux.redhat, in
    article
    <slrnh45ooo.9aa.john@vector.os2.dhs.org>, John Thompson wrote:

    "man hostname"

    [compton ~]$ whatis hostname
    hostname (1) - show or set the system's host name
    [compton ~]$

    That only changes the hostname "now" - not permanently. I'm sure
    there is some wonderful ``helper'' tool for the clueless, but if you
    look at the boot scripts, the hostname is set using the HOSTNAME
    variable in /etc/sysconfig/network

    From "man hostname:"

    OPTIONS

    -F, --file filename
    Read the host name from the specified file. Com-
    ments (lines starting with a `#') are ignored.



    --

    -John (john@os2.dhs.org)

    --- FIDOGATE 4.4.10
    * Origin: FTN Gate on kofobbs.net (110:300/1.98)
  • From Jan Gerrit Kootstra@110:300/1.98 to All on Fri Jun 26 07:32:24 2009
    John Thompson schreef:
    On 2009-06-25, Moe Trin <ibuprofin@painkiller.example.tld> wrote:

    On Wed, 24 Jun 2009, in the Usenet newsgroup comp.os.linux.redhat, in article
    <slrnh45ooo.9aa.john@vector.os2.dhs.org>, John Thompson wrote:

    "man hostname"

    [compton ~]$ whatis hostname
    hostname (1) - show or set the system's host name
    [compton ~]$

    That only changes the hostname "now" - not permanently. I'm sure
    there is some wonderful ``helper'' tool for the clueless, but if you
    look at the boot scripts, the hostname is set using the HOSTNAME
    variable in /etc/sysconfig/network

    From "man hostname:"

    OPTIONS

    -F, --file filename
    Read the host name from the specified file. Com-
    ments (lines starting with a `#') are ignored.



    John,


    read

    Where as John Moestner needs a place to write.


    Kind regards,


    Jan Gerrit

    --- FIDOGATE 4.4.10
    * Origin: FTN Gate on kofobbs.net (110:300/1.98)
  • From Moe Trin@110:300/1.98 to All on Fri Jun 26 21:58:16 2009
    On Thu, 25 Jun 2009, in the Usenet newsgroup comp.os.linux.redhat, in article <slrnh485pq.9is.john@vector.os2.dhs.org>, John Thompson wrote:

    Moe Trin <ibuprofin@painkiller.example.tld> wrote:

    That only changes the hostname "now" - not permanently. I'm sure
    there is some wonderful ``helper'' tool for the clueless, but if
    you look at the boot scripts, the hostname is set using the
    HOSTNAME variable in /etc/sysconfig/network

    From "man hostname:"

    OPTIONS

    -F, --file filename
    Read the host name from the specified file. Com-
    ments (lines starting with a `#') are ignored.

    Did you try that? You really ought to, as I don't think you want
    the hostname to be whatever the last line in that file is. And in
    any case, the hostname is not _PERMANENTLY_ changed.

    Repeating - look at the boot scripts

    Old guy

    --- FIDOGATE 4.4.10
    * Origin: FTN Gate on kofobbs.net (110:300/1.98)
  • From John Thompson@110:300/1.98 to On 2009-06-26, Moe Trin on Sat Jun 27 01:50:08 2009
    On 2009-06-26, Moe Trin <ibuprofin@painkiller.example.tld> wrote:


    On Thu, 25 Jun 2009, in the Usenet newsgroup comp.os.linux.redhat, in
    article
    <slrnh485pq.9is.john@vector.os2.dhs.org>, John Thompson wrote:

    OPTIONS

    -F, --file filename
    Read the host name from the specified file. Com-
    ments (lines starting with a `#') are ignored.

    Did you try that? You really ought to, as I don't think you want
    the hostname to be whatever the last line in that file is. And in
    any case, the hostname is not _PERMANENTLY_ changed.

    So you create a file, e.g. /etc/hostname for example, that consists of
    the hostname and nothing more. Then you put a line in e.g. rc.local for example "hostname -F /etc/hostname"

    Where's the problem?

    Repeating - look at the boot scripts

    Isn't that what I just did?

    --

    -John (john@os2.dhs.org)

    --- FIDOGATE 4.4.10
    * Origin: FTN Gate on kofobbs.net (110:300/1.98)
  • From Moe Trin@110:300/1.98 to All on Sat Jun 27 04:33:12 2009
    On Fri, 26 Jun 2009, in the Usenet newsgroup comp.os.linux.redhat, in article <slrnh4anlg.g0p.john@vector.os2.dhs.org>, John Thompson wrote:

    Moe Trin <ibuprofin@painkiller.example.tld> wrote:

    Did you try that? You really ought to, as I don't think you want
    the hostname to be whatever the last line in that file is. And in
    any case, the hostname is not _PERMANENTLY_ changed.

    So you create a file, e.g. /etc/hostname for example, that consists
    of the hostname and nothing more. Then you put a line in e.g.
    rc.local for example "hostname -F /etc/hostname"

    Where's the problem?

    This isn't Debian or Gentoo (or clones) - so the boot scripts are not
    looking at /etc/hostname. But as you recall, /etc/rc.local is the
    "last" boot script run, so all of your services that are started
    before that script are using the wrong hostname. Some daemons
    really aren't happy running as 'localhost' which is the O/P's problem.

    Repeating - look at the boot scripts

    Isn't that what I just did?

    Apparently not. On a classic SysVinit setup (rather than the
    'upstart' crap), you'd find the hostname set in rc.sysinit
    which is the first script run:

    # Read in config data.
    if [ -f /etc/sysconfig/network ]; then
    . /etc/sysconfig/network
    else
    NETWORKING=no
    HOSTNAME=localhost
    fi

    # Set the hostname.
    hostname ${HOSTNAME}
    echo hostname: `hostname`

    'upstart' does the same thing, as one of the first boot tasks.
    If you are using the whizzy ``helper'' tools like the
    system-config-boot package, it is going to change the hostname by
    changing the HOSTNAME variable in /etc/sysconfig/network.
    Why reinvent the wheel?

    Old guy

    --- FIDOGATE 4.4.10
    * Origin: FTN Gate on kofobbs.net (110:300/1.98)
  • From Jon Mack@1:0/0 to All on Tue Nov 29 19:13:55 2011
    Take a look at /etc/sysconfig/network. There should be a entry for HOSTNAME. You can modify it as root or with sudo.

    If that's not the correct location to make it persistent, do a "man
    hostname". Should show you the location of the file that would need to be modified to make it persistent.

    Jon

    "John Moesner" wrote in message news:nig0m.399$Ai6.21@newsfe09.iad...

    I have Fedora 8 loaded and am trying to us it primarily as a server.
    Web server, FTP server, telnet server, tftp server, SMB server, etc.
    I messed up when I set the hostname to localhost. I found that
    localhost does not work well for SMB services. I can change the name to something else such as server. That will work well until a power
    failure then the hostname reverts back to local host How can I make the hostname change permanent without reloading the system?
    Thanks,
    John Moesner


    --- MBSE BBS v0.95.13 (GNU/Linux-x86_64)
    * Origin: The Kofo BBS MBSE - telnet://fido1.kofobbs.ne
  • From Moe Trin@1:0/0 to All on Wed Nov 30 20:42:33 2011
    On Tue, 29 Nov 2011, in the Usenet newsgroup comp.os.linux.redhat, in article <0rydnW4hb8B0vUjTnZ2dnUVZ_tqdnZ2d@giganews.com>, Jon Mack wrote:

    Take a look at /etc/sysconfig/network.

    Take a look at the date of the post you're responding to.
    Date: Tue, 23 Jun 2009 21:36:01 -0500

    I really doubt the O/P is still reading. You should also be aware
    that Fedora 8 was obsolete by that date (Fedora 11 was released on
    9 June 2009).

    If that's not the correct location to make it persistent, do a "man >hostname". Should show you the location of the file that would need
    to be modified to make it persistent.

    [compton ~]$ whatis hostname
    hostname (1) - show or set the system's host name
    hostname (7) - host name resolution description
    [compton ~]$

    You didn't look at the man pages, did you? Setting hostname is a
    distribution specific function. Some read the value from /etc/hostname,
    some use /etc/sysconfig/network, some use /etc/HOSTNAME, some use
    /etc/rc.conf. The way to figure out which is which is to look at the
    boot scripts - and even that varies by distribution. Most distros
    also have some GUI tool that can set the hostname as well.

    Old guy

    --- MBSE BBS v0.95.13 (GNU/Linux-x86_64)
    * Origin: The Kofo BBS MBSE - telnet://fido1.kofobbs.ne