LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-12-2004, 09:12 PM   #1
WarlockofVirgo
Member
 
Registered: Mar 2004
Location: Toronto, Canada
Distribution: SUSE 9.1
Posts: 67

Rep: Reputation: 15
How do I synchronize clock on Linux?


On Windows XP the clock automatically synchronizes with some time server. How can I do that on SuSE 9.1?
 
Old 09-12-2004, 10:24 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I don't have Suse booted up right now so just guessing that it's the same for Redhat.

Right click on the clock ( lower right of screen )
Select: Adjust Date & Time...
Select: Date & Time tab
[X] Enable Network Time Protocol
Server______________
 
Old 09-12-2004, 10:39 PM   #3
WarlockofVirgo
Member
 
Registered: Mar 2004
Location: Toronto, Canada
Distribution: SUSE 9.1
Posts: 67

Original Poster
Rep: Reputation: 15
I tried but it brings up YAST to change the time, date, region and time zone. That's all it lets me change.

This is just one thing out of a growing stack of little anoyances in SuSE. I'm about a c*nt hair from switching distros. Maybe Mandrake.
 
Old 09-12-2004, 10:42 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
maybe you dont have the ntp client installed ?

the feates on right clicking the clock are of the desktop environment (kde / gnome)
changinf distro wont make any difference if it sues same desktop environment.

Last edited by qwijibow; 09-12-2004 at 10:43 PM.
 
Old 09-12-2004, 10:48 PM   #5
WarlockofVirgo
Member
 
Registered: Mar 2004
Location: Toronto, Canada
Distribution: SUSE 9.1
Posts: 67

Original Poster
Rep: Reputation: 15
I have it installed but it says "Your network connection must be started before the NTP daemon starts." in YAST. I have dialup.
 
Old 09-13-2004, 07:48 AM   #6
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
then start your dialup ocnnection before starting ntp.
 
Old 09-13-2004, 02:39 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
The ntpdate command can manually set the clock. Then you do not need to run the ntpd deamon.
 
Old 09-13-2004, 06:06 PM   #8
max_sipos
Member
 
Registered: Jul 2004
Posts: 96

Rep: Reputation: 15
Another posibility is to use ntpdate in a daily cronjob. It is particularly useful since you avoid having a deamon running all the time and the time barely drops out of sync in one day.
 
Old 09-13-2004, 06:12 PM   #9
WarlockofVirgo
Member
 
Registered: Mar 2004
Location: Toronto, Canada
Distribution: SUSE 9.1
Posts: 67

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by max_sipos
Another posibility is to use ntpdate in a daily cronjob. It is particularly useful since you avoid having a deamon running all the time and the time barely drops out of sync in one day.
How do I set up a cronjob? Is there a user friendly GUI in SuSE I can use or am I going to have to whip out the Konsole?
 
Old 09-13-2004, 06:38 PM   #10
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
There is a utility called chrony, which, when properly setup (easy) will automagically synchronize with the atomic clocks you specify in the config file anytime you connect to the internet. It is designed specifically for intermittent internet connections such as dialup. The documentation includes examples of config file entries to make. You can get lists of atomic clocks around the world to which you can synchronize. Just google up "public ntp time servers" to find and download a list of servers.

Once it's setup, it runs in background. Does it all for you.

Last edited by bigrigdriver; 09-13-2004 at 06:41 PM.
 
Old 09-13-2004, 09:12 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
A cronjob will run a task at a specific time. It will run anyway even if your not connected. I've never used dialup with linux but I do believe you can run a command after the dialer connects.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System clock correct, hardware clock wrong karlovac Linux - General 5 01-16-2009 07:19 PM
synchronize time between linux and XP server taiwf Linux - General 1 11-03-2005 09:52 PM
Synchronize Pocket PC With Red Hat Linux? javacvb Linux - Newbie 8 07-01-2004 05:17 AM
synchronize linux domain time to workstation sunnyee Linux - Newbie 2 06-25-2004 04:37 AM
Synchronize Password... chuck77 Linux - General 2 03-13-2002 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration