Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
All motherboards have a time chip built into them known as the System clock. When you setup the bios you set the date and time. That said they are never accurate and all have inherent drift. i.e. run too fast or slow.
ntp is a software based service that maintains the accuracy of the system clock automatically. ntp uses either primary (atomic clock) or secondary time servers to calculate the time drift of the system clock and then apply corrections based on the drift. I addition it compares its time with the designated reference clock at regular intervals. All this is done automatically once ntp has been installed. This is provided that you have a continuous connection to the Internet as this is an Internet based service.
ntp is a server layer and initiated on system boot if installed. This fact is stated in the boot log. You can check the status through the command line using a terminal with the command;
So if NTP was present then i would find traces of it in the bootlog? If I find traces on ntp in the bootlog can i confirm that ntp is present and running?
The command ntp -q is not found is not found on the board.
ntp is not installed as a standard application on all distros. If the ntp query is negative on your system then likely it is not present and you must install it. Most distros configure their ntp app to specific time servers so they work without much configuration required.
ntp is normally installed in /etc as ntp.conf and initiated on boot through /etc/init.d/ntp on Debian systems.
If the command ntp -q is telling you that ntp is not found then this would indicate that it is not installed. The system log or boot log file will also tell you if ntp is started. There is also an ntp log file in /var/log if ntp is installed.
Use your package manager to install ntp. If is present it will tell that it is already installed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.