openntpd - Easy way to keep your Linux clock on time
I have been trying to write something on the blog for a long time, it was a very busy month, and the next one will not be any different, but I can not live without my hobby, and yesterday I run into a weird problem, my two computers showed the time four hours ahead!, I looked for an easy way to sync them and stumbled upon this way.
Openntpd, and from its webpage:
OpenNTPD is a FREE, easy to use implementation of the Network Time Protocol. It provides the ability to sync the local clock to remote NTP servers and can act as NTP server itself, redistributing the local clock.
OpenNTPD is primarily developed by Henning Brauer as part of the OpenBSD Project. The portable version is made by Darren Tucker. The software is freely usable and re-usable by everyone under a BSD license.
How to set the date in Linux
Time and date are important parameters in computer's world, if they are not accurately set, you will have problems. Some of problems are not too much importnnt, like the time on your emails, but others....
If time and date are not properly set in Linux, can lead you to a mess, like:
- Your cron jobs, will not run when they are suppose to run
- You may loose your appointments if you are using your computer calendar
We need to accurately set time and date in our Linux, here is how to do it, from the command line.
hwclock - Linux command line tool to get and set the time of your hardware clock
HWCLOCK(8) HWCLOCK(8)
NAME
hwclock - query and set the hardware clock (RTC)
SYNOPSIS
hwclock -r or hwclock --show
hwclock -w or hwclock --systohc
hwclock -s or hwclock --hctosys
hwclock -a or hwclock --adjust
hwclock -v or hwclock --version
hwclock --set --date=newdate
date - linux command line to get and set the date and time in Linux
This is a copy of the man date man page, you may be looking for
date, hwclock examples
ntpdate - Linux command line to keep your pc clock on time
ntpdate(8) ntpdate(8)
NAME
ntpdate - set the date and time via NTP
SYNOPSIS
ntpdate [-bBdoqsuv] [-a key] [-e authdelay] [-k keyfile] [-o version]
[-p samples] [-t timeout] server [...]
DESCRIPTION
ntpdate sets the local date and time by polling the Network Time Proto?
Setting the time of your system
How important is time for Linux
Lots of the task your Linux machine are controlled by the time, things like cron jobs, emails' Date, file's dates, so it is really important to have your computer's clock on time.
Setting the time using Gnome
If you are using Gnome you can set the time this way.
If this was useful for you, please consider making a donation, any amount is welcome, please proceed by clicking on the yellow donate button, thank you in advance.







Recent comments
5 days 11 hours ago
5 days 11 hours ago
1 week 1 day ago
1 week 3 days ago
1 week 3 days ago
2 weeks 22 hours ago
2 weeks 6 days ago
3 weeks 2 days ago
3 weeks 4 days ago
3 weeks 6 days ago