View previous topic :: View next topic |
Author |
Message |
fb99 l33t
Joined: 09 Apr 2003 Posts: 998 Location: Le Locle (Suisse,Neuchâtel)
|
Posted: Fri May 30, 2003 9:07 am Post subject: problème heure (résolu) |
|
|
je devient fou, chaque matin quand j'allume mon ordi, l'heure se décale de deux jour, des fois d'un jour en fait ça dépend de son humeur (il y avait un topic sur ce problème mais je le trouve plus).
Last edited by fb99 on Sat May 31, 2003 10:03 am; edited 1 time in total |
|
Back to top |
|
|
S_Oz Tux's lil' helper
Joined: 14 Apr 2003 Posts: 136 Location: france
|
Posted: Fri May 30, 2003 9:18 am Post subject: |
|
|
Tu peux utiliser ntpd. |
|
Back to top |
|
|
fb99 l33t
Joined: 09 Apr 2003 Posts: 998 Location: Le Locle (Suisse,Neuchâtel)
|
Posted: Fri May 30, 2003 10:10 am Post subject: |
|
|
je l'ai installé mais ça changer rien.
J'ai surement oublié de faire qqch. |
|
Back to top |
|
|
S_Oz Tux's lil' helper
Joined: 14 Apr 2003 Posts: 136 Location: france
|
Posted: Fri May 30, 2003 10:27 am Post subject: |
|
|
il se passe quoi quand tu fait
Code: |
ntpdate -b ntp.tuxfamily.net
|
As tu lie le fichier /etc/localtime comme il faut?(/usr/share/zoneinfo/Europe/Zurich) |
|
Back to top |
|
|
loostik n00b
Joined: 23 Apr 2003 Posts: 25 Location: Pau, France
|
Posted: Fri May 30, 2003 10:47 am Post subject: |
|
|
Est-il possible que la pile qui alimente l'horloge interne soit déchargée ?
Cela pourrait créer des erreurs... |
|
Back to top |
|
|
S_Oz Tux's lil' helper
Joined: 14 Apr 2003 Posts: 136 Location: france
|
Posted: Fri May 30, 2003 11:09 am Post subject: |
|
|
meme si ta pile est morte tu n'as qu'a executer ntpdate a chaque demarrage pour corriger l'heure.
La config suivante est suffisante:
Code: |
rc-update add ntpd default
|
dans le fichier de conf tu peux mettre(/etc/conf.d/ntpd):
Code: |
NTPDATE_CMD="ntpdate"
NTPDATE_OPTS="-b ntp.tuxfamily.net ntp.unilim.fr"
|
Si tu ne veux pas de Warning au demarrage tu dois configurer ton serveur ntpd (C'est pas obligatoire) |
|
Back to top |
|
|
specter n00b
Joined: 30 May 2003 Posts: 2
|
Posted: Fri May 30, 2003 11:11 am Post subject: |
|
|
si ca peut aider quelqu'un, voici ce que j'ai mis dans un crontab, pour que l'horloge soit synchronisée tous les jours à minuit ...
Code: |
#mise à jour time :)
0 0 * * * ntpdate time.belnet.be 1> /dev/null 2> /dev/null; hwclock --systohc 1>/dev/null 2> /dev/null
|
le serveur time.belnet.be est belge, essayez d'en trouver un près de chez vous !
ddm |
|
Back to top |
|
|
Farnsworth Guru
Joined: 04 Feb 2003 Posts: 355 Location: Aix en Pce, France
|
Posted: Fri May 30, 2003 2:38 pm Post subject: |
|
|
j'avais eu le meme genre de probleme: ICI |
|
Back to top |
|
|
fb99 l33t
Joined: 09 Apr 2003 Posts: 998 Location: Le Locle (Suisse,Neuchâtel)
|
Posted: Fri May 30, 2003 3:59 pm Post subject: |
|
|
quand je fais
Code: |
ntpdate -b ntp.tuxfamily.net
|
il me retourne:
Code: |
30 may 00:13:26 ntpdate[2843]: the NTP socket is in use, exiting
|
Pourtant l'heure ne se règle pas.
J'ai bien lié le fichier /etc/localtime |
|
Back to top |
|
|
arlequin l33t
Joined: 16 Nov 2002 Posts: 707 Location: grep $USER /etc/passwd | cut -d':' -f6
|
Posted: Fri May 30, 2003 9:58 pm Post subject: |
|
|
T'as encore une instance de ntpd qui tourne... trouve là et shoot là
Si tu as des soucis avec ce serveur, change le pour 'canon.inria.fr' qui fonctionne au poil.
A noter que pour être proprement configuré, tu as besoin de modifier deux fichiers : /etc/ntpd.conf et /etc/conf.d/ntpd. _________________ J'vous dis ciao !
Au fait, ciao ça veut dire bye en anglais. |
|
Back to top |
|
|
fb99 l33t
Joined: 09 Apr 2003 Posts: 998 Location: Le Locle (Suisse,Neuchâtel)
|
Posted: Sat May 31, 2003 8:52 am Post subject: |
|
|
c'est bon ça marche
merci pour votre aide.
en faite ça ne marchais pas parce que dhcpcd eth0 ne se faisait pas au démarrage. Donc il n'arrivais pas à se connecter au serveur ntp |
|
Back to top |
|
|
|