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:

87122

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-23
7zip - 26.02-r1
Ebuild name:

app-arch/7zip-26.02-r1

Description

Free file archiver for extremely high compression

Added to portage

2026-07-23

bind - 9.20.26
Ebuild name:

net-dns/bind-9.20.26

Description

Berkeley Internet Name Domain - Name Server

Added to portage

2026-07-23

cargo-nextest - 0.9.140
Ebuild name:

dev-util/cargo-nextest-0.9.140

Description

Next-generation test runner for Rust

Added to portage

2026-07-23

git-delete-merged-branches - 7.6.1
Ebuild name:

dev-vcs/git-delete-merged-branches-7.6.1

Description

Command-line tool to delete merged Git branches

Added to portage

2026-07-23

knot-resolver - 5.7.7
Ebuild name:

net-dns/knot-resolver-5.7.7

Description

A scaleable caching DNS resolver

Added to portage

2026-07-23

knot-resolver - 6.4.1
Ebuild name:

net-dns/knot-resolver-6.4.1

Description

Scaleable caching DNS resolver

Added to portage

2026-07-23

pdns-recursor - 5.3.9
Ebuild name:

net-dns/pdns-recursor-5.3.9

Description

The PowerDNS Recursor

Added to portage

2026-07-23

pdns-recursor - 5.4.4
Ebuild name:

net-dns/pdns-recursor-5.4.4

Description

The PowerDNS Recursor

Added to portage

2026-07-23

rnv - 1.7.11-r4
Ebuild name:

app-text/rnv-1.7.11-r4

Description

A lightweight Relax NG Compact Syntax validator

Added to portage

2026-07-23

unbound - 1.25.2
Ebuild name:

net-dns/unbound-1.25.2

Description

A validating, recursive and caching DNS resolver

Added to portage

2026-07-23

unionfs-fuse - 3.7-r1
Ebuild name:

sys-fs/unionfs-fuse-3.7-r1

Description

Self-syncing tree-merging file system based on FUSE

Added to portage

2026-07-23

2026-07-22
CSS-Minifier-XS - 0.140.0
Ebuild name:

dev-perl/CSS-Minifier-XS-0.140.0

Description

XS based CSS minifier

Added to portage

2026-07-22

Config-IniFiles - 3.1.0
Ebuild name:

dev-perl/Config-IniFiles-3.1.0

Description

Module for reading .ini-style configuration files

Added to portage

2026-07-22

DBI - 1.651.0
Ebuild name:

dev-perl/DBI-1.651.0

Description

Database independent interface for Perl

Added to portage

2026-07-22

JavaScript-Minifier-XS - 0.160.0
Ebuild name:

dev-perl/JavaScript-Minifier-XS-0.160.0

Description

XS based JavaScript minifier

Added to portage

2026-07-22

List-SomeUtils-XS - 0.590.0
Ebuild name:

dev-perl/List-SomeUtils-XS-0.590.0

Description

XS implementation for List

Added to portage

2026-07-22

archivemount - 1b
Ebuild name:

sys-fs/archivemount-1b

Description

Mount archives using libarchive and FUSE

Added to portage

2026-07-22

awscli - 1.45.53
Ebuild name:

app-admin/awscli-1.45.53

Description

Universal Command Line Environment for AWS

Added to portage

2026-07-22

bind - 9.20.24
Ebuild name:

net-dns/bind-9.20.24

Description

Berkeley Internet Name Domain - Name Server

Added to portage

2026-07-22

boto3 - 1.43.53
Ebuild name:

dev-python/boto3-1.43.53

Description

The AWS SDK for Python

Added to portage

2026-07-22

botocore - 1.43.53
Ebuild name:

dev-python/botocore-1.43.53

Description

Low-level, data-driven core of boto 3

Added to portage

2026-07-22

buildah - 1.44.1
Ebuild name:

app-containers/buildah-1.44.1

Description

A tool that facilitates building OCI images

Added to portage

2026-07-22

ceres-solver - 2.2.0-r2
Ebuild name:

sci-libs/ceres-solver-2.2.0-r2

Description

Nonlinear least-squares minimizer

Added to portage

2026-07-22

clazy - 1.17.1-r1
Ebuild name:

dev-util/clazy-1.17.1-r1

Description

Compiler plugin which allows clang to understand Qt semantics

Added to portage

2026-07-22

cryptsetup - 2.8.7
Ebuild name:

sys-fs/cryptsetup-2.8.7

Description

Tool to setup encrypted devices with dm-crypt

Added to portage

2026-07-22

dash - 0.5.13.5
Ebuild name:

app-shells/dash-0.5.13.5

Description

Debian Almquist Shell

Added to portage

2026-07-22

element - 1.12.24
Ebuild name:

www-apps/element-1.12.24

Description

A glossy Matrix collaboration client for the web

Added to portage

2026-07-22

fcgiwrap - 1.1.0_p20150419-r3
Ebuild name:

www-misc/fcgiwrap-1.1.0_p20150419-r3

Description

Simple FastCGI wrapper for CGI scripts (CGI support for nginx)

Added to portage

2026-07-22

filelock - 3.32.0
Ebuild name:

dev-python/filelock-3.32.0

Description

A platform independent file lock for Python

Added to portage

2026-07-22

fish - 4.8.1
Ebuild name:

app-shells/fish-4.8.1

Description

Friendly Interactive SHell

Added to portage

2026-07-22

freerdp - 3.30.0
Ebuild name:

net-misc/freerdp-3.30.0

Description

Free implementation of the Remote Desktop Protocol

Added to portage

2026-07-22

google-auth - 2.56.2
Ebuild name:

dev-python/google-auth-2.56.2

Description

Google Authentication Library

Added to portage

2026-07-22

hcloud - 2.23.0
Ebuild name:

dev-python/hcloud-2.23.0

Description

Official Hetzner Cloud python library

Added to portage

2026-07-22

jupyterlab - 4.5.10
Ebuild name:

dev-python/jupyterlab-4.5.10

Description

JupyterLab computational environment

Added to portage

2026-07-22

jupyterlab - 4.6.2
Ebuild name:

dev-python/jupyterlab-4.6.2

Description

JupyterLab computational environment

Added to portage

2026-07-22

kdeconnect - 26.04.3-r2
Ebuild name:

kde-misc/kdeconnect-26.04.3-r2

Description

Adds communication between KDE Plasma and your smartphone

Added to portage

2026-07-22

kdenetwork-meta - 26.04.3-r1
Ebuild name:

kde-apps/kdenetwork-meta-26.04.3-r1

Description

kdenetwork - merge this to pull in all kdenetwork-derived packa

Added to portage

2026-07-22

kirigami-app-components - 1.0.1
Ebuild name:

dev-libs/kirigami-app-components-1.0.1

Description

Kirigami addons and modules necessary to do a full featured

Added to portage

2026-07-22

libmysofa - 1.3.5
Ebuild name:

media-libs/libmysofa-1.3.5

Description

Library for reading AES SOFA (Spatially Oriented Format for Acoustics) f

Added to portage

2026-07-22

meson - 1.12.0_rc2
Ebuild name:

dev-build/meson-1.12.0_rc2

Description

Open source build system

Added to portage

2026-07-22

modus-themes - 5.2.0
Ebuild name:

app-emacs/modus-themes-5.2.0

Description

Highly accessible themes for GNU Emacs

Added to portage

2026-07-22

modus-themes - 5.3.0
Ebuild name:

app-emacs/modus-themes-5.3.0

Description

Highly accessible themes for GNU Emacs

Added to portage

2026-07-22

pkgconf - 3.0.4
Ebuild name:

dev-util/pkgconf-3.0.4

Description

pkg-config compatible replacement with no dependencies other than C99

Added to portage

2026-07-22

platformdirs - 4.11.0
Ebuild name:

dev-python/platformdirs-4.11.0

Description

A small Python module for determining appropriate platform-specific

Added to portage

2026-07-22

podman - 6.0.2
Ebuild name:

app-containers/podman-6.0.2

Description

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

Added to portage

2026-07-22

postfix - 3.12_pre20260721
Ebuild name:

mail-mta/postfix-3.12_pre20260721

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-07-22

pyproject-api - 1.11.0
Ebuild name:

dev-python/pyproject-api-1.11.0

Description

API to interact with the python pyproject.toml based projects

Added to portage

2026-07-22

pyshp - 3.1.5
Ebuild name:

sci-libs/pyshp-3.1.5

Description

Pure Python read/write support for ESRI Shapefile format

Added to portage

2026-07-22

pytest-env - 1.7.0
Ebuild name:

dev-python/pytest-env-1.7.0

Description

pytest plugin that allows you to add environment variables

Added to portage

2026-07-22

python-discovery - 1.5.0
Ebuild name:

dev-python/python-discovery-1.5.0

Description

Python interpreter discovery

Added to portage

2026-07-22

scrcpy - 4.1
Ebuild name:

app-mobilephone/scrcpy-4.1

Description

Display and control your Android device

Added to portage

2026-07-22

scx - 1.1.2
Ebuild name:

sys-kernel/scx-1.1.2

Description

sched_ext schedulers and tools

Added to portage

2026-07-22

scx-loader - 1.1.2
Ebuild name:

sys-kernel/scx-loader-1.1.2

Description

DBUS on-demand loader of sched-ext schedulers

Added to portage

2026-07-22

seatd - 0.9.3-r1
Ebuild name:

sys-auth/seatd-0.9.3-r1

Description

Minimal seat management daemon and universal library

Added to portage

2026-07-22

servefile - 0.5.4-r4
Ebuild name:

www-servers/servefile-0.5.4-r4

Description

Serve a single file via HTTP

Added to portage

2026-07-22

setuptools-scm - 10.2.1
Ebuild name:

dev-python/setuptools-scm-10.2.1

Description

Manage versions by scm tags via setuptools

Added to portage

2026-07-22

skim - 5.4.0
Ebuild name:

app-misc/skim-5.4.0

Description

Command-line fuzzy finder

Added to portage

2026-07-22

soupsieve - 2.9.1
Ebuild name:

dev-python/soupsieve-2.9.1

Description

A modern CSS selector implementation for BeautifulSoup

Added to portage

2026-07-22

sphinx-autodoc-typehints - 3.13.0
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.13.0

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-07-22

subliminal - 2.7.0
Ebuild name:

media-video/subliminal-2.7.0

Description

Python library to search and download subtitles

Added to portage

2026-07-22

svneverever - 1.7.2-r3
Ebuild name:

dev-vcs/svneverever-1.7.2-r3

Description

Tool collecting path entries across SVN history

Added to portage

2026-07-22

throttled - 0.12-r1
Ebuild name:

sys-power/throttled-0.12-r1

Description

Daemon to work around throttling issues on some Intel laptops

Added to portage

2026-07-22

tox - 4.58.0
Ebuild name:

dev-python/tox-4.58.0

Description

virtualenv-based automation of test activities

Added to portage

2026-07-22

uv - 0.11.31
Ebuild name:

dev-python/uv-0.11.31

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-07-22

uv-build - 0.11.31
Ebuild name:

dev-python/uv-build-0.11.31

Description

PEP517 uv build backend

Added to portage

2026-07-22

virtualenv - 21.7.0
Ebuild name:

dev-python/virtualenv-21.7.0

Description

Virtual Python Environment builder

Added to portage

2026-07-22

wordpress - 6.8.6
Ebuild name:

www-apps/wordpress-6.8.6

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-07-22

wordpress - 6.9.5
Ebuild name:

www-apps/wordpress-6.9.5

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-07-22

xclipboard - 1.1.6
Ebuild name:

x11-apps/xclipboard-1.1.6

Description

interchange between cut buffer and selection

Added to portage

2026-07-22

xclock - 1.2.1
Ebuild name:

x11-apps/xclock-1.2.1

Description

analog / digital clock for X

Added to portage

2026-07-22

xkbprint - 1.0.8
Ebuild name:

x11-apps/xkbprint-1.0.8

Description

Print an XKB keyboard description

Added to portage

2026-07-22

xload - 1.2.1
Ebuild name:

x11-apps/xload-1.2.1

Description

system load average display for X

Added to portage

2026-07-22

xmodmap - 1.0.12
Ebuild name:

x11-apps/xmodmap-1.0.12

Description

utility for modifying keymaps and pointer button mappings in X

Added to portage

2026-07-22

xwininfo - 1.1.7
Ebuild name:

x11-apps/xwininfo-1.1.7

Description

window information utility for X

Added to portage

2026-07-22

zim - 0.77.1
Ebuild name:

x11-misc/zim-0.77.1

Description

A desktop wiki

Added to portage

2026-07-22

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