RimuHosting: Mighty Linux Servers.  Support Worth Raving About
Plans & Pricing
Server Recommendation Tool
Server Types
  VPS
  Semi-dedicated Server
  Dedicated Server
Server Locations
  Dallas
  London
  Australia
VPS Technology
Hardware
Data Centers
Linux Distributions
Applications
Maintenance Notices
Support Ticket
Control Panel
HOWTO Articles
Forums
VPS control panel
Billing details
Receipts
Contact details
DNS
Reverse DNS
Console-over-SSH
FTP backup space
Backup mail server
About
Staff
News
Customer Testimonials
Sales Inquiry
Link To Us
Terms and Conditions
Site Map

Order VPS Hosting
Order a VPS, Semi- dedicated or Dedicated server in Dallas, London or Australia.

Get Assistance
Ask our support team about your hosting requirements.


Host where the staff takes pride in making customers happy

I swear, the virtual machine hosting is the coolest toy I've played with in a very long time. I'm a sysadmin for a living, so this is perfect for me.

- Emmett (#247/269)
Home > Support > HOWTO List > Linux > NTP

Working with Linux howtos

Accurate Time with NTP

Accurate time is a "good thing".  NTP (Network Time Protocol) lets you have it by keeping your server in sync with other (presumably accurate) server times.

Note: NTP is already running by default on RimuHosting servers).

Grab the RPM and install it: rpm -Uvf ntp-4.1.1a-9.i386.rpm libcap-1.10-12.i386.rpm

Tip: RPMFind.net is a great place to find the right RPM for you server installation.

Pop some servers in /etc/ntp.conf:

server tick.uh.edu
server time.nist.gov
server tick.usno.navy.mil
# choose your own servers from here: http://www.eecis.udel.edu/~mills/ntp/servers.html
driftfile /etc/ntp/ntp.drift

You should use more than one NTP server so that NTP can adjudicate time discrepancies.   There is no point only having a single server listed.  If that server's sysadmin then does some Y2100 testing it will cause your server's date to follow in lockstep.

Install it as a service:

chkconfig --add ntpd
chkconfig --level 35 ntpd on
/etc/init.d/ntpd start

A good NTP read: http://linux.oreillynet.com/pub/a/linux/2003/01/02/ntp.html

Resolving: Can't open /etc/ntp/ntp.drift.TEMP: Permission denied.

The fix to this permissions error to to run touch /etc/ntp/ntp.drift /etc/ntp/ntp.drift.TEMP; chown ntp /etc/ntp /etc/ntp/ntp.drift /etc/ntp/ntp.drift.TEMP