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:

81543

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
2025-10-15
FBGEMM - 1.3.0.2025.09.05
Ebuild name:

sci-ml/FBGEMM-1.3.0.2025.09.05

Description

Facebook GEneral Matrix Multiplication

Added to portage

2025-10-15

anki - 25.09.2
Ebuild name:

app-misc/anki-25.09.2

Description

Smart spaced repetition flashcard program

Added to portage

2025-10-15

hercules-sdl - 4.9.0
Ebuild name:

app-emulation/hercules-sdl-4.9.0

Description

The SoftDevLabs (SDL) version of the Hercules 4.x Hyperion Emulato

Added to portage

2025-10-15

hercules-sdl-crypto - 4.9.0
Ebuild name:

app-emulation/hercules-sdl-crypto-4.9.0

Description

Simple AES/DES encryption and SHA1/SHA2 hashing library

Added to portage

2025-10-15

hercules-sdl-decnumber - 4.9.0
Ebuild name:

app-emulation/hercules-sdl-decnumber-4.9.0

Description

ANSI C General Decimal Arithmetic Library

Added to portage

2025-10-15

hercules-sdl-softfloat - 4.9.0
Ebuild name:

app-emulation/hercules-sdl-softfloat-4.9.0

Description

Berkeley IEEE Binary Floating-Point Library

Added to portage

2025-10-15

hercules-sdl-telnet - 4.9.0
Ebuild name:

app-emulation/hercules-sdl-telnet-4.9.0

Description

Simple RFC-complient TELNET implementation

Added to portage

2025-10-15

lean - 4.23.0
Ebuild name:

sci-mathematics/lean-4.23.0

Description

The Lean Theorem Prover

Added to portage

2025-10-15

openpgp-keys-glibc - 20251014
Ebuild name:

sec-keys/openpgp-keys-glibc-20251014

Description

OpenPGP keys used to sign glibc releases

Added to portage

2025-10-15

patool - 4.0.2
Ebuild name:

app-arch/patool-4.0.2

Description

Portable archive file manager

Added to portage

2025-10-15

postgresql - 17.6-r2
Ebuild name:

dev-db/postgresql-17.6-r2

Description

PostgreSQL RDBMS

Added to portage

2025-10-15

python - 0.3.13.9
Ebuild name:

dev-lang/python-0.3.13.9

Description

Freethreading (no-GIL) version of Python programming language

Added to portage

2025-10-15

python - 0.3.15.0_alpha1
Ebuild name:

dev-lang/python-0.3.15.0_alpha1

Description

Freethreading (no-GIL) version of Python programming language

Added to portage

2025-10-15

python - 3.13.9
Ebuild name:

dev-lang/python-3.13.9

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2025-10-15

python - 3.15.0_alpha1
Ebuild name:

dev-lang/python-3.15.0_alpha1

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2025-10-15

python-tests - 0.3.13.9
Ebuild name:

dev-python/python-tests-0.3.13.9

Description

Test modules from dev-lang/python

Added to portage

2025-10-15

python-tests - 3.13.9
Ebuild name:

dev-python/python-tests-3.13.9

Description

Test modules from dev-lang/python

Added to portage

2025-10-15

qmmp - 2.3.0
Ebuild name:

media-sound/qmmp-2.3.0

Description

Qt-based audio player with winamp/xmms skins support

Added to portage

2025-10-15

qmmp-plugin-pack - 2.3.0
Ebuild name:

media-plugins/qmmp-plugin-pack-2.3.0

Description

Set of extra plugins for Qmmp

Added to portage

2025-10-15

reformatter - 0.7
Ebuild name:

app-emacs/reformatter-0.7

Description

Define commands which run reformatters on the Emacs buffers

Added to portage

2025-10-15

regress - 1.5.1
Ebuild name:

app-emacs/regress-1.5.1

Description

Regression test harness for Emacs Lisp code

Added to portage

2025-10-15

spyder-unittest - 0.7.1
Ebuild name:

dev-python/spyder-unittest-0.7.1

Description

Plugin for Spyder to run tests and view the results

Added to portage

2025-10-15

varnish - 7.7.3
Ebuild name:

www-servers/varnish-7.7.3

Description

Varnish is a state-of-the-art, high-performance HTTP accelerator

Added to portage

2025-10-15

2025-10-14
aiostream - 0.7.1
Ebuild name:

dev-python/aiostream-0.7.1

Description

Generator-based operators for asynchronous iteration

Added to portage

2025-10-14

asciidoctor - 2.0.24
Ebuild name:

dev-ruby/asciidoctor-2.0.24

Description

Processor for converting AsciiDoc into HTML 5, DocBook 4.5 and other fo

Added to portage

2025-10-14

awscli - 1.42.51
Ebuild name:

app-admin/awscli-1.42.51

Description

Universal Command Line Environment for AWS

Added to portage

2025-10-14

boto3 - 1.40.51
Ebuild name:

dev-python/boto3-1.40.51

Description

The AWS SDK for Python

Added to portage

2025-10-14

botocore - 1.40.51
Ebuild name:

dev-python/botocore-1.40.51

Description

Low-level, data-driven core of boto 3

Added to portage

2025-10-14

braintree - 4.39.0
Ebuild name:

dev-python/braintree-4.39.0

Description

Braintree Python Library

Added to portage

2025-10-14

cargo-nextest - 0.9.106
Ebuild name:

dev-util/cargo-nextest-0.9.106

Description

Next-generation test runner for Rust

Added to portage

2025-10-14

cftime - 1.6.5
Ebuild name:

dev-python/cftime-1.6.5

Description

Time-handling functionality from netcdf4-python

Added to portage

2025-10-14

charset-normalizer - 3.4.4
Ebuild name:

dev-python/charset-normalizer-3.4.4

Description

The Real First Universal Charset Detector

Added to portage

2025-10-14

dash - 0.5.13.1
Ebuild name:

app-shells/dash-0.5.13.1

Description

Debian Almquist Shell

Added to portage

2025-10-14

dulwich - 0.24.3
Ebuild name:

dev-python/dulwich-0.24.3

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2025-10-14

dulwich - 0.24.3-r1
Ebuild name:

dev-python/dulwich-0.24.3-r1

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2025-10-14

fennel - 1.6.0
Ebuild name:

dev-lang/fennel-1.6.0

Description

Lisp-like language that compiles to Lua

Added to portage

2025-10-14

firefox - 140.4.0
Ebuild name:

www-client/firefox-140.4.0

Description

Firefox Web Browser

Added to portage

2025-10-14

firefox - 144.0
Ebuild name:

www-client/firefox-144.0

Description

Firefox Web Browser

Added to portage

2025-10-14

firefox-bin - 140.4.0
Ebuild name:

www-client/firefox-bin-140.4.0

Description

Firefox Web Browser

Added to portage

2025-10-14

gallery-dl - 1.30.10
Ebuild name:

net-misc/gallery-dl-1.30.10

Description

Download image galleries and collections from several image hosting sit

Added to portage

2025-10-14

gnome-applets - 3.58.0
Ebuild name:

gnome-base/gnome-applets-3.58.0

Description

Applets for the GNOME Flashback Panel

Added to portage

2025-10-14

gnome-flashback - 3.58.0
Ebuild name:

gnome-base/gnome-flashback-3.58.0

Description

GNOME Flashback session

Added to portage

2025-10-14

gnome-panel - 3.58.1
Ebuild name:

gnome-base/gnome-panel-3.58.1

Description

The GNOME Flashback Panel

Added to portage

2025-10-14

gpxsee - 14.1
Ebuild name:

sci-geosciences/gpxsee-14.1

Description

Viewer and analyzer that supports gpx, tcx, kml, fit, igc and nmea file

Added to portage

2025-10-14

h5py - 3.15.0
Ebuild name:

dev-python/h5py-3.15.0

Description

Simple Python interface to HDF5 files

Added to portage

2025-10-14

hcloud - 2.9.0
Ebuild name:

dev-python/hcloud-2.9.0

Description

Official Hetzner Cloud python library

Added to portage

2025-10-14

inline-snapshot - 0.29.4
Ebuild name:

dev-python/inline-snapshot-0.29.4

Description

Create and update inline snapshots in your Python tests

Added to portage

2025-10-14

ipykernel - 7.0.0
Ebuild name:

dev-python/ipykernel-7.0.0

Description

IPython Kernel for Jupyter

Added to portage

2025-10-14

jellyfin-bin - 10.11.0_rc9
Ebuild name:

www-apps/jellyfin-bin-10.11.0_rc9

Description

Jellyfin puts you in control of managing and streaming your media

Added to portage

2025-10-14

kdenlive - 25.08.2-r1
Ebuild name:

kde-apps/kdenlive-25.08.2-r1

Description

Non-linear video editing suite by KDE

Added to portage

2025-10-14

libqalculate - 5.8.0
Ebuild name:

sci-libs/libqalculate-5.8.0

Description

A modern multi-purpose calculator library

Added to portage

2025-10-14

metacity - 3.58.1
Ebuild name:

x11-wm/metacity-3.58.1

Description

GNOME Flashback window manager

Added to portage

2025-10-14

mpmath - 1.4.0_beta2
Ebuild name:

dev-python/mpmath-1.4.0_beta2

Description

Python library for arbitrary-precision floating-point arithmetic

Added to portage

2025-10-14

msmtp - 1.8.32
Ebuild name:

mail-mta/msmtp-1.8.32

Description

An SMTP client and SMTP plugin for mail user agents such as Mutt

Added to portage

2025-10-14

muon - 0.5.0
Ebuild name:

dev-build/muon-0.5.0

Description

A meson-compatible build system

Added to portage

2025-10-14

narwhals - 2.8.0
Ebuild name:

dev-python/narwhals-2.8.0

Description

Extremely lightweight compatibility layer between dataframe libraries

Added to portage

2025-10-14

netcdf4 - 1.7.3
Ebuild name:

dev-python/netcdf4-1.7.3

Description

Python/numpy interface to the netCDF C library

Added to portage

2025-10-14

newsboat - 2.41
Ebuild name:

net-news/newsboat-2.41

Description

An RSS/Atom feed reader for text terminals

Added to portage

2025-10-14

nss - 3.112.2
Ebuild name:

dev-libs/nss-3.112.2

Description

Mozilla's Network Security Services library that implements PKI support

Added to portage

2025-10-14

numexpr - 2.14.1
Ebuild name:

dev-python/numexpr-2.14.1

Description

Fast numerical array expression evaluator for Python and NumPy

Added to portage

2025-10-14

precis-i18n - 1.1.2
Ebuild name:

dev-python/precis-i18n-1.1.2

Description

Internationalized Usernames and Passwords

Added to portage

2025-10-14

prowlarr-bin - 2.1.4.5212
Ebuild name:

www-apps/prowlarr-bin-2.1.4.5212

Description

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

Added to portage

2025-10-14

pydantic - 2.12.1
Ebuild name:

dev-python/pydantic-2.12.1

Description

Data parsing and validation using Python type hints

Added to portage

2025-10-14

qalculate-gtk - 5.8.0
Ebuild name:

sci-calculators/qalculate-gtk-5.8.0

Description

Modern multi-purpose calculator

Added to portage

2025-10-14

qalculate-qt - 5.8.0
Ebuild name:

sci-calculators/qalculate-qt-5.8.0

Description

Qt-based UI for libqalculate

Added to portage

2025-10-14

referencing - 0.37.0
Ebuild name:

dev-python/referencing-0.37.0

Description

Cross-specification JSON referencing (JSON Schema, OpenAPI...)

Added to portage

2025-10-14

sanoid - 2.3.0-r1
Ebuild name:

sys-fs/sanoid-2.3.0-r1

Description

Policy-driven snapshot management and replication tools for OpenZFS.

Added to portage

2025-10-14

sanoid - 9999
Ebuild name:

sys-fs/sanoid-9999

Description

Policy-driven snapshot management and replication tools for OpenZFS.

Added to portage

2025-10-14

sdoc - 2.6.4
Ebuild name:

dev-ruby/sdoc-2.6.4

Description

rdoc generator html with javascript search index

Added to portage

2025-10-14

sqlglot - 27.27.0
Ebuild name:

dev-python/sqlglot-27.27.0

Description

An easily customizable SQL parser and transpiler

Added to portage

2025-10-14

syd - 3.40.1
Ebuild name:

sys-apps/syd-3.40.1

Description

seccomp and landlock based application sandbox with support for namespaces

Added to portage

2025-10-14

telegram-desktop - 6.2.3
Ebuild name:

net-im/telegram-desktop-6.2.3

Description

Official desktop client for Telegram

Added to portage

2025-10-14

testfixtures - 9.2.0
Ebuild name:

dev-python/testfixtures-9.2.0

Description

A collection of helpers and mock objects for unit tests and doc tests

Added to portage

2025-10-14

unearth - 0.18.0
Ebuild name:

dev-python/unearth-0.18.0

Description

A utility to fetch and download python packages

Added to portage

2025-10-14

xor-analyze - 0.5-r1
Ebuild name:

app-crypt/xor-analyze-0.5-r1

Description

Program for cryptanalyzing xor 'encryption' with variable key length

Added to portage

2025-10-14

yubihsm-connector - 3.0.4
Ebuild name:

app-crypt/yubihsm-connector-3.0.4

Description

Server to expose YubiHSM 2 to network

Added to portage

2025-10-14

yubihsm-shell - 2.6.0
Ebuild name:

app-crypt/yubihsm-shell-2.6.0

Description

Components used to interact with the YubiHSM 2

Added to portage

2025-10-14

yubikey-manager - 5.7.2
Ebuild name:

app-crypt/yubikey-manager-5.7.2

Description

Python library and command line tool for configuring a YubiKey

Added to portage

2025-10-14

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 24.0 ms