Protocolo NTP (ntp.conf)
Arquivo para sincronizar horário
Categoria: Miscelânea
Software: Protocolo NTP
[ Hits: 13.465 ]
Por: Alberto Federman Neto.
Esta é a mais nova versão de meu arquivo de sincronização de tempo, horário dos micros.
Substitui a versão:
http://www.vivaolinux.com.br/etc/ntp-(ou-ntpd).conf
De 2010, obsoleta.
Para usar, veja instruções em:
http://www.pinguimteajuda.com.br/node/218
http://www.pinguimteajuda.com.br/node/256
# Based on Standard NTP Files. # Modified by Albfneto <albfneto@fcfrp.usp.br>, Brazil, # 2014. # Observação: Modificado com nova Sintaxe nos Servidores, veja: # URL: www.pool.ntp.org # NOTES: # DHCP clients can append or replace NTP configuration files. # You should consult your DHCP client documentation about its # default behaviour and how to change it. # Desejando pegar servidores automatico para sua maquina, # descomente: # netselect -s 3 pool.ntp.org # If you want to deny all machines (including your own) # from accessing the NTP server, uncomment: #restrict default ignore # To deny other machines from changing the # configuration but allow localhost: # configurações de restrição de acesso # Restrições de acesso restrict nomodify nopeer notrap restrict 127.0.0.1 # restrict default kod notrap nomodify nopeer # To allow machines within your network to synchronize # their clocks with your server, but ensure they are # not allowed to configure the server or used as peers # to synchronize against, uncomment this line. #restrict 192.168.0.0 mask 255.255.255.0 nomodify nopeer notrap # CONFIG # "memoria" para o escorregamento de frequência do micro # pode ser necessário criar esse arquivo manualmente com # o comando touch /etc/ntp.drift: driftfile /etc/ntp.drift # estatísticas do ntp que permitem verificar o histórico # de funcionamento e gerar gráficos: statsdir /var/log/ntpstats/ statistics loopstats peerstats clockstats filegen loopstats file loopstats type day enable filegen peerstats file peerstats type day enable filegen clockstats file clockstats type day enable # servidores gerais e pools. o Primeiro da lista é o principal # COLOQUE AQUI SEU SERVIDOR PRINCIPAL, AJUSTE POR DISTÂNCIA GEOGRÀFICA: # server meu-servidor.dominio.br iburst # Meu Servidor Principal de uso, pois moro em Ribeirão Preto, SP, e trabalho na USP: # Servidor NTP da USP, São Paulo, SP, Stratum 2: server ntp.usp.br iburst #Servidor de Tempo da UNICAMP, Campinas, SP, Stratum 2: server ntp.unicamp.br iburst # Servidor Stratum 2 em Valinhos, SP: # URL: support.ntp.org/bin/view/Servers/PublicTimeServer000017 server ntp.hiway.com.br iburst # Servidor Stratum 2 em Jundiaí, SP: # URL: support.ntp.org/bin/view/Servers/PublicTimeServer000727 server ntp.spbrasil.com.br iburst # Você pode diretamente, usar os servidores públicos do projeto ntp.br, Stratum 1 ou 2: Exemplo, veja: URL: support.ntp.org/bin/view/Servers/PublicTimeServer000511 # Se quiser, deixe como principais: server a.ntp.br iburst server b.ntp.br iburst server c.ntp.br iburst server a.st1.ntp.br iburst server b.st1.ntp.br iburst server c.st1.ntp.br iburst server d.st1.ntp.br iburst server gps.ntp.br iburst # Pool de Servidores Brasileiros, nova Sintaxe, # URL: www.pool.ntp.org/zone/br server 0.br.pool.ntp.org iburst server 1.br.pool.ntp.org iburst server 2.br.pool.ntp.org iburst server 3.br.pool.ntp.org iburst # Pool de servidores Sul-Americanos: server south-america.pool.ntp.org iburst # Pool Geral. Nova Sintaxe: # URL: www.pool.ntp.org/en/use.html server 0.pool.ntp.org iburst server 1.pool.ntp.org iburst server 2.pool.ntp.org iburst server 3.pool.ntp.org iburst # se todos falharem: # servidor da PUC do Rio: server ntp.puc-rio.br iburst # Servidor da RNP, Brasília, DF: server ntp.cais.rnp.br iburst # Stratum 1, do Observatório Nacional, Rio de Janeiro: server ntp.on.br iburst server ntp2.on.br iburst # outros servidores, descomente e adicione aqui # server outro-servidor.dominio.br iburst
Aprenda a Gerenciar Permissões de Arquivos no Linux
Como transformar um áudio em vídeo com efeito de forma de onda (wave form)
Como aprovar Pull Requests em seu repositório Github via linha de comando
Quebra de linha na data e hora no Linux Mint
Organizando seus PDF com o Zotero
tentando instalar em um notebook antigo o Linux LegacyOS_2023... [RESO... (8)
Problema com Conexão Outlook via Firewall (OpenSUSE) com Internet Fibr... (5)