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:

85521

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-06-02
aiohttp - 3.14.0
Ebuild name:

dev-python/aiohttp-3.14.0

Description

HTTP client/server for asyncio

Added to portage

2026-06-02

alsa-lib - 1.2.16
Ebuild name:

media-libs/alsa-lib-1.2.16

Description

Advanced Linux Sound Architecture Library

Added to portage

2026-06-02

alsa-ucm-conf - 1.2.16
Ebuild name:

media-libs/alsa-ucm-conf-1.2.16

Description

ALSA ucm configuration files

Added to portage

2026-06-02

alsa-utils - 1.2.16
Ebuild name:

media-sound/alsa-utils-1.2.16

Description

Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)

Added to portage

2026-06-02

awscli - 1.45.19
Ebuild name:

app-admin/awscli-1.45.19

Description

Universal Command Line Environment for AWS

Added to portage

2026-06-02

boto3 - 1.43.19
Ebuild name:

dev-python/boto3-1.43.19

Description

The AWS SDK for Python

Added to portage

2026-06-02

botocore - 1.43.19
Ebuild name:

dev-python/botocore-1.43.19

Description

Low-level, data-driven core of boto 3

Added to portage

2026-06-02

claude-code - 2.1.159
Ebuild name:

dev-util/claude-code-2.1.159

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-06-02

faker - 40.20.0
Ebuild name:

dev-python/faker-40.20.0

Description

A Python package that generates fake data for you

Added to portage

2026-06-02

fakeredis - 2.36.0
Ebuild name:

dev-python/fakeredis-2.36.0

Description

Fake implementation of redis API for testing purposes

Added to portage

2026-06-02

gentoo-sources - 5.10.258
Ebuild name:

sys-kernel/gentoo-sources-5.10.258

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-06-02

gentoo-sources - 5.15.209
Ebuild name:

sys-kernel/gentoo-sources-5.15.209

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-06-02

gentoo-sources - 6.1.175
Ebuild name:

sys-kernel/gentoo-sources-6.1.175

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-06-02

gentoo-sources - 6.12.92
Ebuild name:

sys-kernel/gentoo-sources-6.12.92

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-06-02

gentoo-sources - 6.18.34
Ebuild name:

sys-kernel/gentoo-sources-6.18.34

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-06-02

gentoo-sources - 6.6.142
Ebuild name:

sys-kernel/gentoo-sources-6.6.142

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-06-02

gentoo-sources - 7.0.11
Ebuild name:

sys-kernel/gentoo-sources-7.0.11

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-06-02

hatchling - 1.30.1
Ebuild name:

dev-python/hatchling-1.30.1

Description

Modern, extensible Python build backend

Added to portage

2026-06-02

liblastfm - 1.1.0_pre20250726
Ebuild name:

media-libs/liblastfm-1.1.0_pre20250726

Description

Collection of libraries to integrate Last.fm services

Added to portage

2026-06-02

lidarr-bin - 3.1.3.4968
Ebuild name:

www-apps/lidarr-bin-3.1.3.4968

Description

Looks and smells like Sonarr but made for music

Added to portage

2026-06-02

lxqt-panel - 2.4.1
Ebuild name:

lxqt-base/lxqt-panel-2.4.1

Description

LXQt desktop panel and plugins

Added to portage

2026-06-02

mgorny-dev-scripts - 74
Ebuild name:

app-portage/mgorny-dev-scripts-74

Description

Handy scripts for ebuild development and more

Added to portage

2026-06-02

moccur-edit - 2.16
Ebuild name:

app-emacs/moccur-edit-2.16

Description

An improved interface to color-moccur for editing

Added to portage

2026-06-02

mod_h2 - 2.0.42
Ebuild name:

www-apache/mod_h2-2.0.42

Description

HTTP/2 module for Apache

Added to portage

2026-06-02

nghttp3 - 1.16.0
Ebuild name:

net-libs/nghttp3-1.16.0

Description

HTTP/3 library written in C

Added to portage

2026-06-02

ngtcp2 - 1.23.0
Ebuild name:

net-libs/ngtcp2-1.23.0

Description

Implementation of the IETF QUIC Protocol

Added to portage

2026-06-02

prowlarr-bin - 2.4.0.5391
Ebuild name:

www-apps/prowlarr-bin-2.4.0.5391

Description

An indexer manager/proxy to integrate with your various PVR apps

Added to portage

2026-06-02

proxytunnel - 1.13.0
Ebuild name:

net-misc/proxytunnel-1.13.0

Description

Connect stdin and stdout to a server via an HTTPS proxy

Added to portage

2026-06-02

pypy - 3.11.7.3.20_p2-r1
Ebuild name:

dev-lang/pypy-3.11.7.3.20_p2-r1

Description

A fast, compliant alternative implementation of the Python () langu

Added to portage

2026-06-02

pypy - 3.11.7.3.22-r1
Ebuild name:

dev-lang/pypy-3.11.7.3.22-r1

Description

A fast, compliant alternative implementation of the Python () language

Added to portage

2026-06-02

pypy - 3.11.7.3.23-r1
Ebuild name:

dev-lang/pypy-3.11.7.3.23-r1

Description

A fast, compliant alternative implementation of the Python () language

Added to portage

2026-06-02

pyrate-limiter - 4.2.0
Ebuild name:

dev-python/pyrate-limiter-4.2.0

Description

Python Rate-Limiter using Leaky-Bucket Algorimth Family

Added to portage

2026-06-02

python - 0.3.13.13_p1-r1
Ebuild name:

dev-lang/python-0.3.13.13_p1-r1

Description

Freethreading (no-GIL) version of Python programming language

Added to portage

2026-06-02

python - 3.11.15-r1
Ebuild name:

dev-lang/python-3.11.15-r1

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2026-06-02

quiche - 0.29.1
Ebuild name:

net-libs/quiche-0.29.1

Description

Implementation of the QUIC transport protocol and HTTP/3

Added to portage

2026-06-02

radarr-bin - 6.2.1.10437
Ebuild name:

www-apps/radarr-bin-6.2.1.10437

Description

A fork of Sonarr to work with movies a la Couchpotato

Added to portage

2026-06-02

tibs - 0.9.2
Ebuild name:

dev-python/tibs-0.9.2

Description

A sleek Python library for your binary data

Added to portage

2026-06-02

tor - 0.4.9.9
Ebuild name:

net-vpn/tor-0.4.9.9

Description

Anonymizing overlay network for TCP

Added to portage

2026-06-02

trove-classifiers - 2026.6.1.19
Ebuild name:

dev-python/trove-classifiers-2026.6.1.19

Description

Canonical source for classifiers on PyPI (pypi.org)

Added to portage

2026-06-02

txtorcon - 26.6.0
Ebuild name:

dev-python/txtorcon-26.6.0

Description

Twisted-based Tor controller client, with state-tracking abstractions

Added to portage

2026-06-02

typer - 0.26.5
Ebuild name:

dev-python/typer-0.26.5

Description

Build great CLIs. Easy to code. Based on Python type hints

Added to portage

2026-06-02

urh - 2.10.0-r1
Ebuild name:

net-wireless/urh-2.10.0-r1

Description

Universal Radio Hacker investigate wireless protocols like a boss

Added to portage

2026-06-02

valkey - 6.1.1
Ebuild name:

dev-python/valkey-6.1.1

Description

Python client for Valkey forked from redis-py

Added to portage

2026-06-02

vanilla-sources - 5.10.258
Ebuild name:

sys-kernel/vanilla-sources-5.10.258

Description

Full sources for the Linux kernel

Added to portage

2026-06-02

vanilla-sources - 5.15.209
Ebuild name:

sys-kernel/vanilla-sources-5.15.209

Description

Full sources for the Linux kernel

Added to portage

2026-06-02

vanilla-sources - 6.1.175
Ebuild name:

sys-kernel/vanilla-sources-6.1.175

Description

Full sources for the Linux kernel

Added to portage

2026-06-02

vanilla-sources - 6.12.92
Ebuild name:

sys-kernel/vanilla-sources-6.12.92

Description

Full sources for the Linux kernel

Added to portage

2026-06-02

vanilla-sources - 6.18.34
Ebuild name:

sys-kernel/vanilla-sources-6.18.34

Description

Full sources for the Linux kernel

Added to portage

2026-06-02

vanilla-sources - 6.6.142
Ebuild name:

sys-kernel/vanilla-sources-6.6.142

Description

Full sources for the Linux kernel

Added to portage

2026-06-02

vanilla-sources - 7.0.11
Ebuild name:

sys-kernel/vanilla-sources-7.0.11

Description

Full sources for the Linux kernel

Added to portage

2026-06-02

2026-06-01
catch - 3.15.0
Ebuild name:

dev-cpp/catch-3.15.0

Description

Modern C++ header-only framework for unit-tests

Added to portage

2026-06-01

dulwich - 1.2.6
Ebuild name:

dev-python/dulwich-1.2.6

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2026-06-01

ensurepip-pip - 26.1.2
Ebuild name:

dev-python/ensurepip-pip-26.1.2

Description

Shared pip wheel for ensurepip Python module

Added to portage

2026-06-01

fastapi - 0.136.3
Ebuild name:

dev-python/fastapi-0.136.3

Description

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

Added to portage

2026-06-01

fifo-cronolog - 1.3.0
Ebuild name:

app-admin/fifo-cronolog-1.3.0

Description

cronolog wrapper for use with dumb daemons like squid, varnish and so

Added to portage

2026-06-01

gcc - 17.0.0_p20260531
Ebuild name:

sys-devel/gcc-17.0.0_p20260531

Description

The GNU Compiler Collection

Added to portage

2026-06-01

gentoo-kernel-modprep - 7.0.10_p1
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.0.10_p1

Description

Minimal subset of gentoo-kernel-bin for building modules

Added to portage

2026-06-01

gentoolkit - 0.7.4
Ebuild name:

app-portage/gentoolkit-0.7.4

Description

Collection of administration scripts for Gentoo

Added to portage

2026-06-01

git-sources - 7.1_rc6
Ebuild name:

sys-kernel/git-sources-7.1_rc6

Description

The very latest -git version of the Linux kernel

Added to portage

2026-06-01

glances - 4.5.4
Ebuild name:

sys-process/glances-4.5.4

Description

CLI curses based monitoring tool

Added to portage

2026-06-01

gokrazy-rsync - 0.3.3
Ebuild name:

net-misc/gokrazy-rsync-0.3.3

Description

rsync in Go

Added to portage

2026-06-01

hatchling - 1.30.0
Ebuild name:

dev-python/hatchling-1.30.0

Description

Modern, extensible Python build backend

Added to portage

2026-06-01

less - 702
Ebuild name:

sys-apps/less-702

Description

Excellent text file viewer

Added to portage

2026-06-01

libsdl3 - 3.4.10
Ebuild name:

media-libs/libsdl3-3.4.10

Description

Simple Direct Media Layer

Added to portage

2026-06-01

libsearpc - 3.3.0-r5
Ebuild name:

net-libs/libsearpc-3.3.0-r5

Description

Simple C language RPC framework

Added to portage

2026-06-01

linux-sources - 3-r9
Ebuild name:

virtual/linux-sources-3-r9

Description

Virtual for Linux kernel sources

Added to portage

2026-06-01

mocker - 0.5.0
Ebuild name:

app-emacs/mocker-0.5.0

Description

Simple mocking framework for Emacs

Added to portage

2026-06-01

modus-themes - 5.1.0
Ebuild name:

app-emacs/modus-themes-5.1.0

Description

Highly accessible themes for GNU Emacs

Added to portage

2026-06-01

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

pip - 26.1.2
Ebuild name:

dev-python/pip-26.1.2

Description

The PyPA recommended tool for installing Python packages

Added to portage

2026-06-01

portage - 3.0.79-r1
Ebuild name:

sys-apps/portage-3.0.79-r1

Description

The package management and distribution system for Gentoo

Added to portage

2026-06-01

pyaudio - 0.2.14-r1
Ebuild name:

dev-python/pyaudio-0.2.14-r1

Description

Python bindings for PortAudio

Added to portage

2026-06-01

python-multipart - 0.0.30
Ebuild name:

dev-python/python-multipart-0.0.30

Description

A streaming multipart parser for Python

Added to portage

2026-06-01

qgis - 4.0.2
Ebuild name:

sci-geosciences/qgis-4.0.2

Description

User friendly Geographic Information System

Added to portage

2026-06-01

scotch - 7.0.11
Ebuild name:

sci-libs/scotch-7.0.11

Description

Software for graph, mesh and hypergraph partitioning

Added to portage

2026-06-01

seafile - 9.0.18
Ebuild name:

net-misc/seafile-9.0.18

Description

File syncing and sharing software with file encryption and group sharing

Added to portage

2026-06-01

seafile-client - 9.0.18
Ebuild name:

net-misc/seafile-client-9.0.18

Description

Seafile desktop client

Added to portage

2026-06-01

sphinx-autodoc-typehints - 3.10.4
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.10.4

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-06-01

stalwart-cli - 1.0.8
Ebuild name:

net-mail/stalwart-cli-1.0.8

Description

Stalwart Mail Server command line utility

Added to portage

2026-06-01

stalwart-mail - 0.16.7
Ebuild name:

net-mail/stalwart-mail-0.16.7

Description

Stalwart Mail Server

Added to portage

2026-06-01

tavern - 3.6.0
Ebuild name:

dev-python/tavern-3.6.0

Description

A tool, library, and Pytest plugin for testing RESTful APIs

Added to portage

2026-06-01

tibs - 0.9.0
Ebuild name:

dev-python/tibs-0.9.0

Description

A sleek Python library for your binary data

Added to portage

2026-06-01

tifffile - 2026.6.1
Ebuild name:

dev-python/tifffile-2026.6.1

Description

Read and write TIFF files

Added to portage

2026-06-01

valkey - 0
Ebuild name:

acct-group/valkey-0

Description

Valkey program group

Added to portage

2026-06-01

valkey - 0
Ebuild name:

acct-user/valkey-0

Description

Valkey program user

Added to portage

2026-06-01

valkey - 9.1.0-r1
Ebuild name:

dev-db/valkey-9.1.0-r1

Description

Persistent key-value store, fork of dev-db/redis

Added to portage

2026-06-01

virtualenv - 21.4.2
Ebuild name:

dev-python/virtualenv-21.4.2

Description

Virtual Python Environment builder

Added to portage

2026-06-01

zfs - 2.3.7
Ebuild name:

sys-fs/zfs-2.3.7

Description

Userland utilities for ZFS Linux kernel module

Added to portage

2026-06-01

zfs - 2.4.2
Ebuild name:

sys-fs/zfs-2.4.2

Description

Linux kernel module and userland utilities for ZFS

Added to portage

2026-06-01

zfs-kmod - 2.3.7
Ebuild name:

sys-fs/zfs-kmod-2.3.7

Description

Linux ZFS kernel module for sys-fs/zfs

Added to portage

2026-06-01

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