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:

89678

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-30
affine - 3.0.1
Ebuild name:

sci-geosciences/affine-3.0.1

Description

Affine transformation matrices

Added to portage

2026-10-30

deluge - 2.1.1-r10
Ebuild name:

net-p2p/deluge-2.1.1-r10

Description

BitTorrent client with a client/server model

Added to portage

2026-10-30

deluge - 2.2.0-r3
Ebuild name:

net-p2p/deluge-2.2.0-r3

Description

BitTorrent client with a client/server model

Added to portage

2026-10-30

kirigami-addons - 1.16.0
Ebuild name:

dev-libs/kirigami-addons-1.16.0

Description

Visual end user components for Kirigami-based applications

Added to portage

2026-10-30

libtorrent-rasterbar - 2.0.15
Ebuild name:

net-libs/libtorrent-rasterbar-2.0.15

Description

C++ BitTorrent implementation focusing on efficiency and scala

Added to portage

2026-10-30

obs-studio - 33.0.1
Ebuild name:

media-video/obs-studio-33.0.1

Description

Software for Recording and Streaming Live Video Content

Added to portage

2026-10-30

qbittorrent - 5.1.4-r2
Ebuild name:

net-p2p/qbittorrent-5.1.4-r2

Description

BitTorrent client in C++ and Qt

Added to portage

2026-10-30

qbittorrent - 5.2.4-r1
Ebuild name:

net-p2p/qbittorrent-5.2.4-r1

Description

BitTorrent client in C++ and Qt

Added to portage

2026-10-30

qbittorrent - 5.3.0-r1
Ebuild name:

net-p2p/qbittorrent-5.3.0-r1

Description

BitTorrent client in C++ and Qt

Added to portage

2026-10-30

rasterio - 1.5.2
Ebuild name:

sci-geosciences/rasterio-1.5.2

Description

Rasterio reads and writes geospatial raster datasets

Added to portage

2026-10-30

2026-10-29
android-studio - 2026.2.2.8
Ebuild name:

dev-util/android-studio-2026.2.2.8

Description

Android development environment based on IntelliJ IDEA

Added to portage

2026-10-29

asdf - 3.3.7
Ebuild name:

dev-lisp/asdf-3.3.7

Description

ASDF is Another System Definition Facility for Common Lisp

Added to portage

2026-10-29

aws-c-s3 - 1.5.1
Ebuild name:

dev-libs/aws-c-s3-1.5.1

Description

AWS C S3 async library

Added to portage

2026-10-29

cachetools - 7.2.7
Ebuild name:

dev-python/cachetools-7.2.7

Description

Extensible memoizing collections and decorators

Added to portage

2026-10-29

cfn-lint - 1.59.0
Ebuild name:

dev-python/cfn-lint-1.59.0

Description

CloudFormation Linter

Added to portage

2026-10-29

cli-helpers - 2.15.3
Ebuild name:

dev-python/cli-helpers-2.15.3

Description

Python helpers for common CLI tasks

Added to portage

2026-10-29

clozurecl - 1.14
Ebuild name:

dev-lisp/clozurecl-1.14

Description

Common Lisp implementation, derived from Digitool's MCL product

Added to portage

2026-10-29

editorconfig-core-c - 0.12.11
Ebuild name:

app-text/editorconfig-core-c-0.12.11

Description

EditorConfig core library written in C

Added to portage

2026-10-29

editorconfig-core-c - 0.12.11-r1
Ebuild name:

app-text/editorconfig-core-c-0.12.11-r1

Description

EditorConfig core library written in C

Added to portage

2026-10-29

faker - 40.44.0
Ebuild name:

dev-python/faker-40.44.0

Description

A Python package that generates fake data for you

Added to portage

2026-10-29

fastsimdjson - 0.9.0
Ebuild name:

dev-python/fastsimdjson-0.9.0

Description

fast JSON in Python

Added to portage

2026-10-29

flake8 - 7.5.0
Ebuild name:

dev-python/flake8-7.5.0

Description

A wrapper around PyFlakes, pep8 & mccabe

Added to portage

2026-10-29

gentoo-reminders - 0.1.0
Ebuild name:

app-portage/gentoo-reminders-0.1.0

Description

Generate reminder emails for Gentoo package maintainers

Added to portage

2026-10-29

ggml - 0.28.0
Ebuild name:

sci-ml/ggml-0.28.0

Description

Tensor library for machine learning

Added to portage

2026-10-29

google-api-core - 2.43.1
Ebuild name:

dev-python/google-api-core-2.43.1

Description

Core Library for Google Client Libraries

Added to portage

2026-10-29

gpxsee - 16.19
Ebuild name:

sci-geosciences/gpxsee-16.19

Description

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

Added to portage

2026-10-29

hermes - 3.2
Ebuild name:

dev-util/hermes-3.2

Description

Lua based testing manager

Added to portage

2026-10-29

hspec - 2.11.18
Ebuild name:

dev-haskell/hspec-2.11.18

Description

A Testing Framework for Haskell

Added to portage

2026-10-29

hspec-core - 2.11.18
Ebuild name:

dev-haskell/hspec-core-2.11.18

Description

A Testing Framework for Haskell

Added to portage

2026-10-29

hspec-discover - 2.11.18
Ebuild name:

dev-haskell/hspec-discover-2.11.18

Description

Automatically discover and run Hspec tests

Added to portage

2026-10-29

hspec-meta - 2.11.18
Ebuild name:

dev-haskell/hspec-meta-2.11.18

Description

A version of Hspec which is used to test Hspec itself

Added to portage

2026-10-29

httplib2 - 0.32.1
Ebuild name:

dev-python/httplib2-0.32.1

Description

A comprehensive HTTP client library

Added to portage

2026-10-29

imageio-ffmpeg - 0.7.0
Ebuild name:

dev-python/imageio-ffmpeg-0.7.0

Description

FFMPEG wrapper for Python

Added to portage

2026-10-29

keepsecret - 26.08.2
Ebuild name:

app-crypt/keepsecret-26.08.2

Description

Password manager GUI for SecretService providers

Added to portage

2026-10-29

keybase - 6.0.2
Ebuild name:

app-crypt/keybase-6.0.2

Description

Keybase client

Added to portage

2026-10-29

keybase - 6.2.4
Ebuild name:

app-crypt/keybase-6.2.4

Description

Keybase client

Added to portage

2026-10-29

keybase - 9999
Ebuild name:

app-crypt/keybase-9999

Description

Keybase client

Added to portage

2026-10-29

lmod - 9.4.5
Ebuild name:

sys-cluster/lmod-9.4.5

Description

Environment Module System based on Lua

Added to portage

2026-10-29

maturin - 1.16.0
Ebuild name:

dev-util/maturin-1.16.0

Description

Build and publish crates with pyo3, rust-cpython and cffi bindings

Added to portage

2026-10-29

mypy - 2.4.1
Ebuild name:

dev-python/mypy-2.4.1

Description

Optional static typing for Python

Added to portage

2026-10-29

netpbm - 11.16.2
Ebuild name:

media-libs/netpbm-11.16.2

Description

A set of utilities for converting to/from the netpbm (and related) format

Added to portage

2026-10-29

netpbm - 11.2.31
Ebuild name:

media-libs/netpbm-11.2.31

Description

A set of utilities for converting to/from the netpbm (and related) format

Added to portage

2026-10-29

nodejs - 24.22.2
Ebuild name:

net-libs/nodejs-24.22.2

Description

A JavaScript runtime built on Chrome's V8 JavaScript engine

Added to portage

2026-10-29

ollama - 0.40.10
Ebuild name:

sci-ml/ollama-0.40.10

Description

Get up and running with Llama 3, Mistral, Gemma, and other language models

Added to portage

2026-10-29

openjdk - 17.0.21.0.3_p1
Ebuild name:

dev-java/openjdk-17.0.21.0.3_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-10-29

openjdk - 21.0.13.0.3_p1
Ebuild name:

dev-java/openjdk-21.0.13.0.3_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-10-29

openjdk - 25.0.5.0.3_p1
Ebuild name:

dev-java/openjdk-25.0.5.0.3_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-10-29

openjdk - 27.0.1.0.3_p1
Ebuild name:

dev-java/openjdk-27.0.1.0.3_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-10-29

openjdk-jre-bin - 17.0.21_p9
Ebuild name:

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

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-10-29

openjdk-jre-bin - 21.0.13_p9
Ebuild name:

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

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-10-29

openjdk-jre-bin - 25.0.5_p8
Ebuild name:

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

Description

Prebuilt Java JRE binaries provided by Eclipse Temurin

Added to portage

2026-10-29

openpgp-keys-gentoo-developers - 20261026
Ebuild name:

sec-keys/openpgp-keys-gentoo-developers-20261026

Description

Gentoo Authority Keys (GLEP 79)

Added to portage

2026-10-29

oslo-config - 10.8.0
Ebuild name:

dev-python/oslo-config-10.8.0

Description

Oslo Configuration API

Added to portage

2026-10-29

paste - 3.11.0
Ebuild name:

dev-python/paste-3.11.0

Description

Tools for using a Web Server Gateway Interface stack

Added to portage

2026-10-29

pkginfo - 2.0
Ebuild name:

dev-python/pkginfo-2.0

Description

Provides an API for querying the distutils metadata written in a PKG-INFO fi

Added to portage

2026-10-29

plasma-workspace - 6.8.2-r1
Ebuild name:

kde-plasma/plasma-workspace-6.8.2-r1

Description

KDE Plasma workspace

Added to portage

2026-10-29

plex-media-server - 1.43.5.11079
Ebuild name:

media-tv/plex-media-server-1.43.5.11079

Description

Free media library that is intended for use with a plex cli

Added to portage

2026-10-29

pmix - 5.0.4-r2
Ebuild name:

sys-cluster/pmix-5.0.4-r2

Description

The Process Management Interface (PMI) Exascale

Added to portage

2026-10-29

pmix - 5.0.9-r1
Ebuild name:

sys-cluster/pmix-5.0.9-r1

Description

The Process Management Interface (PMI) Exascale

Added to portage

2026-10-29

pmix - 6.1.0-r1
Ebuild name:

sys-cluster/pmix-6.1.0-r1

Description

The Process Management Interface (PMI) Exascale

Added to portage

2026-10-29

prrte - 3.0.12-r1
Ebuild name:

sys-cluster/prrte-3.0.12-r1

Description

PMIx Reference RunTime Environment

Added to portage

2026-10-29

prrte - 3.0.7-r2
Ebuild name:

sys-cluster/prrte-3.0.7-r2

Description

PMIx Reference RunTime Environment

Added to portage

2026-10-29

pydantic-settings - 2.16.2
Ebuild name:

dev-python/pydantic-settings-2.16.2

Description

Settings management using Pydantic

Added to portage

2026-10-29

pyflakes - 4.1.0
Ebuild name:

dev-python/pyflakes-4.1.0

Description

Passive checker for Python programs

Added to portage

2026-10-29

pypdf - 6.21.4
Ebuild name:

dev-python/pypdf-6.21.4

Description

Python library to work with PDF files

Added to portage

2026-10-29

pytest-forked - 1.7.5-r1
Ebuild name:

dev-python/pytest-forked-1.7.5-r1

Description

Run tests in isolated forked subprocesses

Added to portage

2026-10-29

python-engineio - 4.15.1
Ebuild name:

dev-python/python-engineio-4.15.1

Description

Python implementation of the Engine.IO realtime server

Added to portage

2026-10-29

pytorch - 2.15.0
Ebuild name:

sci-ml/pytorch-2.15.0

Description

Tensors and Dynamic neural networks in Python with strong GPU acceleration

Added to portage

2026-10-29

reaper-bin - 7.83-r2
Ebuild name:

media-sound/reaper-bin-7.83-r2

Description

Digital audio workstation

Added to portage

2026-10-29

rivet - 4.1.4
Ebuild name:

sci-physics/rivet-4.1.4

Description

Robust Independent Validation of Experiment and Theory toolkit

Added to portage

2026-10-29

rq - 3.0.0
Ebuild name:

dev-python/rq-3.0.0

Description

Simple, lightweight library for creating and processing background jobs

Added to portage

2026-10-29

simdjson - 5.0.8
Ebuild name:

dev-libs/simdjson-5.0.8

Description

SIMD accelerated C++ JSON library

Added to portage

2026-10-29

spidermonkey - 153.6.0
Ebuild name:

dev-lang/spidermonkey-153.6.0

Description

Mozilla's JavaScript engine written in C and C++

Added to portage

2026-10-29

uiop - 3.3.7
Ebuild name:

dev-lisp/uiop-3.3.7

Description

UIOP is a portability layer spun off ASDF3

Added to portage

2026-10-29

urwid - 5.0.0
Ebuild name:

dev-python/urwid-5.0.0

Description

Curses-based user interface library for Python

Added to portage

2026-10-29

wordpress - 6.4.14
Ebuild name:

www-apps/wordpress-6.4.14

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-10-29

wordpress - 6.5.14
Ebuild name:

www-apps/wordpress-6.5.14

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-10-29

wordpress - 6.6.11
Ebuild name:

www-apps/wordpress-6.6.11

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-10-29

wordpress - 6.7.11
Ebuild name:

www-apps/wordpress-6.7.11

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-10-29

wordpress - 6.8.12
Ebuild name:

www-apps/wordpress-6.8.12

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-10-29

wordpress - 6.9.11
Ebuild name:

www-apps/wordpress-6.9.11

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-10-29

wordpress - 7.0.8
Ebuild name:

www-apps/wordpress-7.0.8

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-10-29

wordpress - 7.1.4
Ebuild name:

www-apps/wordpress-7.1.4

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-10-29

xlsxwriter - 3.3.1
Ebuild name:

dev-python/xlsxwriter-3.3.1

Description

Python module for creating Excel XLSX files

Added to portage

2026-10-29

xmrig - 6.26.0-r1
Ebuild name:

net-misc/xmrig-6.26.0-r1

Description

RandomX, CryptoNight, KawPow, AstroBWT, and Argon2 CPU/GPU miner

Added to portage

2026-10-29

yoda - 2.1.4
Ebuild name:

sci-physics/yoda-2.1.4

Description

Yet more Objects for (High Energy Physics) Data Analysis

Added to portage

2026-10-29

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