View previous topic :: View next topic |
Author |
Message |
rdk n00b
Joined: 31 Jul 2005 Posts: 27 Location: Zadar, Croatia
|
Posted: Sun Aug 14, 2005 9:39 pm Post subject: Local time zone must be set--see zic manual page [ SOLVED ] |
|
|
I had this problem for quite some time and wasn't able to resolve it.
When you type
Which would output this, for example:
Code: | Linux rebus-rdk 2.6.12-gentoo-r6 #7 SMP Local time zone must be set--see zic manual page 2005 i686 AMD Athlon(tm) pros}ssor AuthenticAMD GNU/Linux |
I coludn't figure out how to use this `zic compiler' ( Zone Information Compiler ), have been so many times through `man zic' but no luck... until tonight.
Haven't actually write any real source timezone files but rather downloaded already writen one.
I have googled alot and found out that many people having this "problem" haven't get a straight forward solution, and would often be pointed to Gentoo Install Handbook on section how to create time zone, wich of course would not solve their "problem".
I have quoted problem cause this is more of esthetic nature and doesn't have really that much impact on system operation.
Why is it necessary to compile localzone with `zic' i don't know i don't want to know ... but here is what to do:
First visit:
http://cvs.opensolaris.org/source/xref/usr/src/cmd/zic/
and download one of the timezones in raw format.
For example Europe timezone.
http://cvs.opensolaris.org/source/raw/usr/src/cmd/zic/europe
Next of, as root do following:
Code: | zic -d /usr/share/lib/zoneinfo/ europe
zic -l /usr/share/lib/zoneinfo/europe/YOUR_ZONE |
First comand creates timezone "database" in /usr/share/lib/zoneinfo/ directory.
Second links binary timezone file to /etc/localtime.
If there is already something in /usr/share/lib/zoneinfo/ i suggest backing it up and
Code: | rm -Rf /usr/share/lib/zoneinfo/* |
before you run `zic'.
Now you should recompile your kernel so it pick's up new localzone. I guess that you already know how to do that...
Just a reminder:
Code: | cd /usr/src/linux
make xconfig
make && make modules_install
cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel
cp System.map /boot/System.map
** edit your /etc/lilo.conf **
lilo -v -v |
Reboot the machine, and uname -a should say something like:
Code: | Linux rebus-rdk 2.6.12-gentoo-r6 #7 SMP Mon Aug 15 00:48:00 CEST 2005 i686 AMD Athlon(tm) pros}ssor AuthenticAMD GNU/Linux |
For more info on `zic' see manual page ( man zic ) or visit
http://linux.com.hk/PenguinWeb/manpage.jsp?section=8&name=zic
Also after reboot, your clock probably won't be correct so you will have to set correct time using `date' command ( man date ).
The usual format for setting date is:
where MM = Month, DD = Day, hh = Hour ( 24 ) , mm = Minute, YYYY = Year.
I hope this post helps, if anyone has posted this before me i am sorry, but i was unable to find it.
Also i am not much of english writer so excuse any typos... _________________
Quote: | /* Would you like to try our SMCC Delux? */
/* Lettuce, tomato, buggy hardware (no extra charge)? */
/* Take care. */ |
|
|
Back to top |
|
|
stuartward n00b
Joined: 27 Mar 2006 Posts: 1 Location: Bristol
|
|
Back to top |
|
|
AssociateX Tux's lil' helper
Joined: 19 Feb 2004 Posts: 134 Location: North Dakota
|
Posted: Wed Mar 07, 2007 2:55 am Post subject: |
|
|
What if /etc is on a separate partition? wouldn't it be better to:
Code: | cp /usr/share/zoneinfo/Europe/London /etc/localtime |
_________________ AssociateX
Gentoo rocks! |
|
Back to top |
|
|
HTS Guru
Joined: 20 Feb 2006 Posts: 410 Location: Bristol, UK
|
Posted: Thu Mar 22, 2007 11:30 pm Post subject: |
|
|
Imho better to link in case some weird governmental measure changes the time in London and /usr/share/timezone/Europe/London is modified :p
But since that won't happen, cp is the same as ln -s _________________ Plasma desktop on Core i7 8086K OC @ 5GHz, 64GB DDR4, 2 x M.2 Samsung 970 PRO 1TB SSDs |
|
Back to top |
|
|
eternalnyte n00b
Joined: 24 Mar 2007 Posts: 6
|
Posted: Sat Mar 24, 2007 3:43 pm Post subject: |
|
|
for the record, you'll almost never need to use zic unless you're using an unmaintained distribution and there are changes to your timezone (such as the Daylight Savings time mess in the US this year..).
Were that to be the case you'd download the current tzdata from ftp://elsie.nci.nih.gov/pub/ and do something like:
Code: | mkdir tzdata
cd tzdata
tar xzvf ../tzdata2007d.tar.gz
zic northamerica |
and it will build the zoneinfo files in /usr/share/zoneinfo. Or, if overwriting files in /usr/share/zoneinfo is unsettling for you you could always (after unpacking the tar file):
Code: | cd tzdata
mkdir zoneinfo
zic -d zoneinfo northamerica |
and you can preview/copy the files you want (e.g. zoneinfo/America/Chicago) from the zoneinfo directory you just created to /etc or /usr/share/zoneinfo as needed |
|
Back to top |
|
|
dsamersoff n00b
Joined: 20 Feb 2007 Posts: 30 Location: St.Petersburg,Russia
|
Posted: Mon Sep 26, 2011 12:55 pm Post subject: |
|
|
Have the same issue:
Code: |
lilu:make#ls -l /etc/localtime
lrwxrwxrwx 1 root root 33 Sep 17 02:56 /etc/localtime -> /usr/share/zoneinfo/Europe/Moscow
lilu:make#date
Mon Sep 26 16:54:20 MSD 2011
Linux lilu 3.0.4 #5 SMP PREEMPT Thu Sep 15 14:51:58 Local time zone must be set-- i686 Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz GenuineIntel GNU/Linux
|
_________________ *There will come soft rains ... |
|
Back to top |
|
|
dsamersoff n00b
Joined: 20 Feb 2007 Posts: 30 Location: St.Petersburg,Russia
|
Posted: Mon Sep 26, 2011 1:32 pm Post subject: |
|
|
fixed. My kernel was build with unset timezone. _________________ *There will come soft rains ... |
|
Back to top |
|
|
|