NTP Sync?
Ok - My machine is on a LAN which has their own dedicated NTP server. How can I make my machine sync with our local NTP server? Is their a command? I don't recall but I beleive I have a NTP service running on my Debian machine - I just forgot how to command it to sync. I did google this and came up confused.
Can anyone tell me if I have the correct services configured to sync with a local NTP server and how to do so? |
Not at my Debian box, but I think I installed ntp and then edited /etc/ntp.conf to contain a server on my network. Then I just restarted the ntp service. If you only need to have a client, you can use ntpdate and run it once from a cronjob.
http://www.debian.org/doc/manuals/sy...s-syncing-time |
I think you want to use ntpd (which I think would be available for Debain if not already installed) and pretty much all you need to do is edit the /etc/ntp.conf file to point to your local NTP server.
|
How do I know if ntpd is already installed? I don't have anything regarding "NTP" or "ntp" in my /etc directory. I also can't seem to find it via APT :scratch:
Code:
cwilliams:/etc# apt-get install ntpd |
Try ntp-server.
As for if it's installed, you can try dpkg --get-selections |grep ntp |
This is what I found...
Code:
cwilliams@cwilliams:~$ dpkg --get-selections |grep ntp |
You need to apt-get install ntp-server. The configuation file is /etc/ntp.conf. Edit this file by reming the server lines and add your own;
server <ip_address of your network time server> |
So I have to run an NTP server utility on my machine just to sync to an NTP server? I don't want my machine to be an NTP server if that makes sence.
|
apt-get install ntp-simple
Takes care of everything |
OK - I found the package.
Code:
cwilliams:/home/cwilliams# apt-cache search ntp-server |
Quote:
|
Quote:
|
Code:
cwilliams@cwilliams:~$ su That worked... |
All times are GMT -5. The time now is 05:19 AM. |