|
1041.
|
|
|
Time Synchronisation with NTP
|
|
|
|
Sincronização de Horário com NTP
|
|
Translated and reviewed by
Welliton Sá
|
|
|
|
Located in
serverguide/C/network-config.xml:1031(title)
|
|
1042.
|
|
|
This page describes methods for keeping your computer's time accurate. This is useful for servers, but is not necessary (or desirable) for desktop machines.
|
|
|
|
Essa página descreve métodos para manter o horário do seu computador atualizado. Isso é útil para servidores, mas não é necessário (ou desejável) para máquinas desktop.
|
|
Translated and reviewed by
Welliton Sá
|
|
|
|
Located in
serverguide/C/network-config.xml:1032(para)
|
|
1043.
|
|
|
NTP is a TCP/IP protocol for synchronising time over a network. Basically a client requests the current time from a server, and uses it to set its own clock.
|
|
|
|
NTP é um protocolo TCP/IP para sincronização de horário sobre a rede. Basicamente um cliente solicita o horário atual ao servidor, e o utiliza para ajustar seu próprio relógio.
|
|
Translated and reviewed by
Welliton Sá
|
|
|
|
Located in
serverguide/C/network-config.xml:1035(para)
|
|
1044.
|
|
|
Behind this simple description, there is a lot of complexity - there are tiers of NTP servers, with the tier one NTP servers connected to atomic clocks (often via GPS), and tier two and three servers spreading the load of actually handling requests across the internet. Also the client software is a lot more complex than you might think - it has to factor out communication delays, and adjust the time in a way that does not upset all the other processes that run on the server. But luckily all that complexity is hidden from you!
|
|
|
|
Por trás da descrição simples, há bastante complexidade - existem fileiras de servidores NTP, na fileira um servidor NTP conectado com um relógio atômico (geralmente via GPS), e o servidores da fileira dois e três espalhando a carga de realmente lidando com pedido pela internet. Também o software cliente e bem mais complexo do que você deva pensar - ele tem que eliminar atrasos na comunicação, e ajustar o tempo de modo que ele não atrapalhe os outros processos que estão sendo executados no servidor. Mas, felizmente toda essa complexidade foi escondida de você!
|
|
Translated and reviewed by
Alex Rocha
|
|
|
|
1045.
|
|
|
Ubuntu has two ways of automatically setting your time: ntpdate and ntpd.
|
|
|
|
O Ubuntu tem duas formas de configurar automaticamente seu horário: ntpdate e ntpd.
|
|
Translated and reviewed by
Welliton Sá
|
|
|
|
Located in
serverguide/C/network-config.xml:1041(para)
|
|
1046.
|
|
|
ntpdate
|
|
|
|
ntpdate
|
|
Translated and reviewed by
Alex Rocha
|
|
|
|
Located in
serverguide/C/network-config.xml:1046(title)
|
|
1047.
|
|
|
Ubuntu comes with ntpdate as standard, and will run it once at boot time to set up your time according to Ubuntu's NTP server. However, a server's clock is likely to drift considerably between reboots, so it makes sense to correct the time occasionally. The easiest way to do this is to get cron to run ntpdate every day. With your favourite editor, as root, create a file <code>/etc/cron.daily/ntpdate</code> containing:
|
|
|
|
O Ubuntu vem com o ntpdate por padrão e irá executá-lo uma vez na inicialização para configurar seu horário de acordo com o servidor NTP do Ubuntu, contudo, o relógio do servidor pode perder-se consideravelmente entre reboots, então faz sentido corrigir o horário ocasionalmente. A maneira mais fácil para fazer isto é ter o cron rodando o ntpdate todo dia. Utilizando seu editor favorito como root, crie um arquivo <code>/etc/cron.daily/ntpdate</code> contendo:
|
|
Translated by
Marcelo Subtil Marcal
|
|
Reviewed by
André Gondim
|
|
|
|
1048.
|
|
|
ntpdate ntp.ubuntu.com
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
ntpdate ntp.ubuntu.com
|
|
Translated and reviewed by
Alex Rocha
|
|
|
|
Located in
serverguide/C/network-config.xml:1052(screen)
|
|
1049.
|
|
|
The file <code>/etc/cron.daily/ntpdate</code> must also be executable.
|
|
|
|
O arquivo <code>/etc/cron.daily/ntpdate</code> deve ser executável.
|
|
Translated and reviewed by
Andre Noel
|
|
|
|
Located in
serverguide/C/network-config.xml:1054(para)
|
|
1050.
|
|
|
sudo chmod 755 /etc/cron.daily/ntpdate
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
sudo chmod 755 /etc/cron.daily/ntpdate
|
|
Translated and reviewed by
Andre Noel
|
|
|
|
Located in
serverguide/C/network-config.xml:1057(screen)
|