Setting hostname in Linux
Results 1 to 3 of 3

Thread: Setting hostname in Linux

  1. #1
    Member
    Join Date
    Nov 2005
    Posts
    43

    ok... last noob question

    Ive looked on google but it just shows stuff about renaming files and users...

    How can I rename my machine in linux?
    At the top of a terminal it will say 'root@computername'
    and id like to change the name


    thanks for any help

    my linux books should be arriving any day now so this will be my last noob post
    Did someone piss in the gene pool?

  2. #2
    Senior Member gore's Avatar
    Join Date
    Oct 2002
    Location
    Michigan
    Posts
    7,177
    Depends on distro. SUSE you use YAST, Slackware you use Net configuration.... And on all of them you can change the host name easily.

    Try this:

    man hostname

  3. #3
    Senior Member
    Join Date
    Dec 2003
    Location
    Pacific Northwest
    Posts
    1,675
    that_is_my_cook,

    my linux books should be arriving any day now...
    Why wait? If it is written, you can almost always find it in the manual. As indicated, to find out how to change a hostname or things relative to the hostname, you type “man hostname” (minus the quotes) at the prompt. During your install you had the opportunity to include documentation (read - manuals). If you didn't include them, I would. You can also access them online at a multitude of linux websites. Sometimes the syntax is confusing at first so the distros usually include a pretty good help section as well. But any huuuu....I noticed in your signature you were having problems mounting your cdrom. Try: “man mount” to understand how "mount" functions with files, devices, etc.

    relyt@lizard:~> man mount


    MOUNT(8) Linux Programmer's Manual MOUNT(8)



    NAME
    mount - mount a file system

    SYNOPSIS
    mount [-lhV]

    mount -a [-fFnrsvw] [-t vfstype] [-O optlist]
    mount [-fnrsvw] [-o options [,...]] device | dir
    mount [-fnrsvw] [-t vfstype] [-o options] device dir

    DESCRIPTION
    All files accessible in a Unix system are arranged in one big tree, the
    file hierarchy, rooted at /. These files can be spread out over sev‐
    eral devices. The mount command serves to attach the file system found
    on some device to the big file tree. Conversely, the umount(8) command
    will detach it again.

    The standard form of the mount command, is
    mount -t type device dir
    !~cheers~!
    Connection refused, try again later.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •