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:

83528

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-03-03
authlib - 1.6.9
Ebuild name:

dev-python/authlib-1.6.9

Description

A Python library in building OAuth and OpenID Connect servers and clients

Added to portage

2026-03-03

b2sdk - 2.10.4
Ebuild name:

dev-python/b2sdk-2.10.4

Description

Library to access Backblaze B2 cloud storage

Added to portage

2026-03-03

cachetools - 7.0.2
Ebuild name:

dev-python/cachetools-7.0.2

Description

Extensible memoizing collections and decorators

Added to portage

2026-03-03

cfn-lint - 1.46.0
Ebuild name:

dev-python/cfn-lint-1.46.0

Description

CloudFormation Linter

Added to portage

2026-03-03

google-api-python-client - 2.191.0
Ebuild name:

dev-python/google-api-python-client-2.191.0

Description

Google API Client for Python

Added to portage

2026-03-03

imagesize - 1.5.0
Ebuild name:

dev-python/imagesize-1.5.0

Description

Pure Python module for getting image size from png/jpeg/jpeg2000/gif fil

Added to portage

2026-03-03

install-xattr - 0.13
Ebuild name:

sys-apps/install-xattr-0.13

Description

Wrapper to coreutils install to preserve Filesystem Extended Attributes

Added to portage

2026-03-03

magic-wormhole-transit-relay - 0.5.0
Ebuild name:

dev-python/magic-wormhole-transit-relay-0.5.0

Description

Transit relay server for magic-wormhole

Added to portage

2026-03-03

mldonkey - 0.0.4b-r2
Ebuild name:

app-emacs/mldonkey-0.0.4b-r2

Description

An Emacs Lisp interface to the MLDonkey core

Added to portage

2026-03-03

mmm-mode - 0.5.11
Ebuild name:

app-emacs/mmm-mode-0.5.11

Description

Enables the user to edit different parts of a file in different major mod

Added to portage

2026-03-03

openapi-schema-validator - 0.8.1
Ebuild name:

dev-python/openapi-schema-validator-0.8.1

Description

OpenAPI schema validation for Python

Added to portage

2026-03-03

php - 8.3.30-r1
Ebuild name:

dev-lang/php-8.3.30-r1

Description

The PHP language runtime engine

Added to portage

2026-03-03

php - 8.4.18-r1
Ebuild name:

dev-lang/php-8.4.18-r1

Description

The PHP language runtime engine

Added to portage

2026-03-03

php - 8.5.3-r1
Ebuild name:

dev-lang/php-8.5.3-r1

Description

The PHP language runtime engine

Added to portage

2026-03-03

plotly - 6.6.0
Ebuild name:

dev-python/plotly-6.6.0

Description

Browser-based graphing library for Python

Added to portage

2026-03-03

pypdf - 6.7.5
Ebuild name:

dev-python/pypdf-6.7.5

Description

Python library to work with PDF files

Added to portage

2026-03-03

pyspnego - 0.12.1
Ebuild name:

dev-python/pyspnego-0.12.1

Description

Library to handle SPNEGO and CredSSP authentication

Added to portage

2026-03-03

pytest-check - 2.7.3
Ebuild name:

dev-python/pytest-check-2.7.3

Description

pytest plugin that allows multiple failures per test

Added to portage

2026-03-03

python - 3.10.20
Ebuild name:

dev-lang/python-3.10.20

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2026-03-03

python - 3.11.15
Ebuild name:

dev-lang/python-3.11.15

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2026-03-03

python-cinderclient - 9.9.0
Ebuild name:

dev-python/python-cinderclient-9.9.0

Description

A client for the OpenStack Cinder API

Added to portage

2026-03-03

python-tests - 3.11.15
Ebuild name:

dev-python/python-tests-3.11.15

Description

Test modules from dev-lang/python

Added to portage

2026-03-03

qt3d - 6.11.0_rc
Ebuild name:

dev-qt/qt3d-6.11.0_rc

Description

3D rendering module for the Qt6 framework

Added to portage

2026-03-03

qt5compat - 6.11.0_rc
Ebuild name:

dev-qt/qt5compat-6.11.0_rc

Description

Qt module containing the unsupported Qt 5 APIs

Added to portage

2026-03-03

qtbase - 6.11.0_rc
Ebuild name:

dev-qt/qtbase-6.11.0_rc

Description

Cross-platform application development framework

Added to portage

2026-03-03

qtcharts - 6.11.0_rc
Ebuild name:

dev-qt/qtcharts-6.11.0_rc

Description

Chart component library for the Qt6 framework

Added to portage

2026-03-03

qtconnectivity - 6.11.0_rc
Ebuild name:

dev-qt/qtconnectivity-6.11.0_rc

Description

Bluetooth and NFC support library for the Qt6 framework

Added to portage

2026-03-03

qtdeclarative - 6.11.0_rc
Ebuild name:

dev-qt/qtdeclarative-6.11.0_rc

Description

Qt Declarative (Quick 2)

Added to portage

2026-03-03

qtgraphs - 6.11.0_rc
Ebuild name:

dev-qt/qtgraphs-6.11.0_rc

Description

Graphs component library for the Qt6 framework

Added to portage

2026-03-03

qthttpserver - 6.11.0_rc
Ebuild name:

dev-qt/qthttpserver-6.11.0_rc

Description

HTTP server functionality for the Qt6 framework

Added to portage

2026-03-03

qtimageformats - 6.11.0_rc
Ebuild name:

dev-qt/qtimageformats-6.11.0_rc

Description

Additional format plugins for the Qt image I/O system

Added to portage

2026-03-03

qtlanguageserver - 6.11.0_rc
Ebuild name:

dev-qt/qtlanguageserver-6.11.0_rc

Description

Implementation of the Language Server Protocol for Qt

Added to portage

2026-03-03

qtlocation - 6.11.0_rc
Ebuild name:

dev-qt/qtlocation-6.11.0_rc

Description

Location (places, maps, navigation) library for the Qt6 framework

Added to portage

2026-03-03

qtmultimedia - 6.11.0_rc
Ebuild name:

dev-qt/qtmultimedia-6.11.0_rc

Description

Multimedia (audio, video, radio, camera) library for the Qt6 framewor

Added to portage

2026-03-03

qtnetworkauth - 6.11.0_rc
Ebuild name:

dev-qt/qtnetworkauth-6.11.0_rc

Description

Network authorization library for the Qt6 framework

Added to portage

2026-03-03

qtpositioning - 6.11.0_rc
Ebuild name:

dev-qt/qtpositioning-6.11.0_rc

Description

Physical position determination library for the Qt6 framework

Added to portage

2026-03-03

qtquick3d - 6.11.0_rc
Ebuild name:

dev-qt/qtquick3d-6.11.0_rc

Description

Qt module and API for defining 3D content in Qt QuickTools

Added to portage

2026-03-03

qtquicktimeline - 6.11.0_rc
Ebuild name:

dev-qt/qtquicktimeline-6.11.0_rc

Description

Qt module for keyframe-based timeline construction

Added to portage

2026-03-03

qtremoteobjects - 6.11.0_rc
Ebuild name:

dev-qt/qtremoteobjects-6.11.0_rc

Description

Inter-Process Communication (IPC) library for the Qt6 framework

Added to portage

2026-03-03

qtscxml - 6.11.0_rc
Ebuild name:

dev-qt/qtscxml-6.11.0_rc

Description

State Chart XML (SCXML) support library for the Qt6 framework

Added to portage

2026-03-03

qtsensors - 6.11.0_rc
Ebuild name:

dev-qt/qtsensors-6.11.0_rc

Description

Hardware sensor access library for the Qt6 framework

Added to portage

2026-03-03

qtserialbus - 6.11.0_rc
Ebuild name:

dev-qt/qtserialbus-6.11.0_rc

Description

Qt module to access CAN, ModBus, and other industrial serial buses and

Added to portage

2026-03-03

qtserialport - 6.11.0_rc
Ebuild name:

dev-qt/qtserialport-6.11.0_rc

Description

Serial port abstraction library for the Qt6 framework

Added to portage

2026-03-03

qtshadertools - 6.11.0_rc
Ebuild name:

dev-qt/qtshadertools-6.11.0_rc

Description

Qt APIs and Tools for Graphics Pipelines

Added to portage

2026-03-03

qtspeech - 6.11.0_rc
Ebuild name:

dev-qt/qtspeech-6.11.0_rc

Description

Text-to-speech library for the Qt6 framework

Added to portage

2026-03-03

qtsvg - 6.11.0_rc
Ebuild name:

dev-qt/qtsvg-6.11.0_rc

Description

SVG rendering library for the Qt6 framework

Added to portage

2026-03-03

sphinx-autodoc-typehints - 3.9.5
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.9.5

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-03-03

sqlalchemy - 2.0.48
Ebuild name:

dev-python/sqlalchemy-2.0.48

Description

Python SQL toolkit and Object Relational Mapper

Added to portage

2026-03-03

tkimg - 1.4.17
Ebuild name:

dev-tcltk/tkimg-1.4.17

Description

Adds a lot of image formats to Tcl/Tk

Added to portage

2026-03-03

toml-fmt-common - 1.3.1
Ebuild name:

dev-python/toml-fmt-common-1.3.1

Description

Common logic to the TOML formatter

Added to portage

2026-03-03

2026-03-02
0ad - 0.28.0-r1
Ebuild name:

games-strategy/0ad-0.28.0-r1

Description

A free, real-time strategy game

Added to portage

2026-03-02

cmd2 - 3.3.0
Ebuild name:

dev-python/cmd2-3.3.0

Description

Extra features for standard library's cmd module

Added to portage

2026-03-02

crispy-bootstrap5 - 2026.3
Ebuild name:

dev-python/crispy-bootstrap5-2026.3

Description

Bootstrap5 template pack for django-crispy-forms

Added to portage

2026-03-02

discord - 0.0.126
Ebuild name:

net-im/discord-0.0.126

Description

All-in-one voice and text chat for gamers

Added to portage

2026-03-02

django-crispy-forms - 2.6
Ebuild name:

dev-python/django-crispy-forms-2.6

Description

DRY Django forms

Added to portage

2026-03-02

filelock - 3.25.0
Ebuild name:

dev-python/filelock-3.25.0

Description

A platform independent file lock for Python

Added to portage

2026-03-02

flint - 3.4.0
Ebuild name:

sci-mathematics/flint-3.4.0

Description

Fast Library for Number Theory

Added to portage

2026-03-02

freepg - 2.5.18
Ebuild name:

app-crypt/freepg-2.5.18

Description

Cross-distro GnuPG fork focused on OpenPGP compliance

Added to portage

2026-03-02

fwbuilder - 6.0.0_rc1_p20230723-r1
Ebuild name:

net-firewall/fwbuilder-6.0.0_rc1_p20230723-r1

Description

Firewall management GUI for iptables, PF, Cisco route

Added to portage

2026-03-02

gcc - 16.0.1_p20260301
Ebuild name:

sys-devel/gcc-16.0.1_p20260301

Description

The GNU Compiler Collection

Added to portage

2026-03-02

gherkin-official - 39.0.0
Ebuild name:

dev-python/gherkin-official-39.0.0

Description

Gherkin parser/compiler for Python

Added to portage

2026-03-02

git-sources - 7.0_rc2
Ebuild name:

sys-kernel/git-sources-7.0_rc2

Description

The very latest -git version of the Linux kernel

Added to portage

2026-03-02

hamlib - 4.7.0
Ebuild name:

media-libs/hamlib-4.7.0

Description

Ham radio backend rig control libraries

Added to portage

2026-03-02

identify - 2.6.17
Ebuild name:

dev-python/identify-2.6.17

Description

File identification library for Python

Added to portage

2026-03-02

inline-snapshot - 0.32.4
Ebuild name:

dev-python/inline-snapshot-0.32.4

Description

Create and update inline snapshots in your Python tests

Added to portage

2026-03-02

kguiaddons - 6.23.1
Ebuild name:

kde-frameworks/kguiaddons-6.23.1

Description

Framework providing assorted high-level user interface components

Added to portage

2026-03-02

kirigami - 6.23.1
Ebuild name:

kde-frameworks/kirigami-6.23.1

Description

Lightweight user interface framework for mobile and convergent appli

Added to portage

2026-03-02

kirigami-addons - 1.12.0
Ebuild name:

dev-libs/kirigami-addons-1.12.0

Description

Visual end user components for Kirigami-based applications

Added to portage

2026-03-02

kservice - 6.23.1
Ebuild name:

kde-frameworks/kservice-6.23.1

Description

Advanced plugin and service introspection

Added to portage

2026-03-02

libfprint - 1.94.10
Ebuild name:

sys-auth/libfprint-1.94.10

Description

Library to add support for consumer fingerprint readers

Added to portage

2026-03-02

linkify-it-py - 2.1.0
Ebuild name:

dev-python/linkify-it-py-2.1.0

Description

Links recognition library with full unicode support

Added to portage

2026-03-02

mattermost-desktop-bin - 6.1.0
Ebuild name:

net-im/mattermost-desktop-bin-6.1.0

Description

Mattermost Desktop application

Added to portage

2026-03-02

md6sum - 1.0-r3
Ebuild name:

app-crypt/md6sum-1.0-r3

Description

A C implementation of MD6

Added to portage

2026-03-02

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-03-02

minisign - 0.12
Ebuild name:

app-crypt/minisign-0.12

Description

Dead simple tool to sign files and verify signatures

Added to portage

2026-03-02

mit-krb5 - 1.21.3
Ebuild name:

app-crypt/mit-krb5-1.21.3

Description

MIT Kerberos V

Added to portage

2026-03-02

mit-krb5 - 1.21.3-r1
Ebuild name:

app-crypt/mit-krb5-1.21.3-r1

Description

MIT Kerberos V

Added to portage

2026-03-02

mit-krb5 - 1.22.1
Ebuild name:

app-crypt/mit-krb5-1.22.1

Description

MIT Kerberos V

Added to portage

2026-03-02

mit-krb5 - 1.22.2
Ebuild name:

app-crypt/mit-krb5-1.22.2

Description

MIT Kerberos V

Added to portage

2026-03-02

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-03-02

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-03-02

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-03-02

moccur-edit - 2.16
Ebuild name:

app-emacs/moccur-edit-2.16

Description

An improved interface to color-moccur for editing

Added to portage

2026-03-02

mocker - 0.5.0
Ebuild name:

app-emacs/mocker-0.5.0

Description

Simple mocking framework for Emacs

Added to portage

2026-03-02

monkeysphere - 0.44-r2
Ebuild name:

app-crypt/monkeysphere-0.44-r2

Description

Leverage the OpenPGP web of trust for OpenSSH and Web authentication

Added to portage

2026-03-02

moolticute - 1.03.0-r2
Ebuild name:

app-crypt/moolticute-1.03.0-r2

Description

Mooltipass crossplatform daemon/tools

Added to portage

2026-03-02

nose2 - 0.16.0
Ebuild name:

dev-python/nose2-0.16.0

Description

Unittest with plugins

Added to portage

2026-03-02

openapi-spec-validator - 0.8.4
Ebuild name:

dev-python/openapi-spec-validator-0.8.4

Description

OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0 spec validator

Added to portage

2026-03-02

peewee - 4.0.1
Ebuild name:

dev-python/peewee-4.0.1

Description

Small Python ORM

Added to portage

2026-03-02

postfix - 3.11.0_rc4
Ebuild name:

mail-mta/postfix-3.11.0_rc4

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-03-02

postfix - 3.12_pre20260227
Ebuild name:

mail-mta/postfix-3.12_pre20260227

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-03-02

pyfakefs - 6.1.3
Ebuild name:

dev-python/pyfakefs-6.1.3

Description

A fake file system that mocks the Python file system modules

Added to portage

2026-03-02

pyproject-fmt - 2.17.0
Ebuild name:

dev-python/pyproject-fmt-2.17.0

Description

Format your pyproject.toml file

Added to portage

2026-03-02

python-dotenv - 1.2.2
Ebuild name:

dev-python/python-dotenv-1.2.2

Description

Manage .env files

Added to portage

2026-03-02

sphinx-autodoc-typehints - 3.9.2
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.9.2

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-03-02

squashfs-tools - 4.7.5
Ebuild name:

sys-fs/squashfs-tools-4.7.5

Description

Tools to create and extract Squashfs filesystems

Added to portage

2026-03-02

tables - 3.11.1
Ebuild name:

dev-python/tables-3.11.1

Description

Hierarchical datasets for Python

Added to portage

2026-03-02

tktable - 2.12.1
Ebuild name:

dev-tcltk/tktable-2.12.1

Description

full-featured 2D table widget

Added to portage

2026-03-02

tls - 2.0-r1
Ebuild name:

dev-tcltk/tls-2.0-r1

Description

TLS OpenSSL extension to Tcl

Added to portage

2026-03-02

tox - 4.47.0
Ebuild name:

dev-python/tox-4.47.0

Description

virtualenv-based automation of test activities

Added to portage

2026-03-02

uc-micro-py - 2.0.0
Ebuild name:

dev-python/uc-micro-py-2.0.0

Description

Micro subset of unicode data files for linkify-it-py projects

Added to portage

2026-03-02

xfce4-docklike-plugin - 0.5.1
Ebuild name:

xfce-extra/xfce4-docklike-plugin-0.5.1

Description

A modern, minimalist docklike taskbar for Xfce

Added to portage

2026-03-02

xfce4-panel - 4.20.7
Ebuild name:

xfce-base/xfce4-panel-4.20.7

Description

Panel for the Xfce desktop environment

Added to portage

2026-03-02

xfce4-screensaver - 4.20.2
Ebuild name:

xfce-extra/xfce4-screensaver-4.20.2

Description

Screen saver and locker (port of MATE screensaver)

Added to portage

2026-03-02

xfce4-session - 4.20.4
Ebuild name:

xfce-base/xfce4-session-4.20.4

Description

A session manager for the Xfce desktop environment

Added to portage

2026-03-02

xfce4-settings - 4.20.4
Ebuild name:

xfce-base/xfce4-settings-4.20.4

Description

Configuration system for the Xfce desktop environment

Added to portage

2026-03-02

xv - 6.2.0
Ebuild name:

media-gfx/xv-6.2.0

Description

Interactive image manipulation program supporting a wide variety of formats

Added to portage

2026-03-02

yarl - 1.23.0
Ebuild name:

dev-python/yarl-1.23.0

Description

Yet another URL library

Added to portage

2026-03-02

zeal - 0.8.0
Ebuild name:

app-text/zeal-0.8.0

Description

Offline documentation browser inspired by Dash

Added to portage

2026-03-02

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