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:

83357

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-02-17
apache-arrow - 23.0.1
Ebuild name:

dev-libs/apache-arrow-23.0.1

Description

A cross-language development platform for in-memory data

Added to portage

2026-02-17

awscli - 1.44.40
Ebuild name:

app-admin/awscli-1.44.40

Description

Universal Command Line Environment for AWS

Added to portage

2026-02-17

backrefs - 6.2
Ebuild name:

dev-python/backrefs-6.2

Description

Wrapper around re or regex that adds additional back references

Added to portage

2026-02-17

boto3 - 1.42.50
Ebuild name:

dev-python/boto3-1.42.50

Description

The AWS SDK for Python

Added to portage

2026-02-17

botocore - 1.42.50
Ebuild name:

dev-python/botocore-1.42.50

Description

Low-level, data-driven core of boto 3

Added to portage

2026-02-17

deskflow - 1.26.0
Ebuild name:

gui-apps/deskflow-1.26.0

Description

Share a mouse and keyboard between computers (FOSS version of Synergy)

Added to portage

2026-02-17

dune-build-info - 3.21.1
Ebuild name:

dev-ml/dune-build-info-3.21.1

Description

Embed locations informations inside executable and libraries

Added to portage

2026-02-17

dune-configurator - 3.21.1
Ebuild name:

dev-ml/dune-configurator-3.21.1

Description

Helper library for gathering system configuration

Added to portage

2026-02-17

dune-site - 3.21.1
Ebuild name:

dev-ml/dune-site-3.21.1

Description

Embed locations informations inside executable and libraries

Added to portage

2026-02-17

exo - 1.93.0
Ebuild name:

app-admin/exo-1.93.0

Description

Command-line tool for everything at Exoscale compute, storage, dns

Added to portage

2026-02-17

fakeredis - 2.34.0
Ebuild name:

dev-python/fakeredis-2.34.0

Description

Fake implementation of redis API for testing purposes

Added to portage

2026-02-17

filelock - 3.24.2
Ebuild name:

dev-python/filelock-3.24.2

Description

A platform independent file lock for Python

Added to portage

2026-02-17

firefox - 147.0.4
Ebuild name:

www-client/firefox-147.0.4

Description

Firefox Web Browser

Added to portage

2026-02-17

flatdict - 4.1.0
Ebuild name:

dev-python/flatdict-4.1.0

Description

Python module for interacting with nested dicts

Added to portage

2026-02-17

gamescope - 3.16.20
Ebuild name:

gui-wm/gamescope-3.16.20

Description

Efficient micro-compositor for running games

Added to portage

2026-02-17

genkernel - 4.3.18
Ebuild name:

sys-kernel/genkernel-4.3.18

Description

Gentoo automatic kernel building scripts

Added to portage

2026-02-17

gentoo-sources - 6.12.73
Ebuild name:

sys-kernel/gentoo-sources-6.12.73

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-02-17

gentoo-sources - 6.18.12
Ebuild name:

sys-kernel/gentoo-sources-6.18.12

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-02-17

gentoo-sources - 6.19.2
Ebuild name:

sys-kernel/gentoo-sources-6.19.2

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-02-17

gentoo-sources - 6.6.126
Ebuild name:

sys-kernel/gentoo-sources-6.6.126

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-02-17

godot - 4.6.1
Ebuild name:

dev-games/godot-4.6.1

Description

Multi-platform 2D and 3D game engine with a feature-rich editor

Added to portage

2026-02-17

hypothesis - 6.151.9
Ebuild name:

dev-python/hypothesis-6.151.9

Description

A library for property based testing

Added to portage

2026-02-17

kdsingleapplication - 1.2.0-r1
Ebuild name:

dev-libs/kdsingleapplication-1.2.0-r1

Description

KDAB's helper class for single-instance policy applications

Added to portage

2026-02-17

libquotient - 0.9.6
Ebuild name:

net-libs/libquotient-0.9.6

Description

Qt-based SDK to develop applications for Matrix

Added to portage

2026-02-17

mpmath - 1.4.0_beta4
Ebuild name:

dev-python/mpmath-1.4.0_beta4

Description

Python library for arbitrary-precision floating-point arithmetic

Added to portage

2026-02-17

ninja-mode - 1.12.0
Ebuild name:

app-emacs/ninja-mode-1.12.0

Description

GNU Emacs mode for handling Ninja build files

Added to portage

2026-02-17

openpgp-keys-marcusb - 20260217
Ebuild name:

sec-keys/openpgp-keys-marcusb-20260217

Description

OpenPGP key used by Marcus Butler (marcusb)

Added to portage

2026-02-17

pdfcrack - 0.20-r1
Ebuild name:

app-crypt/pdfcrack-0.20-r1

Description

Tool for recovering passwords and content from PDF-files

Added to portage

2026-02-17

pyarrow - 23.0.1
Ebuild name:

dev-python/pyarrow-23.0.1

Description

Python library for Apache Arrow

Added to portage

2026-02-17

pybind11 - 3.0.2
Ebuild name:

dev-python/pybind11-3.0.2

Description

AST-based Python refactoring library

Added to portage

2026-02-17

pycountry - 26.2.16
Ebuild name:

dev-python/pycountry-26.2.16

Description

Database of countries, subdivisions, languages, currencies and script

Added to portage

2026-02-17

pycurl-requests - 0.5.2
Ebuild name:

dev-python/pycurl-requests-0.5.2

Description

Requests-compatible interface for PycURL

Added to portage

2026-02-17

qtgui - 5.15.18-r1
Ebuild name:

dev-qt/qtgui-5.15.18-r1

Description

The GUI module and platform plugins for the Qt5 framework

Added to portage

2026-02-17

quixotic - 0.12-r1
Ebuild name:

www-misc/quixotic-0.12-r1

Description

Feed fake content to bots and robots.txt-ignoring LLM scrapers

Added to portage

2026-02-17

redis - 7.2.0
Ebuild name:

dev-python/redis-7.2.0

Description

Python client for Redis key-value store

Added to portage

2026-02-17

simsimd - 6.5.13
Ebuild name:

dev-python/simsimd-6.5.13

Description

Fastest SIMD-Accelerated Vector Similarity Functions for x86 and Arm

Added to portage

2026-02-17

sox - 14.4.4.1-r1
Ebuild name:

media-sound/sox-14.4.4.1-r1

Description

The swiss army knife of sound processing programs

Added to portage

2026-02-17

sox - 14.6.0.4-r1
Ebuild name:

media-sound/sox-14.6.0.4-r1

Description

The swiss army knife of sound processing programs

Added to portage

2026-02-17

tellico - 4.2
Ebuild name:

kde-misc/tellico-4.2

Description

Collection manager based on KDE Frameworks

Added to portage

2026-02-17

tifffile - 2026.2.16
Ebuild name:

dev-python/tifffile-2026.2.16

Description

Read and write TIFF files

Added to portage

2026-02-17

tox - 4.36.1
Ebuild name:

dev-python/tox-4.36.1

Description

virtualenv-based automation of test activities

Added to portage

2026-02-17

typer - 0.24.0
Ebuild name:

dev-python/typer-0.24.0

Description

Build great CLIs. Easy to code. Based on Python type hints

Added to portage

2026-02-17

vanilla-sources - 6.12.73
Ebuild name:

sys-kernel/vanilla-sources-6.12.73

Description

Full sources for the Linux kernel

Added to portage

2026-02-17

vanilla-sources - 6.18.12
Ebuild name:

sys-kernel/vanilla-sources-6.18.12

Description

Full sources for the Linux kernel

Added to portage

2026-02-17

vanilla-sources - 6.19.2
Ebuild name:

sys-kernel/vanilla-sources-6.19.2

Description

Full sources for the Linux kernel

Added to portage

2026-02-17

vanilla-sources - 6.6.126
Ebuild name:

sys-kernel/vanilla-sources-6.6.126

Description

Full sources for the Linux kernel

Added to portage

2026-02-17

varnish - 8.0.0-r1
Ebuild name:

www-servers/varnish-8.0.0-r1

Description

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

Added to portage

2026-02-17

vivaldi - 7.8.3925.66
Ebuild name:

www-client/vivaldi-7.8.3925.66

Description

A browser for our friends

Added to portage

2026-02-17

vivaldi-snapshot - 7.9.3950.5
Ebuild name:

www-client/vivaldi-snapshot-7.9.3950.5

Description

A browser for our friends

Added to portage

2026-02-17

xdg - 3.21.1
Ebuild name:

dev-ml/xdg-3.21.1

Description

XDG Base Directory Specification

Added to portage

2026-02-17

2026-02-16
alot - 0.11-r2
Ebuild name:

mail-client/alot-0.11-r2

Description

Experimental terminal UI for net-mail/notmuch written in Python

Added to portage

2026-02-16

atuin - 18.12.1
Ebuild name:

app-shells/atuin-18.12.1

Description

Shell history manager supporting encrypted synchronisation

Added to portage

2026-02-16

cdemu - 3.3.0
Ebuild name:

app-cdr/cdemu-3.3.0

Description

Command-line tool for controlling cdemu-daemon

Added to portage

2026-02-16

cdemu-daemon - 3.3.0
Ebuild name:

app-cdr/cdemu-daemon-3.3.0

Description

Daemon of the CDEmu optical media image mounting suite

Added to portage

2026-02-16

cfv - 3.2.0
Ebuild name:

app-arch/cfv-3.2.0

Description

Command-line File Verify - versatile file checksum creator and verifier

Added to portage

2026-02-16

createrepo_c - 1.2.2-r1
Ebuild name:

app-arch/createrepo_c-1.2.2-r1

Description

C implementation of createrepo

Added to portage

2026-02-16

dist-kernel - 6.12.72
Ebuild name:

virtual/dist-kernel-6.12.72

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-02-16

dist-kernel - 6.18.11
Ebuild name:

virtual/dist-kernel-6.18.11

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-02-16

dist-kernel - 6.6.125
Ebuild name:

virtual/dist-kernel-6.6.125

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-02-16

fastfetch - 2.59.0
Ebuild name:

app-misc/fastfetch-2.59.0

Description

Fast neofetch-like system information tool

Added to portage

2026-02-16

firefox-bin - 140.7.1
Ebuild name:

www-client/firefox-bin-140.7.1

Description

Firefox Web Browser

Added to portage

2026-02-16

firefox-bin - 147.0.4
Ebuild name:

www-client/firefox-bin-147.0.4

Description

Firefox Web Browser

Added to portage

2026-02-16

freenet - 0.7.5_p1506
Ebuild name:

net-p2p/freenet-0.7.5_p1506

Description

Freenet REference Daemon

Added to portage

2026-02-16

gcc - 16.0.1_p20260215
Ebuild name:

sys-devel/gcc-16.0.1_p20260215

Description

The GNU Compiler Collection

Added to portage

2026-02-16

gcdemu - 3.3.0
Ebuild name:

app-cdr/gcdemu-3.3.0

Description

Gtk+ GUI for controlling cdemu-daemon

Added to portage

2026-02-16

gentoo-kernel - 6.12.72
Ebuild name:

sys-kernel/gentoo-kernel-6.12.72

Description

Linux kernel built with Gentoo patches

Added to portage

2026-02-16

gentoo-kernel - 6.18.11
Ebuild name:

sys-kernel/gentoo-kernel-6.18.11

Description

Linux kernel built with Gentoo patches

Added to portage

2026-02-16

gentoo-kernel - 6.6.125
Ebuild name:

sys-kernel/gentoo-kernel-6.6.125

Description

Linux kernel built with Gentoo patches

Added to portage

2026-02-16

gentoo-kernel-bin - 6.12.72
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.72

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-02-16

gentoo-kernel-bin - 6.18.11
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.11

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-02-16

gentoo-kernel-bin - 6.6.125
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.125

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-02-16

huggingface_hub - 1.3.7
Ebuild name:

sci-ml/huggingface_hub-1.3.7

Description

a client library to interact with the Hugging Face Hub

Added to portage

2026-02-16

immutabledict - 4.3.1
Ebuild name:

dev-python/immutabledict-4.3.1

Description

An immutable wrapper around dictionaries

Added to portage

2026-02-16

jsonschema-path - 0.4.0_beta6
Ebuild name:

dev-python/jsonschema-path-0.4.0_beta6

Description

JSONSchema Spec with object-oriented paths

Added to portage

2026-02-16

libmirage - 3.3.1
Ebuild name:

dev-libs/libmirage-3.3.1

Description

CD and DVD image access library

Added to portage

2026-02-16

librecad - 2.2.2_alpha1_pre20260215
Ebuild name:

media-gfx/librecad-2.2.2_alpha1_pre20260215

Description

Generic 2D CAD program

Added to portage

2026-02-16

maturin - 1.12.1
Ebuild name:

dev-util/maturin-1.12.1

Description

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

Added to portage

2026-02-16

maturin - 1.12.2
Ebuild name:

dev-util/maturin-1.12.2

Description

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

Added to portage

2026-02-16

mumble - 1.6.0_pre20260215
Ebuild name:

net-voip/mumble-1.6.0_pre20260215

Description

Mumble is an open source, low-latency, high quality voice chat so

Added to portage

2026-02-16

murmur - 1.6.0_pre20260215
Ebuild name:

net-voip/murmur-1.6.0_pre20260215

Description

Mumble is an open source, low-latency, high quality voice chat so

Added to portage

2026-02-16

notmuch - 0.40
Ebuild name:

net-mail/notmuch-0.40

Description

Thread-based e-mail indexer, supporting quick search and tagging

Added to portage

2026-02-16

nzbget - 26.0
Ebuild name:

net-nntp/nzbget-26.0

Description

A command-line based binary newsgrabber supporting .nzb files

Added to portage

2026-02-16

p11-kit - 0.26.2
Ebuild name:

app-crypt/p11-kit-0.26.2

Description

Provides a standard configuration setup for installing PKCS11

Added to portage

2026-02-16

paperkey - 1.6
Ebuild name:

app-crypt/paperkey-1.6

Description

OpenPGP key archiver

Added to portage

2026-02-16

pathable - 0.5.0_beta6
Ebuild name:

dev-python/pathable-0.5.0_beta6

Description

Object-oriented paths

Added to portage

2026-02-16

platformdirs - 4.9.2
Ebuild name:

dev-python/platformdirs-4.9.2

Description

A small Python module for determining appropriate platform-specific d

Added to portage

2026-02-16

prismlauncher - 10.0.5
Ebuild name:

games-action/prismlauncher-10.0.5

Description

Custom, open source Minecraft launcher

Added to portage

2026-02-16

pymdown-extensions - 10.21
Ebuild name:

dev-python/pymdown-extensions-10.21

Description

Extensions for Python Markdown

Added to portage

2026-02-16

python-socks - 2.8.1
Ebuild name:

dev-python/python-socks-2.8.1

Description

SOCKS4, SOCKS5, HTTP tunneling functionality for Python

Added to portage

2026-02-16

rubber - 1.6.7-r1
Ebuild name:

dev-tex/rubber-1.6.7-r1

Description

LaTeX wrapper for automatically building documents

Added to portage

2026-02-16

sipp - 3.7.7
Ebuild name:

net-misc/sipp-3.7.7

Description

A free Open Source test tool / traffic generator for the SIP protocol

Added to portage

2026-02-16

smb4k - 4.0.6
Ebuild name:

net-misc/smb4k-4.0.6

Description

Advanced network neighborhood browser

Added to portage

2026-02-16

stalwart-cli - 0.15.5
Ebuild name:

net-mail/stalwart-cli-0.15.5

Description

Stalwart Mail Server command line utility

Added to portage

2026-02-16

stalwart-mail - 0.15.5
Ebuild name:

net-mail/stalwart-mail-0.15.5

Description

Stalwart Mail Server

Added to portage

2026-02-16

tifffile - 2026.2.15
Ebuild name:

dev-python/tifffile-2026.2.15

Description

Read and write TIFF files

Added to portage

2026-02-16

tox - 4.36.0
Ebuild name:

dev-python/tox-4.36.0

Description

virtualenv-based automation of test activities

Added to portage

2026-02-16

vanilla-kernel - 6.12.72
Ebuild name:

sys-kernel/vanilla-kernel-6.12.72

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-02-16

vanilla-kernel - 6.18.11
Ebuild name:

sys-kernel/vanilla-kernel-6.18.11

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-02-16

vanilla-kernel - 6.6.125
Ebuild name:

sys-kernel/vanilla-kernel-6.6.125

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-02-16

vimpc - 0.09.2_p20230330
Ebuild name:

media-sound/vimpc-0.09.2_p20230330

Description

ncurses based mpd client with vi-like key bindings

Added to portage

2026-02-16

vlc - 4.0.0_pre20260215
Ebuild name:

media-video/vlc-4.0.0_pre20260215

Description

Media player and framework with support for most multimedia files

Added to portage

2026-02-16

winbox - 4.0.1
Ebuild name:

app-admin/winbox-4.0.1

Description

Management Software for MikroTik RouterOS

Added to portage

2026-02-16

xmltodict - 1.0.3
Ebuild name:

dev-python/xmltodict-1.0.3

Description

Makes working with XML feel like you are working with JSON

Added to portage

2026-02-16

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