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:

89500

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-24
chocolate-doom - 3.1.1-r1
Ebuild name:

games-fps/chocolate-doom-3.1.1-r1

Description

A Doom source port that is minimalist and historically accurate

Added to portage

2026-10-24

fangfrisch - 1.9.3
Ebuild name:

app-antivirus/fangfrisch-1.9.3

Description

Update and verify unofficial Clam Anti-Virus signatures

Added to portage

2026-10-24

git-lfs - 3.8.1
Ebuild name:

dev-vcs/git-lfs-3.8.1

Description

Command line extension and specification for managing large files with git

Added to portage

2026-10-24

openssl-compat - 1.1.1w
Ebuild name:

dev-libs/openssl-compat-1.1.1w

Description

Full-strength general purpose cryptography library (including SSL an

Added to portage

2026-10-24

openssl-compat - 3.6.5
Ebuild name:

dev-libs/openssl-compat-3.6.5

Description

Full-strength general purpose cryptography library (including SSL and

Added to portage

2026-10-24

2026-10-23
apparmor - 5.0.2
Ebuild name:

sys-apps/apparmor-5.0.2

Description

Userspace utils and init scripts for the AppArmor application security syst

Added to portage

2026-10-23

apparmor-profiles - 5.0.2
Ebuild name:

sec-policy/apparmor-profiles-5.0.2

Description

A collection of profiles for the AppArmor application security s

Added to portage

2026-10-23

apparmor-utils - 5.0.2
Ebuild name:

sys-apps/apparmor-utils-5.0.2

Description

Additional userspace utils to assist with AppArmor profile management

Added to portage

2026-10-23

asm - 9.11.1
Ebuild name:

dev-java/asm-9.11.1

Description

Bytecode manipulation framework for Java

Added to portage

2026-10-23

baloo - 6.31.0-r2
Ebuild name:

kde-frameworks/baloo-6.31.0-r2

Description

Framework for searching and managing metadata

Added to portage

2026-10-23

batik - 1.18-r3
Ebuild name:

dev-java/batik-1.18-r3

Description

XML Graphics Batik

Added to portage

2026-10-23

batik - 1.20
Ebuild name:

dev-java/batik-1.20

Description

XML Graphics Batik

Added to portage

2026-10-23

breezy - 3.3.23
Ebuild name:

dev-vcs/breezy-3.3.23

Description

Distributed Version Control System with a Friendly UI

Added to portage

2026-10-23

brotlicffi - 1.2.1.0
Ebuild name:

dev-python/brotlicffi-1.2.1.0

Description

Python binding to the Brotli library

Added to portage

2026-10-23

buildah - 1.46.0
Ebuild name:

app-containers/buildah-1.46.0

Description

A tool that facilitates building OCI images

Added to portage

2026-10-23

byte-buddy - 1.18.15
Ebuild name:

dev-java/byte-buddy-1.18.15

Description

Offers convenience for attaching an agent to the local or a remote VM

Added to portage

2026-10-23

container-libs - 0.70.0
Ebuild name:

app-containers/container-libs-0.70.0

Description

Several utilities from the containers project

Added to portage

2026-10-23

coredns - 1.15.0
Ebuild name:

net-dns/coredns-1.15.0

Description

CoreDNS is a DNS server that chains plugins

Added to portage

2026-10-23

courier - 2.0.8-r1
Ebuild name:

mail-mta/courier-2.0.8-r1

Description

An MTA designed specifically for maildirs

Added to portage

2026-10-23

courier - 2.0.9
Ebuild name:

mail-mta/courier-2.0.9

Description

An MTA designed specifically for maildirs

Added to portage

2026-10-23

coverage - 7.17.0
Ebuild name:

dev-python/coverage-7.17.0

Description

Code coverage measurement for Python

Added to portage

2026-10-23

dulwich - 1.2.19
Ebuild name:

dev-python/dulwich-1.2.19

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2026-10-23

ebuild-mode - 1.89
Ebuild name:

app-xemacs/ebuild-mode-1.89

Description

Emacs modes for editing ebuilds and other Gentoo specific files

Added to portage

2026-10-23

ensurepip-pip - 26.2.1-r1
Ebuild name:

dev-python/ensurepip-pip-26.2.1-r1

Description

Shared pip wheel for ensurepip Python module

Added to portage

2026-10-23

ensurepip-pip - 26.2.2-r1
Ebuild name:

dev-python/ensurepip-pip-26.2.2-r1

Description

Shared pip wheel for ensurepip Python module

Added to portage

2026-10-23

fastapi - 0.161.1
Ebuild name:

dev-python/fastapi-0.161.1

Description

High performance framework, easy to learn, fast to code, ready for produ

Added to portage

2026-10-23

flask-paginate - 2026.10.22
Ebuild name:

dev-python/flask-paginate-2026.10.22

Description

Pagination support for flask

Added to portage

2026-10-23

fop - 2.10-r3
Ebuild name:

dev-java/fop-2.10-r3

Description

XML Graphics Format Object Processor All-In-One

Added to portage

2026-10-23

fop - 2.12
Ebuild name:

dev-java/fop-2.12

Description

XML Graphics Format Object Processor All-In-One

Added to portage

2026-10-23

gdb - 18.1-r1
Ebuild name:

dev-debug/gdb-18.1-r1

Description

GNU debugger

Added to portage

2026-10-23

glycin-loaders - 2.2.4
Ebuild name:

media-libs/glycin-loaders-2.2.4

Description

Loaders for glycin clients (glycin crate or libglycin)

Added to portage

2026-10-23

google-api-core - 2.43.0
Ebuild name:

dev-python/google-api-core-2.43.0

Description

Core Library for Google Client Libraries

Added to portage

2026-10-23

googleapis-common-protos - 1.76.0
Ebuild name:

dev-python/googleapis-common-protos-1.76.0

Description

Python classes generated from the common protos in the g

Added to portage

2026-10-23

gr-fosphor - 0.0_p20260330-r2
Ebuild name:

net-analyzer/gr-fosphor-0.0_p20260330-r2

Description

gnuradio fosphor block (GPU spectrum display)

Added to portage

2026-10-23

gr-paint - 0.0_p20250824-r2
Ebuild name:

net-wireless/gr-paint-0.0_p20250824-r2

Description

Paints monochrome images into the waterfall of a receiver

Added to portage

2026-10-23

grpcio - 1.84.1
Ebuild name:

dev-python/grpcio-1.84.1

Description

HTTP/2-based RPC framework

Added to portage

2026-10-23

grpcio-status - 1.84.1
Ebuild name:

dev-python/grpcio-status-1.84.1

Description

Reference package for GRPC Python status proto mapping

Added to portage

2026-10-23

gruvbox-theme - 1.30.4
Ebuild name:

app-emacs/gruvbox-theme-1.30.4

Description

Gruvbox is a retro groove color scheme, now in Emacs

Added to portage

2026-10-23

gruvbox-theme - 9999
Ebuild name:

app-emacs/gruvbox-theme-9999

Description

Gruvbox is a retro groove color scheme, now in Emacs

Added to portage

2026-10-23

h4x0r - 0.13-r1
Ebuild name:

app-emacs/h4x0r-0.13-r1

Description

Aid in writing like a script kiddie does

Added to portage

2026-10-23

hypothesis - 6.170.8
Ebuild name:

dev-python/hypothesis-6.170.8

Description

A library for property based testing

Added to portage

2026-10-23

importlib-metadata - 9.1.0
Ebuild name:

dev-python/importlib-metadata-9.1.0

Description

Read metadata from Python packages

Added to portage

2026-10-23

iotop-c - 1.33
Ebuild name:

sys-process/iotop-c-1.33

Description

top utility for IO (C port)

Added to portage

2026-10-23

jellyfin-bin - 12.3
Ebuild name:

www-apps/jellyfin-bin-12.3

Description

Jellyfin puts you in control of managing and streaming your media

Added to portage

2026-10-23

jetring - 0.31
Ebuild name:

app-crypt/jetring-0.31

Description

GPG keyring maintenance using changesets

Added to portage

2026-10-23

jetring - 0.32
Ebuild name:

app-crypt/jetring-0.32

Description

GPG keyring maintenance using changesets

Added to portage

2026-10-23

jitterentropy - 3.6.0
Ebuild name:

app-crypt/jitterentropy-3.6.0

Description

Hardware RNG based on CPU timing jitter

Added to portage

2026-10-23

jitterentropy - 3.6.3
Ebuild name:

app-crypt/jitterentropy-3.6.3

Description

Hardware RNG based on CPU timing jitter

Added to portage

2026-10-23

jitterentropy-rngd - 1.2.8
Ebuild name:

app-crypt/jitterentropy-rngd-1.2.8

Description

Jitter RNG daemon

Added to portage

2026-10-23

johntheripper - 1.8.0-r2
Ebuild name:

app-crypt/johntheripper-1.8.0-r2

Description

fast password cracker

Added to portage

2026-10-23

johntheripper - 1.9.0
Ebuild name:

app-crypt/johntheripper-1.9.0

Description

fast password cracker

Added to portage

2026-10-23

johntheripper-jumbo - 1.9.0_p20240102
Ebuild name:

app-crypt/johntheripper-jumbo-1.9.0_p20240102

Description

Fast password cracker, community enhanced version

Added to portage

2026-10-23

kddockwidgets - 2.5.1
Ebuild name:

gui-libs/kddockwidgets-2.5.1

Description

KDAB's Dock Widget Framework for Qt

Added to portage

2026-10-23

keepassxc - 2.8.0
Ebuild name:

app-admin/keepassxc-2.8.0

Description

KeePassXC - KeePass Cross-platform Community Edition

Added to portage

2026-10-23

keepassxc - 2.8.0_beta1
Ebuild name:

app-admin/keepassxc-2.8.0_beta1

Description

KeePassXC - KeePass Cross-platform Community Edition

Added to portage

2026-10-23

libapparmor - 5.0.2
Ebuild name:

sys-libs/libapparmor-5.0.2

Description

Library to support AppArmor userspace utilities

Added to portage

2026-10-23

mdbook - 0.5.4-r1
Ebuild name:

app-text/mdbook-0.5.4-r1

Description

Create a book from markdown files

Added to portage

2026-10-23

memory-allocator - 0.2.1
Ebuild name:

dev-python/memory-allocator-0.2.1

Description

An extension class for memory allocation in cython

Added to portage

2026-10-23

mmix - 20261012
Ebuild name:

dev-lang/mmix-20261012

Description

Donald Knuth's MMIX Assembler and Simulator

Added to portage

2026-10-23

nvidia-drivers - 595.44.16
Ebuild name:

x11-drivers/nvidia-drivers-595.44.16

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2026-10-23

openh264 - 2.7.0
Ebuild name:

media-libs/openh264-2.7.0

Description

Cisco OpenH264 library and Gecko Media Plugin for Mozilla packages

Added to portage

2026-10-23

openjdk - 17.0.21.0.2_p1
Ebuild name:

dev-java/openjdk-17.0.21.0.2_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-10-23

openjdk - 21.0.13.0.2_p1
Ebuild name:

dev-java/openjdk-21.0.13.0.2_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-10-23

openjdk - 25.0.5.0.2_p1
Ebuild name:

dev-java/openjdk-25.0.5.0.2_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-10-23

openjdk - 27.0.1.0.2_p1
Ebuild name:

dev-java/openjdk-27.0.1.0.2_p1

Description

Open source implementation of the Java programming language

Added to portage

2026-10-23

openjdk - 28_alpha21
Ebuild name:

dev-java/openjdk-28_alpha21

Description

Open source implementation of the Java programming language

Added to portage

2026-10-23

openjdk-bin - 28_alpha21
Ebuild name:

dev-java/openjdk-bin-28_alpha21

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-10-23

openpgp-keys-apache-xmlgraphics - 20260128
Ebuild name:

sec-keys/openpgp-keys-apache-xmlgraphics-20260128

Description

OpenPGP keys used by xmlgraphics.apache.org/commo

Added to portage

2026-10-23

openpgp-keys-apparmor - 20260924
Ebuild name:

sec-keys/openpgp-keys-apparmor-20260924

Description

OpenPGP keys used by AppArmor

Added to portage

2026-10-23

openpgp-keys-keepassxc - 20261023
Ebuild name:

sec-keys/openpgp-keys-keepassxc-20261023

Description

OpenPGP key used for KeePassXC releases

Added to portage

2026-10-23

openstacksdk - 4.22.0
Ebuild name:

dev-python/openstacksdk-4.22.0

Description

A collection of libraries for building applications to work with Ope

Added to portage

2026-10-23

pandas - 3.1.0
Ebuild name:

dev-python/pandas-3.1.0

Description

Powerful data structures for data analysis and statistics

Added to portage

2026-10-23

passt - 2026.10.02
Ebuild name:

net-misc/passt-2026.10.02

Description

User-mode networking daemons for VMs and namespaces, replacement for Slir

Added to portage

2026-10-23

pixi - 0.83.0-r1
Ebuild name:

dev-util/pixi-0.83.0-r1

Description

A package management and workflow tool

Added to portage

2026-10-23

podman - 5.8.9
Ebuild name:

app-containers/podman-5.8.9

Description

A tool for managing OCI containers and pods with Docker-compatible CLI

Added to portage

2026-10-23

pycargoebuild - 0.17.2
Ebuild name:

app-portage/pycargoebuild-0.17.2

Description

A generator for Rust/Cargo ebuilds written in Python

Added to portage

2026-10-23

pycparser - 3.12
Ebuild name:

dev-python/pycparser-3.12

Description

C parser and AST generator written in Python

Added to portage

2026-10-23

python-openstackclient - 10.5.0
Ebuild name:

dev-python/python-openstackclient-10.5.0

Description

A client for the OpenStack APIs

Added to portage

2026-10-23

qemu - 10.0.14
Ebuild name:

app-emulation/qemu-10.0.14

Description

QEMU + Kernel-based Virtual Machine userland tools

Added to portage

2026-10-23

qemu - 10.2.4
Ebuild name:

app-emulation/qemu-10.2.4

Description

QEMU + Kernel-based Virtual Machine userland tools

Added to portage

2026-10-23

qemu - 11.1.2
Ebuild name:

app-emulation/qemu-11.1.2

Description

QEMU + Kernel-based Virtual Machine userland tools

Added to portage

2026-10-23

qemu-qmp - 0.0.6
Ebuild name:

dev-python/qemu-qmp-0.0.6

Description

QEMU Monitor Protocol library

Added to portage

2026-10-23

qtbase - 6.12.0-r1
Ebuild name:

dev-qt/qtbase-6.12.0-r1

Description

Cross-platform application development framework

Added to portage

2026-10-23

qtdeclarative - 6.12.0-r1
Ebuild name:

dev-qt/qtdeclarative-6.12.0-r1

Description

Qt Declarative (Quick 2)

Added to portage

2026-10-23

semi - 1.14.7_p20251130
Ebuild name:

app-emacs/semi-1.14.7_p20251130

Description

A library to provide MIME feature for GNU Emacs

Added to portage

2026-10-23

soapysdrplay - 0.5.3
Ebuild name:

net-wireless/soapysdrplay-0.5.3

Description

Soapy SDR plugin for SDRPlay

Added to portage

2026-10-23

spidermonkey - 153.5.1
Ebuild name:

dev-lang/spidermonkey-153.5.1

Description

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

Added to portage

2026-10-23

svglib - 2.3.1
Ebuild name:

dev-python/svglib-2.3.1

Description

Pure-Python library for reading and converting SVG

Added to portage

2026-10-23

syncthing - 2.1.7
Ebuild name:

net-p2p/syncthing-2.1.7

Description

Open Source Continuous File Synchronization

Added to portage

2026-10-23

timescaledb - 2.31.0
Ebuild name:

dev-db/timescaledb-2.31.0

Description

Open-source time-series SQL database

Added to portage

2026-10-23

tzlocal - 5.4.5
Ebuild name:

dev-python/tzlocal-5.4.5

Description

tzinfo object for the local timezone

Added to portage

2026-10-23

unicode-segmentation-rs - 1.0.0
Ebuild name:

dev-python/unicode-segmentation-rs-1.0.0

Description

Unicode segmentation and width for Python using Rust

Added to portage

2026-10-23

virtualenv - 21.14.13
Ebuild name:

dev-python/virtualenv-21.14.13

Description

Virtual Python Environment builder

Added to portage

2026-10-23

wanderlust - 2.15.9_p20251029
Ebuild name:

app-emacs/wanderlust-2.15.9_p20251029

Description

Yet Another Message Interface on Emacsen

Added to portage

2026-10-23

xmlgraphics-commons - 2.12
Ebuild name:

dev-java/xmlgraphics-commons-2.12

Description

XML Graphics Commons

Added to portage

2026-10-23

xvfbwrapper - 0.2.36
Ebuild name:

dev-python/xvfbwrapper-0.2.36

Description

Python wrapper for running a display inside X virtual framebuffer

Added to portage

2026-10-23

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