Brad Rogers([EMAIL PROTECTED]) is reported to have said:
> On Mon, 02 Oct 2006 14:53:04 +0100
> Chris Lale <[EMAIL PROTECTED]> wrote:
>
> Hello Chris,
>
> > I still cannot work out how hostname is remembering a name ("earth")
> > that it has not saved in /etc/hostname (which still contains
> > "
On Mon, 02 Oct 2006 16:09:42 +0100
Chris Lale <[EMAIL PROTECTED]> wrote:
Hello Chris,
> When called with one argument or with the --file option, the commands
Yes, but the --file option tells hostname which file to /read/ the name
from, not which file to /write/ it to. Again, this is AIUI.
--
Chris Lale writes:
> ...but using the hostname command does not work correctly. The hostname
> command appears to work (the hostname command reports the new hostname
> and a new login shows the new hostname in the prompt) but /etc/hostname
> retains the original name. Consequently, when /etc/init.d
Chris Lale wrote:
It also says that the hostname is set at boot using the file
/etc/hostname:
The name of the computer ("host") is set by the "hostname" command. The
"hostname" command does not modify the "/etc/hostname" file. The boot-up
scripts call the "hostname" command, reading the "/etc
Brad Rogers wrote:
[...]
You seem to be under the impression that the command hostname writes to
the file /etc/hostname. AIUI, that is *not* the case. You'll have to
alter the file in a text editor.
Thanks Brad - I've come to the same conclusion. Thanks to everyone else
who contribut
Anthony Campbell wrote:
[snip]
I've found that you have to change /etc/hosts to match /etc/hostname,
otherwise various bad things happen. The same applies if you use the
hostname command.
Thanks. That probably explains Gnome behaving strangely.
It doesn't affect the main issue though: the ho
On Mon, 02 Oct 2006 14:53:04 +0100
Chris Lale <[EMAIL PROTECTED]> wrote:
Hello Chris,
> I still cannot work out how hostname is remembering a name ("earth")
> that it has not saved in /etc/hostname (which still contains
> "desktop"). hostname --fqdn is also confused and cannot find a host!
You
On 02 Oct 2006, Chris Lale wrote:
[snip]
>
> I did try both manual change and the hostname command originally, but
> perhaps I did not reboot in each case - I can't remember. Subsequently,
> I have found that manually changing /etc/hostname does work, but using
> the hostname command does not
Kent West wrote:
Chris Lale wrote:
A workaround is to change the hostname by editing /etc/hostname directly.
# echo desktop > /etc/hostname
Yes. I understood from the original posting that the "/etc/hostname" was
being changed manually by the OP. If that's not the case, that's the
Magnus Therning wrote:
On Mon, Oct 02, 2006 at 13:33:01 +0100, Chris Lale wrote:
[...]
A workaround is to change the hostname by editing /etc/hostname directly.
# echo desktop > /etc/hostname
Isn't /etc/hosts involved in this as well?
At least for 'hostname -f' is seems to be.
Chris Lale wrote:
> A workaround is to change the hostname by editing /etc/hostname directly.
>
># echo desktop > /etc/hostname
>
Yes. I understood from the original posting that the "/etc/hostname" was
being changed manually by the OP. If that's not the case, that's the
problem. This file must
On Mon, Oct 02, 2006 at 13:33:01 +0100, Chris Lale wrote:
>Liam O'Toole wrote:
>>[...]
>> The output you quote above is the result of init invoking
>>
>>/etc/init.d/hostname.sh start
>>
>>What happens when you do this manually?
> # hostname desktop
> # hostname
> desktop
>
> # /etc/in
Liam O'Toole wrote:
[...]
The output you quote above is the result of init invoking
/etc/init.d/hostname.sh start
What happens when you do this manually?
# hostname desktop
# hostname
desktop
# /etc/init.d/hostname.sh
Setting hostname to 'earth'...done.
Are there an
On Mon, 02 Oct 2006 11:23:22 +0100
Chris Lale <[EMAIL PROTECTED]> wrote:
[...]
>
> The original hostname is "earth". I want to change it to "desktop".
> This is what happens:
>
> # hostname
> earth
>
> # hostname desktop
> # hostname
> desktop
>
> # shutdown -r now
>
On 10/02/2006 05:23 AM, Chris Lale wrote:
Kent West wrote:
[...]
No, I mean it seems odd that he changes "/etc/hostname", and after
reboot it has changed back to the original.
Or at least, that's what I understood him to say in his original post.
Yes, that's it. My packages are up-to-dat
Kent West wrote:
[...]
No, I mean it seems odd that he changes "/etc/hostname", and after
reboot it has changed back to the original.
Or at least, that's what I understood him to say in his original post.
Yes, that's it. My packages are up-to-date, my wireless/ADSL
modem/router box (Phil
John Hasler wrote:
Chris Lale wrote:
or by using the hostname command. All is well until I reboot. During
boot, hostname is reset to the value I supplied during installation.
Kent West writes:
That seems slightly odd to me.
Not at all. From /etc/init.d/hostname.sh:
# Shor
Chris Lale wrote:
> or by using the hostname command. All is well until I reboot. During
> boot, hostname is reset to the value I supplied during installation.
Kent West writes:
> That seems slightly odd to me.
Not at all. From /etc/init.d/hostname.sh:
# Short-Description: Set hostname based o
Chris Lale wrote:
I
want to change the hostname on my Etch box. I can change the name by
editing /etc/hostname
This is the correct way.
or by using the hostname command. All is well until I reboot. During
boot, hostname is reset to the value I supplied during installation.
That seems slightly
I want to change the hostname on my Etch box. I can change the name by
editing /etc/hostname or by using the hostname command. All is well
until I reboot. During boot, hostname is reset to the value I supplied
during installation. Any idea where this original hostname is saved, or
how I can mak
20 matches
Mail list logo