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:

86356

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-28
lxqt-panel - 2.4.1-r1
Ebuild name:

lxqt-base/lxqt-panel-2.4.1-r1

Description

LXQt desktop panel and plugins

Added to portage

2026-06-28

lxqt-panel - 2.4.1-r2
Ebuild name:

lxqt-base/lxqt-panel-2.4.1-r2

Description

LXQt desktop panel and plugins

Added to portage

2026-06-28

obs-studio - 32.1.2
Ebuild name:

media-video/obs-studio-32.1.2

Description

Software for Recording and Streaming Live Video Content

Added to portage

2026-06-28

qtox - 1.18.5
Ebuild name:

net-im/qtox-1.18.5

Description

Instant messaging client using the encrypted p2p Tox protocol

Added to portage

2026-06-28

screengrab - 3.2.0-r1
Ebuild name:

x11-misc/screengrab-3.2.0-r1

Description

Qt GUI Screenshot Utility

Added to portage

2026-06-28

screengrab - 3.2.0-r2
Ebuild name:

x11-misc/screengrab-3.2.0-r2

Description

Qt GUI Screenshot Utility

Added to portage

2026-06-28

xclock - 1.2.0
Ebuild name:

x11-apps/xclock-1.2.0

Description

analog / digital clock for X

Added to portage

2026-06-28

2026-06-27
7zip - 26.02
Ebuild name:

app-arch/7zip-26.02

Description

Free file archiver for extremely high compression

Added to portage

2026-06-27

AusweisApp - 2.5.3
Ebuild name:

sys-auth/AusweisApp-2.5.3

Description

Official authentication app for German ID cards and residence permits

Added to portage

2026-06-27

arcconf - 5.09.00.28391
Ebuild name:

sys-block/arcconf-5.09.00.28391

Description

Microsemi Adaptec RAID Controller Command Line Utility

Added to portage

2026-06-27

ast-serialize - 0.5.0
Ebuild name:

dev-python/ast-serialize-0.5.0

Description

Python bindings for mypy AST serialization

Added to portage

2026-06-27

bedrock-server - 1.26.32.2
Ebuild name:

games-server/bedrock-server-1.26.32.2

Description

The official bedrock (non-java) based server for the sandbox

Added to portage

2026-06-27

buildah - 1.44.0-r1
Ebuild name:

app-containers/buildah-1.44.0-r1

Description

A tool that facilitates building OCI images

Added to portage

2026-06-27

c-blosc2 - 3.1.5
Ebuild name:

dev-libs/c-blosc2-3.1.5

Description

Blocking, shuffling and lossless compression library

Added to portage

2026-06-27

closure-compiler-bin - 20260622
Ebuild name:

dev-lang/closure-compiler-bin-20260622

Description

JavaScript optimizing compiler

Added to portage

2026-06-27

container-libs - 0.68.0
Ebuild name:

app-containers/container-libs-0.68.0

Description

Several utilities from the containers project

Added to portage

2026-06-27

dist-kernel - 6.18.37
Ebuild name:

virtual/dist-kernel-6.18.37

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-06-27

dist-kernel - 7.0.14
Ebuild name:

virtual/dist-kernel-7.0.14

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-06-27

dist-kernel - 7.1.2
Ebuild name:

virtual/dist-kernel-7.1.2

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-06-27

docker-buildx - 0.35.0
Ebuild name:

app-containers/docker-buildx-0.35.0

Description

Docker CLI plugin for extended build capabilities with BuildKit

Added to portage

2026-06-27

editline - 2.0.0
Ebuild name:

dev-libs/editline-2.0.0

Description

line editing library for UNIX call compatible with the FSF readline

Added to portage

2026-06-27

edk2 - 202605
Ebuild name:

sys-firmware/edk2-202605

Description

TianoCore EDK II UEFI firmware for virtual machines

Added to portage

2026-06-27

edk2-bin - 202605
Ebuild name:

sys-firmware/edk2-bin-202605

Description

TianoCore EDK II UEFI firmware for virtual machines

Added to portage

2026-06-27

eisl - 5.67
Ebuild name:

dev-lang/eisl-5.67

Description

Interpreter and compiler compatible with the ISLisp standard

Added to portage

2026-06-27

fastapi - 0.138.1
Ebuild name:

dev-python/fastapi-0.138.1

Description

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

Added to portage

2026-06-27

firefox - 152.0.3
Ebuild name:

www-client/firefox-152.0.3

Description

Firefox Web Browser

Added to portage

2026-06-27

firefox-bin - 152.0.3
Ebuild name:

www-client/firefox-bin-152.0.3

Description

Firefox Web Browser

Added to portage

2026-06-27

firefox-l10n - 152.0.3
Ebuild name:

www-client/firefox-l10n-152.0.3

Description

Firefox Web Browser's translation files

Added to portage

2026-06-27

fuzzylite - 6.0
Ebuild name:

dev-libs/fuzzylite-6.0

Description

A fuzzy logic control library in C++

Added to portage

2026-06-27

gentoo-kernel - 6.18.37
Ebuild name:

sys-kernel/gentoo-kernel-6.18.37

Description

Linux kernel built with Gentoo patches

Added to portage

2026-06-27

gentoo-kernel - 7.0.14
Ebuild name:

sys-kernel/gentoo-kernel-7.0.14

Description

Linux kernel built with Gentoo patches

Added to portage

2026-06-27

gentoo-kernel - 7.1.2
Ebuild name:

sys-kernel/gentoo-kernel-7.1.2

Description

Linux kernel built with Gentoo patches

Added to portage

2026-06-27

gentoo-kernel-bin - 6.18.37
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.37

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-06-27

gentoo-kernel-bin - 7.0.14
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.0.14

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-06-27

gentoo-kernel-bin - 7.1.2
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.1.2

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-06-27

gentoo-kernel-modprep - 6.18.37
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.37

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-06-27

gentoo-kernel-modprep - 7.0.14
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.0.14

Description

Minimal subset of gentoo-kernel-bin for building modules, f

Added to portage

2026-06-27

gentoo-kernel-modprep - 7.1.2
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.1.2

Description

Minimal subset of gentoo-kernel-bin for building modules, fo

Added to portage

2026-06-27

gentoo-sources - 6.18.37
Ebuild name:

sys-kernel/gentoo-sources-6.18.37

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-06-27

gentoo-sources - 7.0.14
Ebuild name:

sys-kernel/gentoo-sources-7.0.14

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-06-27

gentoo-sources - 7.1.2
Ebuild name:

sys-kernel/gentoo-sources-7.1.2

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-06-27

greenlet - 3.5.3
Ebuild name:

dev-python/greenlet-3.5.3

Description

Lightweight in-process concurrent programming

Added to portage

2026-06-27

httplib2 - 0.32.0
Ebuild name:

dev-python/httplib2-0.32.0

Description

A comprehensive HTTP client library

Added to portage

2026-06-27

httpx2 - 2.5.0
Ebuild name:

dev-python/httpx2-2.5.0

Description

The next generation HTTP client (Pydantic fork)

Added to portage

2026-06-27

hypopg - 1.4.3
Ebuild name:

dev-db/hypopg-1.4.3

Description

Hypothetical Indexes for PostgreSQL

Added to portage

2026-06-27

ibus-m17n - 1.4.40
Ebuild name:

app-i18n/ibus-m17n-1.4.40

Description

M17N engine for IBus

Added to portage

2026-06-27

ibus-typing-booster - 2.30.10
Ebuild name:

app-i18n/ibus-typing-booster-2.30.10

Description

Completion input method for IBus

Added to portage

2026-06-27

ipython - 9.15.0
Ebuild name:

dev-python/ipython-9.15.0

Description

Advanced interactive shell for Python

Added to portage

2026-06-27

jinxed - 2.0.4
Ebuild name:

dev-python/jinxed-2.0.4

Description

A pure-Python implementation of a subset of the Python curses library

Added to portage

2026-06-27

joserfc - 1.7.1
Ebuild name:

dev-python/joserfc-1.7.1

Description

A Python library for JOSE RFCs JWS, JWE, JWK, JWA, JWT

Added to portage

2026-06-27

level-zero - 1.32.0
Ebuild name:

dev-libs/level-zero-1.32.0

Description

oneAPI Level Zero headers, loader and validation layer

Added to portage

2026-06-27

libpass - 1.9.3
Ebuild name:

dev-python/libpass-1.9.3

Description

Fork of passlib, a password hashing framework

Added to portage

2026-06-27

libsquish - 1.15.1.4
Ebuild name:

media-libs/libsquish-1.15.1.4

Description

Library for compressing images with the DXT/S3TC standard

Added to portage

2026-06-27

man-pages-ja - 20260615
Ebuild name:

app-i18n/man-pages-ja-20260615

Description

Collection of manual pages translated into Japanese

Added to portage

2026-06-27

mgorny-dev-scripts - 82
Ebuild name:

app-portage/mgorny-dev-scripts-82

Description

Handy scripts for ebuild development and more

Added to portage

2026-06-27

minecraft-server - 26.2
Ebuild name:

games-server/minecraft-server-26.2

Description

The official server for the sandbox video game

Added to portage

2026-06-27

mlt - 7.40.0
Ebuild name:

media-libs/mlt-7.40.0

Description

Open source multimedia framework for television broadcasting

Added to portage

2026-06-27

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

mysqltuner - 2.8.45
Ebuild name:

dev-db/mysqltuner-2.8.45

Description

Makes recommendations for increased performance and stability for MySQL

Added to portage

2026-06-27

nerdctl - 2.3.3
Ebuild name:

app-containers/nerdctl-2.3.3

Description

Docker-compatible CLI for containerd, with support for Compose

Added to portage

2026-06-27

nest-asyncio2 - 1.7.2
Ebuild name:

dev-python/nest-asyncio2-1.7.2

Description

Patch asyncio to allow nested event loops

Added to portage

2026-06-27

netavark - 2.0.0
Ebuild name:

app-containers/netavark-2.0.0

Description

A container network stack

Added to portage

2026-06-27

pg_qualstats - 2.1.4
Ebuild name:

dev-db/pg_qualstats-2.1.4

Description

Statistics about predicates for helping finding what indices are missing

Added to portage

2026-06-27

pg_stat_kcache - 2.3.2
Ebuild name:

dev-db/pg_stat_kcache-2.3.2

Description

Statistics about physical disk access and CPU consumption done by backe

Added to portage

2026-06-27

phpsysinfo - 3.4.6
Ebuild name:

www-apps/phpsysinfo-3.4.6

Description

A customizable PHP script that displays information about your system nic

Added to portage

2026-06-27

podman - 6.0.0
Ebuild name:

app-containers/podman-6.0.0

Description

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

Added to portage

2026-06-27

podman-tui - 1.11.2
Ebuild name:

app-containers/podman-tui-1.11.2

Description

Terminal UI frontend for Podman

Added to portage

2026-06-27

powa-archivist - 5.1.2
Ebuild name:

dev-db/powa-archivist-5.1.2

Description

PostgreSQL Workload Analyzer Archivist

Added to portage

2026-06-27

racket-mode - 1_p20260303
Ebuild name:

app-emacs/racket-mode-1_p20260303

Description

Emacs modes for Racket edit, REPL, check-syntax, debug, profile,

Added to portage

2026-06-27

rclone - 1.74.3
Ebuild name:

net-misc/rclone-1.74.3

Description

A program to sync files to and from various cloud storage providers

Added to portage

2026-06-27

reason - 3.18.0
Ebuild name:

dev-ml/reason-3.18.0

Description

Simple, fast & type safe language that leverages JavaScript and OCaml

Added to portage

2026-06-27

rebulk - 4.1.0
Ebuild name:

dev-python/rebulk-4.1.0

Description

Python library that performs advanced searches in strings

Added to portage

2026-06-27

rsyslog - 8.2606.0
Ebuild name:

app-admin/rsyslog-8.2606.0

Description

An enhanced multi-threaded syslogd with database support and more

Added to portage

2026-06-27

skopeo - 1.23.0-r1
Ebuild name:

app-containers/skopeo-1.23.0-r1

Description

Work with remote container images registries

Added to portage

2026-06-27

sonarr-bin - 4.0.19.2979
Ebuild name:

www-apps/sonarr-bin-4.0.19.2979

Description

Sonarr is a Smart PVR for newsgroup and bittorrent users

Added to portage

2026-06-27

sqlglot - 30.12.0
Ebuild name:

dev-python/sqlglot-30.12.0

Description

An easily customizable SQL parser and transpiler

Added to portage

2026-06-27

syrupy - 5.3.4
Ebuild name:

dev-python/syrupy-5.3.4

Description

The sweeter pytest snapshot plugin

Added to portage

2026-06-27

tables - 3.11.1-r1
Ebuild name:

dev-python/tables-3.11.1-r1

Description

Hierarchical datasets for Python

Added to portage

2026-06-27

tor - 0.4.9.11
Ebuild name:

net-vpn/tor-0.4.9.11

Description

Anonymizing overlay network for TCP

Added to portage

2026-06-27

translate-toolkit - 3.19.13
Ebuild name:

dev-python/translate-toolkit-3.19.13

Description

Toolkit to convert between many translation formats

Added to portage

2026-06-27

tree-sitter-clojure - 0.0.13
Ebuild name:

dev-libs/tree-sitter-clojure-0.0.13

Description

Clojure programming language grammar for Tree-sitter

Added to portage

2026-06-27

tree-sitter-erlang - 0.19
Ebuild name:

dev-libs/tree-sitter-erlang-0.19

Description

Erlang programming language grammar for Tree-sitter

Added to portage

2026-06-27

tree-sitter-powershell - 0.26.5
Ebuild name:

dev-libs/tree-sitter-powershell-0.26.5

Description

PowerShell programming language grammar for Tree-sitter

Added to portage

2026-06-27

tree-sitter-racket - 0.24.7_p1
Ebuild name:

dev-libs/tree-sitter-racket-0.24.7_p1

Description

Racket programming language grammar for Tree-sitter

Added to portage

2026-06-27

tree-sitter-unison - 2.1.3
Ebuild name:

dev-libs/tree-sitter-unison-2.1.3

Description

Unison programming language grammar for Tree-sitter

Added to portage

2026-06-27

typer - 0.26.8
Ebuild name:

dev-python/typer-0.26.8

Description

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

Added to portage

2026-06-27

unison-ts-mode - 0.3.0
Ebuild name:

app-emacs/unison-ts-mode-0.3.0

Description

GNU Emacs major mode for the Unison language that uses Tree-sitter

Added to portage

2026-06-27

uv - 0.11.25
Ebuild name:

dev-python/uv-0.11.25

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-06-27

uv-build - 0.11.25
Ebuild name:

dev-python/uv-build-0.11.25

Description

PEP517 uv build backend

Added to portage

2026-06-27

vanilla-kernel - 6.18.37
Ebuild name:

sys-kernel/vanilla-kernel-6.18.37

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-06-27

vanilla-kernel - 7.0.14
Ebuild name:

sys-kernel/vanilla-kernel-7.0.14

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-06-27

vanilla-kernel - 7.1.2
Ebuild name:

sys-kernel/vanilla-kernel-7.1.2

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-06-27

vanilla-sources - 6.18.37
Ebuild name:

sys-kernel/vanilla-sources-6.18.37

Description

Full sources for the Linux kernel

Added to portage

2026-06-27

vanilla-sources - 7.0.14
Ebuild name:

sys-kernel/vanilla-sources-7.0.14

Description

Full sources for the Linux kernel

Added to portage

2026-06-27

vanilla-sources - 7.1.2
Ebuild name:

sys-kernel/vanilla-sources-7.1.2

Description

Full sources for the Linux kernel

Added to portage

2026-06-27

vcmi - 1.7.4
Ebuild name:

games-strategy/vcmi-1.7.4

Description

Open-source engine for Heroes of Might and Magic III

Added to portage

2026-06-27

vcsgraph - 0.3.2
Ebuild name:

dev-python/vcsgraph-0.3.2

Description

Graph algorithms for version control systems

Added to portage

2026-06-27

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