RE: Newbie Having Much Trouble Getting Deb 2.4.18-bf2.4 To Work
> From: Leonard Chatagnier [mailto:lenc@ruralcomm.com]
> Sent: Wednesday, December 01, 2004 4:35 PM
>
> Since the last couple of reinstalls, the first was with a bunch of Net
> programs installed for first time, I lost my Debian host
> name, now it's
> (none) and I think its affecting most all of the software,
> especially the
> Mozilla Email client. I tried using `hostname` to put Debian
> back in the
> prompt with no error messages but (none) stays for the domain
> name on the
> terminal prompt.
> Can anyone tell me how to fix this so I can use my email
> program.
`hostname` by itself will tell you what the machine thinks its name is.
`hostname puter` chanages the hostname to puter, but this will not change
the prompt immediately. First you must log out and back in to see a
change there. (alternatively, you could source /etc/profile or ~/.profile
since this is where PS1 is typically set).
However, this will not make the change permanent as the hostname is reset
on each reboot by the /etc/init.d/hostname.sh script. (/etc/init.d holds
all the startup/shutdown scripts linked to from the appropriate runlevel
directory (/etc/rc.*) (see init & /etc/inittab for more on runlevels)).
The /etc/init.d/hostname.sh sript reads /etc/hostname to set the hostname.
So, to come to the point of an incredibly long winded response, make sure
the file /etc/hostname contains the hostname you want.
I hope someone else can help with your other questions.
Reply to: