Ubuntu Linux server time delayed [closed]

1

I have a Linux server running Ubuntu 14.4, configured with timezone America/Sao_Paulo .

But the time it is taking 2 minutes to run, it seems like a little bit, but since the system running on it needs to enable features at certain exact times, the user ends up feeling it is an error.

Using the command date it shows me the following schedule

  

$ date

     

Wed Feb 3 17:00:18 BRST 2016

But now it is 17:02

    
asked by anonymous 03.02.2016 / 20:03

1 answer

0

I was able to solve my problem with the help of @Bacco by installing NTP on the server.

1st Install NTL

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ntp ntpdate

2nd Change the settings in the file ntp.conf

sudo nano /etc/ntp.conf

3rd Change the default server by the server of your choice

Change this part in the settings

server 0.ubuntu.pool.ntp.org
server 1.ubuntu.pool.ntp.org
server 2.ubuntu.pool.ntp.org
server 3.ubuntu.pool.ntp.org
# Use Ubuntu's ntp server as a fallback.
server ntp.ubuntu.com

By

server 0.br.pool.ntp.org
server 1.br.pool.ntp.org
server 2.br.pool.ntp.org
server 3.br.pool.ntp.org

(If you want to use the Brazilian server - complete list of servers )

4º After 10 to 20 minutes you have done the above steps, NTP will synchronize the schedules.

You can run the code below to view delay information between servers and other information

5th Stop and start the NTP service

sudo service ntp start
sudo service ntp stop
sudo service ntp restart

I used this tutorial to solve the problem, following the @Bacco tip

    
04.02.2016 / 13:00