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:

88803

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-01
gamescope - 3.16.31
Ebuild name:

gui-wm/gamescope-3.16.31

Description

Efficient micro-compositor for running games

Added to portage

2026-10-01

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-01

innoextract - 1.13.0
Ebuild name:

app-arch/innoextract-1.13.0

Description

A tool to unpack installers created by Inno Setup

Added to portage

2026-10-01

makemkv - 2.0.0
Ebuild name:

media-video/makemkv-2.0.0

Description

Tool for ripping and streaming Blu-ray, HD-DVD and DVD discs

Added to portage

2026-10-01

phpBB - 3.3.19
Ebuild name:

www-apps/phpBB-3.3.19

Description

An open-source PHP-based bulletin board package

Added to portage

2026-10-01

teamviewer - 15.82.6
Ebuild name:

net-misc/teamviewer-15.82.6

Description

All-In-One Solution for Remote Access and Support over the Internet

Added to portage

2026-10-01

2026-09-30
awscli - 2.37.6
Ebuild name:

app-admin/awscli-2.37.6

Description

Universal Command Line Environment for AWS

Added to portage

2026-09-30

blake3 - 1.0.10
Ebuild name:

dev-python/blake3-1.0.10

Description

Python bindings for the BLAKE3 cryptographic hash function

Added to portage

2026-09-30

boto3 - 1.43.105
Ebuild name:

dev-python/boto3-1.43.105

Description

The AWS SDK for Python

Added to portage

2026-09-30

botocore - 1.43.105
Ebuild name:

dev-python/botocore-1.43.105

Description

Low-level, data-driven core of boto 3

Added to portage

2026-09-30

cifs-utils - 7.8
Ebuild name:

net-fs/cifs-utils-7.8

Description

Tools for Managing Linux CIFS Client Filesystems

Added to portage

2026-09-30

cpu-x - 5.4.1
Ebuild name:

sys-apps/cpu-x-5.4.1

Description

A Free software that gathers information on CPU, motherboard and more

Added to portage

2026-09-30

cramjam - 2.13.0
Ebuild name:

dev-python/cramjam-2.13.0

Description

Thin Python bindings to de/compression algorithms in Rust

Added to portage

2026-09-30

dlib - 20.0.1
Ebuild name:

sci-libs/dlib-20.0.1

Description

Numerical and networking C++ library

Added to portage

2026-09-30

dropbox - 273.4.4708
Ebuild name:

net-misc/dropbox-273.4.4708

Description

Dropbox daemon (pretends to be GUI-less)

Added to portage

2026-09-30

duplicity - 3.2.1
Ebuild name:

app-backup/duplicity-3.2.1

Description

Secure backup system using GnuPG to encrypt data

Added to portage

2026-09-30

filelock - 4.0.7
Ebuild name:

dev-python/filelock-4.0.7

Description

A platform independent file lock for Python

Added to portage

2026-09-30

flufl-lock - 9.2.0
Ebuild name:

dev-python/flufl-lock-9.2.0

Description

NFS-safe file locking with timeouts for POSIX systems

Added to portage

2026-09-30

fonttools - 4.66.1
Ebuild name:

dev-python/fonttools-4.66.1

Description

Library for manipulating TrueType, OpenType, AFM and Type1 fonts

Added to portage

2026-09-30

gallery-dl - 1.32.14
Ebuild name:

net-misc/gallery-dl-1.32.14

Description

Download image galleries and collections from several image hosting sit

Added to portage

2026-09-30

git-credential-manager - 3.0.0
Ebuild name:

dev-vcs/git-credential-manager-3.0.0

Description

Secure Git credential storage supporing GitHub, Azure Repos, a

Added to portage

2026-09-30

google-api-core - 2.40.0
Ebuild name:

dev-python/google-api-core-2.40.0

Description

Core Library for Google Client Libraries

Added to portage

2026-09-30

google-auth-httplib2 - 0.4.3
Ebuild name:

dev-python/google-auth-httplib2-0.4.3

Description

httplib2 Transport for Google Auth

Added to portage

2026-09-30

google-auth-oauthlib - 1.5.0
Ebuild name:

dev-python/google-auth-oauthlib-1.5.0

Description

Google Authentication Library

Added to portage

2026-09-30

googleapis-common-protos - 1.75.5
Ebuild name:

dev-python/googleapis-common-protos-1.75.5

Description

Python classes generated from the common protos in the g

Added to portage

2026-09-30

gpxsee - 16.16
Ebuild name:

sci-geosciences/gpxsee-16.16

Description

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

Added to portage

2026-09-30

grep-ast - 20250508
Ebuild name:

dev-python/grep-ast-20250508

Description

Grep source code and see useful code context about matching lines

Added to portage

2026-09-30

groff - 1.24.2
Ebuild name:

sys-apps/groff-1.24.2

Description

Text formatter used for man pages

Added to portage

2026-09-30

grub - 2.16-r1
Ebuild name:

sys-boot/grub-2.16-r1

Description

GNU GRUB boot loader

Added to portage

2026-09-30

gruvbox-theme - 1.30.2
Ebuild name:

app-emacs/gruvbox-theme-1.30.2

Description

Gruvbox is a retro groove color scheme, now in Emacs

Added to portage

2026-09-30

gruvbox-theme - 1.30.3
Ebuild name:

app-emacs/gruvbox-theme-1.30.3

Description

Gruvbox is a retro groove color scheme, now in Emacs

Added to portage

2026-09-30

gruvbox-theme - 1.30.4
Ebuild name:

app-emacs/gruvbox-theme-1.30.4

Description

Gruvbox is a retro groove color scheme, now in Emacs

Added to portage

2026-09-30

gruvbox-theme - 9999
Ebuild name:

app-emacs/gruvbox-theme-9999

Description

Gruvbox is a retro groove color scheme, now in Emacs

Added to portage

2026-09-30

h4x0r - 0.13-r1
Ebuild name:

app-emacs/h4x0r-0.13-r1

Description

Aid in writing like a script kiddie does

Added to portage

2026-09-30

haskell-mode - 17.4
Ebuild name:

app-emacs/haskell-mode-17.4

Description

Mode for editing (and running) Haskell programs in Emacs

Added to portage

2026-09-30

ig - 0.56.1
Ebuild name:

app-admin/ig-0.56.1

Description

Tools and framework for data collection and system inspection using eBPF

Added to portage

2026-09-30

iperf - 3.22
Ebuild name:

net-misc/iperf-3.22

Description

TCP, UDP, and SCTP network bandwidth measurement tool

Added to portage

2026-09-30

ipykernel - 7.4.0
Ebuild name:

dev-python/ipykernel-7.4.0

Description

IPython Kernel for Jupyter

Added to portage

2026-09-30

joplin-desktop - 3.7.21
Ebuild name:

app-office/joplin-desktop-3.7.21

Description

Secure note taking and to-do app with synchronization capabilities

Added to portage

2026-09-30

josm-bin - 19613
Ebuild name:

sci-geosciences/josm-bin-19613

Description

Java-based editor for the OpenStreetMap project

Added to portage

2026-09-30

kmscon - 10.0.4
Ebuild name:

sys-apps/kmscon-10.0.4

Description

KMS/DRM based virtual Console Emulator

Added to portage

2026-09-30

koleo-cli - 0.2.137.38
Ebuild name:

app-misc/koleo-cli-0.2.137.38

Description

A simple CLI for koleo.pl railway planner

Added to portage

2026-09-30

kvantum - 1.1.8-r1
Ebuild name:

x11-themes/kvantum-1.1.8-r1

Description

SVG-based theme engine for Qt, KDE Plasma and LXQt

Added to portage

2026-09-30

libasyncns - 0.8-r5
Ebuild name:

net-libs/libasyncns-0.8-r5

Description

C library for executing name service queries asynchronously

Added to portage

2026-09-30

libtsm - 4.8.0
Ebuild name:

dev-libs/libtsm-4.8.0

Description

Terminal Emulator State Machine

Added to portage

2026-09-30

loky - 3.7.0
Ebuild name:

dev-python/loky-3.7.0

Description

Robust and reusable Executor for joblib

Added to portage

2026-09-30

man-pages - 6.17-r2
Ebuild name:

sys-apps/man-pages-6.17-r2

Description

A somewhat comprehensive collection of Linux man pages

Added to portage

2026-09-30

man-pages-l10n - 4.32.2
Ebuild name:

app-i18n/man-pages-l10n-4.32.2

Description

A somewhat comprehensive collection of man page translations

Added to portage

2026-09-30

marginalia - 2.13
Ebuild name:

app-emacs/marginalia-2.13

Description

Marginalia in the minibuffer

Added to portage

2026-09-30

mergiraf - 0.20.0
Ebuild name:

dev-vcs/mergiraf-0.20.0

Description

Syntax-aware git merge driver

Added to portage

2026-09-30

mirrorselect - 2.8.0
Ebuild name:

app-portage/mirrorselect-2.8.0

Description

Tool to help select distfiles mirrors for Gentoo

Added to portage

2026-09-30

netdata - 2.11.1
Ebuild name:

net-analyzer/netdata-2.11.1

Description

Linux real time system monitoring, done right

Added to portage

2026-09-30

ntfs3g - 2026.9.28
Ebuild name:

sys-fs/ntfs3g-2026.9.28

Description

Open source read-write NTFS driver that runs under FUSE

Added to portage

2026-09-30

ollama - 0.35.0
Ebuild name:

sci-ml/ollama-0.35.0

Description

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

Added to portage

2026-09-30

openpgp-keys-groff - 20260929
Ebuild name:

sec-keys/openpgp-keys-groff-20260929

Description

OpenPGP keys used by GNU roff

Added to portage

2026-09-30

openssl - 3.4.8
Ebuild name:

dev-libs/openssl-3.4.8

Description

Robust, full-featured Open Source Toolkit for the Transport Layer Security (

Added to portage

2026-09-30

openssl - 3.5.9
Ebuild name:

dev-libs/openssl-3.5.9

Description

Robust, full-featured Open Source Toolkit for the Transport Layer Security (

Added to portage

2026-09-30

openssl - 3.6.5
Ebuild name:

dev-libs/openssl-3.6.5

Description

Robust, full-featured Open Source Toolkit for the Transport Layer Security (

Added to portage

2026-09-30

openssl - 4.0.3
Ebuild name:

dev-libs/openssl-4.0.3

Description

Robust, full-featured Open Source Toolkit for the Transport Layer Security (

Added to portage

2026-09-30

orderless - 1.8
Ebuild name:

app-emacs/orderless-1.8

Description

Completion style that matches multiple regexps in any order

Added to portage

2026-09-30

owntracks-recorder - 1.0.4
Ebuild name:

sci-geosciences/owntracks-recorder-1.0.4

Description

Stores and accesses location data published by the OwnTrac

Added to portage

2026-09-30

pandoc-bin - 3.12
Ebuild name:

app-text/pandoc-bin-3.12

Description

Conversion between markup formats (binary package)

Added to portage

2026-09-30

pbs-installer - 2026.9.29
Ebuild name:

dev-python/pbs-installer-2026.9.29

Description

Installer for Python Build Standalone

Added to portage

2026-09-30

pikepdf - 10.16.0
Ebuild name:

dev-python/pikepdf-10.16.0

Description

Python library to work with pdf files based on qpdf

Added to portage

2026-09-30

platformdirs - 4.12.2
Ebuild name:

dev-python/platformdirs-4.12.2

Description

A small Python module for determining appropriate platform-specific

Added to portage

2026-09-30

ppp - 2.5.4-r1
Ebuild name:

net-dialup/ppp-2.5.4-r1

Description

Point-to-Point Protocol (PPP)

Added to portage

2026-09-30

proto-plus - 1.29.0
Ebuild name:

dev-python/proto-plus-1.29.0

Description

Beautiful, Pythonic protocol buffers

Added to portage

2026-09-30

pylast - 7.2.0
Ebuild name:

dev-python/pylast-7.2.0

Description

Python interface to last.fm and other api-compatible websites

Added to portage

2026-09-30

pylint - 4.1.1
Ebuild name:

dev-python/pylint-4.1.1

Description

Python code static checker

Added to portage

2026-09-30

pyspnego - 0.12.3
Ebuild name:

dev-python/pyspnego-0.12.3

Description

Library to handle SPNEGO and CredSSP authentication

Added to portage

2026-09-30

python-gnupg - 0.5.7
Ebuild name:

dev-python/python-gnupg-0.5.7

Description

A Python wrapper for GnuPG

Added to portage

2026-09-30

python3-discogs-client - 2.10
Ebuild name:

dev-python/python3-discogs-client-2.10

Description

Continuation of the official Python API client for Discogs

Added to portage

2026-09-30

qmapshack - 1.21.1
Ebuild name:

sci-geosciences/qmapshack-1.21.1

Description

GPS mapping utility

Added to portage

2026-09-30

qmapshack - 1.21.1-r1
Ebuild name:

sci-geosciences/qmapshack-1.21.1-r1

Description

GPS mapping utility

Added to portage

2026-09-30

qtkeychain - 0.17.0-r1
Ebuild name:

dev-libs/qtkeychain-0.17.0-r1

Description

Qt API for storing passwords securely

Added to portage

2026-09-30

qtkeychain - 0.17.0-r2
Ebuild name:

dev-libs/qtkeychain-0.17.0-r2

Description

Qt API for storing passwords securely

Added to portage

2026-09-30

qtpbfimageplugin - 5.2-r1
Ebuild name:

dev-qt/qtpbfimageplugin-5.2-r1

Description

Qt image plugin for displaying Mapbox vector tiles

Added to portage

2026-09-30

qwt - 6.3.0-r2
Ebuild name:

x11-libs/qwt-6.3.0-r2

Description

2D plotting library for Qt

Added to portage

2026-09-30

radicale - 3.8.1
Ebuild name:

www-apps/radicale-3.8.1

Description

A simple CalDAV calendar server

Added to portage

2026-09-30

ruffle - 0.6.0
Ebuild name:

app-emulation/ruffle-0.6.0

Description

Flash Player emulator written in Rust

Added to portage

2026-09-30

sbcl - 2.6.9
Ebuild name:

dev-lisp/sbcl-2.6.9

Description

Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp

Added to portage

2026-09-30

sc-controller - 1.0.5
Ebuild name:

games-util/sc-controller-1.0.5

Description

User-mode driver and GTK-based GUI for Steam Controllers and others

Added to portage

2026-09-30

setuptools-gettext - 0.1.19
Ebuild name:

dev-python/setuptools-gettext-0.1.19

Description

Setuptools plugin for building mo files

Added to portage

2026-09-30

shell-maker - 0.97.4
Ebuild name:

app-emacs/shell-maker-0.97.4

Description

Interaction mode for making comint shells for GNU Emacs

Added to portage

2026-09-30

sipp - 3.7.9
Ebuild name:

net-misc/sipp-3.7.9

Description

A free Open Source test tool / traffic generator for the SIP protocol

Added to portage

2026-09-30

sphinx-autodoc-typehints - 3.13.8
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.13.8

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-09-30

thunderbird - 157.0
Ebuild name:

mail-client/thunderbird-157.0

Description

Thunderbird Mail Client

Added to portage

2026-09-30

thunderbird-bin - 157.0
Ebuild name:

mail-client/thunderbird-bin-157.0

Description

Thunderbird Mail Client

Added to portage

2026-09-30

thunderbird-l10n - 157.0
Ebuild name:

mail-client/thunderbird-l10n-157.0

Description

Thunderbird mail client's translation files

Added to portage

2026-09-30

timezone-data - 2026e
Ebuild name:

sys-libs/timezone-data-2026e

Description

Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)

Added to portage

2026-09-30

tox - 4.64.5
Ebuild name:

dev-python/tox-4.64.5

Description

virtualenv-based automation of test activities

Added to portage

2026-09-30

urwid - 4.2.1
Ebuild name:

dev-python/urwid-4.2.1

Description

Curses-based user interface library for Python

Added to portage

2026-09-30

uv - 0.12.21
Ebuild name:

dev-python/uv-0.12.21

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-09-30

uv-build - 0.12.21
Ebuild name:

dev-python/uv-build-0.12.21

Description

PEP517 uv build backend

Added to portage

2026-09-30

virtualenv - 21.14.1
Ebuild name:

dev-python/virtualenv-21.14.1

Description

Virtual Python Environment builder

Added to portage

2026-09-30

webkit-gtk - 2.54.0-r411
Ebuild name:

net-libs/webkit-gtk-2.54.0-r411

Description

Open source web browser engine

Added to portage

2026-09-30

webkit-gtk - 2.54.0-r601
Ebuild name:

net-libs/webkit-gtk-2.54.0-r601

Description

Open source web browser engine

Added to portage

2026-09-30

xarray - 2026.9.0
Ebuild name:

dev-python/xarray-2026.9.0

Description

N-D labeled arrays and datasets in Python

Added to portage

2026-09-30

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