Announcement

Collapse
No announcement yet.

How to rename a PC with Kubuntu 10.10?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to rename a PC with Kubuntu 10.10?

    All:
    How does one rename a PC using Kubuntu 10.10? Thank you.

    Keith Lee

    #2
    Re: How to rename a PC with Kubuntu 10.10?

    If you are referring to the hostname, you can just open a console and type:
    Code:
    sudo hostname newname
    where newname is what you want to use.

    If you just type hostname it will return the current hostname of your PC.

    Type man hostname for more information.
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: How to rename a PC with Kubuntu 10.10?

      This would only change the name temporarily. To have the new hostname remain after the next reboot, the new name should be in the /etc/hostname file. 'hostname -F /etc/hostname' is executed as the system boots.

      Originally posted by Snowhog
      If you are referring to the hostname, you can just open a console and type:
      Code:
      sudo hostname newname
      where newname is what you want to use.

      If you just type hostname it will return the current hostname of your PC.

      Type man hostname for more information.

      Comment


        #4
        Re: How to rename a PC with Kubuntu 10.10?

        Correct.
        SET NAME

        When called with one argument or with the --file option, the commands
        set the host name or the NIS/YP domain name. hostname uses the
        sethostname(2) function, while all of the three domainname, ypdomain‐
        name and nisdomainname use setdomainname(2). Note, that this is effec‐
        tive only until the next reboot
        . Edit /etc/hostname for permanent
        change.
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment

        Working...
        X