Posted: . At: 12:54 PM. This was 8 years ago. Post ID: 8514
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.

How to setup NTP on Ubuntu to set the system time automatically.

To install NTP on Linux and update the system time automatically from the Internet, firstly install the NTP client.

jason@darkstar:~$ sudo apt-get install ntp

Then install the ntpdate utility.

sudo apt-get install ntpdate

Then you may synchronize the time on your machine with the Internet time server.

jason@darkstar:~$ sudo ntpdate -s time.nist.gov
jason@darkstar:~$ ntpstat 
synchronised to NTP server (129.250.35.250) at stratum 3 
   time correct to within 191 ms
   polling server every 256 s

This is how easy it is to synchronize the time on your Linux machine with an Internet time server. This is very important when the machine is a server and connected to the Internet.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.