Linux NTP client setup

Time source

University timeservers:

ntp0.gla.ac.uk
ntp1.gla.ac.uk
ntp2.gla.ac.uk

Using systemd timesyncd

Check status of the daemon:

systemctl status systemd-timesyncd

Edit /etc/systemd/timesyncd.conf NTP line as:

NTP=ntp0.gla.ac.uk ntp1.gla.ac.uk ntp2.gla.ac.uk

Restart daemon

systemctl restart systemd-timesyncd

Can check as before, or get more detailed info with

timedatectl status

Using NTP client (old way)

Install ntp package

aptitude install ntp

stop ntp

/etc/init.d/ntp stop

edit /etc/ntp.conf and comment out the references to the debian pool servers. Add reference to local servers such as

server ntp0.gla.ac.uk iburst
server ntp1.gla.ac.uk iburst
server ntp2.gla.ac.uk iburst

Start ntp

/etc/init.d/ntp start

After a while check using ntpq -p

 
/export0/wikidata/pages/it/linux_time_sync.txt · Last modified: 2019/06/19 15:27 by jamie.scott
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki