Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Local time zone must be set--see zic manual page [ SOLVED ]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
rdk
n00b
n00b


Joined: 31 Jul 2005
Posts: 27
Location: Zadar, Croatia

PostPosted: Sun Aug 14, 2005 9:39 pm    Post subject: Local time zone must be set--see zic manual page [ SOLVED ] Reply with quote

I had this problem for quite some time and wasn't able to resolve it.

When you type
Code:
uname -a


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 :evil: ... 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:
Code:
date MMDDhhmmYYYY


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
View user's profile Send private message
stuartward
n00b
n00b


Joined: 27 Mar 2006
Posts: 1
Location: Bristol

PostPosted: Mon Mar 27, 2006 8:08 pm    Post subject: Reply with quote

All that is necessary is to provide a link.
ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime

-- Stuart
http://wardrowntree.pwp.blueyonder.co.uk/
Back to top
View user's profile Send private message
AssociateX
Tux's lil' helper
Tux's lil' helper


Joined: 19 Feb 2004
Posts: 134
Location: North Dakota

PostPosted: Wed Mar 07, 2007 2:55 am    Post subject: Reply with quote

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
View user's profile Send private message
HTS
Guru
Guru


Joined: 20 Feb 2006
Posts: 410
Location: Bristol, UK

PostPosted: Thu Mar 22, 2007 11:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
eternalnyte
n00b
n00b


Joined: 24 Mar 2007
Posts: 6

PostPosted: Sat Mar 24, 2007 3:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
dsamersoff
n00b
n00b


Joined: 20 Feb 2007
Posts: 30
Location: St.Petersburg,Russia

PostPosted: Mon Sep 26, 2011 12:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
dsamersoff
n00b
n00b


Joined: 20 Feb 2007
Posts: 30
Location: St.Petersburg,Russia

PostPosted: Mon Sep 26, 2011 1:32 pm    Post subject: Reply with quote

fixed. My kernel was build with unset timezone.
_________________
*There will come soft rains ...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum