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:

88688

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-09-26
dbeaver-bin - 26.2.1
Ebuild name:

dev-db/dbeaver-bin-26.2.1

Description

Free universal database tool (community edition)

Added to portage

2026-09-26

dist-kernel - 6.18.54
Ebuild name:

virtual/dist-kernel-6.18.54

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-09-26

dist-kernel - 7.2.8
Ebuild name:

virtual/dist-kernel-7.2.8

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-09-26

gentoo-kernel - 6.18.54
Ebuild name:

sys-kernel/gentoo-kernel-6.18.54

Description

Linux kernel built with Gentoo patches

Added to portage

2026-09-26

gentoo-kernel - 7.2.8
Ebuild name:

sys-kernel/gentoo-kernel-7.2.8

Description

Linux kernel built with Gentoo patches

Added to portage

2026-09-26

gentoo-kernel-bin - 6.18.54
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.54

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-09-26

gentoo-kernel-bin - 7.2.8
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.2.8

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-09-26

gentoo-kernel-modprep - 6.18.54
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.54

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-09-26

gentoo-kernel-modprep - 7.2.8
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.2.8

Description

Minimal subset of gentoo-kernel-bin for building modules, fo

Added to portage

2026-09-26

markdown - 3.11
Ebuild name:

dev-python/markdown-3.11

Description

Python implementation of the markdown markup language

Added to portage

2026-09-26

multipart - 2.0.1
Ebuild name:

dev-python/multipart-2.0.1

Description

Parser for multipart/form-data

Added to portage

2026-09-26

opentelemetry-api - 1.45.0
Ebuild name:

dev-python/opentelemetry-api-1.45.0

Description

OpenTelemetry Python API

Added to portage

2026-09-26

opentelemetry-sdk - 1.45.0
Ebuild name:

dev-python/opentelemetry-sdk-1.45.0

Description

OpenTelemetry Python SDK

Added to portage

2026-09-26

opentelemetry-semantic-conventions - 1.45.0
Ebuild name:

dev-python/opentelemetry-semantic-conventions-1.45.0

Description

OpenTelemetry Semantic Conventions

Added to portage

2026-09-26

platformdirs - 4.11.14
Ebuild name:

dev-python/platformdirs-4.11.14

Description

A small Python module for determining appropriate platform-specific

Added to portage

2026-09-26

pydata-sphinx-theme - 0.22.0
Ebuild name:

dev-python/pydata-sphinx-theme-0.22.0

Description

Bootstrap-based Sphinx theme from the PyData community

Added to portage

2026-09-26

pykwalify - 1.8.0-r4
Ebuild name:

dev-python/pykwalify-1.8.0-r4

Description

Python lib/cli for JSON/YAML schema validation

Added to portage

2026-09-26

qbittorrent - 5.1.4-r1
Ebuild name:

net-p2p/qbittorrent-5.1.4-r1

Description

BitTorrent client in C++ and Qt

Added to portage

2026-09-26

qbittorrent - 5.2.0-r1
Ebuild name:

net-p2p/qbittorrent-5.2.0-r1

Description

BitTorrent client in C++ and Qt

Added to portage

2026-09-26

qbittorrent - 5.2.3
Ebuild name:

net-p2p/qbittorrent-5.2.3

Description

BitTorrent client in C++ and Qt

Added to portage

2026-09-26

raspberrypi-firmware - 1.20260915
Ebuild name:

sys-boot/raspberrypi-firmware-1.20260915

Description

Raspberry Pi (all versions) bootloader and GPU firmware

Added to portage

2026-09-26

raspberrypi-image - 6.18.50_p20260915
Ebuild name:

sys-kernel/raspberrypi-image-6.18.50_p20260915

Description

Raspberry Pi (all versions) kernel and modules

Added to portage

2026-09-26

raspberrypi-sources - 6.18.50_p20260915
Ebuild name:

sys-kernel/raspberrypi-sources-6.18.50_p20260915

Description

Raspberry Pi kernel sources

Added to portage

2026-09-26

rpi-eeprom - 28.32
Ebuild name:

dev-embedded/rpi-eeprom-28.32

Description

Updater for Raspberry Pi 4/5 bootloader and the VL805 USB controller

Added to portage

2026-09-26

sqlalchemy - 2.1.1
Ebuild name:

dev-python/sqlalchemy-2.1.1

Description

Python SQL toolkit and Object Relational Mapper

Added to portage

2026-09-26

stripe-mock - 0.205.0
Ebuild name:

dev-util/stripe-mock-0.205.0

Description

Mock HTTP server that responds like the real Stripe API

Added to portage

2026-09-26

tavern - 3.7.0
Ebuild name:

dev-python/tavern-3.7.0

Description

A tool, library, and Pytest plugin for testing RESTful APIs

Added to portage

2026-09-26

uvicorn - 0.54.0
Ebuild name:

dev-python/uvicorn-0.54.0

Description

Lightning-fast ASGI server implementation

Added to portage

2026-09-26

vanilla-kernel - 6.18.54
Ebuild name:

sys-kernel/vanilla-kernel-6.18.54

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-09-26

vanilla-kernel - 7.2.8
Ebuild name:

sys-kernel/vanilla-kernel-7.2.8

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-09-26

xdelta - 1.2.0
Ebuild name:

dev-util/xdelta-1.2.0

Description

Computes changes between binary or text files and creates deltas

Added to portage

2026-09-26

2026-09-25
airspy - 1.0.10-r1
Ebuild name:

net-wireless/airspy-1.0.10-r1

Description

Usemode driver and associated tools for airspy

Added to portage

2026-09-25

astyle - 3.6.18
Ebuild name:

dev-util/astyle-3.6.18

Description

Artistic Style is a re-indenter and reformatter for C, C++ and Java source c

Added to portage

2026-09-25

aws-c-common - 1.0.1-r1
Ebuild name:

dev-libs/aws-c-common-1.0.1-r1

Description

Core c99 package for AWS SDK for C

Added to portage

2026-09-25

awscli - 2.37.2
Ebuild name:

app-admin/awscli-2.37.2

Description

Universal Command Line Environment for AWS

Added to portage

2026-09-25

bindgen - 0.73.2
Ebuild name:

dev-util/bindgen-0.73.2

Description

Automatically generate Rust FFI bindings to C and C++ libraries

Added to portage

2026-09-25

boto3 - 1.43.102
Ebuild name:

dev-python/boto3-1.43.102

Description

The AWS SDK for Python

Added to portage

2026-09-25

botocore - 1.43.102
Ebuild name:

dev-python/botocore-1.43.102

Description

Low-level, data-driven core of boto 3

Added to portage

2026-09-25

c-blosc2 - 3.3.5
Ebuild name:

dev-libs/c-blosc2-3.3.5

Description

Blocking, shuffling and lossless compression library

Added to portage

2026-09-25

chafa - 1.18.3
Ebuild name:

media-gfx/chafa-1.18.3

Description

versatile and fast Unicode/ASCII/ANSI graphics renderer

Added to portage

2026-09-25

containerd - 2.4.1
Ebuild name:

app-containers/containerd-2.4.1

Description

A daemon to control runC

Added to portage

2026-09-25

cvmfs - 2.14.1
Ebuild name:

net-fs/cvmfs-2.14.1

Description

HTTP read-only file system for distributing software

Added to portage

2026-09-25

difftastic - 0.71.0
Ebuild name:

dev-util/difftastic-0.71.0

Description

A structural diff that understands syntax

Added to portage

2026-09-25

django-js-asset - 4.2.0
Ebuild name:

dev-python/django-js-asset-4.2.0

Description

Script tag with additional attributes for django.forms.Media

Added to portage

2026-09-25

dokuwiki - 20260714c-r1
Ebuild name:

www-apps/dokuwiki-20260714c-r1

Description

DokuWiki is a simple to use Wiki aimed at a small company's document

Added to portage

2026-09-25

fetchmail - 6.6.8
Ebuild name:

net-mail/fetchmail-6.6.8

Description

the legendary remote-mail retrieval and forwarding utility

Added to portage

2026-09-25

gallery-dl - 1.32.13
Ebuild name:

net-misc/gallery-dl-1.32.13

Description

Download image galleries and collections from several image hosting sit

Added to portage

2026-09-25

gentoo-sources - 6.18.54
Ebuild name:

sys-kernel/gentoo-sources-6.18.54

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-09-25

gentoo-sources - 7.2.8
Ebuild name:

sys-kernel/gentoo-sources-7.2.8

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-09-25

ggml - 0.25.3
Ebuild name:

sci-ml/ggml-0.25.3

Description

Tensor library for machine learning

Added to portage

2026-09-25

github-cli - 2.101.0
Ebuild name:

dev-util/github-cli-2.101.0

Description

GitHub CLI

Added to portage

2026-09-25

gitlab-cli - 1.119.0
Ebuild name:

dev-util/gitlab-cli-1.119.0

Description

the official gitlab command line interface

Added to portage

2026-09-25

golangci-lint - 2.14.0
Ebuild name:

dev-go/golangci-lint-2.14.0

Description

Fast linters runner for Go

Added to portage

2026-09-25

google-api-core - 2.39.0
Ebuild name:

dev-python/google-api-core-2.39.0

Description

Core Library for Google Client Libraries

Added to portage

2026-09-25

google-auth - 2.58.1
Ebuild name:

dev-python/google-auth-2.58.1

Description

Google Authentication Library

Added to portage

2026-09-25

googleapis-common-protos - 1.75.4
Ebuild name:

dev-python/googleapis-common-protos-1.75.4

Description

Python classes generated from the common protos in the g

Added to portage

2026-09-25

graphviz-dot-mode - 0.4_p20181118
Ebuild name:

app-emacs/graphviz-dot-mode-0.4_p20181118

Description

Emacs mode for editing and previewing Graphviz dot graphs

Added to portage

2026-09-25

groovy-emacs-modes - 2.1
Ebuild name:

app-emacs/groovy-emacs-modes-2.1

Description

Groovy major mode, grails minor mode, and a groovy inferior mode

Added to portage

2026-09-25

gruvbox-theme - 1.30.2
Ebuild name:

app-emacs/gruvbox-theme-1.30.2

Description

Gruvbox is a retro groove color scheme, now in Emacs

Added to portage

2026-09-25

gruvbox-theme - 1.30.3
Ebuild name:

app-emacs/gruvbox-theme-1.30.3

Description

Gruvbox is a retro groove color scheme, now in Emacs

Added to portage

2026-09-25

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-09-25

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-09-25

haproxy - 3.0.28
Ebuild name:

net-proxy/haproxy-3.0.28

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-09-25

haproxy - 3.2.24
Ebuild name:

net-proxy/haproxy-3.2.24

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-09-25

haproxy - 3.4.5
Ebuild name:

net-proxy/haproxy-3.4.5

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-09-25

haskell-mode - 17.4
Ebuild name:

app-emacs/haskell-mode-17.4

Description

Mode for editing (and running) Haskell programs in Emacs

Added to portage

2026-09-25

linode-cli - 5.69.0
Ebuild name:

app-admin/linode-cli-5.69.0

Description

Official command-line interface for interacting with the Linode API

Added to portage

2026-09-25

linode-metadata - 0.4.0
Ebuild name:

dev-python/linode-metadata-0.4.0

Description

Python bindings for the Linode Metadata Service

Added to portage

2026-09-25

magit - 4.7.1
Ebuild name:

app-emacs/magit-4.7.1

Description

A Git porcelain inside Emacs

Added to portage

2026-09-25

netpbm - 11.15.8
Ebuild name:

media-libs/netpbm-11.15.8

Description

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

Added to portage

2026-09-25

netpbm - 11.2.30
Ebuild name:

media-libs/netpbm-11.2.30

Description

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

Added to portage

2026-09-25

ollama - 0.34.4
Ebuild name:

sci-ml/ollama-0.34.4

Description

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

Added to portage

2026-09-25

openjdk-bin - 27_p35
Ebuild name:

dev-java/openjdk-bin-27_p35

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-25

openjdk-bin - 28_alpha16
Ebuild name:

dev-java/openjdk-bin-28_alpha16

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-09-25

package-build - 5.0.3
Ebuild name:

app-emacs/package-build-5.0.3

Description

Tools for assembling a package archive

Added to portage

2026-09-25

phonenumbers - 9.0.40
Ebuild name:

dev-python/phonenumbers-9.0.40

Description

Python port of Google's libphonenumber

Added to portage

2026-09-25

prusaslicer - 2.9.6-r1
Ebuild name:

media-gfx/prusaslicer-2.9.6-r1

Description

A mesh slicer to generate G-code for fused-filament-fabrication (3D

Added to portage

2026-09-25

pybugz - 0.15
Ebuild name:

www-client/pybugz-0.15

Description

Command line interface to (Gentoo) Bugzilla

Added to portage

2026-09-25

pycargoebuild - 0.17.1
Ebuild name:

app-portage/pycargoebuild-0.17.1

Description

A generator for Rust/Cargo ebuilds written in Python

Added to portage

2026-09-25

pymongo - 4.18.2
Ebuild name:

dev-python/pymongo-4.18.2

Description

Python driver for MongoDB

Added to portage

2026-09-25

pytz - 2026.4
Ebuild name:

dev-python/pytz-2026.4

Description

World timezone definitions for Python

Added to portage

2026-09-25

ruff - 0.16.9
Ebuild name:

dev-util/ruff-0.16.9

Description

An extremely fast Python linter, written in Rust

Added to portage

2026-09-25

sqlalchemy - 2.1.0
Ebuild name:

dev-python/sqlalchemy-2.1.0

Description

Python SQL toolkit and Object Relational Mapper

Added to portage

2026-09-25

stripe-mock - 0.204.0
Ebuild name:

dev-util/stripe-mock-0.204.0

Description

Mock HTTP server that responds like the real Stripe API

Added to portage

2026-09-25

systemd-utils - 262
Ebuild name:

sys-apps/systemd-utils-262

Description

Utilities split out from systemd for OpenRC users

Added to portage

2026-09-25

tox - 4.64.2
Ebuild name:

dev-python/tox-4.64.2

Description

virtualenv-based automation of test activities

Added to portage

2026-09-25

untangle-https-backup - 0.2.0
Ebuild name:

app-backup/untangle-https-backup-0.2.0

Description

Back up Untangle configurations via the web admin UI

Added to portage

2026-09-25

uv - 0.12.19
Ebuild name:

dev-python/uv-0.12.19

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-09-25

uv-build - 0.12.19
Ebuild name:

dev-python/uv-build-0.12.19

Description

PEP517 uv build backend

Added to portage

2026-09-25

vanilla-sources - 6.18.54
Ebuild name:

sys-kernel/vanilla-sources-6.18.54

Description

Full sources for the Linux kernel

Added to portage

2026-09-25

vanilla-sources - 7.2.8
Ebuild name:

sys-kernel/vanilla-sources-7.2.8

Description

Full sources for the Linux kernel

Added to portage

2026-09-25

vertico - 2.15
Ebuild name:

app-emacs/vertico-2.15

Description

Vertical interactive completion

Added to portage

2026-09-25

virtualenv - 21.12.1
Ebuild name:

dev-python/virtualenv-21.12.1

Description

Virtual Python Environment builder

Added to portage

2026-09-25

ytmusicapi - 1.12.3
Ebuild name:

dev-python/ytmusicapi-1.12.3

Description

Unofficial API for YouTube Music

Added to portage

2026-09-25

zabbix - 6.0.48-r1
Ebuild name:

net-analyzer/zabbix-6.0.48-r1

Description

ZABBIX is software for monitoring of your applications, network and s

Added to portage

2026-09-25

zabbix - 7.0.30-r1
Ebuild name:

net-analyzer/zabbix-7.0.30-r1

Description

ZABBIX is software for monitoring of your applications, network and s

Added to portage

2026-09-25

zabbix - 7.0.31-r1
Ebuild name:

net-analyzer/zabbix-7.0.31-r1

Description

ZABBIX is software for monitoring of your applications, network and s

Added to portage

2026-09-25

zabbix - 7.4.14-r1
Ebuild name:

net-analyzer/zabbix-7.4.14-r1

Description

ZABBIX is software for monitoring of your applications, network and s

Added to portage

2026-09-25

zabbix - 7.4.15-r1
Ebuild name:

net-analyzer/zabbix-7.4.15-r1

Description

ZABBIX is software for monitoring of your applications, network and s

Added to portage

2026-09-25

zedis - 0.11.1
Ebuild name:

dev-db/zedis-0.11.1

Description

Blazing-fast native Redis GUI built with Rust and GPUI

Added to portage

2026-09-25

zsnes - 2.3.2
Ebuild name:

games-emulation/zsnes-2.3.2

Description

Fork of the classic Super Nintendo emulator

Added to portage

2026-09-25

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