Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (5) </ 1 2 3 [4] 5 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: ntp time server select ?, how do I configure the time server?< Next Oldest | Next Newest >
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Mar. 02 2008,18:04 QUOTE

For others who might be reading this thread, all of the supported locations are in /usr/share/zoneinfo. If your particular location is not supported then...

1. Make a working directory
   mkdir tzdata
2. Change to it
   cd tzdata
3.  Get the latest zoneinfo data files
   wget ftp://elsie.nci.nih.gov/pub/tzdata2007k.tar.gz
4.  Unpack it
    tar -zxvf tzdata2007k.tar.gz
5. Find your major area
   ls -l
6. Compile for your location, eg, asia
   zic -d zoneinfo asia
7. Find your specific area
   ls -l zoneinfo
8  Copy the newly created zoneinfo file, e.g.,
   sudo zoneinfo/Asia/Saigon /usr/share/zoneinfo/Asia/.

   or to /etc/localtime


HTH
Back to top
Profile PM WEB 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Mar. 02 2008,19:21 QUOTE

Well if it does point to the one in opt, imo that's probably the best one to choose (along with bootlocal, etc.)
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Mar. 03 2008,14:11 QUOTE

I tried this in dsl-3.4.11:
Code Sample
$ sudo mkdir /tmp/tzdata
$ sudo chown dsl /tmp/tzdata
$ sudo chgrp staff /tmp/tzdata
$ cd /tmp/tzdata
$ tar -zxvf tzdata2007k.tar.gz
$ zic -d zoneinfo asia
$ sudo cp zoneinfo/Asia/Dubai /usr/share/zoneinfo/Asia/
$ sudo rm /etc/localtime
$ sudo cp zoneinfo/Asia/Dubai /etc/localtime
$ sudo gettime.lua
Requesting time from: time-nw.nist.gov
Mon Mar  3 14:06:10 UTC 2008


The UTC is correct but the time in the menu bar thing is not updated??
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Mar. 03 2008,15:56 QUOTE

Normally gettime.lua as well as setting localtime is done during the boot process and not from within X-windows.

If one runs the process from within X then restart your window manager to see the results of time in your taskbar.
Back to top
Profile PM WEB 
WDef Offline





Group: Members
Posts: 798
Joined: Sep. 2005
Posted: Mar. 05 2008,22:41 QUOTE

zdump on dsl always seems to give me the wrong time for any location I try, whether listed in /usr/share/zoneinfo or not?  Unless I'm missing something.

This is one reason I wrote my citytime thing.
Back to top
Profile PM 
20 replies since Feb. 28 2008,01:49 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (5) </ 1 2 3 [4] 5 >/
reply to topic new topic new poll
Quick Reply: ntp time server select ?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code