HomeHowTo › How To Configure NTP on Ubuntu 12.04

How To Configure NTP on Ubuntu 12.04

On Ubuntu 12.04 the NTP service can be configured using the following Terminal commands:

# Install the NTP daemon
sudo apt-get install ntp

# Stop the NTP service
sudo /etc/init.d/ntp stop

# Set your timezone
sudo dpkg-reconfigure tzdata

# Set the local time to the time provided by the specified timeserver
sudo ntpdate 0.de.pool.ntp.org

# Edit the configfile if you want to change the default timeserver addresses
sudo mcedit /etc/ntp.conf

# Start the NTP server
sudo /etc/init.d/ntp start

# Test NTP status
sudo ntpq -p

Leave a Comment