Skip to content

Instantly share code, notes, and snippets.

@clairtonluz
Created March 26, 2018 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clairtonluz/a877006966d58a2cfc7bea81896c843f to your computer and use it in GitHub Desktop.
Save clairtonluz/a877006966d58a2cfc7bea81896c843f to your computer and use it in GitHub Desktop.
# instala ntpdate
sudo apt install ntpdate -y
# atualiza a hora baseada no servidor definido
sudo ntpdate -u ip_ou_dominio_do_servidor_ntp
# edita o arquivo /etc/default/ntpdate substituindo o NTPSERVERS padrão pelo seu servidor ntp
sudo sed -i '10s/.*/NTPSERVERS="ip_ou_dominio_do_servidor_ntp"/' /etc/default/ntpdate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment