Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO] NTP sbaglia ora...
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
mouser
Veteran
Veteran


Joined: 10 Aug 2004
Posts: 1419
Location: Milano

PostPosted: Wed Aug 03, 2005 9:59 am    Post subject: [RISOLTO] NTP sbaglia ora... Reply with quote

Buongiorno a tutti..... dopo tempo immemore riapro un'altro 3d.....
Premetto che ho già cercato nel forum, ma ho trovato vari thread che parlano di ntp che non funziona...... bhè, a me funziona, solo che sbagli l'ora :roll:

Cerco di essere più chiaro: dall'ultima sostituzione della scheda madre del portatile, devono avermi buttato su una scheda con la batteria che ha grossa crisi, quindi ho pensato a ntp per sincronizzare il mio picci:
Code:
# emerge ntp

Okkey, fin qui tutto bene.

Ora, però, quando dò ntpdate, mi viene restituito...
Code:
# ntpdate pool.ntp.org
3 Aug 09:50:26 ntpdate[27709]: adjust time server 216.27.160.99 offset -0.007090 sec

Ok, il 3 agosto è giusto, ma perchè come ora mi vengono date le 9:50:26 del mattino quando sono le 12:00????

Posto altri output....
Code:
# ntpdate ntp1.ien.it
 3 Aug 09:57:19 ntpdate[27741]: adjust time server 193.204.114.232 offset -0.000587 sec
# ntpdate ntp2.ien.it
 3 Aug 09:57:24 ntpdate[27748]: adjust time server 193.204.114.233 offset -0.000051 sec
# date
Wed Aug  3 09:57:25 GMT 2005


ps: in /etc/rc.conf ho settato CLOCK="local": devo metterlo a UTC???

Grazie in anticipo dell'aiuto.
Ciriciao
mouser :wink:


Last edited by mouser on Wed Aug 03, 2005 10:20 am; edited 1 time in total
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Wed Aug 03, 2005 10:09 am    Post subject: Reply with quote

prova ad usare i server dell'IEN (ntp.ien.it)... vedi se con quelli hai problemi o meno.
Poi controlla la timezone in cui hai messo il tuo pc.


ciao
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Wed Aug 03, 2005 10:09 am    Post subject: Reply with quote

a me funziona correttamente... ho semplicemente impostato
Code:
rc-update ntp-client default

e in /etc/conf.d/ntp-client come da default ho
Code:

NTPCLIENT_CMD="ntpdate"
NTPCLIENT_OPTS=" -b -u pool.ntp.org"
NTPCLIENT_TIMEOUT=30


il clock l'ho settato a utc, mi sembra...
Back to top
View user's profile Send private message
mouser
Veteran
Veteran


Joined: 10 Aug 2004
Posts: 1419
Location: Milano

PostPosted: Wed Aug 03, 2005 10:19 am    Post subject: Reply with quote

Ok, dopo quasi due anni passati, vedo che rimango nello zona niubbo... :lol:
La timezone era sballata....

Ic3M4n wrote:
a me funziona correttamente... ho semplicemente impostato
Codice:
rc-update ntp-client default

e in /etc/conf.d/ntp-client come da default ho
Codice:

NTPCLIENT_CMD="ntpdate"
NTPCLIENT_OPTS=" -b -u pool.ntp.org"
NTPCLIENT_TIMEOUT=30


il clock l'ho settato a utc, mi sembra...

Hmmm, io non sempre accendo il portatile quando è collegato ad internet, non è che in questo modo mi rallenta di brutto l'avvio??? Se si, posso/mi conviene diminuire il timeout a 1??

Grazie ancora
Ciriciao
mouser :wink:
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Wed Aug 03, 2005 10:26 am    Post subject: Reply with quote

io lo utilizzo sia sul fisso che sul portatile, solo che ntp dipende dalla rete, quindi viene avviato solo a rete attivata. non essendo collegato il cavo va in timeout la rete a 5 secondi e salta anche ntp. almeno, non ho notato rallentamenti di sorta sul portatile. adesso purtroppo non l'ho sottomano e non posso controllare la conf.
Back to top
View user's profile Send private message
mouser
Veteran
Veteran


Joined: 10 Aug 2004
Posts: 1419
Location: Milano

PostPosted: Wed Aug 03, 2005 10:31 am    Post subject: Reply with quote

Ic3M4n wrote:
io lo utilizzo sia sul fisso che sul portatile, solo che ntp dipende dalla rete, quindi viene avviato solo a rete attivata. non essendo collegato il cavo va in timeout la rete a 5 secondi e salta anche ntp. almeno, non ho notato rallentamenti di sorta sul portatile. adesso purtroppo non l'ho sottomano e non posso controllare la conf.


Mi sa che lo lancierò a manina...... alla fine, ogni volta che attacco il cavo lancio dhcpcd per andarmi a ciucciare l'ip dall'hug......
Grazie ancora....
Ciriciao
mouser :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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