Network Time Protocol: Difference between revisions
Jump to navigation
Jump to search
imported>Admin No edit summary |
imported>Cov No edit summary |
||
| Line 1: | Line 1: | ||
== Syncing your clock to Virginia Tech's time servers == | == Syncing your clock to Virginia Tech's time servers == | ||
Virginia Tech hosts four [ | Virginia Tech hosts four [[w:Network Time Protocol|Network Time Protocol]] (NTP) servers: | ||
* '''ntp-1.vt.edu''' (198.82.1.201) | |||
* '''ntp-2.vt.edu''' (198.82.1.202) | |||
* '''ntp-3.vt.edu''' (198.82.1.203) | |||
* '''ntp-4.vt.edu''' (198.82.1.204) | |||
=== Using Gnome === | |||
# Right click on the clock in the top right hand corner of your desktop and select '''Adjust Date & Time'''. | |||
# You may have to enter your password to continue. | |||
# From the '''Configuration''' drop-down list, select '''Keep synchronized with Internet servers'''. | |||
# You may need to click '''Install NTP support'''. | |||
# Click '''Select Servers'''. | |||
# Type <code>ntp-1.vt.edu</code> | |||
# Click the '''Add''' button. | |||
# Type <code>ntp-2.vt.edu</code> | |||
# Click the '''Add''' button. | |||
# Type <code>ntp-3.vt.edu</code> | |||
# Click the '''Add''' button. | |||
# Type <code>ntp-4.vt.edu</code> | |||
# Click the '''Add''' button. | |||
# Click the '''Close''' button. | |||
# Click the '''Close''' button again. | |||
=== Using ntpd === | === Using ntpd === | ||
< | Backup your <code>/etc/ntp.conf</code>: | ||
<pre> | |||
< | # cp /etc/ntp.conf /etc/ntp.conf.bak | ||
</pre> | |||
Add the following lines to <code>/etc/ntp.conf</code>: | |||
<pre> | |||
server ntp-1.vt.edu | |||
server ntp-2.vt.edu | server ntp-2.vt.edu | ||
server ntp-3.vt.edu | server ntp-3.vt.edu | ||
server ntp-4.vt.edu</pre> | server ntp-4.vt.edu | ||
</pre> | |||
=== Using ntpdate === | === Using ntpdate === | ||
Change the contents of <code>/etc/cron.daily/ntpdate<code> to: | |||
<pre> | |||
ntpdate ntp-1.vt.edu ntp-2.vt.edu ntp-3.vt.edu ntp-4.vt.edu | |||
</pre> | |||
[[Category:Howtos]] | [[Category:Howtos]] | ||
[[Category:Campus computing resources]] | [[Category:Campus computing resources]] | ||
Revision as of 18:36, 15 December 2009
Syncing your clock to Virginia Tech's time servers
Virginia Tech hosts four Network Time Protocol (NTP) servers:
- ntp-1.vt.edu (198.82.1.201)
- ntp-2.vt.edu (198.82.1.202)
- ntp-3.vt.edu (198.82.1.203)
- ntp-4.vt.edu (198.82.1.204)
Using Gnome
- Right click on the clock in the top right hand corner of your desktop and select Adjust Date & Time.
- You may have to enter your password to continue.
- From the Configuration drop-down list, select Keep synchronized with Internet servers.
- You may need to click Install NTP support.
- Click Select Servers.
- Type
ntp-1.vt.edu - Click the Add button.
- Type
ntp-2.vt.edu - Click the Add button.
- Type
ntp-3.vt.edu - Click the Add button.
- Type
ntp-4.vt.edu - Click the Add button.
- Click the Close button.
- Click the Close button again.
Using ntpd
Backup your /etc/ntp.conf:
# cp /etc/ntp.conf /etc/ntp.conf.bak
Add the following lines to /etc/ntp.conf:
server ntp-1.vt.edu server ntp-2.vt.edu server ntp-3.vt.edu server ntp-4.vt.edu
Using ntpdate
Change the contents of /etc/cron.daily/ntpdate to:
ntpdate ntp-1.vt.edu ntp-2.vt.edu ntp-3.vt.edu ntp-4.vt.edu