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:

82839

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-16
alsa-lib - 1.2.15.3
Ebuild name:

media-libs/alsa-lib-1.2.15.3

Description

Advanced Linux Sound Architecture Library

Added to portage

2026-01-16

alsa-topology-conf - 1.2.5.1-r1
Ebuild name:

media-libs/alsa-topology-conf-1.2.5.1-r1

Description

ALSA topology configuration files

Added to portage

2026-01-16

alsa-ucm-conf - 1.2.15.3
Ebuild name:

media-libs/alsa-ucm-conf-1.2.15.3

Description

ALSA ucm configuration files

Added to portage

2026-01-16

aseprite - 1.3.16.1
Ebuild name:

dev-games/aseprite-1.3.16.1

Description

Animated sprite editor & pixel art tool

Added to portage

2026-01-16

babl - 0.1.120
Ebuild name:

media-libs/babl-0.1.120

Description

A dynamic, any to any, pixel format conversion library

Added to portage

2026-01-16

blake3 - 1.8.3
Ebuild name:

dev-libs/blake3-1.8.3

Description

a fast cryptographic hash function

Added to portage

2026-01-16

capstone - 6.0.0_alpha6
Ebuild name:

dev-libs/capstone-6.0.0_alpha6

Description

disassembly/disassembler framework + bindings

Added to portage

2026-01-16

gajim - 2.4.2
Ebuild name:

net-im/gajim-2.4.2

Description

GTK XMPP Client

Added to portage

2026-01-16

icecast - 2.5.0
Ebuild name:

net-misc/icecast-2.5.0

Description

Opensource alternative to shoutcast that supports mp3, ogg and aac streaming

Added to portage

2026-01-16

ktls-utils - 1.3.0
Ebuild name:

net-misc/ktls-utils-1.3.0

Description

Kernel TLS helper utilities

Added to portage

2026-01-16

libigloo - 0.9.5
Ebuild name:

dev-libs/libigloo-0.9.5

Description

Generic framework for C development - used by the Icecast project

Added to portage

2026-01-16

libnice - 0.1.23
Ebuild name:

net-libs/libnice-0.1.23

Description

Implementation of the Interactice Connectivity Establishment standard (ICE)

Added to portage

2026-01-16

libnvidia-container - 1.18.1
Ebuild name:

sys-libs/libnvidia-container-1.18.1

Description

NVIDIA container runtime library

Added to portage

2026-01-16

ltrace - 0.8.1
Ebuild name:

dev-debug/ltrace-0.8.1

Description

trace library calls made at runtime

Added to portage

2026-01-16

mysql-connector-c - 8.0.36-r1
Ebuild name:

dev-db/mysql-connector-c-8.0.36-r1

Description

C client library for MariaDB/MySQL

Added to portage

2026-01-16

mysql-connector-c - 8.0.41-r1
Ebuild name:

dev-db/mysql-connector-c-8.0.41-r1

Description

C client library for MariaDB/MySQL

Added to portage

2026-01-16

nvidia-container-toolkit - 1.18.1
Ebuild name:

app-containers/nvidia-container-toolkit-1.18.1

Description

NVIDIA container runtime toolkit

Added to portage

2026-01-16

openpgp-keys-alsa - 20260116
Ebuild name:

sec-keys/openpgp-keys-alsa-20260116

Description

OpenPGP keys used by the Alsa Project

Added to portage

2026-01-16

openpgp-keys-dwz - 20260115
Ebuild name:

sec-keys/openpgp-keys-dwz-20260115

Description

OpenPGP key used to sign dwz releases

Added to portage

2026-01-16

openpgp-keys-less - 20260115
Ebuild name:

sec-keys/openpgp-keys-less-20260115

Description

OpenPGP keys used by less

Added to portage

2026-01-16

openpgp-keys-smartmontools - 20260116
Ebuild name:

sec-keys/openpgp-keys-smartmontools-20260116

Description

OpenPGP key used to sign smartmontools releases

Added to portage

2026-01-16

openpgp-keys-tytso - 20260115
Ebuild name:

sec-keys/openpgp-keys-tytso-20260115

Description

OpenPGP keys used by Theodore Ts'o

Added to portage

2026-01-16

pdns-recursor - 5.3.4
Ebuild name:

net-dns/pdns-recursor-5.3.4

Description

The PowerDNS Recursor

Added to portage

2026-01-16

pipewire - 1.4.9-r3
Ebuild name:

media-video/pipewire-1.4.9-r3

Description

Multimedia processing graphs

Added to portage

2026-01-16

sccache - 0.13.0
Ebuild name:

dev-util/sccache-0.13.0

Description

ccache/distcc like tool with support for rust and cloud storage

Added to portage

2026-01-16

sssd - 2.12.0
Ebuild name:

sys-auth/sssd-2.12.0

Description

System Security Services Daemon provides access to identity and authentication

Added to portage

2026-01-16

systemd-utils - 259
Ebuild name:

sys-apps/systemd-utils-259

Description

Utilities split out from systemd for OpenRC users

Added to portage

2026-01-16

termsyn - 1.8.7-r1
Ebuild name:

media-fonts/termsyn-1.8.7-r1

Description

Monospaced font based on terminus and tamsyn

Added to portage

2026-01-16

trojan - 1.16.0-r4
Ebuild name:

net-proxy/trojan-1.16.0-r4

Description

An unidentifiable mechanism that helps you bypass GFW

Added to portage

2026-01-16

yara-x - 1.11.0
Ebuild name:

app-forensics/yara-x-1.11.0

Description

A malware identification and classification tool

Added to portage

2026-01-16

zen-sources - 6.18.4
Ebuild name:

sys-kernel/zen-sources-6.18.4

Description

The Zen Kernel Live Sources

Added to portage

2026-01-16

zen-sources - 6.18.5
Ebuild name:

sys-kernel/zen-sources-6.18.5

Description

The Zen Kernel Live Sources

Added to portage

2026-01-16

2026-01-15
alembic - 1.18.1
Ebuild name:

dev-python/alembic-1.18.1

Description

Database migrations tool, written by the author of SQLAlchemy

Added to portage

2026-01-15

atuin - 18.11.0
Ebuild name:

app-shells/atuin-18.11.0

Description

Shell history manager supporting encrypted synchronisation

Added to portage

2026-01-15

awscli - 1.44.18
Ebuild name:

app-admin/awscli-1.44.18

Description

Universal Command Line Environment for AWS

Added to portage

2026-01-15

boto3 - 1.42.28
Ebuild name:

dev-python/boto3-1.42.28

Description

The AWS SDK for Python

Added to portage

2026-01-15

botocore - 1.42.28
Ebuild name:

dev-python/botocore-1.42.28

Description

Low-level, data-driven core of boto 3

Added to portage

2026-01-15

chef-utils - 18.9.4
Ebuild name:

dev-ruby/chef-utils-18.9.4

Description

Basic utility functions for Core Chef Infra development

Added to portage

2026-01-15

claude-code - 2.1.8
Ebuild name:

dev-util/claude-code-2.1.8

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-01-15

deno-bin - 2.6.5
Ebuild name:

dev-lang/deno-bin-2.6.5

Description

Modern runtime for JavaScript and TypeScript

Added to portage

2026-01-15

dict2xml - 1.7.8
Ebuild name:

dev-python/dict2xml-1.7.8

Description

Small utility to convert a python dictionary into an XML string

Added to portage

2026-01-15

django-polymorphic - 4.10.2
Ebuild name:

dev-python/django-polymorphic-4.10.2

Description

Seamless Polymorphic Inheritance for Django Models

Added to portage

2026-01-15

egl-gbm - 1.1.3
Ebuild name:

gui-libs/egl-gbm-1.1.3

Description

NVIDIA GBM EGL external platform library

Added to portage

2026-01-15

fastfetch - 2.57.1
Ebuild name:

app-misc/fastfetch-2.57.1

Description

Fast neofetch-like system information tool

Added to portage

2026-01-15

fido2 - 2.1.0
Ebuild name:

dev-python/fido2-2.1.0

Description

Python based FIDO 2.0 library

Added to portage

2026-01-15

jupyter-server-terminals - 0.5.4
Ebuild name:

dev-python/jupyter-server-terminals-0.5.4

Description

A Jupyter Server Extension Providing Terminals

Added to portage

2026-01-15

librt - 0.7.8
Ebuild name:

dev-python/librt-0.7.8

Description

Mypyc runtime library

Added to portage

2026-01-15

mattermost-desktop-bin - 6.0.3_rc1
Ebuild name:

net-im/mattermost-desktop-bin-6.0.3_rc1

Description

Mattermost Desktop application

Added to portage

2026-01-15

mothur - 1.48.2
Ebuild name:

sci-biology/mothur-1.48.2

Description

Suite of algorithms for ecological bioinformatics

Added to portage

2026-01-15

oidc-agent - 5.3.4
Ebuild name:

net-misc/oidc-agent-5.3.4

Description

Agent and tools for managing OpenID Connect tokens on the command line

Added to portage

2026-01-15

osm - 1.9
Ebuild name:

app-emacs/osm-1.9

Description

OpenStreetMap tile-based viewer for GNU Emacs

Added to portage

2026-01-15

pandas - 3.0.0_rc2
Ebuild name:

dev-python/pandas-3.0.0_rc2

Description

Powerful data structures for data analysis and statistics

Added to portage

2026-01-15

parser - 3.3.10.1
Ebuild name:

dev-ruby/parser-3.3.10.1

Description

A production-ready Ruby parser written in pure Ruby

Added to portage

2026-01-15

pixi - 0.63.0
Ebuild name:

dev-util/pixi-0.63.0

Description

A package management and workflow tool

Added to portage

2026-01-15

plotly - 6.5.2
Ebuild name:

dev-python/plotly-6.5.2

Description

Browser-based graphing library for Python

Added to portage

2026-01-15

prometheus-client - 0.24.1
Ebuild name:

dev-python/prometheus-client-0.24.1

Description

Python client for the Prometheus monitoring system

Added to portage

2026-01-15

regex - 2026.1.15
Ebuild name:

dev-python/regex-2026.1.15

Description

Alternative regular expression module to replace re

Added to portage

2026-01-15

resolv-replace - 0.2.0
Ebuild name:

dev-ruby/resolv-replace-0.2.0

Description

Replace Socket DNS with Resolv

Added to portage

2026-01-15

ruby - 3.2.10
Ebuild name:

dev-lang/ruby-3.2.10

Description

An object-oriented scripting language

Added to portage

2026-01-15

send2trash - 2.1.0
Ebuild name:

dev-python/send2trash-2.1.0

Description

Sends files to the Trash (or Recycle Bin)

Added to portage

2026-01-15

sphinx-pytest - 0.3.0
Ebuild name:

dev-python/sphinx-pytest-0.3.0

Description

Helpful pytest fixtures for Sphinx extensions

Added to portage

2026-01-15

synapse - 1.145.0
Ebuild name:

net-im/synapse-1.145.0

Description

Reference implementation of Matrix homeserver

Added to portage

2026-01-15

tifffile - 2026.1.14
Ebuild name:

dev-python/tifffile-2026.1.14

Description

Read and write TIFF files

Added to portage

2026-01-15

translate-toolkit - 3.18.1
Ebuild name:

dev-python/translate-toolkit-3.18.1

Description

Toolkit to convert between many translation formats

Added to portage

2026-01-15

trove-classifiers - 2026.1.14.14
Ebuild name:

dev-python/trove-classifiers-2026.1.14.14

Description

Canonical source for classifiers on PyPI (pypi.org)

Added to portage

2026-01-15

xcp - 0.24.2
Ebuild name:

sys-fs/xcp-0.24.2

Description

A 'cp' alternative with user-friendly feedback and performance optimisations

Added to portage

2026-01-15

yamllint - 1.38.0
Ebuild name:

dev-util/yamllint-1.38.0

Description

A linter for YAML files

Added to portage

2026-01-15

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