Iam working as a linux admin. In our company we are using a ubuntu server with windows clients. The time in each clients are not same. Is it possible to sync time from ubuntu server with the windows clients ? Plz help
2 Answers
This write up explains how to setup your Ubuntu Server as an NTP Server and how to configure your Windows Clients to use your server to sync their time.
Keep in mind that the instructions may differ slightly because you haven't provided the specs of your Ubuntu Server, but the principal will be the same:
Network Time Protocol (NTP) Server and Clients Setup in Ubuntu
Additional information, specifically for Ubuntu 12.04
-
cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=10.04 DISTRIB_CODENAME=lucid DISTRIB_DESCRIPTION="Ubuntu 10.04.3 LTS"......this is the spec– surendarJun 3, 2013 at 7:30
-
-
sudo apt-get install ntp
and that should do and then launch the Date and Time SubSettings from System Setting, choose the Change button and select the server in your region and Accept
sudo service ntp restart
and that should do. Then do a
sudo ntpdate -s time.nist.gov
and that's it. Unless you want to add it to your /etc/rc.conf
and add these lines
(/etc/init.d/ntp stop<br>
until ping -nq -c3 8.8.8.8; then<br>
echo "Waiting for network..."<br>
done<br>
ntpdate -s time.nist.gov<br>
/etc/initd/ntp start)&
Good Luck