Topic: time sync in CrunchBang?

"Exactly what it says on the tin."  One thing I've taken for granted in other distros is that they have a utility that automatically keep the system clock synced to a time server.  Is such a utility installed in the default CrunchBang setup, or would I need to install and setup something like ntpdate?

while ( ! ( succeed = try() ) );

Re: time sync in CrunchBang?

Well, on statler alpha2 it's not installed. It should be installed by default I think. I don't know if it's installed in the last iso(crunchbang-10-20101205).

Last edited by Sergio17771 (2010-12-07 07:53:37)

Re: time sync in CrunchBang?

So anyone have a step-by-step for setting this up?  Google turned up a few pages, but everything I looked at skips a few steps, assuming the reader either already knows how to do them or everything's already been configured properly.

while ( ! ( succeed = try() ) );

Re: time sync in CrunchBang?

A tutorial I shall prepare for you:

1. sudo aptitude install ntpdate
2. go to http://www.pool.ntp.org/en/ and find a nice ntp server. I live in the Nether so I chose for myself 1.nl.pool.ntp.org
3. sudo ntpdate [insertserverdomainhere]

Done

Meh. Interested for a Dropbox alternative? Go to https://launchpad.net/tart

Re: time sync in CrunchBang?

I think you just install ntpdate , restart and your time  will be synced immediately through internet( mostly will be synced even without reboot after install)

Re: time sync in CrunchBang?

i have it on my daily activities list tongue
i added this line to /etc/crontab

0 */5 * * * root /home/ali/.alistuff/scripts/update.sh

the update.sh script:

#!/bin/bash
sudo aptitude update
sudo ntpdate pool.ntp.org

as you can probably tell, it updates aptitude and syncronises every 5 hours
why update aptitude?
because my conky also has this line 

${execi 3600 aptitude search "~U" | wc -l} updates available.

which returns the number of available updates so i know to dist-upgrade

Last edited by ali (2010-12-08 04:50:20)

Re: time sync in CrunchBang?

Many thanks for above tutorial, it worked for me!

Re: time sync in CrunchBang?

pvsage wrote:

"Exactly what it says on the tin."  One thing I've taken for granted in other distros is that they have a utility that automatically keep the system clock synced to a time server.  Is such a utility installed in the default CrunchBang setup, or would I need to install and setup something like ntpdate?


Stock here...


kd5ob@roam:~/.config/openbox$ ps ax | grep ntp
2428 ?        Ss     0:01 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 101:103
4270 pts/0    S+     0:00 grep --color=auto ntp
kd5ob@roam:~/.config/openbox$

Re: time sync in CrunchBang?

Wow, this is an old thread; I should have probably marked it "solved" over a year ago.  At any rate, in the two latest "point releases" of Statler, ntpd is installed and enabled by default.

while ( ! ( succeed = try() ) );