LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-26-2006, 05:53 PM   #1
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Updating time automagically


Is there a script somewhere or a Xfce app that will update my system clock?

I know I can do it in KDE, and was wondering ....

(My system time does run slow every once inna while on my laptop. Just a minor annoyance)
 
Old 07-26-2006, 06:13 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
If you're on a network, you can just install ntp.
 
Old 07-26-2006, 07:52 PM   #3
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
I run the following in a terminal, as root:
Code:
/usr/sbin/ntpdate ntp0.cornell.edu
ntp0.cornell.edu is the time-server I use. You can enter your favorite.
example:
Code:
root@peggyo:/home/steve# /usr/sbin/ntpdate ntp0.cornell.edu
26 Jul 19:47:42 ntpdate[2403]: step time server 132.236.56.250 offset -48.205686 sec
root@peggyo:/home/steve#
You can make it a cron job and never worry again.
 
Old 07-27-2006, 02:08 AM   #4
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
I have something like that [diff. time server] in /etc/rc.d/rc.local so that systime gets updated on every boot.

Code:
/usr/sbin/ntpdate <server> && /sbin/hwclock --systohc
 
Old 07-27-2006, 08:17 AM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally Posted by Franklin
ntp0.cornell.edu is the time-server I use. You can enter your favorite.
example:


One suggestion is than rather than picking a particular timeserver, use the pool of virtual time servers. This spreads the load around and prevents any single server from getting hammered. And the pool servers are more than accurate enough for normal use. If you don't think time server overload is a real problem, have a read through this.
 
Old 07-27-2006, 07:52 PM   #6
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
One suggestion is than rather than picking a particular timeserver, use the pool of virtual time servers. This spreads the load around and prevents any single server from getting hammered.
Good idea! Thanks for pointing that out!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automagically Automount Floppy Drive fopetesl Ubuntu 22 07-12-2006 09:16 AM
Full-time job updating CentOS uselpa Red Hat 1 10-28-2005 04:31 PM
automagically mount Magneto-Optical Drive? wytiger Fedora 0 07-27-2004 11:56 PM
XMMS has stopped opening pls automagically Steve Cronje Linux - Software 3 05-04-2004 02:07 AM
Updating System time from some Inet time server Steave Linux - General 6 12-21-2001 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:33 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