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:

82714

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-01-04
badkeys - 0.0.16
Ebuild name:

app-crypt/badkeys-0.0.16

Description

Check cryptographic keys for known weaknesses

Added to portage

2026-01-04

brotli - 1.2.0-r1
Ebuild name:

app-arch/brotli-1.2.0-r1

Description

Generic-purpose lossless compression algorithm

Added to portage

2026-01-04

clang - 22.0.0_pre20260103
Ebuild name:

dev-python/clang-22.0.0_pre20260103

Description

Python bindings for llvm-core/clang

Added to portage

2026-01-04

clang - 22.0.0_pre20260103
Ebuild name:

llvm-core/clang-22.0.0_pre20260103

Description

C language family frontend for LLVM

Added to portage

2026-01-04

clang-common - 22.0.0_pre20260103
Ebuild name:

llvm-core/clang-common-22.0.0_pre20260103

Description

Common files shared between multiple slots of clang

Added to portage

2026-01-04

compiler-rt - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/compiler-rt-22.0.0_pre20260103

Description

Compiler runtime library for clang (built-in part)

Added to portage

2026-01-04

compiler-rt-sanitizers - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/compiler-rt-sanitizers-22.0.0_pre20260103

Description

Compiler runtime libraries for clang (sanit

Added to portage

2026-01-04

fish - 4.3.2
Ebuild name:

app-shells/fish-4.3.2

Description

Friendly Interactive SHell

Added to portage

2026-01-04

flang - 22.0.0_pre20260103
Ebuild name:

llvm-core/flang-22.0.0_pre20260103

Description

LLVM's Fortran frontend

Added to portage

2026-01-04

flang-rt - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/flang-rt-22.0.0_pre20260103

Description

LLVM's Fortran runtime

Added to portage

2026-01-04

gallery-dl - 1.31.2
Ebuild name:

net-misc/gallery-dl-1.31.2

Description

Download image galleries and collections from several image hosting site

Added to portage

2026-01-04

gnatdoc - 25.0.0-r6
Ebuild name:

dev-ada/gnatdoc-25.0.0-r6

Description

GNAT Documentation Generation Tool

Added to portage

2026-01-04

gnatdoc - 25.2.0
Ebuild name:

dev-ada/gnatdoc-25.2.0

Description

GNAT Documentation Generation Tool

Added to portage

2026-01-04

libclc - 22.0.0_pre20260103
Ebuild name:

llvm-core/libclc-22.0.0_pre20260103

Description

OpenCL C library

Added to portage

2026-01-04

libcxx - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/libcxx-22.0.0_pre20260103

Description

New implementation of the C++ standard library, targeting C

Added to portage

2026-01-04

libcxxabi - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/libcxxabi-22.0.0_pre20260103

Description

Low level support for a standard C++ library

Added to portage

2026-01-04

libgcc - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/libgcc-22.0.0_pre20260103

Description

Compiler runtime library for clang, compatible with libgcc_

Added to portage

2026-01-04

libunwind - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/libunwind-22.0.0_pre20260103

Description

C++ runtime stack unwinder from LLVM

Added to portage

2026-01-04

liquidshell - 1.10.1
Ebuild name:

gui-apps/liquidshell-1.10.1

Description

Basic desktop shell using QtWidgets

Added to portage

2026-01-04

lit - 22.0.0_pre20260103
Ebuild name:

dev-python/lit-22.0.0_pre20260103

Description

A stand-alone install of the LLVM suite testing tool

Added to portage

2026-01-04

lld - 22.0.0_pre20260103
Ebuild name:

llvm-core/lld-22.0.0_pre20260103

Description

The LLVM linker (link editor)

Added to portage

2026-01-04

lldb - 22.0.0_pre20260103
Ebuild name:

llvm-core/lldb-22.0.0_pre20260103

Description

The LLVM debugger

Added to portage

2026-01-04

llvm - 22.0.0_pre20260103
Ebuild name:

dev-ml/llvm-22.0.0_pre20260103

Description

OCaml bindings for LLVM

Added to portage

2026-01-04

llvm - 22.0.0_pre20260103
Ebuild name:

llvm-core/llvm-22.0.0_pre20260103

Description

Low Level Virtual Machine

Added to portage

2026-01-04

llvm-common - 22.0.0_pre20260103
Ebuild name:

llvm-core/llvm-common-22.0.0_pre20260103

Description

Common files shared between multiple slots of LLVM

Added to portage

2026-01-04

mlir - 22.0.0_pre20260103
Ebuild name:

llvm-core/mlir-22.0.0_pre20260103

Description

Multi-Level Intermediate Representation (library only)

Added to portage

2026-01-04

nprolog - 4.79
Ebuild name:

dev-lang/nprolog-4.79

Description

Interpreter and compiler to be compatible with Arity/Prolog32

Added to portage

2026-01-04

offload - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/offload-22.0.0_pre20260103

Description

OpenMP offloading support

Added to portage

2026-01-04

openmp - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/openmp-22.0.0_pre20260103

Description

OpenMP runtime library for LLVM/clang compiler

Added to portage

2026-01-04

package-lint - 0.26
Ebuild name:

app-emacs/package-lint-0.26

Description

Linting library for Emacs Lisp package metadata

Added to portage

2026-01-04

pandoc-mode - 2.35
Ebuild name:

app-emacs/pandoc-mode-2.35

Description

GNU Emacs minor mode for interacting with Pandoc

Added to portage

2026-01-04

pkgcheck - 0.10.39
Ebuild name:

dev-util/pkgcheck-0.10.39

Description

pkgcore-based QA utility for ebuild repos

Added to portage

2026-01-04

pkgcore - 0.12.32
Ebuild name:

sys-apps/pkgcore-0.12.32

Description

a framework for package management

Added to portage

2026-01-04

polly - 22.0.0_pre20260103
Ebuild name:

llvm-core/polly-22.0.0_pre20260103

Description

Polyhedral optimizations for LLVM

Added to portage

2026-01-04

2026-01-03
awscli - 1.44.11
Ebuild name:

app-admin/awscli-1.44.11

Description

Universal Command Line Environment for AWS

Added to portage

2026-01-03

bcachefs-tools - 1.34.0
Ebuild name:

sys-fs/bcachefs-tools-1.34.0

Description

Tools for bcachefs

Added to portage

2026-01-03

boto3 - 1.42.21
Ebuild name:

dev-python/boto3-1.42.21

Description

The AWS SDK for Python

Added to portage

2026-01-03

botocore - 1.42.21
Ebuild name:

dev-python/botocore-1.42.21

Description

Low-level, data-driven core of boto 3

Added to portage

2026-01-03

cargo-nextest - 0.9.117
Ebuild name:

dev-util/cargo-nextest-0.9.117

Description

Next-generation test runner for Rust

Added to portage

2026-01-03

elementary-xfce-icon-theme - 0.22
Ebuild name:

x11-themes/elementary-xfce-icon-theme-0.22

Description

Elementary icons forked from upstream, extended and main

Added to portage

2026-01-03

filelock - 3.20.2
Ebuild name:

dev-python/filelock-3.20.2

Description

A platform independent file lock for Python

Added to portage

2026-01-03

gentoo-sources - 6.18.3
Ebuild name:

sys-kernel/gentoo-sources-6.18.3

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-01-03

geolith-jg - 0.3.0
Ebuild name:

games-emulation/geolith-jg-0.3.0

Description

Jolly Good Neo Geo AES/MVS Emulator

Added to portage

2026-01-03

git - 4.1.0
Ebuild name:

dev-ruby/git-4.1.0

Description

Library for using Git in Ruby

Added to portage

2026-01-03

glycin-loaders - 2.1_alpha
Ebuild name:

media-libs/glycin-loaders-2.1_alpha

Description

Loaders for glycin clients (glycin crate or libglycin)

Added to portage

2026-01-03

gpr - 24.0.0-r3
Ebuild name:

dev-ada/gpr-24.0.0-r3

Description

LibGPR2 - Parser for GPR Project files

Added to portage

2026-01-03

gpr - 24.2.0-r1
Ebuild name:

dev-ada/gpr-24.2.0-r1

Description

LibGPR2 - Parser for GPR Project files

Added to portage

2026-01-03

gpr - 25.0.0-r4
Ebuild name:

dev-ada/gpr-25.0.0-r4

Description

LibGPR2 - Parser for GPR Project files

Added to portage

2026-01-03

highs - 1.12.0
Ebuild name:

sci-mathematics/highs-1.12.0

Description

Modern solver for linear, quadratic, and mixed-integer programs

Added to portage

2026-01-03

hoe - 4.5.1
Ebuild name:

dev-ruby/hoe-4.5.1

Description

Hoe extends rake to provide full project automation

Added to portage

2026-01-03

mgba - 0.11.0_pre20260101
Ebuild name:

games-emulation/mgba-0.11.0_pre20260101

Description

Game Boy Advance Emulator

Added to portage

2026-01-03

mpmath - 1.4.0_beta3
Ebuild name:

dev-python/mpmath-1.4.0_beta3

Description

Python library for arbitrary-precision floating-point arithmetic

Added to portage

2026-01-03

openpgp-keys-gentoo-developers - 20251229
Ebuild name:

sec-keys/openpgp-keys-gentoo-developers-20251229

Description

Gentoo Authority Keys (GLEP 79)

Added to portage

2026-01-03

openttd - 15.0
Ebuild name:

games-simulation/openttd-15.0

Description

A clone of Transport Tycoon Deluxe

Added to portage

2026-01-03

patatt - 0.7.0
Ebuild name:

dev-python/patatt-0.7.0

Description

A simple library to add cryptographic attestation to patches sent via email

Added to portage

2026-01-03

pillow - 12.1.0
Ebuild name:

dev-python/pillow-12.1.0

Description

Python Imaging Library (fork)

Added to portage

2026-01-03

pkgcheck - 0.10.37-r1
Ebuild name:

dev-util/pkgcheck-0.10.37-r1

Description

pkgcore-based QA utility for ebuild repos

Added to portage

2026-01-03

pkgcore - 0.12.30-r1
Ebuild name:

sys-apps/pkgcore-0.12.30-r1

Description

a framework for package management

Added to portage

2026-01-03

portage-utils - 0.99
Ebuild name:

app-portage/portage-utils-0.99

Description

Small and fast Portage helper tools written in C

Added to portage

2026-01-03

pyside - 6.10.1-r3
Ebuild name:

dev-python/pyside-6.10.1-r3

Description

Python bindings for the Qt framework

Added to portage

2026-01-03

qemu - 10.2.0-r1
Ebuild name:

app-emulation/qemu-10.2.0-r1

Description

QEMU + Kernel-based Virtual Machine userland tools

Added to portage

2026-01-03

refind - 0.14.2-r4
Ebuild name:

sys-boot/refind-0.14.2-r4

Description

The UEFI Boot Manager by Rod Smith

Added to portage

2026-01-03

rgbds - 1.0.1
Ebuild name:

dev-util/rgbds-1.0.1

Description

Rednex Game Boy Development System

Added to portage

2026-01-03

rhash - 1.4.6-r1
Ebuild name:

app-crypt/rhash-1.4.6-r1

Description

Console utility and library for computing and verifying file hash sums

Added to portage

2026-01-03

rmg - 0.8.8
Ebuild name:

games-emulation/rmg-0.8.8

Description

Rosalie's Mupen GUI

Added to portage

2026-01-03

rotix - 0.83-r3
Ebuild name:

app-crypt/rotix-0.83-r3

Description

Rotix allows you to generate rotational obfuscations

Added to portage

2026-01-03

rpm-sequoia - 1.10.0
Ebuild name:

app-crypt/rpm-sequoia-1.10.0

Description

Implementation of the RPM PGP interface using Sequoia

Added to portage

2026-01-03

rpm-sequoia - 1.9.0
Ebuild name:

app-crypt/rpm-sequoia-1.9.0

Description

Implementation of the RPM PGP interface using Sequoia

Added to portage

2026-01-03

ruamel-yaml - 0.19.1
Ebuild name:

dev-python/ruamel-yaml-0.19.1

Description

YAML parser/emitter that supports roundtrip comment preservation

Added to portage

2026-01-03

ruamel-yaml-clibz - 0.3.7
Ebuild name:

dev-python/ruamel-yaml-clibz-0.3.7

Description

C-based reader/scanner and emitter for dev-python/ruamel-yaml

Added to portage

2026-01-03

sbctl - 0.15.4
Ebuild name:

app-crypt/sbctl-0.15.4

Description

Secure Boot key manager

Added to portage

2026-01-03

sbctl - 0.16
Ebuild name:

app-crypt/sbctl-0.16

Description

Secure Boot key manager

Added to portage

2026-01-03

snakeoil - 0.11.0
Ebuild name:

dev-python/snakeoil-0.11.0

Description

misc common functionality and useful optimizations

Added to portage

2026-01-03

sphinx-autodoc-typehints - 3.6.2
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.6.2

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-01-03

sus-fixtures-console - 0.5.0
Ebuild name:

dev-ruby/sus-fixtures-console-0.5.0

Description

Test fixtures for capturing Console output

Added to portage

2026-01-03

tox - 4.33.0
Ebuild name:

dev-python/tox-4.33.0

Description

virtualenv-based automation of test activities

Added to portage

2026-01-03

vanilla-sources - 6.18.3
Ebuild name:

sys-kernel/vanilla-sources-6.18.3

Description

Full sources for the Linux kernel

Added to portage

2026-01-03

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