View previous topic :: View next topic |
Author |
Message |
fb99 l33t
Joined: 09 Apr 2003 Posts: 998 Location: Le Locle (Suisse,Neuchâtel)
|
Posted: Sat May 24, 2003 12:57 pm Post subject: ntpd |
|
|
ou est-ce qu'on peux spécifier les serveur ntp? |
|
Back to top |
|
|
DuF Advocate
Joined: 09 Dec 2002 Posts: 2687 Location: Paris
|
Posted: Sat May 24, 2003 12:59 pm Post subject: |
|
|
dans : Code: | NTPDATE_OPTS="-b ntp.via.ecp.fr ntp2.via.ecp.fr" |
|
|
Back to top |
|
|
fb99 l33t
Joined: 09 Apr 2003 Posts: 998 Location: Le Locle (Suisse,Neuchâtel)
|
Posted: Sat May 24, 2003 1:10 pm Post subject: |
|
|
je l'ai mis, mais quand je lance ntpdate il me dit
Code: |
20 May 03:03:46 ntpdate[8229]:no servers can be used, exiting
|
|
|
Back to top |
|
|
Paule.Green n00b
Joined: 14 Aug 2002 Posts: 42 Location: paris
|
Posted: Sat May 24, 2003 2:16 pm Post subject: |
|
|
dans /etc/ntp.conf
server ntp.via.ecp
si ntp.conf existe pas, tu le cré
quand tu fais "rc-update add ntpd default"
ça mettra ton /etc/conf.d/ntpd tout comme y faut tout seul...
@+ |
|
Back to top |
|
|
fb99 l33t
Joined: 09 Apr 2003 Posts: 998 Location: Le Locle (Suisse,Neuchâtel)
|
Posted: Sat May 24, 2003 2:20 pm Post subject: |
|
|
oui intéressant je l'ai fait mais ça change rien
Je vais quand même regarder à gauche à droite si je trouve pas qqch. |
|
Back to top |
|
|
Paule.Green n00b
Joined: 14 Aug 2002 Posts: 42 Location: paris
|
Posted: Sat May 24, 2003 2:31 pm Post subject: |
|
|
j'oubliais : quand tu lance ntpd et que tu fais ntpdate dans la foulée,
ba c'est normal qu'il te renvoie
"20 May 03:03:46 ntpdate[8229]:no servers can be used, exiting"
simplement parceque il a pas eu le temps de se synchroniser....
cela demande environ 10mn (enfin chez moi)
mais pour voir tout de suite si cela marche :
ntptrace
la réponse :
localhost: stratum 16, offset 0.000023, synch distance 0.00334
0.0.0.0: *Not Synchronized*
tu peux le tapper plusieurs fois, tu remarquera que "synch distance" augmente et puis à un moment c'est bon et tu deviens stratum 3 ou 4 (en gros un client/serveur aussi si tu le veux de 3 ou 4 ème génération |
|
Back to top |
|
|
fb99 l33t
Joined: 09 Apr 2003 Posts: 998 Location: Le Locle (Suisse,Neuchâtel)
|
Posted: Sun May 25, 2003 9:24 am Post subject: |
|
|
donc ensuite la date se règle automatiquement. |
|
Back to top |
|
|
|