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:

87077

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-07-21
container-libs - 0.68.0-r1
Ebuild name:

app-containers/container-libs-0.68.0-r1

Description

Several utilities from the containers project

Added to portage

2026-07-21

containers-shortnames - 2025.03.19_p20260615
Ebuild name:

app-containers/containers-shortnames-2025.03.19_p20260615

Description

Configures default shortnames (aliases) f

Added to portage

2026-07-21

dkms - 3.4.2
Ebuild name:

sys-kernel/dkms-3.4.2

Description

Dynamic Kernel Module Support

Added to portage

2026-07-21

dracut - 111-r2
Ebuild name:

sys-kernel/dracut-111-r2

Description

Generic initramfs generation tool

Added to portage

2026-07-21

firefox - 153.0
Ebuild name:

www-client/firefox-153.0

Description

Firefox Web Browser

Added to portage

2026-07-21

firefox-l10n - 153.0
Ebuild name:

www-client/firefox-l10n-153.0

Description

Firefox Web Browser's translation files

Added to portage

2026-07-21

fuse-overlayfs - 1.17
Ebuild name:

sys-fs/fuse-overlayfs-1.17

Description

FUSE implementation for overlayfs

Added to portage

2026-07-21

ggml - 0.17.0
Ebuild name:

sci-ml/ggml-0.17.0

Description

Tensor library for machine learning

Added to portage

2026-07-21

ophcrack - 3.8.0-r2
Ebuild name:

app-crypt/ophcrack-3.8.0-r2

Description

A time-memory-trade-off-cracker

Added to portage

2026-07-21

ophcrack-tables - 1.0-r2
Ebuild name:

app-crypt/ophcrack-tables-1.0-r2

Description

Tables available for ophcrack

Added to portage

2026-07-21

osslsigncode - 2.13
Ebuild name:

app-crypt/osslsigncode-2.13

Description

Platform-independent tool for Authenticode signing of EXE/CAB files

Added to portage

2026-07-21

osslsigncode - 2.9
Ebuild name:

app-crypt/osslsigncode-2.9

Description

Platform-independent tool for Authenticode signing of EXE/CAB files

Added to portage

2026-07-21

p11-kit - 0.26.2
Ebuild name:

app-crypt/p11-kit-0.26.2

Description

Provides a standard configuration setup for installing PKCS11

Added to portage

2026-07-21

p11-kit - 0.26.4
Ebuild name:

app-crypt/p11-kit-0.26.4

Description

Provides a standard configuration setup for installing PKCS11

Added to portage

2026-07-21

paperkey - 1.6
Ebuild name:

app-crypt/paperkey-1.6

Description

OpenPGP key archiver

Added to portage

2026-07-21

passt - 2026.07.16
Ebuild name:

net-misc/passt-2026.07.16

Description

User-mode networking daemons for VMs and namespaces, replacement for Slir

Added to portage

2026-07-21

podman - 5.8.5
Ebuild name:

app-containers/podman-5.8.5

Description

A tool for managing OCI containers and pods with Docker-compatible CLI

Added to portage

2026-07-21

podman - 6.0.1
Ebuild name:

app-containers/podman-6.0.1

Description

A tool for managing OCI containers and pods with Docker-compatible CLI

Added to portage

2026-07-21

podman-tui - 1.11.3
Ebuild name:

app-containers/podman-tui-1.11.3

Description

Terminal UI frontend for Podman

Added to portage

2026-07-21

prometheus-podman-exporter - 1.21.2
Ebuild name:

app-metrics/prometheus-podman-exporter-1.21.2

Description

Exporter for podman giving containers, pods, images,

Added to portage

2026-07-21

pyqtgraph - 0.14.0-r1
Ebuild name:

dev-python/pyqtgraph-0.14.0-r1

Description

A pure-python graphics and GUI library built on PyQt and numpy

Added to portage

2026-07-21

2026-07-20
acme-sh - 3.1.4
Ebuild name:

app-crypt/acme-sh-3.1.4

Description

A pure Unix shell script implementing ACME client protocol

Added to portage

2026-07-20

aws-c-auth - 0.10.4
Ebuild name:

dev-libs/aws-c-auth-0.10.4

Description

AWS C Auth C99 library implementation of AWS client-side authentication

Added to portage

2026-07-20

aws-c-cal - 0.9.14
Ebuild name:

dev-libs/aws-c-cal-0.9.14

Description

Crypto Abstraction Layer Cross-Platform C99 wrapper for cryptography prim

Added to portage

2026-07-20

aws-c-common - 0.14.2
Ebuild name:

dev-libs/aws-c-common-0.14.2

Description

Core c99 package for AWS SDK for C

Added to portage

2026-07-20

aws-c-compression - 0.3.2
Ebuild name:

dev-libs/aws-c-compression-0.3.2

Description

AWS C Compression cross-platform algorithms

Added to portage

2026-07-20

aws-c-event-stream - 0.7.1
Ebuild name:

dev-libs/aws-c-event-stream-0.7.1

Description

Core c99 package for AWS SDK for C

Added to portage

2026-07-20

aws-c-http - 0.11.0
Ebuild name:

dev-libs/aws-c-http-0.11.0

Description

AWS C Http C99 implementation of the HTTP/1.1 and HTTP/2 specifications

Added to portage

2026-07-20

aws-c-io - 0.27.4
Ebuild name:

dev-libs/aws-c-io-0.27.4

Description

AWS C IO It handles all IO and TLS work for application protocols

Added to portage

2026-07-20

aws-c-mqtt - 0.16.0
Ebuild name:

dev-libs/aws-c-mqtt-0.16.0

Description

AWS C MQTT C99 implementation

Added to portage

2026-07-20

aws-c-s3 - 0.13.1
Ebuild name:

dev-libs/aws-c-s3-0.13.1

Description

AWS C S3 async library

Added to portage

2026-07-20

aws-c-sdkutils - 0.2.7
Ebuild name:

dev-libs/aws-c-sdkutils-0.2.7

Description

AWS C SDKUTILS C99 library implementing AWS SDK specific utilities

Added to portage

2026-07-20

aws-checksums - 0.2.10
Ebuild name:

dev-libs/aws-checksums-0.2.10

Description

Cross-Platform HW accelerated CRC32c and CRC32 with fallback to SW

Added to portage

2026-07-20

aws-crt-cpp - 0.37.4
Ebuild name:

dev-cpp/aws-crt-cpp-0.37.4

Description

C++ wrapper around the aws-c-* libraries

Added to portage

2026-07-20

aws-sdk-cpp - 1.11.764
Ebuild name:

dev-cpp/aws-sdk-cpp-1.11.764

Description

AWS SDK for C++

Added to portage

2026-07-20

below - 9999
Ebuild name:

sys-process/below-9999

Description

An interactive tool to view and record historical system data

Added to portage

2026-07-20

bitarray - 3.9.1
Ebuild name:

dev-python/bitarray-3.9.1

Description

Efficient arrays of booleans -- C extension

Added to portage

2026-07-20

confuse - 2.2.1
Ebuild name:

dev-python/confuse-2.2.1

Description

Confuse is a configuration library for Python that uses YAML

Added to portage

2026-07-20

dulwich - 1.2.12
Ebuild name:

dev-python/dulwich-1.2.12

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2026-07-20

faust-cchardet - 2.2.1
Ebuild name:

dev-python/faust-cchardet-2.2.1

Description

High speed universal character encoding detector

Added to portage

2026-07-20

firefox-bin - 153.0
Ebuild name:

www-client/firefox-bin-153.0

Description

Firefox Web Browser

Added to portage

2026-07-20

fractal - 14.1
Ebuild name:

net-im/fractal-14.1

Description

Matrix messaging app for GNOME written in Rust

Added to portage

2026-07-20

gcc - 17.0.0_p20260719
Ebuild name:

sys-devel/gcc-17.0.0_p20260719

Description

The GNU Compiler Collection

Added to portage

2026-07-20

gherkin-official - 42.0.0
Ebuild name:

dev-python/gherkin-official-42.0.0

Description

Gherkin parser/compiler for Python

Added to portage

2026-07-20

git-sources - 7.2_rc4
Ebuild name:

sys-kernel/git-sources-7.2_rc4

Description

The very latest -git version of the Linux kernel

Added to portage

2026-07-20

gpredict - 2.5.2
Ebuild name:

media-radio/gpredict-2.5.2

Description

Real-time satellite tracking and orbit prediction application

Added to portage

2026-07-20

gulrak-filesystem - 1.5.16
Ebuild name:

dev-cpp/gulrak-filesystem-1.5.16

Description

Header-only single-file std compatible helper library

Added to portage

2026-07-20

helvum - 0.6.2
Ebuild name:

media-sound/helvum-0.6.2

Description

A GTK patchbay for pipewire

Added to portage

2026-07-20

htop - 3.5.2
Ebuild name:

sys-process/htop-3.5.2

Description

Interactive process viewer

Added to portage

2026-07-20

hypothesis - 6.157.0
Ebuild name:

dev-python/hypothesis-6.157.0

Description

A library for property based testing

Added to portage

2026-07-20

joserfc - 1.7.4
Ebuild name:

dev-python/joserfc-1.7.4

Description

A Python library for JOSE RFCs JWS, JWE, JWK, JWA, JWT

Added to portage

2026-07-20

jupyter-builder - 1.1.1-r1
Ebuild name:

dev-python/jupyter-builder-1.1.1-r1

Description

JupyterLab build tools

Added to portage

2026-07-20

kddockwidgets - 2.4.1
Ebuild name:

gui-libs/kddockwidgets-2.4.1

Description

KDAB's Dock Widget Framework for Qt

Added to portage

2026-07-20

libxmp - 4.7.1
Ebuild name:

media-libs/libxmp-4.7.1

Description

Library that renders module files to PCM data

Added to portage

2026-07-20

lowdown - 3.1.1
Ebuild name:

app-text/lowdown-3.1.1

Description

Markdown translator producing HTML5, roff documents in the ms and man format

Added to portage

2026-07-20

mpd - 0.24.12-r1
Ebuild name:

media-sound/mpd-0.24.12-r1

Description

The Music Player Daemon (mpd)

Added to portage

2026-07-20

onak - 0.6.4
Ebuild name:

app-crypt/onak-0.6.4

Description

onak is an OpenPGP keyserver

Added to portage

2026-07-20

openrdap - 0.10.1
Ebuild name:

net-misc/openrdap-0.10.1

Description

RDAP command line client

Added to portage

2026-07-20

pebble - 5.2.1
Ebuild name:

dev-python/pebble-5.2.1

Description

Threading and multiprocessing eye-candy

Added to portage

2026-07-20

postfix - 3.12_pre20260716
Ebuild name:

mail-mta/postfix-3.12_pre20260716

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-07-20

pyshp - 3.1.4
Ebuild name:

sci-libs/pyshp-3.1.4

Description

Pure Python read/write support for ESRI Shapefile format

Added to portage

2026-07-20

ruff - 0.15.22
Ebuild name:

dev-util/ruff-0.15.22

Description

An extremely fast Python linter, written in Rust

Added to portage

2026-07-20

sdl2-mixer - 2.8.1-r4
Ebuild name:

media-libs/sdl2-mixer-2.8.1-r4

Description

Simple Direct Media Layer Mixer Library

Added to portage

2026-07-20

sdl2-mixer - 2.8.2-r1
Ebuild name:

media-libs/sdl2-mixer-2.8.2-r1

Description

Simple Direct Media Layer Mixer Library

Added to portage

2026-07-20

soupsieve - 2.9
Ebuild name:

dev-python/soupsieve-2.9

Description

A modern CSS selector implementation for BeautifulSoup

Added to portage

2026-07-20

stb - 20260415-r1
Ebuild name:

dev-libs/stb-20260415-r1

Description

Single-file C/C++ libraries for various purposes

Added to portage

2026-07-20

term-ansicolor - 1.11.3-r1
Ebuild name:

dev-ruby/term-ansicolor-1.11.3-r1

Description

Small Ruby library that colors strings using ANSI escape sequence

Added to portage

2026-07-20

winbox - 4.3
Ebuild name:

app-admin/winbox-4.3

Description

Management Software for MikroTik RouterOS

Added to portage

2026-07-20

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