Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tid????
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Scandinavian
View previous topic :: View next topic  
Author Message
Sputnik
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2003
Posts: 84

PostPosted: Mon Mar 08, 2004 5:15 pm    Post subject: Tid???? Reply with quote

Ok efter sen och ha snurrat runt ett x antal minuter på dessa sidor så undrar jag är de någon som kan hjälpa mig med de "rätta" inställningen.

https://forums.gentoo.org/viewtopic.php?t=41099&highlight=ntpd
https://forums.gentoo.org/viewtopic.php?t=44069&highlight=ntp+config

Fattar 0 nu hur jag ska få till en tids synkning..

Jag vill ha att min server tids synkar och sen att jag i sin tur kan synka min win burk efter serverns tid.. men tappa bort mig totalt på sidorna..
Back to top
View user's profile Send private message
floffe
Guru
Guru


Joined: 24 Nov 2003
Posts: 414
Location: Linköping, Sweden

PostPosted: Mon Mar 08, 2004 6:36 pm    Post subject: Reply with quote

Code:
emerge ntp
cp /usr/share/ntp/ntp.conf /etc

Öppna sedan /etc/ntp.conf med en textredigerare ;) och se till att du har rader som liknar dessa:
Code:
server ntp1.sp.se
server ntp1.sth.se

Det finns ett antal servrar i Sverige att välja på, ta två eller tre från denna sida.

Du ska även ha följande rad okommenterad (finns sist i filen):
Code:
restrict 192.168.0.1 mask 255.255.255.0 notrust nomodify notrap
Jag har inte testat med att synka andra maskiner mot denna, det kan krävas lite exprimenterande med siffrorna här...

Därefter ställer du klockan rätt och startar ntpd med
Code:
ntpdate -q <en_av_servrarna_du_valde>
date --set 2004-03-DD HH:MM:SS
/etc/init.d/ntpd start


Mitt BIOS är fruktansvärt dåligt på att hålla tiden, så jag har lagt till både ntpclient och ntpd som ska köras vid uppstart, eftersom ntpd inte funkar om klockan går för mycket fel.
Code:
(rc-update add ntp-client default)
rc-update add ntpd default



Hoppas att detta hjälper då!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Scandinavian 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