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

search text in:




Other .linuxhowtos.org sites: www.linuxhowtos.org
toolsntoys.linuxhowtos.org



Last additions:
How to make X listen on port 6000

How to make X listen on port 6000

words:

34

views:

84657

userrating:

average rating: 1.2 (52 votes) (1=very good 6=terrible)


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



Support us on Content Nation

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2026-04-27
blake3 - 1.8.5
Ebuild name:

dev-libs/blake3-1.8.5

Description

a fast cryptographic hash function

Added to portage

2026-04-27

fluidsynth - 2.5.4
Ebuild name:

media-sound/fluidsynth-2.5.4

Description

Software real-time synthesizer based on the Soundfont 2 specifications

Added to portage

2026-04-27

gpsd - 3.27.5
Ebuild name:

sci-geosciences/gpsd-3.27.5

Description

GPS daemon and library for USB/serial GPS devices and GPS/mapping clien

Added to portage

2026-04-27

nxml-libvirt-schemas - 12.0.0
Ebuild name:

app-emacs/nxml-libvirt-schemas-12.0.0

Description

Extension for nxml-mode with libvirt schemas

Added to portage

2026-04-27

openpgp-keys-garyemiller - 20230413
Ebuild name:

sec-keys/openpgp-keys-garyemiller-20230413

Description

OpenPGP key for Gary E. Miller

Added to portage

2026-04-27

selinux-accountsd - 2.20250213_p1
Ebuild name:

sec-policy/selinux-accountsd-2.20250213_p1

Description

SELinux policy for accountsd

Added to portage

2026-04-27

selinux-accountsd - 2.20250618_p1
Ebuild name:

sec-policy/selinux-accountsd-2.20250618_p1

Description

SELinux policy for accountsd

Added to portage

2026-04-27

selinux-acct - 2.20250213_p1
Ebuild name:

sec-policy/selinux-acct-2.20250213_p1

Description

SELinux policy for acct

Added to portage

2026-04-27

selinux-acct - 2.20250618_p1
Ebuild name:

sec-policy/selinux-acct-2.20250618_p1

Description

SELinux policy for acct

Added to portage

2026-04-27

selinux-afs - 2.20250213_p1
Ebuild name:

sec-policy/selinux-afs-2.20250213_p1

Description

SELinux policy for afs

Added to portage

2026-04-27

selinux-afs - 2.20250618_p1
Ebuild name:

sec-policy/selinux-afs-2.20250618_p1

Description

SELinux policy for afs

Added to portage

2026-04-27

selinux-aide - 2.20250213_p1
Ebuild name:

sec-policy/selinux-aide-2.20250213_p1

Description

SELinux policy for aide

Added to portage

2026-04-27

selinux-aide - 2.20250618_p1
Ebuild name:

sec-policy/selinux-aide-2.20250618_p1

Description

SELinux policy for aide

Added to portage

2026-04-27

selinux-alsa - 2.20250213_p1
Ebuild name:

sec-policy/selinux-alsa-2.20250213_p1

Description

SELinux policy for alsa

Added to portage

2026-04-27

selinux-alsa - 2.20250618_p1
Ebuild name:

sec-policy/selinux-alsa-2.20250618_p1

Description

SELinux policy for alsa

Added to portage

2026-04-27

selinux-amanda - 2.20250213_p1
Ebuild name:

sec-policy/selinux-amanda-2.20250213_p1

Description

SELinux policy for amanda

Added to portage

2026-04-27

selinux-amanda - 2.20250618_p1
Ebuild name:

sec-policy/selinux-amanda-2.20250618_p1

Description

SELinux policy for amanda

Added to portage

2026-04-27

selinux-amavis - 2.20250213_p1
Ebuild name:

sec-policy/selinux-amavis-2.20250213_p1

Description

SELinux policy for amavis

Added to portage

2026-04-27

selinux-amavis - 2.20250618_p1
Ebuild name:

sec-policy/selinux-amavis-2.20250618_p1

Description

SELinux policy for amavis

Added to portage

2026-04-27

selinux-android - 2.20250213_p1
Ebuild name:

sec-policy/selinux-android-2.20250213_p1

Description

SELinux policy for android

Added to portage

2026-04-27

selinux-android - 2.20250618_p1
Ebuild name:

sec-policy/selinux-android-2.20250618_p1

Description

SELinux policy for android

Added to portage

2026-04-27

selinux-apache - 2.20250213_p1
Ebuild name:

sec-policy/selinux-apache-2.20250213_p1

Description

SELinux policy for apache

Added to portage

2026-04-27

selinux-apache - 2.20250618_p1
Ebuild name:

sec-policy/selinux-apache-2.20250618_p1

Description

SELinux policy for apache

Added to portage

2026-04-27

selinux-apcupsd - 2.20250213_p1
Ebuild name:

sec-policy/selinux-apcupsd-2.20250213_p1

Description

SELinux policy for apcupsd

Added to portage

2026-04-27

selinux-apcupsd - 2.20250618_p1
Ebuild name:

sec-policy/selinux-apcupsd-2.20250618_p1

Description

SELinux policy for apcupsd

Added to portage

2026-04-27

selinux-apm - 2.20250213_p1
Ebuild name:

sec-policy/selinux-apm-2.20250213_p1

Description

SELinux policy for acpi

Added to portage

2026-04-27

selinux-apm - 2.20250618_p1
Ebuild name:

sec-policy/selinux-apm-2.20250618_p1

Description

SELinux policy for acpi

Added to portage

2026-04-27

selinux-arpwatch - 2.20250213_p1
Ebuild name:

sec-policy/selinux-arpwatch-2.20250213_p1

Description

SELinux policy for arpwatch

Added to portage

2026-04-27

selinux-arpwatch - 2.20250618_p1
Ebuild name:

sec-policy/selinux-arpwatch-2.20250618_p1

Description

SELinux policy for arpwatch

Added to portage

2026-04-27

selinux-asterisk - 2.20250213_p1
Ebuild name:

sec-policy/selinux-asterisk-2.20250213_p1

Description

SELinux policy for asterisk

Added to portage

2026-04-27

selinux-asterisk - 2.20250618_p1
Ebuild name:

sec-policy/selinux-asterisk-2.20250618_p1

Description

SELinux policy for asterisk

Added to portage

2026-04-27

selinux-at - 2.20250213_p1
Ebuild name:

sec-policy/selinux-at-2.20250213_p1

Description

SELinux policy for at

Added to portage

2026-04-27

selinux-at - 2.20250618_p1
Ebuild name:

sec-policy/selinux-at-2.20250618_p1

Description

SELinux policy for at

Added to portage

2026-04-27

selinux-automount - 2.20250213_p1
Ebuild name:

sec-policy/selinux-automount-2.20250213_p1

Description

SELinux policy for automount

Added to portage

2026-04-27

selinux-automount - 2.20250618_p1
Ebuild name:

sec-policy/selinux-automount-2.20250618_p1

Description

SELinux policy for automount

Added to portage

2026-04-27

selinux-avahi - 2.20250213_p1
Ebuild name:

sec-policy/selinux-avahi-2.20250213_p1

Description

SELinux policy for avahi

Added to portage

2026-04-27

selinux-avahi - 2.20250618_p1
Ebuild name:

sec-policy/selinux-avahi-2.20250618_p1

Description

SELinux policy for avahi

Added to portage

2026-04-27

selinux-awstats - 2.20250213_p1
Ebuild name:

sec-policy/selinux-awstats-2.20250213_p1

Description

SELinux policy for awstats

Added to portage

2026-04-27

selinux-awstats - 2.20250618_p1
Ebuild name:

sec-policy/selinux-awstats-2.20250618_p1

Description

SELinux policy for awstats

Added to portage

2026-04-27

selinux-backup - 2.20250213_p1
Ebuild name:

sec-policy/selinux-backup-2.20250213_p1

Description

SELinux policy for generic backup apps

Added to portage

2026-04-27

selinux-backup - 2.20250618_p1
Ebuild name:

sec-policy/selinux-backup-2.20250618_p1

Description

SELinux policy for generic backup apps

Added to portage

2026-04-27

selinux-bacula - 2.20250213_p1
Ebuild name:

sec-policy/selinux-bacula-2.20250213_p1

Description

SELinux policy for bacula

Added to portage

2026-04-27

selinux-bacula - 2.20250618_p1
Ebuild name:

sec-policy/selinux-bacula-2.20250618_p1

Description

SELinux policy for bacula

Added to portage

2026-04-27

selinux-base - 2.20250213_p1
Ebuild name:

sec-policy/selinux-base-2.20250213_p1

Description

Gentoo base policy for SELinux

Added to portage

2026-04-27

selinux-base - 2.20250618_p1
Ebuild name:

sec-policy/selinux-base-2.20250618_p1

Description

Gentoo base policy for SELinux

Added to portage

2026-04-27

selinux-base-policy - 2.20250213_p1
Ebuild name:

sec-policy/selinux-base-policy-2.20250213_p1

Description

SELinux policy for core modules

Added to portage

2026-04-27

selinux-base-policy - 2.20250618_p1
Ebuild name:

sec-policy/selinux-base-policy-2.20250618_p1

Description

SELinux policy for core modules

Added to portage

2026-04-27

selinux-bind - 2.20250213_p1
Ebuild name:

sec-policy/selinux-bind-2.20250213_p1

Description

SELinux policy for bind

Added to portage

2026-04-27

selinux-bind - 2.20250618_p1
Ebuild name:

sec-policy/selinux-bind-2.20250618_p1

Description

SELinux policy for bind

Added to portage

2026-04-27

selinux-bitcoin - 2.20250213_p1
Ebuild name:

sec-policy/selinux-bitcoin-2.20250213_p1

Description

SELinux policy for bitcoin

Added to portage

2026-04-27

2026-04-26
epix - 1.2.22
Ebuild name:

sci-visualization/epix-1.2.22

Description

2- and 3-D plotter for creating images (to be used in LaTeX)

Added to portage

2026-04-26

fail2ban - 1.1.0-r7
Ebuild name:

net-analyzer/fail2ban-1.1.0-r7

Description

Scans log files and bans IPs that show malicious signs

Added to portage

2026-04-26

font-util - 1.4.2
Ebuild name:

media-fonts/font-util-1.4.2

Description

X.Org font utilities

Added to portage

2026-04-26

gpxsee - 16.6
Ebuild name:

sci-geosciences/gpxsee-16.6

Description

Viewer and analyzer that supports gpx, tcx, kml, fit, igc and nmea file

Added to portage

2026-04-26

koleo-cli - 0.2.137.32
Ebuild name:

app-misc/koleo-cli-0.2.137.32

Description

A simple CLI for koleo.pl railway planner

Added to portage

2026-04-26

kooha - 2.3.1
Ebuild name:

media-video/kooha-2.3.1

Description

Elegant screen recorder for Wayland

Added to portage

2026-04-26

mutt - 2.3.2
Ebuild name:

mail-client/mutt-2.3.2

Description

A small but very powerful text-based mail client

Added to portage

2026-04-26

nagios - 4.5.12
Ebuild name:

net-analyzer/nagios-4.5.12

Description

The Nagios metapackage

Added to portage

2026-04-26

nagios-core - 4.5.12
Ebuild name:

net-analyzer/nagios-core-4.5.12

Description

Nagios core - monitoring daemon, web GUI, and documentation

Added to portage

2026-04-26

nh3 - 0.3.5
Ebuild name:

dev-python/nh3-0.3.5

Description

Ammonia HTML sanitizer Python binding

Added to portage

2026-04-26

nss - 3.112.5
Ebuild name:

dev-libs/nss-3.112.5

Description

Mozilla's Network Security Services library that implements PKI support

Added to portage

2026-04-26

nss - 3.123.1
Ebuild name:

dev-libs/nss-3.123.1

Description

Mozilla's Network Security Services library that implements PKI support

Added to portage

2026-04-26

phonenumbers - 9.0.29
Ebuild name:

dev-python/phonenumbers-9.0.29

Description

Python port of Google's libphonenumber

Added to portage

2026-04-26

postfix - 3.12_pre20260423
Ebuild name:

mail-mta/postfix-3.12_pre20260423

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-04-26

raggre46 - 0.6.0
Ebuild name:

net-misc/raggre46-0.6.0

Description

Aggregate IPv4 & IPv6 network addresses

Added to portage

2026-04-26

safeeyes - 3.5.0
Ebuild name:

x11-misc/safeeyes-3.5.0

Description

Linux alternative to EyeLeo

Added to portage

2026-04-26

xbitmaps - 1.1.4
Ebuild name:

x11-misc/xbitmaps-1.1.4

Description

X.Org bitmaps data

Added to portage

2026-04-26

xrandr - 1.5.4
Ebuild name:

x11-apps/xrandr-1.5.4

Description

A primitive command line interface to RandR extension

Added to portage

2026-04-26

xxhash - 3.7.0
Ebuild name:

dev-python/xxhash-3.7.0

Description

Python binding for the xxHash library

Added to portage

2026-04-26

yara-python - 4.5.5
Ebuild name:

dev-python/yara-python-4.5.5

Description

Python interface for a malware identification and classification tool

Added to portage

2026-04-26

zope-interface - 8.4
Ebuild name:

dev-python/zope-interface-8.4

Description

Interfaces for Python

Added to portage

2026-04-26

rdf newsfeed | rss newsfeed | Atom newsfeed
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
- Copyright and legal notices -
Time to create this page: 22.1 ms