You are not logged in.

#1 2007-01-06 10:09:24

anadyr
Member
Registered: 2005-02-10
Posts: 225

setting the computer name

Hello,

I want to change the name of the computer. Now it is set to myhost, so if XDM starts, it says:

Welcome to myhost.

in normal (not X) login, it says

myhost login:

This myhost does not seem to be the hostname in rc.conf, because it is set to something else (the same as in the hosts file).

Offline

#2 2007-01-06 10:26:32

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: setting the computer name

you must set the Hostname in rc.cond and /etc/hosts

read documentation


Have you tried to turn it off and on again?

Offline

#3 2007-01-06 11:52:42

anadyr
Member
Registered: 2005-02-10
Posts: 225

Re: setting the computer name

anadyr wrote:

This myhost does not seem to be the hostname in rc.conf, because it is set to something else (the same as in the hosts file).

read post...

Offline

#4 2007-01-06 16:36:21

harlekin
Member
From: Germany
Registered: 2006-07-13
Posts: 408

Re: setting the computer name

Please show relevant lines from /etc/hosts and especially /etc/rc.conf.

Did you restart your network?
Did you restart your computer (don't know if this is needed, guess not)?


Hail to the thief!

Offline

#5 2007-01-06 17:09:09

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: setting the computer name

myhost is the default hostname in rc.conf - I'd imagine that if you have a different name on the console prompt than rc.conf you didn't apply a hostname during install, added the hostname after installing, and haven't rebooted since (or something similar).  Sorry if this isn't the case, but stranger things have happened on this board...


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#6 2007-01-06 18:19:00

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,718
Website

Re: setting the computer name

In /etc/rc.conf you should have a line like HOSTNAME="computer_name"
and in /etc/hosts very much the same line, like this:
127.0.0.1               localhost.localdomain   localhost computer_name

That **is bound** to work, else ... something really funny is going on with your system.

Hope this helps.

R

Offline

#7 2007-01-06 20:04:27

anadyr
Member
Registered: 2005-02-10
Posts: 225

Re: setting the computer name

# /etc/hosts: static lookup table for host names
#

#<ip>   <hostname>   <hostname>
127.0.0.1       localhost.localdomain   localhost

and in rc.conf

HOSTNAME="localhost"

But when xdm is started, it does not say
"Welcome to localhost", but "Welcome to myhost". And I want to change this setting, so that I have a different "Welcome to ..." message...

Offline

#8 2007-01-06 20:34:24

WiLLiE
Member
From: Sweden
Registered: 2005-02-27
Posts: 135

Re: setting the computer name

/etc/hosts

# /etc/hosts: static lookup table for host names
#

#<ip>   <hostname>   <hostname>
127.0.0.1       localhost.localdomain   localhost mycoolhostname


/etc/rc.conf

HOSTNAME="mycoolhostname"


Reboot.

Edit: and/or check your /etc/X11/xdm/Xresources file.

Offline

Board footer

Powered by FluxBB