Psync Time Synchroniser Version 2.9 & 2.7-64bit

Core libraries and systems
Message
Author
User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#91 Post by tasmod »

Version 2.5

Added code to check for DST not applying to a timezone.
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#92 Post by tasmod »

Version 2.6

Sorry if this is a bit quick on the heels of 2.5

The time servers report back has changed in text length several times. This required a minor rewrite each time, as the report window contained 'bits' of extraneous text.

Now I believe I have trapped a change in text length and compensated for it.

This means no more minor releases just for that.

This issue has always annoyed me. 8)
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#93 Post by tasmod »

Version 2.6-64 for 64bit systems such as FatDog etc
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#94 Post by tasmod »

Slacko needs zdump adding to /usr/bin directory. See first page.
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

Burunduk
Posts: 80
Joined: Sun 21 Aug 2011, 21:44

#95 Post by Burunduk »

Hi,

Psync doesn't set the RTC on my Lupu525 because of two HWCLOCKTIME in the /etc/clock file:

Code: Select all

#Set this to either 'utc' or 'localtime' based on which one your computer's
#hardware clock uses.
HWCLOCKTIME=localtime
#HWCLOCKTIME=utc
Although the last line is commented out, 'HWCLOCKTIME' still matches it. As a result $HTIME is set to "localtime utc" and the hwclock command is never executed. I don't know how this file looks in other Puppies. Maybe '^[[:space:]]*HWCLOCKTIME' or simply '^HWCLOCKTIME' would be a better choice here.

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#96 Post by tasmod »

I don't quite understand what you mean.

You have the hardware clock set as localtime.

What do you want to achieve?
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#97 Post by tasmod »

Sorry, sorry, got it now.

I switched back to 525 to examine my 'clock' file and I only had one entry. HWCLOCKTIME=utc

Not sure if this wasn't changed by the zone wizard.

I now see what you mean about $HTIME not matching using 525 'clock' file.

Strange no-one has mentioned this. I need to alter the grep line as you suggest to accomodate extra lines. It may be when I first made this change that was just one line entry. I'm on 529 just now and 'clock' contains same as you report for your 525.

Ahh, I remember now, this was a later change to Psync to accomodate UTC being set as option in Zone setting wizard. I originally asked users to use localtime setting only to allow DST.

EDIT:

Confirmed. If the zone wizard is used and the tick ' hardware clock set to utc' then the wizard rewrites the 'clock' file with one line only.
My mistake, I missed this when testing the utc function, I didn't realise it changed the file. So it worked OK during my rewrite testing.

Thanks for pointing this out. I will post a new Psync shortly.
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#98 Post by tasmod »

Versions 2.7 and 2.7-64 posted.

Thanks Burunduk
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#99 Post by 01micko »

just a note that Slacko final does contain zdump (no devx)

Code: Select all

# which zdump
/usr/sbin/zdump
Puppy Linux Blog - contact me for access

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#100 Post by tasmod »

Yep thanks Mick.

Have 5.3 on test at moment, just setting everything to my liking.
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#101 Post by tasmod »

Version 2.8 released. Checks and waits for wifi if using autostart.
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

shadower_sc
Posts: 136
Joined: Wed 21 Apr 2010, 23:03
Location: Texas

Time Sync Issue on Live-CDs

#102 Post by shadower_sc »

I was having issues with syncing the time on my Re-Mastered Live-CDs.

It game me a few errors. One of them was that it was unable to connect to the server blah.pool.ntp.org.

I fixed it by including this line at the top of the /root/Startup/timesync.sh file.

Code: Select all

[ ! "`grep 'ntp 123/tcp' /etc/services`" ] && echo -e "ntp 123/tcp\nntp 123/udp" >> /etc/services
When Re-Mastering the CD I had to make sure that I copied the symlink file /etc/localtime to /tmp/etc/.

Make sure the symlink is pointing to the correct time zone by running this command in the /etc/ folder.

Code: Select all

ls -l

gcmartin

Local LAN's NTP

#103 Post by gcmartin »

Questions
  • Is this package enabled to use a NTP server that is already on the local LAN?
  • What must be done to use the local service versus going to the internet via this package?
Thanks in advance

Atle
Posts: 596
Joined: Wed 19 Nov 2008, 12:38
Location: Oslo, Norway
Contact:

#104 Post by Atle »

Thanks for this beauty. My bios battery was dead and this resolved my challenge with https and pidgin, in in certificates due to wrong year etc in hardware.

Thanks to this little piece of software and some instructions, I now got it all automatic...


Thanks again...

Atle

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#105 Post by tasmod »

gcmartin,

The ntp call is to a 'pool' addresses of servers hard coded in the function psync, at the top.

Look at top of that, as a test comment out the pool local to you and add your ntp server address. Try synching and see what happens, that's all I can suggest.

If you use 'Europe' then comment out the Europe pool add your address. Use the 'Europe' button on the gui to test.

Let me know how you get on.
===========

Atle,

Your welcome.
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#106 Post by BarryK »

Psync 2.8 is in the latest Squeezed Arm Puppy (sap) for the Raspberry Pi:

http://bkhome.org/blog/?viewDetailed=02874

...anyone with a RP is invited to test Psync in that environment.
[url]https://bkhome.org/news/[/url]

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#107 Post by jamesbond »

BarryK wrote:Psync 2.8 is in the latest Squeezed Arm Puppy (sap) for the Raspberry Pi:

http://bkhome.org/blog/?viewDetailed=02874

...anyone with a RP is invited to test Psync in that environment.
Binary of ntpdate does not exist inside sap 5.95 Image
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#108 Post by BarryK »

jamesbond wrote:
BarryK wrote:Psync 2.8 is in the latest Squeezed Arm Puppy (sap) for the Raspberry Pi:

http://bkhome.org/blog/?viewDetailed=02874

...anyone with a RP is invited to test Psync in that environment.
Binary of ntpdate does not exist inside sap 5.95 Image
I have remedied that! version 5.96 (alpha2) has been uploaded, see my blog announcement:

http://bkhome.org/blog/?viewDetailed=02879
[url]https://bkhome.org/news/[/url]

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#109 Post by tasmod »

Sorry jamesbond,

I kept trying to upload it but failed. Still, Barry has rectified it anyway.
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#110 Post by Argolance »

EDIT: :arrow: Please jump to this thread.
Cordialement.

Post Reply