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

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