time synchronisation


Forum: User Feedback
Topic: time synchronisation
started by: damianiw

Posted by damianiw on July 18 2005,13:26
How can I configure DSL to update it's time off the internet ?
Posted by cbagger01 on July 18 2005,20:12
Try installing the

ntpdate

package from the Debian repository.  You can get it by enable Apt and then

sudo apt-get install ntpdate

or you can just use Synaptic and choose it from the menu.

Posted by damianiw on July 20 2005,21:59
thanks again

am I being silly or is there a bunch of updated and searchable how to's ? I use the search on the forum before asking these things.

Posted by cbagger01 on July 21 2005,02:58
There are a couple howto pdf docs at the download site.  There also is a documentation site, click on "Documentation" at the top of the damnsmalllinux.org home page.

The search button kinda works, but the search methods are nonstandard vs. google-like searches.

For example, all searches should be done specified ALL FORUMS and FROM THE BEGINNING or NEWER

and the keyword syntax is OR based instead of AND based.

So if you search for

cat dog

you will get all "cat" posts, all "dog" posts and all "cat dog" posts.  Also, partial wildcard searches must be specified too.

Here is an example of a good keyword search:

cat* AND dog*

This will only find results that contain both "cat" and "dog" but because of the "*", it will also find "cats" and "dogs"

Hope this helps.

Posted by newOldUser on July 21 2005,16:42
cbagger01,

Well said.  I wish your Cat Dog example could be displayed on the search page. I think it would help everyone.

Posted by cbagger01 on July 22 2005,02:54
I agree that this information would be helpful at the top of the search page.

Since this forum is based on php+html, it should be pretty easy to do.

If not, this information should be added to the DSL documentation site.

Posted by NotTheMama on July 22 2005,11:26
What I've done to get time synchonisation is download ntpdate and ntpd from a debian site.
Then I used < 7-zip > on windows to unpack the files you need and move them to dsl.
Before I start ntpd I run ntpdate (ntpd will sometimes complain about too large difference, ntpdate not).
Edit the right conf files and you're done.
I didn't want to apt-get.
etc/ntp.conf
etc/default/ntpdate
etc/init.d/ntpdate
usr/sbin/ntpd
usr/sbin/ntpdate
usr/share/zoneinfo/Europe/Amsterdam
The timezone I got from another deb file.

Posted by damianiw on Aug. 08 2005,14:06
I've got ntpdate installed (using the info here - thanks) and backed it up so it's there when I reboot !

However, My clock is 5 hours out so the timezone isn't working, I deleted the localtime symbolic link and made a new one to the Europe/London Timezone File (Which I took off Redhat 7.1 - it's all I had)

but it still seems to be working to the default timezone, the minutes and date are OK but not the hours  - - - Can anyone help ?

Posted by NotTheMama on Aug. 09 2005,07:44
Hi,

When I was trying to get the right time, I was using the hwclock command.
One of the options (-s or -w) gave me the right time.

On my machines (not the latest) the script /etc/init.d/knoppix-autoconfig will recreate /etc/localtime on every boot using the LANGUAGE option in bootparams.

Using "date" can you verify the TIMEZONE is correct?
Here is says CEST using TIMEZONE=Europe/Amsterdam.

Posted by damianiw on Aug. 09 2005,14:29
Quote (NotTheMama @ Aug. 09 2005,03:44)
Hi,

When I was trying to get the right time, I was using the hwclock command.
One of the options (-s or -w) gave me the right time.

On my machines (not the latest) the script /etc/init.d/knoppix-autoconfig will recreate /etc/localtime on every boot using the LANGUAGE option in bootparams.

Using "date" can you verify the TIMEZONE is correct?
Here is says CEST using TIMEZONE=Europe/Amsterdam.

Hmm,,

my timezone is wrong, set as EDT

hwclock -s or -w made no difference,

what should I set for LANGUAGE ?

Thanks

Posted by NotTheMama on Aug. 09 2005,14:50
Hi.

In /etc/sbin/knoppix-autoconfig the LANGUAGE=uk will set the following variables:
COUNTRY="uk"
LANG="en_GB"
LANGUAGE="en"
KEYTABLE="uk"
XKEYBOARD="uk"
KDEKEYBOARD="gb"
CHARSET="iso8859-1"
KDEKEYBOARDS="us"
TZ="Europe/London"

So thats ok. At least if you also copy your timezone file to /usr/share/zoneinfo/Europe/London

Does "hwclock -r" give the same time as "date"?

Posted by damianiw on Aug. 10 2005,08:46
HW Clock returns the right time !

When I specify land=UK it complains the file /Europe/London doesn't exist, and date reports the time zone is still not set to GMT or the correct time.

So how do I get these files there ? I ask because DSL restores the files after the knoppix autoconfig so the files will be there to late !

???

It would be nice to have a remaster option where I could add my country

Posted by NotTheMama on Aug. 10 2005,10:15
The machines I run ntpdate and ntpd on, have a hd-install of dsl on it. So I don't have a problem. I do however also have a frugal install which still needs time sync.

I think a remaster is the best option. (Why /etc/init.d/knoppix-autoconfig has an option for language and timezones but cannot be used is a good question)
Found the debian file with the timezones: < libc6 >

Some other links:
< ntpdate >

< ntpd >

I use < 7-zip > on windows to unpack them.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.