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:

89128

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-13
freerdp - 3.32.2
Ebuild name:

net-misc/freerdp-3.32.2

Description

Free implementation of the Remote Desktop Protocol

Added to portage

2026-10-13

javacc - 8.1.0
Ebuild name:

dev-java/javacc-8.1.0

Description

Core module of JavaCC

Added to portage

2026-10-13

javacc-java - 8.1.0
Ebuild name:

dev-java/javacc-java-8.1.0

Description

Java code generator module of JavaCC

Added to portage

2026-10-13

johntheripper-jumbo - 9999
Ebuild name:

app-crypt/johntheripper-jumbo-9999

Description

Fast password cracker, community enhanced version

Added to portage

2026-10-13

kup - 0.10.0
Ebuild name:

kde-plasma/kup-0.10.0

Description

Backup scheduler for the Plasma desktop

Added to portage

2026-10-13

tomcat - 10.1.61
Ebuild name:

www-servers/tomcat-10.1.61

Description

Tomcat Servlet-6.0/JSP-3.1/EL-5.0/WebSocket-2.1/JASPIC-3.0 Container

Added to portage

2026-10-13

tomcat - 11.0.27
Ebuild name:

www-servers/tomcat-11.0.27

Description

Tomcat Servlet-6.1/JSP-4.0/EL-6.0/WebSocket-2.2/JASPIC-3.1 Container

Added to portage

2026-10-13

tomcat - 9.0.123
Ebuild name:

www-servers/tomcat-9.0.123

Description

Tomcat Servlet-4.0/JSP-2.3/EL-3.0/WebSocket-1.1/JASPIC-1.1 Container

Added to portage

2026-10-13

wsjtx_improved - 3.2.0_p20260908
Ebuild name:

media-radio/wsjtx_improved-3.2.0_p20260908

Description

Weak signal ham radio communication with improvements

Added to portage

2026-10-13

2026-10-12
aioquic - 1.5.0
Ebuild name:

dev-python/aioquic-1.5.0

Description

An implementation of QUIC and HTTP/3

Added to portage

2026-10-12

ansible-compat - 26.10.0
Ebuild name:

dev-python/ansible-compat-26.10.0

Description

Contains functions that facilitate working with various versions

Added to portage

2026-10-12

aws-sdk-cpp - 1.11.909
Ebuild name:

dev-cpp/aws-sdk-cpp-1.11.909

Description

AWS SDK for C++

Added to portage

2026-10-12

beartype - 0.23.1
Ebuild name:

dev-python/beartype-0.23.1

Description

Unbearably fast runtime type checking in pure Python

Added to portage

2026-10-12

bitarray - 3.12.1
Ebuild name:

dev-python/bitarray-3.12.1

Description

Efficient arrays of booleans -- C extension

Added to portage

2026-10-12

bracex - 3.1
Ebuild name:

dev-python/bracex-3.1

Description

Bash style brace expansion for Python

Added to portage

2026-10-12

btrfs-assistant - 2.3.2
Ebuild name:

app-admin/btrfs-assistant-2.3.2

Description

GUI management tool to make managing a Btrfs filesystem easier

Added to portage

2026-10-12

cen64-jg - 0.4.1
Ebuild name:

games-emulation/cen64-jg-0.4.1

Description

Jolly Good fork of CEN64

Added to portage

2026-10-12

cen64-jg - 9999
Ebuild name:

games-emulation/cen64-jg-9999

Description

Jolly Good fork of CEN64

Added to portage

2026-10-12

dealii - 9.7.1-r1
Ebuild name:

sci-libs/dealii-9.7.1-r1

Description

Solving partial differential equations with the finite element method

Added to portage

2026-10-12

dealii - 9.8.0-r1
Ebuild name:

sci-libs/dealii-9.8.0-r1

Description

Solving partial differential equations with the finite element method

Added to portage

2026-10-12

dist-kernel - 6.18.56
Ebuild name:

virtual/dist-kernel-6.18.56

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-10-12

dist-kernel - 7.2.10
Ebuild name:

virtual/dist-kernel-7.2.10

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-10-12

docker - 29.9.0
Ebuild name:

app-containers/docker-29.9.0

Description

The core functions you need to create Docker images and run Docker con

Added to portage

2026-10-12

docker-cli - 29.9.0
Ebuild name:

app-containers/docker-cli-29.9.0

Description

the command line binary for docker

Added to portage

2026-10-12

doxygen - 1.17.0-r1
Ebuild name:

app-text/doxygen-1.17.0-r1

Description

Documentation system for most programming languages

Added to portage

2026-10-12

doxygen - 1.18.0-r1
Ebuild name:

app-text/doxygen-1.18.0-r1

Description

Documentation system for most programming languages

Added to portage

2026-10-12

duckdb - 1.5.6
Ebuild name:

dev-db/duckdb-1.5.6

Description

high-performance analytical database system

Added to portage

2026-10-12

filelock - 4.1.1
Ebuild name:

dev-python/filelock-4.1.1

Description

A platform independent file lock for Python

Added to portage

2026-10-12

firefox-bin - 158.0
Ebuild name:

www-client/firefox-bin-158.0

Description

Firefox Web Browser

Added to portage

2026-10-12

gcc - 14.4.1_p20261008
Ebuild name:

sys-devel/gcc-14.4.1_p20261008

Description

The GNU Compiler Collection

Added to portage

2026-10-12

gcc - 15.3.1_p20261009
Ebuild name:

sys-devel/gcc-15.3.1_p20261009

Description

The GNU Compiler Collection

Added to portage

2026-10-12

gcc - 16.2.1_p20261010
Ebuild name:

sys-devel/gcc-16.2.1_p20261010

Description

The GNU Compiler Collection

Added to portage

2026-10-12

gcc - 17.0.0_p20261011
Ebuild name:

sys-devel/gcc-17.0.0_p20261011

Description

The GNU Compiler Collection

Added to portage

2026-10-12

gentoo-kernel - 6.18.56
Ebuild name:

sys-kernel/gentoo-kernel-6.18.56

Description

Linux kernel built with Gentoo patches

Added to portage

2026-10-12

gentoo-kernel - 7.2.10
Ebuild name:

sys-kernel/gentoo-kernel-7.2.10

Description

Linux kernel built with Gentoo patches

Added to portage

2026-10-12

gentoo-kernel-bin - 6.18.56
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.56

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-10-12

gentoo-kernel-bin - 7.2.10
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.2.10

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-10-12

gentoo-kernel-modprep - 6.18.56
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.56

Description

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

Added to portage

2026-10-12

gentoo-kernel-modprep - 7.2.10
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.2.10

Description

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

Added to portage

2026-10-12

git-sources - 7.3_rc7
Ebuild name:

sys-kernel/git-sources-7.3_rc7

Description

The very latest -git version of the Linux kernel

Added to portage

2026-10-12

go - 1.26.9
Ebuild name:

dev-lang/go-1.26.9

Description

A concurrent garbage collected and typesafe programming language

Added to portage

2026-10-12

go - 1.27.2
Ebuild name:

dev-lang/go-1.27.2

Description

A concurrent garbage collected and typesafe programming language

Added to portage

2026-10-12

haskell-mode - 17.5_p20260206
Ebuild name:

app-emacs/haskell-mode-17.5_p20260206

Description

Mode for editing (and running) Haskell programs in Emacs

Added to portage

2026-10-12

hypothesis - 6.169.0
Ebuild name:

dev-python/hypothesis-6.169.0

Description

A library for property based testing

Added to portage

2026-10-12

inline-snapshot - 0.36.1
Ebuild name:

dev-python/inline-snapshot-0.36.1

Description

Create and update inline snapshots in your Python tests

Added to portage

2026-10-12

jacksum - 4.0.2
Ebuild name:

app-crypt/jacksum-4.0.2

Description

Java utility for working with checksums, CRCs, and message digests (hashes)

Added to portage

2026-10-12

jgemu - 1.0.0-r2
Ebuild name:

games-emulation/jgemu-1.0.0-r2

Description

Meta ebuild for the Jolly Good API

Added to portage

2026-10-12

jna - 5.19.1
Ebuild name:

dev-java/jna-5.19.1

Description

Java Native Access

Added to portage

2026-10-12

jsonpath-ng - 1.10.1
Ebuild name:

dev-python/jsonpath-ng-1.10.1

Description

Python JSONPath Next-Generation

Added to portage

2026-10-12

keystoneauth1 - 5.18.1
Ebuild name:

dev-python/keystoneauth1-5.18.1

Description

This package contains tools for authenticating to an OpenStack-base

Added to portage

2026-10-12

libhubbub - 9999
Ebuild name:

net-libs/libhubbub-9999

Description

HTML5 compliant parsing library, written in C

Added to portage

2026-10-12

libnsbmp - 9999
Ebuild name:

media-libs/libnsbmp-9999

Description

Decoding library for BMP and ICO image file formats, written in C

Added to portage

2026-10-12

libnsfb - 9999
Ebuild name:

dev-libs/libnsfb-9999

Description

C library for framebuffer abstraction

Added to portage

2026-10-12

libnspsl - 9999
Ebuild name:

media-libs/libnspsl-9999

Description

Public Suffix List (PSL) for the NetSurf browser

Added to portage

2026-10-12

libparserutils - 9999
Ebuild name:

dev-libs/libparserutils-9999

Description

C library for building efficient parsers

Added to portage

2026-10-12

librosprite - 9999
Ebuild name:

media-libs/librosprite-9999

Description

Framebuffer abstraction library, written in C

Added to portage

2026-10-12

libwapcaplet - 9999
Ebuild name:

dev-libs/libwapcaplet-9999

Description

string internment library, written in C

Added to portage

2026-10-12

libxmp - 4.7.4
Ebuild name:

media-libs/libxmp-4.7.4

Description

Library that renders module files to PCM data

Added to portage

2026-10-12

lollypop - 1.4.48
Ebuild name:

media-sound/lollypop-1.4.48

Description

Modern music player for GNOME

Added to portage

2026-10-12

ls-qpack - 2.6.4
Ebuild name:

dev-libs/ls-qpack-2.6.4

Description

QPACK compression library for use with HTTP/3

Added to portage

2026-10-12

ls-qpack - 2.7.0
Ebuild name:

dev-libs/ls-qpack-2.7.0

Description

QPACK compression library for use with HTTP/3

Added to portage

2026-10-12

moto - 5.2.4
Ebuild name:

dev-python/moto-5.2.4

Description

Mock library for boto

Added to portage

2026-10-12

mumps - 5.6.2-r1
Ebuild name:

sci-libs/mumps-5.6.2-r1

Description

MUltifrontal Massively Parallel sparse direct matrix Solver

Added to portage

2026-10-12

nbconvert - 7.17.2
Ebuild name:

dev-python/nbconvert-7.17.2

Description

Converting Jupyter Notebooks

Added to portage

2026-10-12

netsurf-buildsystem - 9999
Ebuild name:

dev-build/netsurf-buildsystem-9999

Description

Build system used for netsurf and its libraries

Added to portage

2026-10-12

nsgenbind - 9999
Ebuild name:

dev-libs/nsgenbind-9999

Description

Generate Javascript-to-DOM bindings from w3c webidl files

Added to portage

2026-10-12

paraview - 6.2.0
Ebuild name:

sci-visualization/paraview-6.2.0

Description

Powerful scientific data visualization application

Added to portage

2026-10-12

patiencediff - 1.0.0
Ebuild name:

dev-python/patiencediff-1.0.0

Description

Python implementation of the patiencediff algorithm

Added to portage

2026-10-12

pikepdf - 10.17.0
Ebuild name:

dev-python/pikepdf-10.17.0

Description

Python library to work with pdf files based on qpdf

Added to portage

2026-10-12

platformdirs - 4.13.0
Ebuild name:

dev-python/platformdirs-4.13.0

Description

A small Python module for determining appropriate platform-specific

Added to portage

2026-10-12

ps2eps - 1.70
Ebuild name:

app-text/ps2eps-1.70

Description

Generate Encapsulated Postscript Format files from one-page Postscript documen

Added to portage

2026-10-12

pycryptodome - 3.24.1
Ebuild name:

dev-python/pycryptodome-3.24.1

Description

A self-contained cryptographic library for Python

Added to portage

2026-10-12

pydantic - 2.14.1
Ebuild name:

dev-python/pydantic-2.14.1

Description

Data parsing and validation using Python type hints

Added to portage

2026-10-12

pyglet - 2.1.19
Ebuild name:

dev-python/pyglet-2.1.19

Description

Cross-platform windowing and multimedia library for Python

Added to portage

2026-10-12

pylint - 4.1.3
Ebuild name:

dev-python/pylint-4.1.3

Description

Python code static checker

Added to portage

2026-10-12

pylsqpack - 1.0.0
Ebuild name:

dev-python/pylsqpack-1.0.0

Description

Python wrapper for the ls-qpack QPACK library

Added to portage

2026-10-12

pypdf - 6.20.1
Ebuild name:

dev-python/pypdf-6.20.1

Description

Python library to work with PDF files

Added to portage

2026-10-12

pyrfc3339 - 2.1.1
Ebuild name:

dev-python/pyrfc3339-2.1.1

Description

Generates and parses RFC 3339 timestamps

Added to portage

2026-10-12

pyspelling - 2.13
Ebuild name:

dev-python/pyspelling-2.13

Description

Spell checker automation tool

Added to portage

2026-10-12

pytest-check - 3.0.0
Ebuild name:

dev-python/pytest-check-3.0.0

Description

pytest plugin that allows multiple failures per test

Added to portage

2026-10-12

python-utils - 4.1.1
Ebuild name:

dev-python/python-utils-4.1.1

Description

Collection of small Python functions & classes

Added to portage

2026-10-12

pyzstd - 0.20.0
Ebuild name:

dev-python/pyzstd-0.20.0

Description

Support for Zstandard (zstd) compression

Added to portage

2026-10-12

rust - 1.99.0
Ebuild name:

dev-lang/rust-1.99.0

Description

Systems programming language originally developed by Mozilla

Added to portage

2026-10-12

rust-bin - 1.99.0
Ebuild name:

dev-lang/rust-bin-1.99.0

Description

Added to portage

2026-10-12

rust-common - 1.99.0
Ebuild name:

dev-lang/rust-common-1.99.0

Description

Common files shared between multiple slots of Rust

Added to portage

2026-10-12

rust-std - 1.99.0
Ebuild name:

sys-devel/rust-std-1.99.0

Description

Rust standard library, standalone (for crossdev)

Added to portage

2026-10-12

sip - 6.17.1
Ebuild name:

dev-python/sip-6.17.1

Description

Python bindings generator for C/C++ libraries

Added to portage

2026-10-12

soupsieve - 3.0.2
Ebuild name:

dev-python/soupsieve-3.0.2

Description

A modern CSS selector implementation for BeautifulSoup

Added to portage

2026-10-12

soupsieve - 3.0.3
Ebuild name:

dev-python/soupsieve-3.0.3

Description

A modern CSS selector implementation for BeautifulSoup

Added to portage

2026-10-12

source-highlight - 9999
Ebuild name:

dev-util/source-highlight-9999

Description

Generate highlighted source code as an (x)html document

Added to portage

2026-10-12

texttable - 1.7.1
Ebuild name:

dev-python/texttable-1.7.1

Description

Module to create simple ASCII tables

Added to portage

2026-10-12

tmux - 3.8
Ebuild name:

app-misc/tmux-3.8

Description

Terminal multiplexer

Added to portage

2026-10-12

tox - 4.65.3
Ebuild name:

dev-python/tox-4.65.3

Description

virtualenv-based automation of test activities

Added to portage

2026-10-12

tox - 4.65.4
Ebuild name:

dev-python/tox-4.65.4

Description

virtualenv-based automation of test activities

Added to portage

2026-10-12

tree-sitter - 0.27.1
Ebuild name:

dev-libs/tree-sitter-0.27.1

Description

Tree-sitter is a parser generator tool and an incremental parsing libra

Added to portage

2026-10-12

tree-sitter-cli - 0.27.1
Ebuild name:

dev-util/tree-sitter-cli-0.27.1

Description

Command-line tool for creating and testing tree-sitter grammars

Added to portage

2026-10-12

trilinos - 16.2.2
Ebuild name:

sci-libs/trilinos-16.2.2

Description

Scientific library collection for large scale problems

Added to portage

2026-10-12

trilinos - 17.1.2
Ebuild name:

sci-libs/trilinos-17.1.2

Description

Scientific library collection for large scale problems

Added to portage

2026-10-12

trilinos - 17.2.1
Ebuild name:

sci-libs/trilinos-17.2.1

Description

Scientific library collection for large scale problems

Added to portage

2026-10-12

upterm - 0.37.0
Ebuild name:

app-misc/upterm-0.37.0

Description

Instant Terminal Sharing

Added to portage

2026-10-12

utidylib - 1.1.0
Ebuild name:

dev-python/utidylib-1.1.0

Description

TidyLib Python wrapper

Added to portage

2026-10-12

validators - 0.36.0
Ebuild name:

dev-python/validators-0.36.0

Description

Python Data Validation for Humans

Added to portage

2026-10-12

valkey - 6.2.0
Ebuild name:

dev-python/valkey-6.2.0

Description

Python client for Valkey forked from redis-py

Added to portage

2026-10-12

vanilla-kernel - 6.18.56
Ebuild name:

sys-kernel/vanilla-kernel-6.18.56

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-10-12

vanilla-kernel - 7.2.10
Ebuild name:

sys-kernel/vanilla-kernel-7.2.10

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-10-12

virtualenv - 21.14.7
Ebuild name:

dev-python/virtualenv-21.14.7

Description

Virtual Python Environment builder

Added to portage

2026-10-12

zedis - 0.13.0
Ebuild name:

dev-db/zedis-0.13.0

Description

Blazing-fast native Redis GUI built with Rust and GPUI

Added to portage

2026-10-12

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