![]() ![]() |
Dec 16 2003, 07:42 AM
Post
#1
|
|
|
Group: Members Posts: 82 Joined: 10-December 03 Member No.: 1,130 |
I was wondering what NTP clients exist for the Zaurus - that is, for sync'ing the system clock with an Internet time server. ISTR there's a commercial program on Handango ("Drifter"?), but are there any alternatives (command-line or graphical)?
Many thanks, Tim |
|
|
|
Dec 17 2003, 04:22 PM
Post
#2
|
|
|
Group: Members Posts: 207 Joined: 7-July 03 From: Thousand Oaks, CA Member No.: 9 |
Hint: Googling "Zaurus NTP" turned up several hits.
It looks like there is a copy of ntpdate here, with instructions: www.geocities.co.jp/SiliconValley-Bay/1180/download.html (use Babelfish to translate) I found a beta copy of qpe-ndate, with source code, here: http://www.oeste.de/download/ I haven't tested these, so use at your own risk... |
|
|
|
Dec 17 2003, 04:56 PM
Post
#3
|
|
|
Group: Posts: 0 Joined: -- Member No.: 0 |
QUOTE are there any alternatives (command-line or graphical)? I run this shell script from an icon. (only good for USA time zones) Substitute for your location. # cat runtime.sh #!/bin/sh $QPEDIR/bin/evm -Xprogress:2000 -XappName=runtime.sh -appletviewer http://nist.time.gov/timezone.cgi?Hawaii-A...tian/d/-10/java # |
|
|
|
Dec 17 2003, 05:08 PM
Post
#4
|
|
|
Group: Members Posts: 32 Joined: 9-December 03 Member No.: 1,094 |
Opie's date and time settings application has an option to use NTP; it comes as standard on OZ. I'm pretty sure this is the command line NTP program used by Open Zaurus and that it would probably work on a Sharp ROM but I'm not promising.
|
|
|
|
Dec 17 2003, 05:56 PM
Post
#5
|
|
|
Group: Posts: 0 Joined: -- Member No.: 0 |
|
|
|
|
Dec 17 2003, 06:01 PM
Post
#6
|
|
|
Group: Posts: 0 Joined: -- Member No.: 0 |
Frontend for rdate to get a servers time
http://docs.zaurus.com/feed/synchronizeclo...ock_1.0_arm.ipk |
|
|
|
Dec 17 2003, 06:21 PM
Post
#7
|
|
|
Group: Posts: 0 Joined: -- Member No.: 0 |
It works.
# rdate -p 132.163.4.101 Thu Dec 18 02:19:52 2003 |
|
|
|
Dec 17 2003, 06:44 PM
Post
#8
|
|
|
Group: Posts: 0 Joined: -- Member No.: 0 |
QUOTE Frontend for rdate to get a servers time This works if it runs with root privilege. I tried server NIST server 132.163.4.101 |
|
|
|
Dec 17 2003, 08:39 PM
Post
#9
|
|
|
Group: Posts: 0 Joined: -- Member No.: 0 |
The time is wrong with rdate after suspend and resume. I need to set the time in the Date/Time application.
|
|
|
|
Dec 17 2003, 08:59 PM
Post
#10
|
|
|
Group: Posts: 0 Joined: -- Member No.: 0 |
Thanks to doseas for finding an app that works.
ntpdate_ntp-4.1.1b-z-4_arm works and the time holds after suspend/resume. I also installed rdate. |
|
|
|
Dec 17 2003, 09:08 PM
Post
#11
|
|
|
Group: Posts: 0 Joined: -- Member No.: 0 |
# ntpdate 132.163.4.101
18 Dec 05:05:46 ntpdate[12358]: step time server 132.163.4.101 offset 240253.508038 sec Write to trigger. # date Thu Dec 18 05:06:33 UTC 2003 # sucess! Sorry for all the posts. |
|
|
|
Dec 17 2003, 10:05 PM
Post
#12
|
|
|
Group: Posts: 0 Joined: -- Member No.: 0 |
The correct date holds after reboot. ntpdate must change the hardware clock. You don't need rdate for ntpdate to work. Now I can assign an icon to the ntpdate script.
|
|
|
|
Dec 18 2003, 12:56 AM
Post
#13
|
|
|
Group: Members Posts: 82 Joined: 10-December 03 Member No.: 1,130 |
Thanks for the multitude of suggestions here - I'll give them a try!
Tim |
|
|
|
Dec 18 2003, 06:33 AM
Post
#14
|
|
|
Group: Posts: 0 Joined: -- Member No.: 0 |
Here are two scripts to run ntpdate. Call runntpdate from an icon.
# pwd /home/QtPalmtop/bin # cat runntpdate #!/bin/sh qcop QPE/Application/embeddedkonsole 'setDocument(QString)' '/home/QtPalmtop/bin/setntpdate.sh' exit 0 # # cat setntpdate.sh #!/bin/sh su -c '/home/root/usr/bin/ntpdate 132.163.4.101' echo set date/time with ntpdate date exit 0 # output looks like this in embeddedkonsole. $ su -c '/home/QtPalmtop/bin/setntpdate.sh' Password: 18 Dec 14:30:03 ntpdate[1237]: adjust time server 132.163.4.101 offset -0.008508 sec Write to trigger. set date/time with ntpdate Thu Dec 18 14:30:03 UTC 2003 $ |
|
|
|
Dec 18 2003, 11:46 AM
Post
#15
|
|
|
Group: Posts: 0 Joined: -- Member No.: 0 |
You can use rdate to set the software clock and sync the hardware clock.
Sending a command to the pipe /var/spool/at/trigger causes the hwclock to sync up with the software clock. That is what ntpdate does. # rdate 132.163.4.101 # echo 'W' > /var/spool/at/trigger I verified that the adjusted date and time hold after suspend/resume and after reboot. |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 18th May 2013 - 09:00 AM |