from small one page howto to huge articles all in one place
 

search text in:







Last additions:
How to make X listen on port 6000

How to make X listen on port 6000

words:

34

views:

4133

userrating:

no votes yet


May, 25th 2007:
April, 26th 2007:
Apr, 10th. 2007:
Druckversion . pdf icon
You are here: Tutorials per portage category->net-misc->ntp


ntp is the Network Time Protocol suite.

Installing ntpd

First, make sure ntp/ntpdate are installed. The package is by default installed on Mandrake Linux and Redhat. If you do not have ntp installed you will find packages on your distributions install-cd(s).

On Gentoo Linux, install by typing --- emerge ntp

Configuration files for running ntp as daemon

ntpd manpage

Client Setup

Now, edit the following files:

--- /etc/ntp.conf

The only important thing is that the line contains server some.thing.org.

Example:

--- server ntp.uio.no driftfile /etc/ntp/drift broadcastdelay 0.008 authenticate no ---

Make sure you add ntpd as a boot (init) service.

Gentoo Linux: `rc-update add ntpd default` , `/etc/init.d/ntpd start`

(LAN) Server setup

To run a ntp server to sync the clocks on your lan, edit

--- /etc/ntp.conf

Example:

--- server fartein.ifi.uio.no prefer server ntp.uio.no server ntp.eunet.no

fudge 10.0.0.50 stratum 10

driftfile /etc/ntp/drift broadcastdelay 0.008

authenticate no ---

fudge tells the server to pass on the correct time to the given network interface. stratum is the level of time servers, 10 being the lowest. You only need a higher number if you will be acting as a public internet timeserver with fast bandwidth.

It makes sence to add a few servers. Select the best as prefer

Make sure you add ntpd as a boot (init) service.

Gentoo Linux: `rc-update add ntpd default` , `/etc/init.d/ntpd start`

Firewalls

ntp uses port 123, both UDP and TCP. Make sure this port is not blocked by a firewall.

If you are using iptables, you can open this port with

--- $IPTABLES -A INPUT -j ACCEPT -p tcp --dport 123

Known valid and working ntp servers

server adress Location
ntp.ipv6.viagenie.qc.ca IPV6 ONLY
clock.via.net
server fartein.ifi.uio.no Norway
server ntp.uio.no Norway
server ntp.eunet.no Norway
ntp.demon.co.uk UK
ntp.nasa.gov USA
bigben.cac.washington.edu USA
time-b.nist.gov USA
montpelier.ilan.caltech.edu USA
nist1.aol-ca.truetime.com USA
nist1.datum.com USA
time-a.timefreq.bldrdoc.gov USA
time-b.timefreq.bldrdoc.gov USA
time-c.timefreq.bldrdoc.gov USA
time.nist.gov USA
utcnist.colorado.edu USA
tick.usno.navy.mil USA
tock.usno.navy.mil USA
mizbeaver.udel.edu USA

Server List

Setting the clock at boot or using cron

I good idea is _not_ to run the ntpd daemon on clients as it uses about 1,7 MB memory, unless you are a server or have a box with a broken clock. Many boxes clocks do drift along on their own, a check every hour or day is generally a good idea.

rdate

rdate is a simple 3 kB tool for syncing the system clock to a server. It's options are `-p` to print the date on the given server, `-s` to set the system clock according to it (must be done as root) and `-u` to use the UDP protocol. Example:

`rdate -p sntp.lth.se`

rdate manual page

clockspeed

clockspeed is a very small tool for setting the clock and is, for clients, a much better alternative than installing the 4+ MB ntp package.

cron & ntp

You can simply add ntpdate as a cron job every now and then:

--- echo 'ntpdate -b server.dot.com' > /etc/cron.hourly/time.cron --- chmod a+x /etc/cron.hourly/time.cron

Most distributions come with a cron. dcron and Vixie cron are nice.

Gentoo & ntp-client

You can set the clock using ntp at boot (without starting the daemon) on Gentoo Linux by editing:

--- /etc/conf.d/ntp-client

The file should contain:

--- NTPDATE_CMD="ntpdate" NTPDATE_OPTS="-b your.server.here" ---

Then add ntp-client to the services started at boot:

--- rc-update add ntp-client default

You can check what services are started at boot with `rc-status`.


Page source:

Copyright (c) 2000-2004 Øyvind Sæther. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

back
comment this article
Please read "Why adblockers are bad".



to the forum.
:
:
other Ads
Stellenangebote
Stellenangebote
für Fach- und
Führungskräfte
www.nachoben.com
Trace My Cash
Wenn Sie sich schon immer mal gefragt haben, wo eigentlich Ihr geliebtes Bargeld geblieben ist, finden Sie hier vielleicht die Antwort.
www.tracemycash.com
Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
FeedCollector
Combine various newsfeeds to one customized webpage
www.feedcollector.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2009-01-07
banshee - 1.4.1-r4
Ebuild name:

media-sound/banshee-1.4.1-r4

Description

Import, organize, play, and share your music using a simple and powerf

Added to portage

2009-01-07

exiv2 - 0.18
Ebuild name:

media-gfx/exiv2-0.18

Description

EXIF and IPTC metadata C++ library and command line utility

Added to portage

2009-01-07

git - 1.6.1
Ebuild name:

dev-util/git-1.6.1

Description

GIT - the stupid content tracker, the revision control system heavily used by th

Added to portage

2009-01-07

hostapd - 0.6.7
Ebuild name:

net-wireless/hostapd-0.6.7

Description

IEEE 802.11 wireless LAN Host AP daemon

Added to portage

2009-01-07

hourglass - 0.7.2
Ebuild name:

app-office/hourglass-0.7.2

Description

A PSP (personal software process) time tracking utility written in Java

Added to portage

2009-01-07

pyephem - 3.7.3.3
Ebuild name:

sci-astronomy/pyephem-3.7.3.3

Description

Astronomical routines for the python programming language

Added to portage

2009-01-07

vdr-femon - 1.6.6
Ebuild name:

media-plugins/vdr-femon-1.6.6

Description

VDR Plugin: DVB Frontend Status Monitor (signal strengt/noise)

Added to portage

2009-01-07

2009-01-06
bakery - 2.6.2
Ebuild name:

dev-cpp/bakery-2.6.2

Description

Bakery is a C++ Framework for creating GNOME applications using gtkmm.

Added to portage

2009-01-06

boost - 1.35.0-r4
Ebuild name:

dev-libs/boost-1.35.0-r4

Description

Boost Libraries for C++

Added to portage

2009-01-06

bullet - 2.73-r1
Ebuild name:

sci-physics/bullet-2.73-r1

Description

Continuous Collision Detection and Physics Library

Added to portage

2009-01-06

cppserv - 0.2.1
Ebuild name:

dev-cpp/cppserv-0.2.1

Description

CPPSERV is an application server providing Servlet-like API in C++ and a C++

Added to portage

2009-01-06

darkstat - 3.0.712
Ebuild name:

net-analyzer/darkstat-3.0.712

Description

darkstat is a network traffic analyzer

Added to portage

2009-01-06

deluge - 1.1.0_rc3
Ebuild name:

net-p2p/deluge-1.1.0_rc3

Description

BitTorrent client with a client/server model.

Added to portage

2009-01-06

edox-data - 0.16.8.0.2
Ebuild name:

app-doc/edox-data-0.16.8.0.2

Description

The Enlightenment online help

Added to portage

2009-01-06

enlightenment - 0.16.8.15
Ebuild name:

x11-wm/enlightenment-0.16.8.15

Description

Enlightenment Window Manager

Added to portage

2009-01-06

epplets - 0.12
Ebuild name:

x11-plugins/epplets-0.12

Description

Base files for Enlightenment epplets and some epplets

Added to portage

2009-01-06

eselect-boost - 0.2
Ebuild name:

app-admin/eselect-boost-0.2

Description

boost module for eselect

Added to portage

2009-01-06

ethemes - 0.16.8.0.3
Ebuild name:

x11-themes/ethemes-0.16.8.0.3

Description

all the official Enlightenment themes

Added to portage

2009-01-06

evilvte - 0.4.4_pre9
Ebuild name:

x11-terms/evilvte-0.4.4_pre9

Description

VTE based, super lightweight terminal emulator

Added to portage

2009-01-06

fcitx - 3.6.0_rc
Ebuild name:

app-i18n/fcitx-3.6.0_rc

Description

Free Chinese Input Toy for X. Another Chinese XIM Input Method

Added to portage

2009-01-06

gcompris - 8.4.8
Ebuild name:

games-kids/gcompris-8.4.8

Description

full featured educational application for children from 2 to 10

Added to portage

2009-01-06

gdm - 2.20.9
Ebuild name:

gnome-base/gdm-2.20.9

Description

GNOME Display Manager

Added to portage

2009-01-06

genkernel - 3.4.10.903
Ebuild name:

sys-kernel/genkernel-3.4.10.903

Description

Gentoo automatic kernel building scripts

Added to portage

2009-01-06

git-sources - 2.6.28-r8
Ebuild name:

sys-kernel/git-sources-2.6.28-r8

Description

The very latest -git version of the Linux kernel

Added to portage

2009-01-06

glade-sharp - 2.8.2
Ebuild name:

dev-dotnet/glade-sharp-2.8.2

Description

Based on the eclass

Added to portage

2009-01-06

gnome-user-share - 0.41
Ebuild name:

gnome-extra/gnome-user-share-0.41

Description

Personal file sharing for the GNOME desktop

Added to portage

2009-01-06

gtk-sharp - 2.8.2
Ebuild name:

dev-dotnet/gtk-sharp-2.8.2

Description

Gtk is a C language binding for the GTK2 toolkit and GNOME libraries

Added to portage

2009-01-06

gtk-sharp-gapi - 2.12.7-r6
Ebuild name:

dev-dotnet/gtk-sharp-gapi-2.12.7-r6

Description

GtkSharp's module

Added to portage

2009-01-06

hal - 0.5.11-r6
Ebuild name:

sys-apps/hal-0.5.11-r6

Description

Hardware Abstraction Layer

Added to portage

2009-01-06

hourglass - 0.7.1
Ebuild name:

app-office/hourglass-0.7.1

Description

A PSP (personal software process) time tracking utility written in Java

Added to portage

2009-01-06

irtrans-irserver - 5.12.08
Ebuild name:

app-misc/irtrans-irserver-5.12.08

Description

IRTrans Server

Added to portage

2009-01-06

iwl4965-ucode - 228.57.2.23
Ebuild name:

net-wireless/iwl4965-ucode-228.57.2.23

Description

Intel (R) Wireless WiFi Link 4965AGN ucode

Added to portage

2009-01-06

libdrm - 2.4.3
Ebuild name:

x11-libs/libdrm-2.4.3

Description

X.Org libdrm library

Added to portage

2009-01-06

lxde-meta - 0.3.2.1-r1
Ebuild name:

lxde-base/lxde-meta-0.3.2.1-r1

Description

Meta ebuild for LXDE, the Lightweight X11 Desktop Environment

Added to portage

2009-01-06

moon-buggy - 1.0.51
Ebuild name:

games-action/moon-buggy-1.0.51

Description

A simple console game, where you drive a car across the moon's surfa

Added to portage

2009-01-06

pyPdf - 1.12
Ebuild name:

dev-python/pyPdf-1.12

Description

Python library to work with pdf files

Added to portage

2009-01-06

qt-assistant - 4.4.2-r1
Ebuild name:

x11-libs/qt-assistant-4.4.2-r1

Description

The assistant help module for the Qt toolkit.

Added to portage

2009-01-06

qt-gui - 4.4.2-r1
Ebuild name:

x11-libs/qt-gui-4.4.2-r1

Description

The GUI module(s) for the Qt toolkit.

Added to portage

2009-01-06

quota - 3.17
Ebuild name:

sys-fs/quota-3.17

Description

Linux quota tools

Added to portage

2009-01-06

rpyc - 3.02
Ebuild name:

dev-python/rpyc-3.02

Description

Remote python call

Added to portage

2009-01-06

sdlmame - 0.129
Ebuild name:

games-emulation/sdlmame-0.129

Description

Multiple Arcade Machine Emulator (SDL)

Added to portage

2009-01-06

sofia-sip - 1.12.10
Ebuild name:

net-libs/sofia-sip-1.12.10

Description

RFC3261 compliant SIP User-Agent library

Added to portage

2009-01-06

telepathy-sofiasip - 0.5.11
Ebuild name:

net-voip/telepathy-sofiasip-0.5.11

Description

A SIP connection manager for Telepathy based around the Sofia-SI

Added to portage

2009-01-06

vdr-dxr3 - 0.2.9
Ebuild name:

media-plugins/vdr-dxr3-0.2.9

Description

VDR plugin: Use a dxr3 or hw+ card as output device

Added to portage

2009-01-06

vdr-fritzbox - 1.1.4
Ebuild name:

media-plugins/vdr-fritzbox-1.1.4

Description

VDR Plugin: Inform about incoming phone-calls and use the fritz!bo

Added to portage

2009-01-06

vdr-image - 0.3.0
Ebuild name:

media-plugins/vdr-image-0.3.0

Description

VDR plugin: display of digital images, like jpeg, tiff, png, bmp

Added to portage

2009-01-06

vdr-osdteletext - 0.7.0
Ebuild name:

media-plugins/vdr-osdteletext-0.7.0

Description

VDR Plugin: Osd-Teletext displays the teletext on the OSD

Added to portage

2009-01-06

vdr-ttxtsubs - 0.0.8
Ebuild name:

media-plugins/vdr-ttxtsubs-0.0.8

Description

VDR Plugin: displaying, recording and replaying teletext based sub

Added to portage

2009-01-06

vdradmin-am - 3.6.4
Ebuild name:

net-www/vdradmin-am-3.6.4

Description

WWW Admin for the Video Disk Recorder

Added to portage

2009-01-06

wicd - 1.5.8
Ebuild name:

net-misc/wicd-1.5.8

Description

A lightweight wired and wireless network manager for Linux

Added to portage

2009-01-06

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004 S&P Softwaredesign
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 121.8 ms
system status display
Stellenangebote
Ärger mit Freenet.de