Change Hostname problem

I am having some trouble changing the hostname in 11.2. What I have tried so far is:

  1. through yast, hostname
  2. command line, su -c ‘hostname <name>’

When I do the command line way, it will change what is shown there, but on the bar for the terminal it still says “linux-y2pz” as well as at the login window.

How can I change the hostname so that it will show the name that I want the machine to have?

tyndallc wrote:
> I am having some trouble changing the hostname in 11.2. What I have
> tried so far is:
>
> 1) through yast, hostname
> 2) command line, su -c ‘hostname <name>’
>
> When I do the command line way, it will change what is shown there, but
> on the bar for the terminal it still says “linux-y2pz” as well as at the
> login window.
>
> How can I change the hostname so that it will show the name that I want
> the machine to have?

IIRC, I had to go into networking to get it fully changed over. You’ll
have to browse through a couple of the tabs. I think it’s on the same
page as DNS…


Kevin Miller
Juneau, Alaska
http://www.alaska.net/~atftb
In a recent poll, seven out of ten hard drives preferred Linux.

To elaborate on what Kevin Miller said, open Yast and it’s “Network Devices” >> “Network Settings” then click on the “Hostname/DNS” tab

Start–> Applications–> System–> Administrator Settings (this is yast)–> Network Devices–> Network Settings–> select the tab “Hostname/DNS”
Change the hostname and domain name to anything you like -->OK

Open a terminal and you will see the change.