Linux Obtaining the Correct Time
Ensuring a computer is not only displaying the right time but that it is being maintained accurately is not as straight-forward as it first sounds.
Most Linux systems have two clocks. The hardware clock, also known as the CMOS of Bios clock, is generally a simple crystal oscillator with battery back-up that maintains time whenever your system is off or boots up. more info is normally located on the motherboard and will run on a regular basis, however these clock chips tend to lose time because the computer ages and the battery weakens.
The other clock, the machine clock, is really a software clock and it starts when you boot up one's body often getting an initial time from the hardware clock. System clocks keep time by adding seconds to a prime epoch, a base time that for Linux and Unix, began at nighttime on January 1, 1970.
However, the hardware clock is a cheap electronic oscillator and cannot maintain time and energy to any useful degree of accuracy. They often drift several seconds each day which for day-to-day process is probably adequate but as time passes sensitive applications it could cause serious problems.
check here is to set the system clock using the time from the NTP (Network Time Protocol) time server. website dedicated time servers get yourself a UTC (Coordinated Universal Time) time from an atomic clock which will be the most accurate time keepers in the world, not losing a second with time in several millions of years.
Dedicated NTP servers use either a radio receiver to pick-up a radio time and frequency broadcast which are transmitted by several national laboratories or utilizing the timing signal broadcast from the GPS network.
Linux uses a NTP service called NTP Daemon (ntpd). This uses NTP to adjust the system clock for just about any drift in time since it frequently check the UTC time source.
To configure the NTP daemon the ntp.conf file in the /etc directory can be used. From here more than one time server may be used as a reference and also the frequency it is checked can be altered.