1. You can do it either way. Debian (the distribution I mostly use)
recommends that you leave a dual-boot machine with the clock set for the
local timezone but  set GMT in a Linux-only host. I ignore this advice and
leave all clocks local, just because that's what I'm used to. It's not
important; the Linux clock can handle the offset either way.

2. /etc/hosts is as important on Linux as it is on any other Unix or
Unix-like system. You need either it, DNS, or both to do name-to-address
translations. To fix your hostname, do two things:

        A. edit the file /etc/hostname to contain the hostname you want
        B. check the rc scripts to make sure RH doesn't rewrite this file
                as part of the boot process (some distributions do, others
                don't, and I can't remember which way RH does it).

Regarding your /etc/hosts file, the @ sign is an error. @ signs go in email
addresses, where they connect a userid to a hostname; they don't go between
a hostname and a domain name. The line should read:

xxx.xxx.xxx.xxx         valdez.work.domain.name  valdez
                              ^
Not sure if this will fix the problem, as I don't know how the @ sign might
be misinterpreted by processes accessing /etc/hosts . Also check
/etc/host.conf to make sure it says "order hosts, bind".


Hope this helps. Good luck.

PS - It is courteous to use the Subject: line when sendin e-mail.

At 12:50 AM 8/1/99 +0930, [EMAIL PROTECTED] wrote [in part]:
>
>hi again,
>  this might be a silly question, but i'm wondering what's the best
>  way to fix the clock on my computer. linux is set to GMT+TZ
>  but the bios clock is already set to the correct timezone
....
>
>  another quasi-trivial issue is the hostname on RH6.0
.... 
>  is called "valdez" when it's on a LAN (at work), i simply
>  set this name in /etc/hosts and all is well. 
>  however, the apache webserver on 'valdez' it only recognises
>  to http://localhost/
>  i notice that $HOST is undefined and $HOSTNAME is the FQDN
>  [EMAIL PROTECTED]  

------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
Palo Alto, CA  94303-3603                       [EMAIL PROTECTED]        
----------------------------------------------------------------

Reply via email to