My original question:
> This is very frustrating and very simple.... How do you change the timezone
> on a 4/330 running 4.1.1? The only place I can find it mentioned is under
> SunInstall. Surely I don't have to reinstall the OS just because the time-
> zone is wrong??
The answer as supplied by many, many people is as follows:
The timezone is determined by the file
/usr/share/lib/zoneinfo/localtime
which is a link to one of the files in that directory
(/usr/share/lib/zoneinfo) or one of its subdirectories. You can use
'ls -iR' to see what localtime is currently linked to. Remove (or
move) the old link and make a new one. Most people suggested rebooting
to make sure everything gets the new time. One person noted that this
can make a real mess out of makefiles (depending on which way you
adjust the clock!!!)
If you are diligent/smart enough to figure out where to look, this
information is available on the Sun. It is in
/usr/etc/install/config_host.
Several people mentioned zic(8), which is a timezone file compiler
(in case none of the standard ones work) and tzsetup(8) which installs
old style time info in the kernal so pre-SunOS 4.0 binaries can get the
correct time.
Many thanks to all who took the time to reply.
In quick summary:
% su
# cd /usr/share/lib/zoneinfo
# ls -iR (if you want to see what 'localtime' is
currently linked to)
# mv localtime localtime- (if you want to save the current timezone)
# ln NEWTIMEZONE_FILE localtime
# reboot (to make sure everybody gets the point)
---------------------------------------------------------------------
Jim Wildman, Production Manager
Lynxys, Inc UUCP = {backbone}!pur-ee!lynxys!jaw
Lafayette, IN or
317/447-7047 jaw%lynxys.uucp@ee.ecn.purdue.edu
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:19 CDT