You are not logged in.

#1 2006-10-09 18:26:04

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

[solved] Sync clock from command line?

Do a linux program like cmdline3 ( http://www.softshape.net/download/ ) for Windows exists?
I do not know why, but my clock often become wrong...
Thanks

Offline

#2 2006-10-09 19:33:43

noriko
Member
From: In My Mind
Registered: 2006-06-09
Posts: 535
Website

Re: [solved] Sync clock from command line?

i uploaded a script which i found on some gentoo forum, i think.. that is able to fix it, well for me anyways..
i read somewhere it's often caused by a winb[bl]ows/dualboot..

http://arch.j2k.cc/pub/utz


The.Revolution.Is.Coming - - To fight, To hunger, To Resist!

Offline

#3 2006-10-09 20:30:54

cheer
Member
From: Russia, St. Petersburg
Registered: 2006-08-02
Posts: 131

Re: [solved] Sync clock from command line?

#ntpdate -s pool.ntp.org

Offline

#4 2006-10-10 09:23:57

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: [solved] Sync clock from command line?

Sometime I really feel a little stupid.. it was in the 'current' repo... I just missed it.

the program is called 'rdate' it connects to a time server and fix your clock or just show the time...
I just a working server, the program do not list any: tick.greyware.com
So to fix your clock use:
rdate -s tick.greyware.com
as root. I made a cron job.

Offline

#5 2006-10-10 10:37:12

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: [solved] Sync clock from command line?

its better to just set it once and let ntp daemon take care of the rest. It will gradually  adjust your time versus abropt changes which will confuse programs and logs.

Offline

#6 2006-10-10 11:00:26

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: [solved] Sync clock from command line?

good point... but what the ntp daemon is?

Offline

#7 2006-10-10 12:30:40

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: [solved] Sync clock from command line?

ezzetabi wrote:

good point... but what the ntp daemon is?

The NTP daemon polls an NTP server of your choice at regular intervals, and syncs your clock to it.  http://gentoo-wiki.com/NTP has some good info.


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

Board footer

Powered by FluxBB