Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Frage zu ntpdate
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
monade
Apprentice
Apprentice


Joined: 17 Mar 2005
Posts: 204
Location: Berlin

PostPosted: Sun Dec 04, 2005 1:48 pm    Post subject: Frage zu ntpdate Reply with quote

Hi,

ich sitze hier hinter einer Wohnheimsfirewall und muss daher beim Zeitsynchronisieren mit ntpdate immer die Option "-u" angeben.
Quote:
-u
Direct ntpdate to use an unprivileged port or outgoing packets. This is most useful when behind
a firewall that blocks incoming traffic to privileged ports, and you want to synchronise with
hosts beyond the firewall. Note that the -d option always uses unprivileged ports.

Nun hab ich mich schon immer gefragt - und seit der Möglichkeit in KDE 3.5 die Zeit zu synchronisieren, erst recht - wie ich diese Option dem Programm, etwa mit einem Eintrag in eine Konfigurationsdatei automatisch zuteilen kann.

In der Datei /etc/conf.d/ntp-client steht schon per Default die Option "-u":
Quote:
NTPCLIENT_OPTS=" -b -u pool.ntp.org"

Ebenso in der Datei /etc/conf.d/ntpd :
Quote:
NTPD_OPTS="-u ntp:ntp"

Diese Dateien scheinen also nicht auf ntpdate zu wirken (sondern vielleicht nur auf den Daemon ntpd oder whatever).

Da stellt sich dann sowieso die Frage was von der KDE-Uhr zum Synchronisieren benutzt wird. Läuft da ein KDE-interner Cronjob der ntpdate aufruft, oder wird einfach der Daemon ntpd verwendet...?

Also, wie bekomme ich es hin, dass die KDE-Uhr beim synchronisieren "unpriviligierter Ports" entsprechend der Option "-u" nutzt?
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Sun Dec 04, 2005 2:36 pm    Post subject: Re: Frage zu ntpdate Reply with quote

monade wrote:
Diese Dateien scheinen also nicht auf ntpdate zu wirken

Dieser Satz irritiert ein wenig. Dir ist klar, daß in /etc/conf.d die Konfigurationsdaten für die Skripte in /etc/init.d/ (d.h. in diesem Fall ntp-client und nicht das Programm ntpdate) zu finden sind?
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
monade
Apprentice
Apprentice


Joined: 17 Mar 2005
Posts: 204
Location: Berlin

PostPosted: Sun Dec 04, 2005 2:44 pm    Post subject: Reply with quote

Quote:
Dir ist klar, daß in /etc/conf.d die Konfigurationsdaten für die Skripte in /etc/init.d/ (d.h. in diesem Fall ntp-client und nicht das Programm ntpdate) zu finden sind?

Mmhh, nein wirklich klar war mir das nicht. Danke für die Info. Es gibt auch noch die Dateien /etc/ntp.conf /etc/ntpd.conf, aber da kann man scheinbar keine OPTS angeben...
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Mon Dec 05, 2005 7:54 pm    Post subject: Reply with quote

Dein Problem scheint einfach nur zu sein, daß Du keine Dokumentation liest. :arrow: man ntpdate Die ntp.conf man page fehlt derzeit leider, läßt sich aber im Web auftreiben.
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
monade
Apprentice
Apprentice


Joined: 17 Mar 2005
Posts: 204
Location: Berlin

PostPosted: Mon Dec 05, 2005 11:12 pm    Post subject: Reply with quote

Die Man-Page von ntp.conf konnte ich jetzt leider nicht im Web auftreiben.
Und ganz allgemein war das eine einfache Frage zur KDE-Uhr. Ich hab sicher jetzt schon ne halbe Stunde herumprobiert, aber irgendwann wird der Aufwand zur Lösung so eines vergleichsweise kleinen Problems unverhältnismäßig groß. Und da bietet es sich an, mal im Forum zu fragen, ob jemand des Rätsels Lösung einfach "weiß".

Trotzdem danke für deine 'Anregungen' :wink:
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Tue Dec 06, 2005 12:32 pm    Post subject: Reply with quote

monade wrote:
Die Man-Page von ntp.conf konnte ich jetzt leider nicht im Web auftreiben.

click
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
monade
Apprentice
Apprentice


Joined: 17 Mar 2005
Posts: 204
Location: Berlin

PostPosted: Tue Dec 06, 2005 12:49 pm    Post subject: Reply with quote

Danke dir :)
Mal sehen, vielleicht löst das ja mein Problem
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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