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:

87605

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-12
gallery-dl - 1.32.6-r1
Ebuild name:

net-misc/gallery-dl-1.32.6-r1

Description

Download image galleries and collections from several image hosting s

Added to portage

2026-08-12

gallery-dl - 1.32.8-r1
Ebuild name:

net-misc/gallery-dl-1.32.8-r1

Description

Download image galleries and collections from several image hosting s

Added to portage

2026-08-12

gallery-dl - 1.32.9-r1
Ebuild name:

net-misc/gallery-dl-1.32.9-r1

Description

Download image galleries and collections from several image hosting s

Added to portage

2026-08-12

indilib - 2.2.4.2
Ebuild name:

sci-libs/indilib-2.2.4.2

Description

INDI Astronomical Control Protocol library

Added to portage

2026-08-12

kstars - 3.8.4.1
Ebuild name:

sci-astronomy/kstars-3.8.4.1

Description

Desktop Planetarium

Added to portage

2026-08-12

ntpsec - 1.2.5
Ebuild name:

net-misc/ntpsec-1.2.5

Description

The NTP reference implementation, refactored

Added to portage

2026-08-12

openpgp-keys-ntpsec - 20260731
Ebuild name:

sec-keys/openpgp-keys-ntpsec-20260731

Description

OpenPGP keys used to sign ntpsec releases

Added to portage

2026-08-12

openssh - 10.5_p1
Ebuild name:

net-misc/openssh-10.5_p1

Description

Port of OpenBSD's free SSH release

Added to portage

2026-08-12

ruff - 0.16.2
Ebuild name:

dev-util/ruff-0.16.2

Description

An extremely fast Python linter, written in Rust

Added to portage

2026-08-12

2026-08-11
accelerate - 1.14.0
Ebuild name:

sci-ml/accelerate-1.14.0

Description

Run your *raw* PyTorch training script on any kind of device

Added to portage

2026-08-11

android-studio - 2026.1.3.8
Ebuild name:

dev-util/android-studio-2026.1.3.8

Description

Android development environment based on IntelliJ IDEA

Added to portage

2026-08-11

apache-arrow - 25.0.1
Ebuild name:

dev-libs/apache-arrow-25.0.1

Description

A cross-language development platform for in-memory data

Added to portage

2026-08-11

boto3 - 1.43.68
Ebuild name:

dev-python/boto3-1.43.68

Description

The AWS SDK for Python

Added to portage

2026-08-11

botocore - 1.43.68
Ebuild name:

dev-python/botocore-1.43.68

Description

Low-level, data-driven core of boto 3

Added to portage

2026-08-11

bsnes-jg - 2.1.0-r1
Ebuild name:

games-emulation/bsnes-jg-2.1.0-r1

Description

Jolly Good Fork of bsnes

Added to portage

2026-08-11

bsnes-jg - 2.1.1
Ebuild name:

games-emulation/bsnes-jg-2.1.1

Description

Jolly Good Fork of bsnes

Added to portage

2026-08-11

cachebox - 6.2.5
Ebuild name:

dev-python/cachebox-6.2.5

Description

The fastest memoizing and caching Python library written in Rust

Added to portage

2026-08-11

camlp5 - 8.04.00-r1
Ebuild name:

dev-ml/camlp5-8.04.00-r1

Description

A preprocessor-pretty-printer of ocaml

Added to portage

2026-08-11

cega-jg - 0.6.1-r1
Ebuild name:

games-emulation/cega-jg-0.6.1-r1

Description

Jolly Good SG-1000, SMS, and Game Gear Emulator

Added to portage

2026-08-11

cega-jg - 0.6.2
Ebuild name:

games-emulation/cega-jg-0.6.2

Description

Jolly Good SG-1000, SMS, and Game Gear Emulator

Added to portage

2026-08-11

clamav - 0.103.12-r6
Ebuild name:

app-antivirus/clamav-0.103.12-r6

Description

Clam Anti-Virus Scanner

Added to portage

2026-08-11

dbmail - 3.5.6
Ebuild name:

net-mail/dbmail-3.5.6

Description

Fast and scalable sql based email services

Added to portage

2026-08-11

dep-logic - 0.7.1
Ebuild name:

dev-python/dep-logic-0.7.1

Description

Python dependency specifications supporting logical operations

Added to portage

2026-08-11

django-debug-toolbar - 7.1.0
Ebuild name:

dev-python/django-debug-toolbar-7.1.0

Description

A configurable set of panels that display various debug infor

Added to portage

2026-08-11

dropbox - 264.4.3421
Ebuild name:

net-misc/dropbox-264.4.3421

Description

Dropbox daemon (pretends to be GUI-less)

Added to portage

2026-08-11

dssp - 4.6.1-r1
Ebuild name:

sci-chemistry/dssp-4.6.1-r1

Description

The protein secondary structure standard

Added to portage

2026-08-11

eiciel - 0.10.1-r1
Ebuild name:

gnome-extra/eiciel-0.10.1-r1

Description

ACL editor for GNOME, with Nautilus extension

Added to portage

2026-08-11

expat - 2.8.3
Ebuild name:

dev-libs/expat-2.8.3

Description

Stream-oriented XML parser library

Added to portage

2026-08-11

feedparser-sgmllib - 2.1.0
Ebuild name:

dev-python/feedparser-sgmllib-2.1.0

Description

sgmllib from Python 2.7 for feedparser use

Added to portage

2026-08-11

gambatte-jg - 0.6.0-r1
Ebuild name:

games-emulation/gambatte-jg-0.6.0-r1

Description

Jolly Good Fork of Gambatte

Added to portage

2026-08-11

gambatte-jg - 0.6.1
Ebuild name:

games-emulation/gambatte-jg-0.6.1

Description

Jolly Good Fork of Gambatte

Added to portage

2026-08-11

geolith-jg - 0.3.0-r1
Ebuild name:

games-emulation/geolith-jg-0.3.0-r1

Description

Jolly Good Neo Geo AES/MVS Emulator

Added to portage

2026-08-11

geolith-jg - 0.4.1-r2
Ebuild name:

games-emulation/geolith-jg-0.4.1-r2

Description

Jolly Good Neo Geo AES/MVS/CD/CDZ Emulator

Added to portage

2026-08-11

geolith-jg - 0.4.2
Ebuild name:

games-emulation/geolith-jg-0.4.2

Description

Jolly Good Neo Geo AES/MVS/CD/CDZ Emulator

Added to portage

2026-08-11

gitpython - 3.1.59
Ebuild name:

dev-python/gitpython-3.1.59

Description

Library used to interact with Git repositories

Added to portage

2026-08-11

gnome-calculator - 50.0
Ebuild name:

gnome-extra/gnome-calculator-50.0

Description

A calculator application for GNOME

Added to portage

2026-08-11

greenlet - 3.5.5
Ebuild name:

dev-python/greenlet-3.5.5

Description

Lightweight in-process concurrent programming

Added to portage

2026-08-11

heroic-bin - 2.22.1
Ebuild name:

games-util/heroic-bin-2.22.1

Description

GOG and Epic Games Launcher for Linux

Added to portage

2026-08-11

hishel - 1.3.1
Ebuild name:

dev-python/hishel-1.3.1

Description

An elegant HTTP Cache implementation for HTTPX and HTTP Core

Added to portage

2026-08-11

httpx-socks - 0.12.0
Ebuild name:

dev-python/httpx-socks-0.12.0

Description

Proxy (HTTP, SOCKS) transports for httpx

Added to portage

2026-08-11

hypothesis - 6.165.3
Ebuild name:

dev-python/hypothesis-6.165.3

Description

A library for property based testing

Added to portage

2026-08-11

intellij-idea - 2026.2.1
Ebuild name:

dev-util/intellij-idea-2026.2.1

Description

A complete toolset for web, mobile and enterprise development

Added to portage

2026-08-11

jg - 1.0.0-r1
Ebuild name:

media-libs/jg-1.0.0-r1

Description

Reference Implementation of The Jolly Good API

Added to portage

2026-08-11

jg - 2.0.0
Ebuild name:

media-libs/jg-2.0.0

Description

Reference Implementation of The Jolly Good API

Added to portage

2026-08-11

jgrf - 1.4.0-r2
Ebuild name:

games-emulation/jgrf-1.4.0-r2

Description

The Jolly Good Reference Frontend

Added to portage

2026-08-11

jgrf - 2.0.1
Ebuild name:

games-emulation/jgrf-2.0.1

Description

The Jolly Good Reference Frontend

Added to portage

2026-08-11

jollycv-jg - 2.0.0-r1
Ebuild name:

games-emulation/jollycv-jg-2.0.0-r1

Description

Jolly Good ColecoVision, CreatiVision and My Vision Emulator

Added to portage

2026-08-11

jollycv-jg - 2.0.1
Ebuild name:

games-emulation/jollycv-jg-2.0.1

Description

Jolly Good ColecoVision, CreatiVision and My Vision Emulator

Added to portage

2026-08-11

jupyterlab - 4.6.3
Ebuild name:

dev-python/jupyterlab-4.6.3

Description

JupyterLab computational environment

Added to portage

2026-08-11

koleo-cli - 0.2.137.37
Ebuild name:

app-misc/koleo-cli-0.2.137.37

Description

A simple CLI for koleo.pl railway planner

Added to portage

2026-08-11

libxfce4windowing - 4.20.7
Ebuild name:

xfce-base/libxfce4windowing-4.20.7

Description

Unified widget and session management libs for Xfce

Added to portage

2026-08-11

libzdb - 3.6.0
Ebuild name:

dev-db/libzdb-3.6.0

Description

A thread safe high level multi-database connection pool library

Added to portage

2026-08-11

linux-firmware - 20260810
Ebuild name:

sys-kernel/linux-firmware-20260810

Description

Linux firmware files

Added to portage

2026-08-11

lmdb - 1.0.1-r1
Ebuild name:

dev-db/lmdb-1.0.1-r1

Description

An ultra-fast, ultra-compact key-value embedded data store

Added to portage

2026-08-11

loop-aes-losetup - 2.40.2
Ebuild name:

app-crypt/loop-aes-losetup-2.40.2

Description

Loop-AES losetup utility

Added to portage

2026-08-11

loop-aes-losetup - 2.41.1
Ebuild name:

app-crypt/loop-aes-losetup-2.41.1

Description

Loop-AES losetup utility

Added to portage

2026-08-11

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-11

mednafen-jg - 1.32.1.1-r1
Ebuild name:

games-emulation/mednafen-jg-1.32.1.1-r1

Description

Jolly Good Port of Mednafen

Added to portage

2026-08-11

mednafen-jg - 1.32.1.2
Ebuild name:

games-emulation/mednafen-jg-1.32.1.2

Description

Jolly Good Port of Mednafen

Added to portage

2026-08-11

melonds-jg - 1.1.0-r1
Ebuild name:

games-emulation/melonds-jg-1.1.0-r1

Description

Jolly Good Port of melonDS

Added to portage

2026-08-11

melonds-jg - 1.1.0.1
Ebuild name:

games-emulation/melonds-jg-1.1.0.1

Description

Jolly Good Port of melonDS

Added to portage

2026-08-11

meson - 1.12.0
Ebuild name:

dev-build/meson-1.12.0

Description

Open source build system

Added to portage

2026-08-11

methane - 3.0.2
Ebuild name:

games-arcade/methane-3.0.2

Description

Port from an old Amiga game

Added to portage

2026-08-11

mgba-jg - 0.10.5-r1
Ebuild name:

games-emulation/mgba-jg-0.10.5-r1

Description

Jolly Good Port of mGBA

Added to portage

2026-08-11

mgba-jg - 0.10.5.1
Ebuild name:

games-emulation/mgba-jg-0.10.5.1

Description

Jolly Good Port of mGBA

Added to portage

2026-08-11

moodle - 4.5.13
Ebuild name:

www-apps/moodle-4.5.13

Description

The Moodle Course Management System

Added to portage

2026-08-11

moodle - 5.0.9
Ebuild name:

www-apps/moodle-5.0.9

Description

The Moodle Course Management System

Added to portage

2026-08-11

moodle - 5.2.2
Ebuild name:

www-apps/moodle-5.2.2

Description

The Moodle Course Management System

Added to portage

2026-08-11

nestopia-jg - 1.53.2-r1
Ebuild name:

games-emulation/nestopia-jg-1.53.2-r1

Description

Jolly Good Fork of Nestopia

Added to portage

2026-08-11

nestopia-jg - 1.54.0
Ebuild name:

games-emulation/nestopia-jg-1.54.0

Description

Jolly Good Fork of Nestopia

Added to portage

2026-08-11

nox - 2026.08.10
Ebuild name:

dev-python/nox-2026.08.10

Description

Flexible test automation for Python

Added to portage

2026-08-11

pegtl - 3.2.8-r2
Ebuild name:

dev-libs/pegtl-3.2.8-r2

Description

Header-only library for creating parsers according to Parsing Expression Gr

Added to portage

2026-08-11

platformdirs - 4.11.2
Ebuild name:

dev-python/platformdirs-4.11.2

Description

A small Python module for determining appropriate platform-specific

Added to portage

2026-08-11

postfix - 3.11.6
Ebuild name:

mail-mta/postfix-3.11.6

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-08-11

postgis - 3.7.0_beta2
Ebuild name:

dev-db/postgis-3.7.0_beta2

Description

Geographic Objects for PostgreSQL

Added to portage

2026-08-11

prosystem-jg - 1.5.3-r1
Ebuild name:

games-emulation/prosystem-jg-1.5.3-r1

Description

Jolly Good Fork of ProSystem

Added to portage

2026-08-11

prosystem-jg - 1.5.4
Ebuild name:

games-emulation/prosystem-jg-1.5.4

Description

Jolly Good Fork of ProSystem

Added to portage

2026-08-11

pyarrow - 25.0.1
Ebuild name:

dev-python/pyarrow-25.0.1

Description

Python library for Apache Arrow

Added to portage

2026-08-11

pyqt6 - 6.11.0-r1
Ebuild name:

dev-python/pyqt6-6.11.0-r1

Description

Python bindings for the Qt framework

Added to portage

2026-08-11

pytest-django - 4.14.0
Ebuild name:

dev-python/pytest-django-4.14.0

Description

A Django plugin for pytest

Added to portage

2026-08-11

sameboy-jg - 1.0.3-r1
Ebuild name:

games-emulation/sameboy-jg-1.0.3-r1

Description

Jolly Good Port of SameBoy

Added to portage

2026-08-11

sameboy-jg - 1.0.3.1
Ebuild name:

games-emulation/sameboy-jg-1.0.3.1

Description

Jolly Good Port of SameBoy

Added to portage

2026-08-11

selenium - 4.47.0
Ebuild name:

dev-python/selenium-4.47.0

Description

Python language binding for Selenium Remote Control

Added to portage

2026-08-11

selenium-manager - 4.47.0
Ebuild name:

dev-util/selenium-manager-4.47.0

Description

CLI tool that manages the browser/driver infrastructure required b

Added to portage

2026-08-11

sqlglot - 30.16.0
Ebuild name:

dev-python/sqlglot-30.16.0

Description

An easily customizable SQL parser and transpiler

Added to portage

2026-08-11

stalwart-mail - 0.16.16
Ebuild name:

net-mail/stalwart-mail-0.16.16

Description

Stalwart Mail Server

Added to portage

2026-08-11

stripe - 15.5.0
Ebuild name:

dev-python/stripe-15.5.0

Description

Stripe Python bindings

Added to portage

2026-08-11

time-machine - 3.4.0
Ebuild name:

dev-python/time-machine-3.4.0

Description

Travel through time in your tests

Added to portage

2026-08-11

tox - 4.59.0
Ebuild name:

dev-python/tox-4.59.0

Description

virtualenv-based automation of test activities

Added to portage

2026-08-11

trio - 0.34.0
Ebuild name:

dev-python/trio-0.34.0

Description

Python library for async concurrency and I/O

Added to portage

2026-08-11

typing-inspection - 0.4.3
Ebuild name:

dev-python/typing-inspection-0.4.3

Description

Runtime typing introspection tools

Added to portage

2026-08-11

ueberzug - 18.3.2
Ebuild name:

media-gfx/ueberzug-18.3.2

Description

Command line util to draw images on terminals by using child windows

Added to portage

2026-08-11

vecx-jg - 1.2.3-r1
Ebuild name:

games-emulation/vecx-jg-1.2.3-r1

Description

Jolly Good Fork of vecx

Added to portage

2026-08-11

vecx-jg - 1.2.4
Ebuild name:

games-emulation/vecx-jg-1.2.4

Description

Jolly Good Fork of vecx

Added to portage

2026-08-11

virtualenv - 21.7.4
Ebuild name:

dev-python/virtualenv-21.7.4

Description

Virtual Python Environment builder

Added to portage

2026-08-11

vte - 0.82.4
Ebuild name:

gui-libs/vte-0.82.4

Description

Library providing a virtual terminal emulator widget

Added to portage

2026-08-11

vte - 0.82.4
Ebuild name:

x11-libs/vte-0.82.4

Description

Library providing a virtual terminal emulator widget

Added to portage

2026-08-11

vte-common - 0.82.4
Ebuild name:

gui-libs/vte-common-0.82.4

Description

Library providing a virtual terminal emulator widget

Added to portage

2026-08-11

xfwl4 - 4.21.1
Ebuild name:

xfce-base/xfwl4-4.21.1

Description

Xfce's [experimental] Wayland Compositor

Added to portage

2026-08-11

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