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:

88226

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-09-07
Finance-Quote - 1.710.0
Ebuild name:

dev-perl/Finance-Quote-1.710.0

Description

Get stock and mutual fund quotes from various exchanges

Added to portage

2026-09-07

blisp - 0.0.5-r1
Ebuild name:

sys-firmware/blisp-0.0.5-r1

Description

Bouffalo Labs in-system-programming tool and library

Added to portage

2026-09-07

boltons - 26.2.0
Ebuild name:

dev-python/boltons-26.2.0

Description

Pure-python utilities in the same spirit as the standard library

Added to portage

2026-09-07

cattrs - 26.2.0
Ebuild name:

dev-python/cattrs-26.2.0

Description

Composable complex class support for attrs and dataclasses

Added to portage

2026-09-07

configargparse - 1.7.7
Ebuild name:

dev-python/configargparse-1.7.7

Description

Drop-in replacement for argparse supporting config files and env va

Added to portage

2026-09-07

django-otp - 1.7.3
Ebuild name:

dev-python/django-otp-1.7.3

Description

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

Added to portage

2026-09-07

doctest - 2.5.3
Ebuild name:

dev-cpp/doctest-2.5.3

Description

The fastest feature-rich C++11/14/17/20 single-header testing framework

Added to portage

2026-09-07

ezgb - 0.2.0
Ebuild name:

dev-python/ezgb-0.2.0

Description

A standalone Python library for working with git-bug repositories

Added to portage

2026-09-07

gcc - 13.4.1_p20260902
Ebuild name:

sys-devel/gcc-13.4.1_p20260902

Description

The GNU Compiler Collection

Added to portage

2026-09-07

gcc - 13.4.1_p20260904
Ebuild name:

sys-devel/gcc-13.4.1_p20260904

Description

The GNU Compiler Collection

Added to portage

2026-09-07

gcc - 14.4.1_p20260903
Ebuild name:

sys-devel/gcc-14.4.1_p20260903

Description

The GNU Compiler Collection

Added to portage

2026-09-07

gcc - 15.3.1_p20260904
Ebuild name:

sys-devel/gcc-15.3.1_p20260904

Description

The GNU Compiler Collection

Added to portage

2026-09-07

gcc - 16.2.1_p20260905
Ebuild name:

sys-devel/gcc-16.2.1_p20260905

Description

The GNU Compiler Collection

Added to portage

2026-09-07

gcc - 17.0.0_p20260906
Ebuild name:

sys-devel/gcc-17.0.0_p20260906

Description

The GNU Compiler Collection

Added to portage

2026-09-07

gentoo-sources - 6.12.109
Ebuild name:

sys-kernel/gentoo-sources-6.12.109

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-09-07

gentoo-sources - 6.18.50
Ebuild name:

sys-kernel/gentoo-sources-6.18.50

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-09-07

gentoo-sources - 7.2.4
Ebuild name:

sys-kernel/gentoo-sources-7.2.4

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-09-07

git-sources - 7.3_rc2
Ebuild name:

sys-kernel/git-sources-7.3_rc2

Description

The very latest -git version of the Linux kernel

Added to portage

2026-09-07

hdf5 - 2.2.0
Ebuild name:

sci-libs/hdf5-2.2.0

Description

General purpose library and file format for storing scientific data

Added to portage

2026-09-07

intel-compute-runtime - 26.27.39122.12-r1
Ebuild name:

dev-libs/intel-compute-runtime-26.27.39122.12-r1

Description

Intel Graphics Compute Runtime for oneAPI Level Ze

Added to portage

2026-09-07

ipmiview - 2.25.0.260812
Ebuild name:

net-misc/ipmiview-2.25.0.260812

Description

A GUI application that allows to manage multiple target systems thr

Added to portage

2026-09-07

libpcre2 - 10.48
Ebuild name:

dev-libs/libpcre2-10.48

Description

Perl-compatible regular expression library

Added to portage

2026-09-07

libpcre2-internals - 10.47
Ebuild name:

virtual/libpcre2-internals-10.47

Description

Virtual for dev-libs/libpcre2 internals

Added to portage

2026-09-07

libpcre2-internals - 10.48
Ebuild name:

virtual/libpcre2-internals-10.48

Description

Virtual for dev-libs/libpcre2 internals

Added to portage

2026-09-07

libselinux - 3.10-r3
Ebuild name:

sys-libs/libselinux-3.10-r3

Description

SELinux userland library

Added to portage

2026-09-07

libselinux - 3.11-r1
Ebuild name:

sys-libs/libselinux-3.11-r1

Description

SELinux userland library

Added to portage

2026-09-07

numpy - 2.5.3
Ebuild name:

dev-python/numpy-2.5.3

Description

Fast array and numerical python library

Added to portage

2026-09-07

openapi-core - 0.23.1-r2
Ebuild name:

dev-python/openapi-core-0.23.1-r2

Description

Client-side and server-side support for the OpenAPI Specification

Added to portage

2026-09-07

types-psutil - 7.2.2.20260906
Ebuild name:

dev-python/types-psutil-7.2.2.20260906

Description

Typing stubs for psutil

Added to portage

2026-09-07

vanilla-sources - 6.12.109
Ebuild name:

sys-kernel/vanilla-sources-6.12.109

Description

Full sources for the Linux kernel

Added to portage

2026-09-07

vanilla-sources - 6.18.50
Ebuild name:

sys-kernel/vanilla-sources-6.18.50

Description

Full sources for the Linux kernel

Added to portage

2026-09-07

vanilla-sources - 7.2.4
Ebuild name:

sys-kernel/vanilla-sources-7.2.4

Description

Full sources for the Linux kernel

Added to portage

2026-09-07

wget - 1.25.0-r3
Ebuild name:

net-misc/wget-1.25.0-r3

Description

Network utility to retrieve files from the WWW

Added to portage

2026-09-07

yaspin - 3.5.0
Ebuild name:

dev-python/yaspin-3.5.0

Description

Yet Another Terminal Spinner

Added to portage

2026-09-07

2026-09-06
aboot - 2.0
Ebuild name:

sys-boot/aboot-2.0

Description

Alpha Linux boot loader for SRM

Added to portage

2026-09-06

adwaita-fonts - 50.0
Ebuild name:

media-fonts/adwaita-fonts-50.0

Description

The typefaces for GNOME

Added to portage

2026-09-06

ansi2html - 1.9.5
Ebuild name:

dev-python/ansi2html-1.9.5

Description

Convert text with ANSI color codes to HTML

Added to portage

2026-09-06

anyio - 4.15.1
Ebuild name:

dev-python/anyio-4.15.1

Description

Compatibility layer for multiple asynchronous event loop implementations

Added to portage

2026-09-06

at-spi2-core - 2.60.6
Ebuild name:

app-accessibility/at-spi2-core-2.60.6

Description

D-Bus accessibility specifications and registration daemon

Added to portage

2026-09-06

celluloid - 0.30-r1
Ebuild name:

media-video/celluloid-0.30-r1

Description

Simple GTK+ frontend for mpv

Added to portage

2026-09-06

chemex - 2026.9.0
Ebuild name:

sci-chemistry/chemex-2026.9.0

Description

Program to fit chemical exchange induced shift and relaxation data

Added to portage

2026-09-06

davix - 0.9.0
Ebuild name:

net-libs/davix-0.9.0

Description

High-performance file management over WebDAV/HTTP

Added to portage

2026-09-06

dokuwiki - 20260714c
Ebuild name:

www-apps/dokuwiki-20260714c

Description

DokuWiki is a simple to use Wiki aimed at a small company's documentati

Added to portage

2026-09-06

e16 - 1.0.32
Ebuild name:

x11-wm/e16-1.0.32

Description

Enlightenment Window Manager (E16)

Added to portage

2026-09-06

eog - 50.3
Ebuild name:

media-gfx/eog-50.3

Description

The Eye of GNOME image viewer

Added to portage

2026-09-06

fastfetch - 2.68.1
Ebuild name:

app-misc/fastfetch-2.68.1

Description

Fast neofetch-like system information tool

Added to portage

2026-09-06

gdk-pixbuf - 2.44.8
Ebuild name:

x11-libs/gdk-pixbuf-2.44.8

Description

Image loading library for GTK+

Added to portage

2026-09-06

getmail - 6.20.01
Ebuild name:

net-mail/getmail-6.20.01

Description

A mail retriever with reliable Maildir and mbox delivery

Added to portage

2026-09-06

gimp-arrow-brushes - 20190407-r1
Ebuild name:

media-gfx/gimp-arrow-brushes-20190407-r1

Description

Brushes for GIMP with the styles arrow, handpointer, butto

Added to portage

2026-09-06

git-bug - 0.10.1
Ebuild name:

dev-util/git-bug-0.10.1

Description

Distributed, offline-first bug tracker embedded in git

Added to portage

2026-09-06

gitstats - 0_pre20201124-r1
Ebuild name:

dev-vcs/gitstats-0_pre20201124-r1

Description

Statistics generator for git

Added to portage

2026-09-06

glycin - 2.1.5
Ebuild name:

media-libs/glycin-2.1.5

Description

Sandboxed and extendable image loading library

Added to portage

2026-09-06

gnome-backgrounds - 50.0
Ebuild name:

x11-themes/gnome-backgrounds-50.0

Description

A set of backgrounds packaged with the GNOME desktop

Added to portage

2026-09-06

gnome-clocks - 50.0
Ebuild name:

gnome-extra/gnome-clocks-50.0

Description

Clocks application for GNOME

Added to portage

2026-09-06

gnome-shell-extension-alphabetical-grid - 46.0
Ebuild name:

gnome-extra/gnome-shell-extension-alphabetical-grid-46.0

Description

Restore the alphabetical ordering of the a

Added to portage

2026-09-06

grisbi - 3.90.1
Ebuild name:

app-office/grisbi-3.90.1

Description

Grisbi is a personal accounting application for Linux

Added to portage

2026-09-06

kaidan - 0.16.0
Ebuild name:

net-im/kaidan-0.16.0

Description

Modern XMPP chat app for every device

Added to portage

2026-09-06

kmymoney - 5.2.2_p20260906
Ebuild name:

app-office/kmymoney-5.2.2_p20260906

Description

Personal finance manager based on KDE Frameworks

Added to portage

2026-09-06

lean-mode - 0_p20230611-r1
Ebuild name:

app-emacs/lean-mode-0_p20230611-r1

Description

Emacs mode for the Lean 3 theorem prover

Added to portage

2026-09-06

mongodb - 8.0.29
Ebuild name:

dev-db/mongodb-8.0.29

Description

A high-performance, open source, schema-free document-oriented database

Added to portage

2026-09-06

mongodb - 8.3.8
Ebuild name:

dev-db/mongodb-8.3.8

Description

A high-performance, open source, schema-free document-oriented database

Added to portage

2026-09-06

netpbm - 11.15.7
Ebuild name:

media-libs/netpbm-11.15.7

Description

A set of utilities for converting to/from the netpbm (and related) format

Added to portage

2026-09-06

netpbm - 11.2.29
Ebuild name:

media-libs/netpbm-11.2.29

Description

A set of utilities for converting to/from the netpbm (and related) format

Added to portage

2026-09-06

nuitka - 4.2.1
Ebuild name:

dev-python/nuitka-4.2.1

Description

Python to native compiler

Added to portage

2026-09-06

oidc-agent - 5.3.8
Ebuild name:

net-misc/oidc-agent-5.3.8

Description

Agent and tools for managing OpenID Connect tokens on the command line

Added to portage

2026-09-06

peewee - 4.5.0
Ebuild name:

dev-python/peewee-4.5.0

Description

Small Python ORM

Added to portage

2026-09-06

pikepdf - 10.13.0_p1
Ebuild name:

dev-python/pikepdf-10.13.0_p1

Description

Python library to work with pdf files based on qpdf

Added to portage

2026-09-06

pkgconf - 3.0.7
Ebuild name:

dev-util/pkgconf-3.0.7

Description

pkg-config compatible replacement with no dependencies other than C99

Added to portage

2026-09-06

poetry - 2.4.3
Ebuild name:

dev-python/poetry-2.4.3

Description

A frontend for poetry - a python dependency management and packaging tool

Added to portage

2026-09-06

pure-eval - 0.2.3-r1
Ebuild name:

dev-python/pure-eval-0.2.3-r1

Description

Safely evaluate AST nodes without side effects

Added to portage

2026-09-06

pyproj - 3.8.0
Ebuild name:

dev-python/pyproj-3.8.0

Description

Python interface to the PROJ library

Added to portage

2026-09-06

pysequoia - 0.1.35
Ebuild name:

dev-python/pysequoia-0.1.35

Description

Provides OpenPGP facilities using Sequoia-PGP library

Added to portage

2026-09-06

qxmpp - 1.16.3
Ebuild name:

net-libs/qxmpp-1.16.3

Description

Cross-platform C++ XMPP client and server library

Added to portage

2026-09-06

readme-renderer - 46.0-r1
Ebuild name:

dev-python/readme-renderer-46.0-r1

Description

A library for rendering 'readme' descriptions for Warehouse

Added to portage

2026-09-06

regress - 2026.9.1
Ebuild name:

dev-python/regress-2026.9.1

Description

Python bindings to the Rust regress crate

Added to portage

2026-09-06

rich-click - 1.9.9
Ebuild name:

dev-python/rich-click-1.9.9

Description

Format click help output nicely with rich

Added to portage

2026-09-06

root - 6.40.04
Ebuild name:

sci-physics/root-6.40.04

Description

C++ data analysis framework and interpreter from CERN

Added to portage

2026-09-06

skrooge - 26.8.0
Ebuild name:

app-office/skrooge-26.8.0

Description

Personal finances manager, aiming at being simple and intuitive

Added to portage

2026-09-06

smb4k - 4.0.7
Ebuild name:

net-misc/smb4k-4.0.7

Description

Advanced network neighborhood browser

Added to portage

2026-09-06

taglib - 2.3.2
Ebuild name:

media-libs/taglib-2.3.2

Description

Library for reading and editing audio meta data

Added to portage

2026-09-06

thriftpy2 - 0.7.1
Ebuild name:

dev-python/thriftpy2-0.7.1

Description

Pure python approach of Apache Thrift

Added to portage

2026-09-06

uftrace - 0.20
Ebuild name:

dev-util/uftrace-0.20

Description

Function (graph) tracer for user-space

Added to portage

2026-09-06

untrunc - 0_pre20260820
Ebuild name:

media-video/untrunc-0_pre20260820

Description

Restore truncated mp4/mov files

Added to portage

2026-09-06

unuran - 1.12.0
Ebuild name:

sci-mathematics/unuran-1.12.0

Description

Universal Non-Uniform Random number generator

Added to portage

2026-09-06

virt-firmware - 26.9
Ebuild name:

app-emulation/virt-firmware-26.9

Description

Tools for ovmf/armvirt firmware volumes

Added to portage

2026-09-06

virtualgl - 3.1.5
Ebuild name:

x11-misc/virtualgl-3.1.5

Description

Run OpenGL applications remotely with full 3D hardware acceleration

Added to portage

2026-09-06

vpl-gpu-rt - 26.3.2
Ebuild name:

media-libs/vpl-gpu-rt-26.3.2

Description

Intel Video Processing Library GPU Runtime

Added to portage

2026-09-06

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