how to set timezone in BSD
Pat Barron
pat at orac.pgh.pa.us
Thu Feb 22 17:01:07 AEST 1990
In article <24337 at princeton.Princeton.EDU> tr at samadams.princeton.edu (Tom Reingold) writes:
>How do you set the timezone on a BSD system? It defaults to Pacific
>time.
>
>I am running AOS, IBM's port of BSD for the RT, which is very close
>to the real thing.
In /sys/conf/<YOUR_SYSTEM_NAME>, you will find a line that looks
like:
timezone 8 dst
The "8" is the number of hours that your time zone is West of GMT.
Change this to the appropriate thing (e.g., for Eastern time, you
would change it to "5"), and rebuild the kernel (i.e., do:
% cd /sys/conf
% /etc/config <YOUR_SYSTEM_NAME>
% cd ../<YOUR_SYSTEM_NAME>
% make depend
% make
which produces a vmunix file - move this to /vmunix [but do remember to
save a copy of the old /vmunix first! Copy it to something like /vmunix.old],
and reboot).
>Please *post* the answer, don't mail it.
Why? This is pretty basic stuff - and it's even documented. It's exactly
how you do it for real 4.3BSD.
--Pat.
--
Pat Barron
Internet: pat at orac.pgh.pa.us - or - orac!pat at gateway.sei.cmu.edu
UUCP: ...!uunet!apexepa!sei!orac!pat - or - ...!pitt!darth!orac!pat
More information about the Comp.unix.questions
mailing list