[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Relógio setado por hardware.



Still wrote:

* Konnichiwa Guilherme Rocha-sama:

Thank's

Funfou direitinho.


	Se vc tiver conexão 24h com a Net, vc pode atualizar o relógio
da sua Bios com o ntp, ou seja, seu comp. vai ficar sempre com a hora
sempre precisa.
	Segue o que eu fiz aqui:

-- Script --

#!/bin/bash
/usr/sbin/ntpdate -b time.handhelds.org
/sbin/hwclock -w

-- Script --

	Basta salvar como arquivo.sh e colocar no crontab do root ou do
sistema.
	Aqui eu rodo de 1 em 1 hora.

Não faça isso!
O ideal é vc usar o ntp pra tomar conta do seu relógio, ainda mais se vc tiver vários micros ligados em rede (o sincronismo é importante).
Nem é tão dificil assim configurá-lo, e o uso de rede é bem baixo.


Is using ntpdate appropriate - vs ntpd?

The ntpd daemon will adjust the clock slowly, so that the system is not altered. However, the ntpdate command will adjust time suddenly if the error is bigger than 128ms. If the clock jump some seconds strange, or even bad, things can occur. Therefore, ntpd is safer - but we may not have a permanent network connection, and synchronization can take hours. Setting the clock fast is something usually done during computer initialisation (booting up) so that the daemon has an easier job.

However, if we don't have a permanent network connection, using ntpdate is our only way - possibly using the -B parameter, which will force it to slew instead of step the clock.

--
Marcos



Reply to: