{"id":546,"date":"2012-07-15T11:05:01","date_gmt":"2012-07-15T09:05:01","guid":{"rendered":"http:\/\/diablo.craem.net\/wordpress\/?p=546"},"modified":"2012-07-15T11:05:01","modified_gmt":"2012-07-15T09:05:01","slug":"configurando-ntp-en-debian","status":"publish","type":"post","link":"https:\/\/diablo.craem.net\/?p=546","title":{"rendered":"Configurando ntp en debian"},"content":{"rendered":"<p>Otro apunte. Siempre me dejo por configurar el reloj cuando instalo servidores linux y nunca me acuerdo de documentarlo.<br \/>\nInstalamos los servicios ntp, ntpdate:<br \/>\n<code><br \/>\n# apt-get install ntp ntpdate<br \/>\n<\/code><br \/>\nY en un rato tendremos los paquetes instalados. Ahora toca configurar el <em>source<\/em>; personalmente me gusta el de <em>hora.rediris.es<\/em>, ya que <em>time.windows.com<\/em>, no acaba de ir conmigo \ud83d\ude09<br \/>\nEditamos el fichero \/etc\/ntp.conf<br \/>\n<code><br \/>\n \/etc\/ntp.conf, configuration for ntpd; see ntp.conf(5) for help<br \/>\ndriftfile \/var\/lib\/ntp\/ntp.drift<br \/>\n# Enable this if you want statistics to be logged.<br \/>\n#statsdir \/var\/log\/ntpstats\/<br \/>\nstatistics loopstats peerstats clockstats<br \/>\nfilegen loopstats file loopstats type day enable<br \/>\nfilegen peerstats file peerstats type day enable<br \/>\nfilegen clockstats file clockstats type day enable<br \/>\n# You do need to talk to an NTP server or two (or three).<br \/>\n#server ntp.your-provider.example<br \/>\n# pool.ntp.org maps to about 1000 low-stratum NTP servers.  Your server will<br \/>\n# pick a different set every time it starts up.  Please consider joining the<br \/>\n# pool: <https:\/\/www.pool.ntp.org\/join.html><br \/>\nserver hora.rediris.es<br \/>\nserver 0.debian.pool.ntp.org iburst dynamic<br \/>\nserver 1.debian.pool.ntp.org iburst dynamic<br \/>\nserver 2.debian.pool.ntp.org iburst dynamic<br \/>\nserver 3.debian.pool.ntp.org iburst dynamic<br \/>\n<\/code><br \/>\nY ponemos nuestro servidor preferido, en mi caso, <em><strong>hora.rediris.es<\/strong><\/em><br \/>\nY ahora a reiniciar el servicio para aplicar cambios:<br \/>\n<code><br \/>\n# \/etc\/init.d\/ntp restart<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Otro apunte. Siempre me dejo por configurar el reloj cuando instalo servidores linux y nunca me acuerdo de documentarlo. Instalamos los servicios ntp, ntpdate: # apt-get install ntp ntpdate Y en un rato tendremos los paquetes instalados. Ahora toca configurar el source; personalmente me gusta el de hora.rediris.es, ya que time.windows.com, no acaba de ir [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[60,102,131],"class_list":["post-546","post","type-post","status-publish","format-standard","hentry","category-linux","tag-debian-squeeze","tag-linux-2","tag-ntp"],"_links":{"self":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/posts\/546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=546"}],"version-history":[{"count":0,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/posts\/546\/revisions"}],"wp:attachment":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}