Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 Oct 2014, 20:10
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Internet Time Synchronization for Puppy Linux?
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
accessdenied

Joined: 02 Mar 2008
Posts: 54

PostPosted: Sat 19 Apr 2008, 10:10    Post_subject:  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.
Back to top
View user's profile Send_private_message 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Sat 19 Apr 2008, 10:58    Post_subject:  

Hi
I don't know if this got done, try pm'ing leachim

http://www.murga-linux.com/puppy/viewtopic.php?p=178500&sid=0a6ee5fdfe07c9611b9e956ebb13b594

else:-

http://murga-linux.com/puppy/viewtopic.php?p=140885&sid=fce48321ae8b47ea7459f58995bd486b

http://www.murga-linux.com/puppy/viewtopic.php?search_id=594212217&t=14173&sid=2f97fccec8f57d6e04ea95a2850d48cd

Aitch
Back to top
View user's profile Send_private_message 
JB4x4

Joined: 30 Jul 2006
Posts: 256

PostPosted: Sat 19 Apr 2008, 11:37    Post_subject:  

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:
Quote:

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


Then, all you need is a small script to connect to the server and update your clock. Here's mine:

Code:

#!/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


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
Back to top
View user's profile Send_private_message YIM 
erikson


Joined: 27 Feb 2008
Posts: 735
Location: Ghent, Belgium

PostPosted: Sat 19 Apr 2008, 13:26    Post_subject: Re: Internet Time Synchronization for Puppy Linux  

accessdenied wrote:
Anyone using net time synch on puppy?

FWIW (not much actually)...

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
Quote:
ERROR: 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)

I tried with various timeservers (in /etc/timeserver) that do work in WinXP/SP2

Edit: Now I also added the ntp 123 lines in /etc/services as suggested by JB4x4 and tried again. Same result, nogo.

_________________
If it ain't broke, don't fix it. --- erikson
hp/compaq nx9030 (1.6GHz/480MB/37.2GB), ADSL, Linksys wireless router
http://www.desonville.net/
Puppy page: http://www.desonville.net/en/joere.puppy.htm

Back to top
View user's profile Send_private_message Visit_website 
accessdenied

Joined: 02 Mar 2008
Posts: 54

PostPosted: Sat 19 Apr 2008, 14:08    Post_subject:  

Thanks all for your input.

JB4x4, will definitely try your method. what puppy distro are you using with this?

cheers.
Back to top
View user's profile Send_private_message 
accessdenied

Joined: 02 Mar 2008
Posts: 54

PostPosted: Sat 19 Apr 2008, 14:25    Post_subject:  

JB4x4,
Curious, in your script, can multiple sites be added in case 0.north-america.pool.ntp.org is down?

Also, where did you put this file on your machine?

Regards.
Back to top
View user's profile Send_private_message 
Wolf Pup

Joined: 27 Apr 2006
Posts: 637

PostPosted: Sat 19 Apr 2008, 14:42    Post_subject:  

There's a NTP with menu entry when clicked on sync puppys clock, ntpdate-4.2.4p4_m.pet
_________________

Visit The Repository - Helpful and hard-to-find treats for Puppy 3.
Click Here for Puppy Support Chat, + Helpful Links.
Back to top
View user's profile Send_private_message 
alexthedragon


Joined: 17 Jun 2008
Posts: 3
Location: Denmark

PostPosted: Sun 27 Jul 2008, 15:39    Post_subject: I use it a lot  

Thank you, my on board clock is broken, so I use this everyday.
Back to top
View user's profile Send_private_message Visit_website MSNM 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Fri 05 Mar 2010, 08:39    Post_subject:  

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) Sad

Edit: Im using puppy 4.21 so this script would be in the /root/Startup folder

_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send_private_message Visit_website MSNM 
nic2109

Joined: 01 Jan 2007
Posts: 406
Location: Hayslope, near Middlemarch, Midlands, England

PostPosted: Fri 05 Mar 2010, 08:50    Post_subject:  

ecomoney wrote:
Seems the links are broken to the .pet.

You could try sending a PM to forum member 'caneri'. I believe he maintains (and funds, so please be polite) puppylinux.ca.

_________________
Nick
Back to top
View user's profile Send_private_message 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Fri 05 Mar 2010, 09:31    Post_subject:  

Rob,

D600 Cmos batteries, are £2.79 each freepost from HK on ebay

Buy 10 and get postage discount.... Wink

Aitch Smile
Back to top
View user's profile Send_private_message 
CatDude


Joined: 03 Jan 2007
Posts: 1484
Location: UK

PostPosted: Fri 05 Mar 2010, 09:46    Post_subject:  

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
.
ntpdate-4.2.4p4_NOMENU.pet
Description  md5sum = b1553e95cc6b2e881734c55c241ec701
pet

 Download 
Filename  ntpdate-4.2.4p4_NOMENU.pet 
Filesize  27.22 KB 
Downloaded  363 Time(s) 
ntpdate-4.2.4p4_m.pet
Description  md5sum = 1166a4bc0815d353c014852f2d8da718
pet

 Download 
Filename  ntpdate-4.2.4p4_m.pet 
Filesize  32.74 KB 
Downloaded  468 Time(s) 

_________________

Back to top
View user's profile Send_private_message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Sat 06 Mar 2010, 09:26    Post_subject:  

Cheers catdude

I installed this pet an ran

Code:
# 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


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.

Code:
ntp      123/udp
ntp       123/tcp


So I ran ntpdate again

Code:

# 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


OK, so now I had the right time Smile But the date was wrong Sad 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..

Code:
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


The date is still out, so as a workaround I did

Code:

date --set='-15 days'
Sat Mar  6 12:13:51 GMT 2010


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! Smile

Code:
ntpdate -d 0.pool.ntp.org
date --set='-15 days'

_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send_private_message Visit_website MSNM 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Sat 06 Mar 2010, 09:43    Post_subject:  

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 Smile

_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send_private_message Visit_website MSNM 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1013s ][ Queries: 13 (0.0050s) ][ GZIP on ]