|
Ntp MediaServer.Ntp HistoryShow minor edits - Show changes to markup April 09, 2007, at 09:57 PM
by -
Changed lines 15-16 from:
ntpdate will automatically run while bboting your system. Ubuntu stores script at /etc/network/if-up.d/ntpdate location. to:
ntpdate will automatically run while booting your system. Ubuntu stores script at /etc/network/if-up.d/ntpdate location. Changed lines 41-42 from:
If you wan to use your own NTP server enter the list of NTP servers under NTPSERVERS to:
If you want to use your own NTP server enter the list of NTP servers under NTPSERVERS Some public ntp servers for Sweden: ntp.lth.se ntp1.sp.se ntp.luth.se ntp1.sth.netnod.se Deleted line 67:
Some public ntp servers for Sweden: ntp.lth.se ntp1.sp.se ntp.luth.se ntp1.sth.netnod.se April 09, 2007, at 09:57 PM
by -
Changed lines 13-14 from:
sudo apt-get install ntpdate to:
Added line 19:
[@ Changed lines 23-24 from:
to:
@] Changed lines 27-28 from:
sudo vi /etc/default/ntpdate to:
Added line 31:
[@ Changed lines 39-40 from:
to:
@] Added line 44:
Added line 52:
Added line 66:
April 09, 2007, at 09:55 PM
by -
Changed lines 1-2 from:
Keeping your System clock current, automatically via Network Time Protocol (NTP)to:
Keeping your System clock current, automatically via Network Time Protocol (NTP)Changed line 40 from:
[= to:
[@ Changed line 46 from:
=] to:
@] Changed line 51 from:
[= to:
[@ Changed line 59 from:
=] to:
@] April 09, 2007, at 09:54 PM
by -
Added lines 1-60:
Keeping your System clock current, automatically via Network Time Protocol (NTP)NTP, the Network Time Protocol, is used to keep computer clocks accurate over the Internet, or by following an accurate hardware receiver which interprets GPS, DCF-77, NIST or similar time signals. ntpdate is a simple NTP client which allows a system’s clock to be set to match the time obtained by communicating with one or more servers. ntpdate is optional (but recommended) if you’re running an NTP server, because initially setting the system clock to an almost-correct time will help the NTP server synchronize faster. The ntpdate client by itself is useful for occasionally setting the time on machines that are not on the net full-time, such as laptops. Install ntp client in Ubuntu sudo apt-get install ntpdate ntpdate will automatically run while bboting your system. Ubuntu stores script at /etc/network/if-up.d/ntpdate location. If you wish to just run script again just type command sudo /etc/network/if-up.d/ntpdate sudo ntpdate pool.ntp.org If you want to use you own ntp servers you need to edit the /etc/default/ntpdate file using the following command sudo vi /etc/default/ntpdate File looks like below
NTPSERVERS=”0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org”
NTPOPTIONS=”-u” NTPSERVERS=”ntp.ubuntu.com” If you wan to use your own NTP server enter the list of NTP servers under NTPSERVERS To avoid stepping the clock you must run ntpdate every 1 or 2 hours using cronjob crontab -e #Setup NTPDATE @hourly /etc/network/if-up.d/ntpdate Save and close the file. You can also use the following script to run every hour from your cronjob #!/bin/bash /usr/sbin/ntpdate -s /sbin/hwclock --adjust /sbin/hwclock --systohc Some public ntp servers for Sweden: ntp.lth.se ntp1.sp.se ntp.luth.se ntp1.sth.netnod.se |