Re: WORKAROUND Re: Cannot change hostname permanently

2006-10-02 Thread Wayne Topa
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 > > "

Re: WORKAROUND Re: Cannot change hostname permanently

2006-10-02 Thread Brad Rogers
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. --

Re: WORKAROUND Re: Cannot change hostname permanently

2006-10-02 Thread John Hasler
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

Re: WORKAROUND Re: Cannot change hostname permanently

2006-10-02 Thread Kent West
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

SOLVED Re: Cannot change hostname permanently

2006-10-02 Thread Chris Lale
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

Re: WORKAROUND Re: Cannot change hostname permanently

2006-10-02 Thread Chris Lale
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

Re: WORKAROUND Re: Cannot change hostname permanently

2006-10-02 Thread Brad Rogers
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

Re: WORKAROUND Re: Cannot change hostname permanently

2006-10-02 Thread Anthony Campbell
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

Re: WORKAROUND Re: Cannot change hostname permanently

2006-10-02 Thread Chris Lale
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

Re: WORKAROUND Re: Cannot change hostname permanently

2006-10-02 Thread Chris Lale
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.

Re: WORKAROUND Re: Cannot change hostname permanently

2006-10-02 Thread Kent West
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

Re: WORKAROUND Re: Cannot change hostname permanently

2006-10-02 Thread Magnus Therning
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

WORKAROUND Re: Cannot change hostname permanently

2006-10-02 Thread Chris Lale
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

Re: Cannot change hostname permanently

2006-10-02 Thread Liam O'Toole
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 >

Re: Cannot change hostname permanently

2006-10-02 Thread Mumia W..
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

Re: Cannot change hostname permanently

2006-10-02 Thread Chris Lale
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

Re: Cannot change hostname permanently

2006-10-01 Thread Kent West
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

Re: Cannot change hostname permanently

2006-10-01 Thread John Hasler
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

Re: Cannot change hostname permanently

2006-10-01 Thread Kent West
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