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:

89297

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-10-18
freeciv - 3.2.6
Ebuild name:

games-strategy/freeciv-3.2.6

Description

Multiplayer strategy game (Civilization Clone)

Added to portage

2026-10-18

gallery-dl - 1.32.17
Ebuild name:

net-misc/gallery-dl-1.32.17

Description

Download image galleries and collections from several image hosting sit

Added to portage

2026-10-18

graphql - 0.1.2
Ebuild name:

app-emacs/graphql-0.1.2

Description

GraphQL utilities

Added to portage

2026-10-18

graphviz-dot-mode - 0.4.2_p20250925
Ebuild name:

app-emacs/graphviz-dot-mode-0.4.2_p20250925

Description

Emacs mode for editing and previewing Graphviz dot grap

Added to portage

2026-10-18

libzip - 1.12.1
Ebuild name:

dev-libs/libzip-1.12.1

Description

Library for manipulating zip archives

Added to portage

2026-10-18

luau - 0.743
Ebuild name:

dev-lang/luau-0.743

Description

Gradually typed embeddable scripting language derived from Lua

Added to portage

2026-10-18

rocm-core - 10.1.0
Ebuild name:

dev-libs/rocm-core-10.1.0

Description

Library that provides ROCm release version and install path information

Added to portage

2026-10-18

rocm-device-libs - 10.1.0
Ebuild name:

dev-libs/rocm-device-libs-10.1.0

Description

Radeon Open Compute Device Libraries

Added to portage

2026-10-18

roct-thunk-interface - 10.1.0
Ebuild name:

dev-libs/roct-thunk-interface-10.1.0

Description

Radeon Open Compute Thunk Interface

Added to portage

2026-10-18

sddm - 0.21.0_p20260819-r1
Ebuild name:

x11-misc/sddm-0.21.0_p20260819-r1

Description

Simple Desktop Display Manager

Added to portage

2026-10-18

2026-10-17
aioquic - 1.7.0
Ebuild name:

dev-python/aioquic-1.7.0

Description

An implementation of QUIC and HTTP/3

Added to portage

2026-10-17

alephone-durandal - 20260930-r1
Ebuild name:

games-fps/alephone-durandal-20260930-r1

Description

Aleph One - Marathon 2 (Durandal)

Added to portage

2026-10-17

alephone-infinity - 20260930-r1
Ebuild name:

games-fps/alephone-infinity-20260930-r1

Description

Aleph One - Marathon Infinity

Added to portage

2026-10-17

alephone-marathon - 20260930-r1
Ebuild name:

games-fps/alephone-marathon-20260930-r1

Description

Aleph One - Marathon (M1A1)

Added to portage

2026-10-17

ast-serialize - 0.13.1
Ebuild name:

dev-python/ast-serialize-0.13.1

Description

Python bindings for mypy AST serialization

Added to portage

2026-10-17

aws-crt-cpp - 0.44.0
Ebuild name:

dev-cpp/aws-crt-cpp-0.44.0

Description

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

Added to portage

2026-10-17

awscrt - 0.38.0
Ebuild name:

dev-python/awscrt-0.38.0

Description

A common runtime for AWS Python projects

Added to portage

2026-10-17

berkeleydb - 18.1.16
Ebuild name:

dev-python/berkeleydb-18.1.16

Description

Python bindings for Oracle Berkeley DB

Added to portage

2026-10-17

btrfs-assistant - 3.0.0
Ebuild name:

app-admin/btrfs-assistant-3.0.0

Description

GUI management tool to make managing a Btrfs filesystem easier

Added to portage

2026-10-17

claude-code - 2.1.301
Ebuild name:

dev-util/claude-code-2.1.301

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-10-17

cli-helpers - 2.15.2
Ebuild name:

dev-python/cli-helpers-2.15.2

Description

Python helpers for common CLI tasks

Added to portage

2026-10-17

cnijfilter2 - 6.90
Ebuild name:

net-print/cnijfilter2-6.90

Description

IJ Printer Driver

Added to portage

2026-10-17

createrepo_c - 1.2.5
Ebuild name:

app-arch/createrepo_c-1.2.5

Description

C implementation of createrepo

Added to portage

2026-10-17

darktable - 5.6.2
Ebuild name:

media-gfx/darktable-5.6.2

Description

A virtual lighttable and darkroom for photographers

Added to portage

2026-10-17

distlib - 0.4.4
Ebuild name:

dev-python/distlib-0.4.4

Description

Low-level components of distutils2/packaging

Added to portage

2026-10-17

django-otp - 1.7.5
Ebuild name:

dev-python/django-otp-1.7.5

Description

Django framework adding two-factor authentication using one-time passwo

Added to portage

2026-10-17

elasticsearch - 9.5.5
Ebuild name:

app-misc/elasticsearch-9.5.5

Description

Free and Open, Distributed, RESTful Search Engine

Added to portage

2026-10-17

fastapi - 0.143.3
Ebuild name:

dev-python/fastapi-0.143.3

Description

High performance framework, easy to learn, fast to code, ready for produ

Added to portage

2026-10-17

ggml - 0.27.0
Ebuild name:

sci-ml/ggml-0.27.0

Description

Tensor library for machine learning

Added to portage

2026-10-17

graphviz-dot-mode - 0.4_p20181118
Ebuild name:

app-emacs/graphviz-dot-mode-0.4_p20181118

Description

Emacs mode for editing and previewing Graphviz dot graphs

Added to portage

2026-10-17

graphviz-dot-mode - 0.5.0
Ebuild name:

app-emacs/graphviz-dot-mode-0.5.0

Description

Emacs mode for editing and previewing Graphviz dot graphs

Added to portage

2026-10-17

groovy-emacs-modes - 2.1
Ebuild name:

app-emacs/groovy-emacs-modes-2.1

Description

Groovy major mode, grails minor mode, and a groovy inferior mode

Added to portage

2026-10-17

hypothesis - 6.170.1
Ebuild name:

dev-python/hypothesis-6.170.1

Description

A library for property based testing

Added to portage

2026-10-17

incus - 7.0.2
Ebuild name:

app-containers/incus-7.0.2

Description

Modern, secure and powerful system container and virtual machine manager

Added to portage

2026-10-17

jellyfin-bin - 12.2-r1
Ebuild name:

www-apps/jellyfin-bin-12.2-r1

Description

Jellyfin puts you in control of managing and streaming your media

Added to portage

2026-10-17

jsonpath-ng - 1.11.0
Ebuild name:

dev-python/jsonpath-ng-1.11.0

Description

Python JSONPath Next-Generation

Added to portage

2026-10-17

kde-cli-tools - 6.8.0-r1
Ebuild name:

kde-plasma/kde-cli-tools-6.8.0-r1

Description

Tools based on KDE Frameworks 6 to better interact with the syste

Added to portage

2026-10-17

libmodulemd - 2.15.3
Ebuild name:

sys-libs/libmodulemd-2.15.3

Description

C Library for manipulating Fedora Modularity metadata files

Added to portage

2026-10-17

mkl - 2026.2.0.881
Ebuild name:

sci-libs/mkl-2026.2.0.881

Description

Intel Math Kernel Library

Added to portage

2026-10-17

mu - 1.14.4-r1
Ebuild name:

net-mail/mu-1.14.4-r1

Description

Set of tools to deal with Maildirs, in particular, searching and indexing

Added to portage

2026-10-17

mumps - 5.8.2
Ebuild name:

sci-libs/mumps-5.8.2

Description

MUltifrontal Massively Parallel sparse direct matrix Solver

Added to portage

2026-10-17

ncspot - 1.5.0
Ebuild name:

media-sound/ncspot-1.5.0

Description

ncurses Spotify client written in Rust using librespot

Added to portage

2026-10-17

nrpe - 4.1.3
Ebuild name:

net-analyzer/nrpe-4.1.3

Description

Nagios Remote Plugin Executor

Added to portage

2026-10-17

objgraph - 3.7.0
Ebuild name:

dev-python/objgraph-3.7.0

Description

Draws Python object reference graphs with graphviz

Added to portage

2026-10-17

ollama - 0.40.5
Ebuild name:

sci-ml/ollama-0.40.5

Description

Get up and running with Llama 3, Mistral, Gemma, and other language models

Added to portage

2026-10-17

openntpd - 7.9_p1-r1
Ebuild name:

net-misc/openntpd-7.9_p1-r1

Description

Lightweight NTP server ported from OpenBSD

Added to portage

2026-10-17

pecl-memcached - 3.4.0-r1
Ebuild name:

dev-php/pecl-memcached-3.4.0-r1

Description

Interface PHP with memcached via libmemcached library

Added to portage

2026-10-17

pillow - 13.0.0
Ebuild name:

dev-python/pillow-13.0.0

Description

Python Imaging Library (fork)

Added to portage

2026-10-17

pkgcore - 0.12.47
Ebuild name:

sys-apps/pkgcore-0.12.47

Description

a framework for package management

Added to portage

2026-10-17

pkginfo - 1.13.3
Ebuild name:

dev-python/pkginfo-1.13.3

Description

Provides an API for querying the distutils metadata written in a PKG-INFO

Added to portage

2026-10-17

platformio - 6.2.0-r1
Ebuild name:

dev-embedded/platformio-6.2.0-r1

Description

An open source ecosystem for IoT development

Added to portage

2026-10-17

portalocker - 4.4.1
Ebuild name:

dev-python/portalocker-4.4.1

Description

A library for Python file locking

Added to portage

2026-10-17

pyqt-builder - 1.20.1
Ebuild name:

dev-python/pyqt-builder-1.20.1

Description

The PEP 517 compliant PyQt build system

Added to portage

2026-10-17

rocm-cmake - 10.1.0
Ebuild name:

dev-build/rocm-cmake-10.1.0

Description

Radeon Open Compute CMake Modules

Added to portage

2026-10-17

s2n-tls - 1.7.12
Ebuild name:

dev-libs/s2n-tls-1.7.12

Description

s2n-tls is a C99 implementation of the TLS/SSL protocols

Added to portage

2026-10-17

sdl3-image - 3.4.8
Ebuild name:

media-libs/sdl3-image-3.4.8

Description

A simple library to load images of various formats as SDL surfaces

Added to portage

2026-10-17

sphinx-autodoc-typehints - 3.17.1
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.17.1

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-10-17

spidermonkey - 140.17.0
Ebuild name:

dev-lang/spidermonkey-140.17.0

Description

Mozilla's JavaScript engine written in C and C++

Added to portage

2026-10-17

spidermonkey - 153.5.0
Ebuild name:

dev-lang/spidermonkey-153.5.0

Description

Mozilla's JavaScript engine written in C and C++

Added to portage

2026-10-17

sqlalchemy - 2.0.55
Ebuild name:

dev-python/sqlalchemy-2.0.55

Description

Python SQL toolkit and Object Relational Mapper

Added to portage

2026-10-17

sqlalchemy - 2.1.5
Ebuild name:

dev-python/sqlalchemy-2.1.5

Description

Python SQL toolkit and Object Relational Mapper

Added to portage

2026-10-17

ssh-audit - 3.9.0_p20261011
Ebuild name:

net-analyzer/ssh-audit-3.9.0_p20261011

Description

SSH server auditing (banner, key exchange, encryption, mac,

Added to portage

2026-10-17

superqt - 0.9.0
Ebuild name:

dev-python/superqt-0.9.0

Description

Missing widgets and components for PyQt/PySide

Added to portage

2026-10-17

union - 6.8.0-r1
Ebuild name:

kde-plasma/union-6.8.0-r1

Description

Style engine providing a unified style description to separate output sty

Added to portage

2026-10-17

wine-vanilla - 11.20
Ebuild name:

app-emulation/wine-vanilla-11.20

Description

Free implementation of Windows(tm) on Unix, without external patch

Added to portage

2026-10-17

zchunk - 1.5.4
Ebuild name:

app-arch/zchunk-1.5.4

Description

File format designed for highly efficient deltas with good compression

Added to portage

2026-10-17

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