Internet Time Synchronization for Puppy Linux?
-
- Posts: 54
- Joined: Sun 02 Mar 2008, 13:57
Internet Time Synchronization for Puppy Linux?
Anyone using net time synch on puppy?
Search only came out with this from 2005 and the download file is corrupt.
http://www.murga-linux.com/puppy/viewtopic.php?p=1812
Anyone using any recent pet package?
Cheers.
Search only came out with this from 2005 and the download file is corrupt.
http://www.murga-linux.com/puppy/viewtopic.php?p=1812
Anyone using any recent pet package?
Cheers.
Hi
I don't know if this got done, try pm'ing leachim
http://www.murga-linux.com/puppy/viewto ... 6ebb13b594
else:-
http://murga-linux.com/puppy/viewtopic. ... 8995bd486b
http://www.murga-linux.com/puppy/viewto ... a2850d48cd
Aitch
I don't know if this got done, try pm'ing leachim
http://www.murga-linux.com/puppy/viewto ... 6ebb13b594
else:-
http://murga-linux.com/puppy/viewtopic. ... 8995bd486b
http://www.murga-linux.com/puppy/viewto ... a2850d48cd
Aitch
Here's what I have been using:
First, download this file: http://puppylinux.ca/bugs/ntpdate-4.2.4p4_NOMENU.pet
After installing, a window will open with the following instructions:
I called my script timesync.sh and made executable with the command "chmod +x timesync.sh" and added to /etc/rc.d/rc.local
Here are different time servers to replace "0.north-america.pool.ntp.org" depending on your location.
South America: 0.south-america.pool.ntp.org
Asia: 0.asia.pool.ntp.org
Europe: 0.europe.pool.ntp.org
Oceania: 0.oceania.pool.ntp.org
Hope this helps,
JB
First, download this file: http://puppylinux.ca/bugs/ntpdate-4.2.4p4_NOMENU.pet
After installing, a window will open with the following instructions:
Then, all you need is a small script to connect to the server and update your clock. Here's mine:To enable the program to sync to the time server you must go to /etc/services and add the following two lines at the bottom of the file in a new line:
ntp 123/tcp # Network Time Protocol
ntp 123/udp # Network Time Protocol
Code: Select all
#!/bin/sh
# Time Sync
# Requires ntpdate-4.2.4p4_NOMENU.pet to be ran first
/usr/bin/ntpdate 0.north-america.pool.ntp.org
/sbin/hwclock --localtime --systohc
Here are different time servers to replace "0.north-america.pool.ntp.org" depending on your location.
South America: 0.south-america.pool.ntp.org
Asia: 0.asia.pool.ntp.org
Europe: 0.europe.pool.ntp.org
Oceania: 0.oceania.pool.ntp.org
Hope this helps,
JB
Re: Internet Time Synchronization for Puppy Linux
FWIW (not much actually)...accessdenied wrote:Anyone using net time synch on puppy?
pcPuppyOS rc6 has a preconfigured time sync function
Menu > Desktop > Syncronize clock with timeserver
I never got it working, I always get the error message
I tried with various timeservers (in /etc/timeserver) that do work in WinXP/SP2ERROR: Syncronizing your time to the time server
<timeserver> was unsuccessful. It may be a bad
network connection or a dead server (the server to
use is stored in /etc/timeserver)
Edit: Now I also added the ntp 123 lines in /etc/services as suggested by JB4x4 and tried again. Same result, nogo.
[size=84][i]If it ain't broke, don't fix it.[/i] --- erikson
hp/compaq nx9030 (1.6GHz/480MB/37.2GB), ADSL, Linksys wireless router
[url]http://www.desonville.net/[/url]
Puppy page: [url]http://www.desonville.net/en/joere.puppy.htm[/url][/size]
hp/compaq nx9030 (1.6GHz/480MB/37.2GB), ADSL, Linksys wireless router
[url]http://www.desonville.net/[/url]
Puppy page: [url]http://www.desonville.net/en/joere.puppy.htm[/url][/size]
-
- Posts: 54
- Joined: Sun 02 Mar 2008, 13:57
-
- Posts: 54
- Joined: Sun 02 Mar 2008, 13:57
There's a NTP with menu entry when clicked on sync puppys clock, ntpdate-4.2.4p4_m.pet
[img]http://img230.imageshack.us/img230/8595/ubd6467dp2.png[/img]
[url=http://www.tinyurl.com/54tu74]Visit The Repository[/url] - Helpful and hard-to-find treats for Puppy 3.
[url=http://www.tinyurl.com/c5a68f]Click Here for Puppy Support Chat, + Helpful Links.[/url]
[url=http://www.tinyurl.com/54tu74]Visit The Repository[/url] - Helpful and hard-to-find treats for Puppy 3.
[url=http://www.tinyurl.com/c5a68f]Click Here for Puppy Support Chat, + Helpful Links.[/url]
- alexthedragon
- Posts: 3
- Joined: Tue 17 Jun 2008, 09:35
- Location: Denmark
- Contact:
I use it a lot
Thank you, my on board clock is broken, so I use this everyday.
Seems the links are broken to the .pet
I need to set the time at boot at a teaching suite where all of the bios batteries are flat! Replacing them is prohibitively expensive for the make of laptop we are using (Dell D600's)
Edit: Im using puppy 4.21 so this script would be in the /root/Startup folder
I need to set the time at boot at a teaching suite where all of the bios batteries are flat! Replacing them is prohibitively expensive for the make of laptop we are using (Dell D600's)
Edit: Im using puppy 4.21 so this script would be in the /root/Startup folder
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]
Sorry, my server is down atm!
Sorry, my server is down atm!
Hi
Here are copies of both
ntpdate-4.2.4p4_NOMENU.pet
md5sum: b1553e95cc6b2e881734c55c241ec701
and
ntpdate-4.2.4p4_m.pet
md5sum: 1166a4bc0815d353c014852f2d8da718
Hope this helps
CatDude
.
Here are copies of both
ntpdate-4.2.4p4_NOMENU.pet
md5sum: b1553e95cc6b2e881734c55c241ec701
and
ntpdate-4.2.4p4_m.pet
md5sum: 1166a4bc0815d353c014852f2d8da718
Hope this helps
CatDude
.
- Attachments
-
- ntpdate-4.2.4p4_NOMENU.pet
- md5sum = b1553e95cc6b2e881734c55c241ec701
- (27.22 KiB) Downloaded 568 times
-
- ntpdate-4.2.4p4_m.pet
- md5sum = 1166a4bc0815d353c014852f2d8da718
- (32.74 KiB) Downloaded 668 times
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]
Cheers catdude
I installed this pet an ran
Seems the problem was with the /etc/services file. I had to add ntp as a service by adding hese lines to the bottom of the file.
So I ran ntpdate again
OK, so now I had the right time But the date was wrong Today was the 6th of march and the output says 21st of march
So maybe the demon timeserver was out? (unlikely I think but possible...demon internet is, or was, a bit isp in the UK). So I tried..
The date is still out, so as a workaround I did
This wound the clock back fifteen days and I got the right date/time....at least at this boot. Im gonna add these commands to a script in /root/Startup, and reboot and test after disconnecting the power cord!
I installed this pet an ran
Code: Select all
# ntpdate -d ntp.demon.co.uk
21 Mar 11:37:13 ntpdate[29402]: ntpdate 4.2.4p4@1.1520-o Wed Oct 10 14:09:21 Universal 2007 (3)
Looking for host ntp.demon.co.uk and service ntp
Error : Servname not supported for ai_socktype
21 Mar 11:37:13 ntpdate[29402]: can't find host ntp.demon.co.uk
21 Mar 11:37:13 ntpdate[29402]: no servers can be used, exiting
Code: Select all
ntp 123/udp
ntp 123/tcp
Code: Select all
# ntpdate -d ntp.demon.co.uk
21 Mar 11:39:43 ntpdate[31682]: ntpdate 4.2.4p4@1.1520-o Wed Oct 10 14:09:21 Universal 2007 (3)
Looking for host ntp.demon.co.uk and service ntp
host found : ntp.demon.co.uk
transmit(158.152.1.76)
receive(158.152.1.76)
transmit(158.152.1.76)
receive(158.152.1.76)
transmit(158.152.1.76)
receive(158.152.1.76)
transmit(158.152.1.76)
receive(158.152.1.76)
transmit(158.152.1.76)
server 158.152.1.76, port 123
stratum 2, precision -28, leap 00, trust 000
refid [158.152.1.76], delay 0.06039, dispersion 0.00000
transmitted 4, in filter 4
reference time: cf3cc8f3.57a3a8e7 Sat, Mar 6 2010 12:28:35.342
originate timestamp: cf3cccd1.3086162f Sat, Mar 6 2010 12:45:05.189
transmit timestamp: cf5083ff.d3539325 Sun, Mar 21 2010 11:39:43.825
filter delay: 0.06215 0.06039 0.06050 0.06055
0.00000 0.00000 0.00000 0.00000
filter offset: -1292078 -1292078 -1292078 -1292078
0.000000 0.000000 0.000000 0.000000
delay 0.06039, dispersion 0.00000
offset -1292078.653402
21 Mar 11:39:43 ntpdate[31682]: step time server 158.152.1.76 offset -1292078.653402 sec
So maybe the demon timeserver was out? (unlikely I think but possible...demon internet is, or was, a bit isp in the UK). So I tried..
Code: Select all
ntpdate -d 0.pool.ntp.org
21 Mar 12:10:04 ntpdate[29503]: ntpdate 4.2.4p4@1.1520-o Wed Oct 10 14:09:21 Universal 2007 (3)
Looking for host 0.pool.ntp.org and service ntp
transmit(213.154.229.24)
receive(213.154.229.24)
transmit(213.154.229.24)
receive(213.154.229.24)
transmit(213.154.229.24)
receive(213.154.229.24)
transmit(213.154.229.24)
transmit(213.186.41.134)
receive(213.154.229.24)
transmit(213.154.229.24)
receive(213.186.41.134)
transmit(213.186.41.134)
receive(213.186.41.134)
transmit(213.186.41.134)
receive(213.186.41.134)
transmit(213.186.41.134)
receive(213.186.41.134)
transmit(213.186.41.134)
transmit(141.40.103.101)
receive(141.40.103.101)
transmit(141.40.103.101)
receive(141.40.103.101)
transmit(141.40.103.101)
receive(141.40.103.101)
transmit(141.40.103.101)
receive(141.40.103.101)
transmit(141.40.103.101)
server 213.154.229.24, port 123
stratum 2, precision -20, leap 00, trust 000
refid [213.154.229.24], delay 0.08026, dispersion 0.00000
transmitted 4, in filter 4
reference time: cf3cd36c.733e1f35 Sat, Mar 6 2010 13:13:16.450
originate timestamp: cf3cd3ee.119eb59d Sat, Mar 6 2010 13:15:26.068
transmit timestamp: cf508b1c.8b47e8cc Sun, Mar 21 2010 12:10:04.544
filter delay: 0.08568 0.08101 0.08142 0.08026
0.00000 0.00000 0.00000 0.00000
filter offset: -1292078 -1292078 -1292078 -1292078
0.000000 0.000000 0.000000 0.000000
delay 0.08026, dispersion 0.00000
offset -1292078.502609
server 213.186.41.134, port 123
stratum 2, precision -20, leap 00, trust 000
refid [213.186.41.134], delay 0.06505, dispersion 0.00000
transmitted 4, in filter 4
reference time: cf3cd0b1.71481ecd Sat, Mar 6 2010 13:01:37.442
originate timestamp: cf3cd3ee.3609676a Sat, Mar 6 2010 13:15:26.211
transmit timestamp: cf508b1c.b0e8ea39 Sun, Mar 21 2010 12:10:04.691
filter delay: 0.06651 0.06505 0.06572 0.07222
0.00000 0.00000 0.00000 0.00000
filter offset: -1292078 -1292078 -1292078 -1292078
0.000000 0.000000 0.000000 0.000000
delay 0.06505, dispersion 0.00000
offset -1292078.501010
server 141.40.103.101, port 123
stratum 2, precision -20, leap 00, trust 000
refid [141.40.103.101], delay 0.08450, dispersion 0.00000
transmitted 4, in filter 4
reference time: cf3cccbc.9c4be1f8 Sat, Mar 6 2010 12:44:44.610
originate timestamp: cf3cd3ee.79646c3f Sat, Mar 6 2010 13:15:26.474
transmit timestamp: cf508b1c.f2f9335d Sun, Mar 21 2010 12:10:04.949
filter delay: 0.08510 0.08450 0.08589 0.08641
0.00000 0.00000 0.00000 0.00000
filter offset: -1292078 -1292078 -1292078 -1292078
0.000000 0.000000 0.000000 0.000000
delay 0.08450, dispersion 0.00000
offset -1292078.504497
21 Mar 12:10:05 ntpdate[29503]: step time server 213.186.41.134 offset -1292078.501010 sec
Code: Select all
date --set='-15 days'
Sat Mar 6 12:13:51 GMT 2010
Code: Select all
ntpdate -d 0.pool.ntp.org
date --set='-15 days'
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]
Sorry, my server is down atm!
Sorry, my server is down atm!
Ok, that seemed to work! Ive rebooted and pulled the power cord after adding that script and now the date AND time are correct (found out by typing "date" at the command prompt). Well, I can only wait until tommorow to do some more tests.
Im sorry to hear Caneri's server is down too. I have noted in the past it often runs out of bandwidth.
Aitch, thanks for the ebay link. Thinking about it, I am developing a system for Adult education, where they might still have this problem, so it would be better to set the date from the internet each boot rather than correct the BIOS problem, that way the system works whatever the state of the battery. Currently on the machines I just have to press F12 to bring up the boot menu and select "onboard NIC" from the boot menu. This isnt such a drag as having to set the date/time each boot as well. Booting 14 machines in the morning and setting the date on each can be a real time sink before class.
Cheers for your help everyone
Im sorry to hear Caneri's server is down too. I have noted in the past it often runs out of bandwidth.
Aitch, thanks for the ebay link. Thinking about it, I am developing a system for Adult education, where they might still have this problem, so it would be better to set the date from the internet each boot rather than correct the BIOS problem, that way the system works whatever the state of the battery. Currently on the machines I just have to press F12 to bring up the boot menu and select "onboard NIC" from the boot menu. This isnt such a drag as having to set the date/time each boot as well. Booting 14 machines in the morning and setting the date on each can be a real time sink before class.
Cheers for your help everyone
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]
Sorry, my server is down atm!
Sorry, my server is down atm!