Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problème heure (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
fb99
l33t
l33t


Joined: 09 Apr 2003
Posts: 998
Location: Le Locle (Suisse,Neuchâtel)

PostPosted: Fri May 30, 2003 9:07 am    Post subject: problème heure (résolu) Reply with quote

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
View user's profile Send private message
S_Oz
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2003
Posts: 136
Location: france

PostPosted: Fri May 30, 2003 9:18 am    Post subject: Reply with quote

Tu peux utiliser ntpd.
Back to top
View user's profile Send private message
fb99
l33t
l33t


Joined: 09 Apr 2003
Posts: 998
Location: Le Locle (Suisse,Neuchâtel)

PostPosted: Fri May 30, 2003 10:10 am    Post subject: Reply with quote

je l'ai installé mais ça changer rien.
J'ai surement oublié de faire qqch.
Back to top
View user's profile Send private message
S_Oz
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2003
Posts: 136
Location: france

PostPosted: Fri May 30, 2003 10:27 am    Post subject: Reply with quote

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
View user's profile Send private message
loostik
n00b
n00b


Joined: 23 Apr 2003
Posts: 25
Location: Pau, France

PostPosted: Fri May 30, 2003 10:47 am    Post subject: Reply with quote

Est-il possible que la pile qui alimente l'horloge interne soit déchargée ?
Cela pourrait créer des erreurs...
Back to top
View user's profile Send private message
S_Oz
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2003
Posts: 136
Location: france

PostPosted: Fri May 30, 2003 11:09 am    Post subject: Reply with quote

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
View user's profile Send private message
specter
n00b
n00b


Joined: 30 May 2003
Posts: 2

PostPosted: Fri May 30, 2003 11:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Farnsworth
Guru
Guru


Joined: 04 Feb 2003
Posts: 355
Location: Aix en Pce, France

PostPosted: Fri May 30, 2003 2:38 pm    Post subject: Reply with quote

j'avais eu le meme genre de probleme: ICI
Back to top
View user's profile Send private message
fb99
l33t
l33t


Joined: 09 Apr 2003
Posts: 998
Location: Le Locle (Suisse,Neuchâtel)

PostPosted: Fri May 30, 2003 3:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
arlequin
l33t
l33t


Joined: 16 Nov 2002
Posts: 707
Location: grep $USER /etc/passwd | cut -d':' -f6

PostPosted: Fri May 30, 2003 9:58 pm    Post subject: Reply with quote

T'as encore une instance de ntpd qui tourne... trouve là et shoot là :wink:

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
View user's profile Send private message
fb99
l33t
l33t


Joined: 09 Apr 2003
Posts: 998
Location: Le Locle (Suisse,Neuchâtel)

PostPosted: Sat May 31, 2003 8:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum