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:

87665

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-08-15
ggml - 0.20.0
Ebuild name:

sci-ml/ggml-0.20.0

Description

Tensor library for machine learning

Added to portage

2026-08-15

jabref - 5.15-r1
Ebuild name:

app-text/jabref-5.15-r1

Description

Graphical Java application for managing BibTeX and biblatex (.bib) database

Added to portage

2026-08-15

openjdk-bin - 11.0.32_p9
Ebuild name:

dev-java/openjdk-bin-11.0.32_p9

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-bin - 17.0.20_p8
Ebuild name:

dev-java/openjdk-bin-17.0.20_p8

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-bin - 21.0.12_p8
Ebuild name:

dev-java/openjdk-bin-21.0.12_p8

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-bin - 25.0.4_p7
Ebuild name:

dev-java/openjdk-bin-25.0.4_p7

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-bin - 27_beta34
Ebuild name:

dev-java/openjdk-bin-27_beta34

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-bin - 28_alpha11
Ebuild name:

dev-java/openjdk-bin-28_alpha11

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-bin - 8.502_p07
Ebuild name:

dev-java/openjdk-bin-8.502_p07

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-jre-bin - 11.0.32_p9
Ebuild name:

dev-java/openjdk-jre-bin-11.0.32_p9

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-jre-bin - 17.0.20_p8
Ebuild name:

dev-java/openjdk-jre-bin-17.0.20_p8

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-jre-bin - 21.0.12_p8
Ebuild name:

dev-java/openjdk-jre-bin-21.0.12_p8

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-jre-bin - 25.0.4_p7
Ebuild name:

dev-java/openjdk-jre-bin-25.0.4_p7

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-08-15

openjdk-jre-bin - 8.502_p07
Ebuild name:

dev-java/openjdk-jre-bin-8.502_p07

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-08-15

simdjson - 4.6.7
Ebuild name:

dev-libs/simdjson-4.6.7

Description

SIMD accelerated C++ JSON library

Added to portage

2026-08-15

2026-08-14
algol68g - 3.13.3
Ebuild name:

dev-lang/algol68g-3.13.3

Description

Algol 68 Genie compiler-interpreter

Added to portage

2026-08-14

audit - 4.2.1
Ebuild name:

sys-process/audit-4.2.1

Description

Userspace utilities for storing and processing auditing records

Added to portage

2026-08-14

aws-sam-translator - 1.112.0
Ebuild name:

dev-python/aws-sam-translator-1.112.0

Description

A library that transform SAM templates into AWS CloudFormatio

Added to portage

2026-08-14

boto3 - 1.43.71
Ebuild name:

dev-python/boto3-1.43.71

Description

The AWS SDK for Python

Added to portage

2026-08-14

botocore - 1.43.71
Ebuild name:

dev-python/botocore-1.43.71

Description

Low-level, data-driven core of boto 3

Added to portage

2026-08-14

cfitsio - 4.7.0
Ebuild name:

sci-libs/cfitsio-4.7.0

Description

C and Fortran library for manipulating FITS files

Added to portage

2026-08-14

cfn-lint - 1.55.1
Ebuild name:

dev-python/cfn-lint-1.55.1

Description

CloudFormation Linter

Added to portage

2026-08-14

claude-code - 2.1.231
Ebuild name:

dev-util/claude-code-2.1.231

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-08-14

courier-imap - 6.0.6
Ebuild name:

net-mail/courier-imap-6.0.6

Description

An IMAP daemon designed specifically for maildirs

Added to portage

2026-08-14

cproc - 0_pre20260527
Ebuild name:

sys-devel/cproc-0_pre20260527

Description

C11 compiler using QBE as backend

Added to portage

2026-08-14

dbeaver-bin - 26.1.4
Ebuild name:

dev-db/dbeaver-bin-26.1.4

Description

Free universal database tool (community edition)

Added to portage

2026-08-14

diffoscope - 327
Ebuild name:

dev-util/diffoscope-327

Description

Will try to get to the bottom of what makes files or directories different

Added to portage

2026-08-14

duplicity - 3.2.0
Ebuild name:

app-backup/duplicity-3.2.0

Description

Secure backup system using GnuPG to encrypt data

Added to portage

2026-08-14

filelock - 3.32.3
Ebuild name:

dev-python/filelock-3.32.3

Description

A platform independent file lock for Python

Added to portage

2026-08-14

firewalld - 2.5.1
Ebuild name:

net-firewall/firewalld-2.5.1

Description

Firewall daemon with D-Bus interface providing a dynamic firewall

Added to portage

2026-08-14

gawk - 5.4.1-r1
Ebuild name:

sys-apps/gawk-5.4.1-r1

Description

GNU awk pattern-matching language

Added to portage

2026-08-14

graphicsmagick - 1.3.48
Ebuild name:

media-gfx/graphicsmagick-1.3.48

Description

Collection of tools and libraries for many image formats

Added to portage

2026-08-14

hypothesis - 6.165.6
Ebuild name:

dev-python/hypothesis-6.165.6

Description

A library for property based testing

Added to portage

2026-08-14

libgit2 - 1.9.7
Ebuild name:

dev-libs/libgit2-1.9.7

Description

A linkable library for Git

Added to portage

2026-08-14

libtsm - 4.7.0
Ebuild name:

dev-libs/libtsm-4.7.0

Description

Terminal Emulator State Machine

Added to portage

2026-08-14

mcrypt - 2.6.8-r3
Ebuild name:

app-crypt/mcrypt-2.6.8-r3

Description

Replacement of the old unix crypt(1)

Added to portage

2026-08-14

md5deep - 4.4
Ebuild name:

app-crypt/md5deep-4.4

Description

Expanded md5sum program with recursive and comparison options

Added to portage

2026-08-14

md6sum - 1.0-r3
Ebuild name:

app-crypt/md6sum-1.0-r3

Description

A C implementation of MD6

Added to portage

2026-08-14

mhash - 0.9.9.9-r4
Ebuild name:

app-crypt/mhash-0.9.9.9-r4

Description

Library providing a uniform interface to a large number of hash algorith

Added to portage

2026-08-14

minisign - 0.12
Ebuild name:

app-crypt/minisign-0.12

Description

Dead simple tool to sign files and verify signatures

Added to portage

2026-08-14

mit-krb5 - 1.22.2-r2
Ebuild name:

app-crypt/mit-krb5-1.22.2-r2

Description

MIT Kerberos V

Added to portage

2026-08-14

mit-krb5-appl - 1.0.3-r4
Ebuild name:

app-crypt/mit-krb5-appl-1.0.3-r4

Description

Kerberized applications split from the main MIT Kerberos V distrib

Added to portage

2026-08-14

mit-krb5-appl - 1.0.3-r4
Ebuild name:

app-crypt/mit-krb5-appl-1.0.3-r4

Description

Kerberized applications split from the main MIT Kerberos V distrib

Added to portage

2026-08-14

mit-krb5-appl - 1.0.3-r5
Ebuild name:

app-crypt/mit-krb5-appl-1.0.3-r5

Description

Kerberized applications split from the main MIT Kerberos V distrib

Added to portage

2026-08-14

mkp224o - 1.7.0
Ebuild name:

app-crypt/mkp224o-1.7.0

Description

Vanity address generator for v3 Tor hidden service addresses

Added to portage

2026-08-14

ml-dtypes - 0.6.0
Ebuild name:

dev-python/ml-dtypes-0.6.0

Description

A stand-alone implementation of several NumPy dtype extensions

Added to portage

2026-08-14

nvc - 1.22.1
Ebuild name:

sci-electronics/nvc-1.22.1

Description

NVC is a VHDL compiler and simulator

Added to portage

2026-08-14

oorexx - 5.3.0_beta13196
Ebuild name:

dev-lang/oorexx-5.3.0_beta13196

Description

Open source implementation of Object Rexx

Added to portage

2026-08-14

opencl-headers - 2026.05.29
Ebuild name:

dev-util/opencl-headers-2026.05.29

Description

Unified C language headers for the OpenCL API

Added to portage

2026-08-14

opencl-icd-loader - 2025.07.22
Ebuild name:

dev-libs/opencl-icd-loader-2025.07.22

Description

Official Khronos OpenCL ICD Loader

Added to portage

2026-08-14

pandoc-bin - 3.10.2
Ebuild name:

app-text/pandoc-bin-3.10.2

Description

Conversion between markup formats (binary package)

Added to portage

2026-08-14

pbr - 7.1.0
Ebuild name:

dev-python/pbr-7.1.0

Description

Inject some useful and sensible default behaviors into setuptools

Added to portage

2026-08-14

pkgcore - 0.12.39
Ebuild name:

sys-apps/pkgcore-0.12.39

Description

a framework for package management

Added to portage

2026-08-14

pkgdev - 0.2.17
Ebuild name:

dev-util/pkgdev-0.2.17

Description

Collection of tools for Gentoo development

Added to portage

2026-08-14

platformdirs - 4.11.3
Ebuild name:

dev-python/platformdirs-4.11.3

Description

A small Python module for determining appropriate platform-specific

Added to portage

2026-08-14

postfix - 3.12_pre20260812
Ebuild name:

mail-mta/postfix-3.12_pre20260812

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-08-14

progressbar2 - 4.6.0
Ebuild name:

dev-python/progressbar2-4.6.0

Description

Text progressbar library for python

Added to portage

2026-08-14

pypdf - 6.16.0
Ebuild name:

dev-python/pypdf-6.16.0

Description

Python library to work with PDF files

Added to portage

2026-08-14

pyphen - 0.18.1
Ebuild name:

dev-python/pyphen-0.18.1

Description

Python module for hyphenation using hunspell dictionaries

Added to portage

2026-08-14

pytest-rerunfailures - 16.5
Ebuild name:

dev-python/pytest-rerunfailures-16.5

Description

pytest plugin to re-run tests to eliminate flaky failures

Added to portage

2026-08-14

pyzotero - 1.13.6
Ebuild name:

dev-python/pyzotero-1.13.6

Description

A Python client for the Zotero API

Added to portage

2026-08-14

racket - 9.3
Ebuild name:

dev-scheme/racket-9.3

Description

General purpose, multi-paradigm Lisp-Scheme programming language

Added to portage

2026-08-14

ruff - 0.16.3
Ebuild name:

dev-util/ruff-0.16.3

Description

An extremely fast Python linter, written in Rust

Added to portage

2026-08-14

samba - 4.24.6
Ebuild name:

net-fs/samba-4.24.6

Description

Samba Suite Version 4

Added to portage

2026-08-14

scap-driver - 0.21.0
Ebuild name:

dev-debug/scap-driver-0.21.0

Description

Kernel module for dev-debug/sysdig

Added to portage

2026-08-14

sqlparse - 0.6.0
Ebuild name:

dev-python/sqlparse-0.6.0

Description

A non-validating SQL parser module for Python

Added to portage

2026-08-14

suscan - 0.3.0_p20251029-r1
Ebuild name:

net-wireless/suscan-0.3.0_p20251029-r1

Description

a realtime DSP processing library

Added to portage

2026-08-14

sysdig - 0.41.4
Ebuild name:

dev-debug/sysdig-0.41.4

Description

A system exploration and troubleshooting tool

Added to portage

2026-08-14

system-monitoring-center - 3.4.1-r1
Ebuild name:

sys-apps/system-monitoring-center-3.4.1-r1

Description

Multi-featured system monitor GUI written in Python

Added to portage

2026-08-14

tox - 4.60.0
Ebuild name:

dev-python/tox-4.60.0

Description

virtualenv-based automation of test activities

Added to portage

2026-08-14

uutils-coreutils - 0.10.0
Ebuild name:

sys-apps/uutils-coreutils-0.10.0

Description

GNU coreutils rewritten in Rust

Added to portage

2026-08-14

uvicorn - 0.52.3
Ebuild name:

dev-python/uvicorn-0.52.3

Description

Lightning-fast ASGI server implementation

Added to portage

2026-08-14

wireshark - 4.6.8
Ebuild name:

net-analyzer/wireshark-4.6.8

Description

Network protocol analyzer (sniffer)

Added to portage

2026-08-14

wrapt - 2.4.0_rc2
Ebuild name:

dev-python/wrapt-2.4.0_rc2

Description

Module for decorators, wrappers and monkey patching

Added to portage

2026-08-14

xdg-dbus-proxy - 0.1.8
Ebuild name:

sys-apps/xdg-dbus-proxy-0.1.8

Description

Filtering proxy for D-Bus connections

Added to portage

2026-08-14

xdg-utils - 1.2.1-r10
Ebuild name:

x11-misc/xdg-utils-1.2.1-r10

Description

Portland utils for cross-platform/cross-toolkit/cross-desktop interope

Added to portage

2026-08-14

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