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:

88643

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-24
avahi - 0.9_rc5
Ebuild name:

net-dns/avahi-0.9_rc5

Description

System which facilitates service discovery on a local network

Added to portage

2026-09-24

claude-code - 2.1.280
Ebuild name:

dev-util/claude-code-2.1.280

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-09-24

containerd - 2.4.0
Ebuild name:

app-containers/containerd-2.4.0

Description

A daemon to control runC

Added to portage

2026-09-24

docker - 29.8.1
Ebuild name:

app-containers/docker-29.8.1

Description

The core functions you need to create Docker images and run Docker con

Added to portage

2026-09-24

docker-cli - 29.8.1
Ebuild name:

app-containers/docker-cli-29.8.1

Description

the command line binary for docker

Added to portage

2026-09-24

framework_tool - 0.6.6
Ebuild name:

app-laptop/framework_tool-0.6.6

Description

Tool to control Framework Computer systems

Added to portage

2026-09-24

gnupg - 2.5.24
Ebuild name:

app-crypt/gnupg-2.5.24

Description

The GNU Privacy Guard, a GPL OpenPGP implementation

Added to portage

2026-09-24

haskell-mode - 9999
Ebuild name:

app-emacs/haskell-mode-9999

Description

Mode for editing (and running) Haskell programs in Emacs

Added to portage

2026-09-24

haxe-mode - 0.3.3
Ebuild name:

app-emacs/haxe-mode-0.3.3

Description

Major mode for editing Haxe files

Added to portage

2026-09-24

helm - 4.0.7
Ebuild name:

app-emacs/helm-4.0.7

Description

Emacs incremental completion and selection narrowing framework

Added to portage

2026-09-24

nwjs - 0.116.0
Ebuild name:

dev-libs/nwjs-0.116.0

Description

Framework that lets you call all Node.js modules directly from the DOM

Added to portage

2026-09-24

pytorch - 2.14.0-r4
Ebuild name:

sci-ml/pytorch-2.14.0-r4

Description

Tensors and Dynamic neural networks in Python with strong GPU acceleration

Added to portage

2026-09-24

upterm - 0.31.0
Ebuild name:

app-misc/upterm-0.31.0

Description

Instant Terminal Sharing

Added to portage

2026-09-24

uzdoom - 5.0.2
Ebuild name:

games-engines/uzdoom-5.0.2

Description

Modder-friendly hardware-accelerated source port of the DOOM engine

Added to portage

2026-09-24

vlc - 3.0.24
Ebuild name:

media-video/vlc-3.0.24

Description

Media player and framework with support for most multimedia files and stream

Added to portage

2026-09-24

2026-09-23
File-KDBX - 0.906.0
Ebuild name:

dev-perl/File-KDBX-0.906.0

Description

Encrypted database to store secret text and files

Added to portage

2026-09-23

File-KeePass-KDBX - 0.902.0
Ebuild name:

dev-perl/File-KeePass-KDBX-0.902.0

Description

Read and write KDBX files (using the File backend)

Added to portage

2026-09-23

Iterator-Simple - 0.70.0
Ebuild name:

dev-perl/Iterator-Simple-0.70.0

Description

Simple iterator and utilities

Added to portage

2026-09-23

Syntax-Operator-Equ - 0.110.0
Ebuild name:

dev-perl/Syntax-Operator-Equ-0.110.0

Description

Equality operators that distinguish undef

Added to portage

2026-09-23

Sys-Virt - 12.7.0
Ebuild name:

dev-perl/Sys-Virt-12.7.0

Description

API for using the libvirt library from Perl

Added to portage

2026-09-23

android-udev-rules - 20260922
Ebuild name:

dev-util/android-udev-rules-20260922

Description

Android udev rules list aimed to be the most comprehensive on

Added to portage

2026-09-23

ansible-compat - 26.9.0
Ebuild name:

dev-python/ansible-compat-26.9.0

Description

Contains functions that facilitate working with various versions o

Added to portage

2026-09-23

aws-c-s3 - 1.2.0
Ebuild name:

dev-libs/aws-c-s3-1.2.0

Description

AWS C S3 async library

Added to portage

2026-09-23

aws-sdk-cpp - 1.11.887
Ebuild name:

dev-cpp/aws-sdk-cpp-1.11.887

Description

AWS SDK for C++

Added to portage

2026-09-23

awscli - 2.37.0
Ebuild name:

app-admin/awscli-2.37.0

Description

Universal Command Line Environment for AWS

Added to portage

2026-09-23

boto3 - 1.43.100
Ebuild name:

dev-python/boto3-1.43.100

Description

The AWS SDK for Python

Added to portage

2026-09-23

botocore - 1.43.100
Ebuild name:

dev-python/botocore-1.43.100

Description

Low-level, data-driven core of boto 3

Added to portage

2026-09-23

bpfilter - 0.7.0
Ebuild name:

net-firewall/bpfilter-0.7.0

Description

BPF-based packet filtering framework

Added to portage

2026-09-23

clang - 23.1.2
Ebuild name:

dev-python/clang-23.1.2

Description

Python bindings for llvm-core/clang

Added to portage

2026-09-23

clang - 23.1.2
Ebuild name:

llvm-core/clang-23.1.2

Description

C language family frontend for LLVM

Added to portage

2026-09-23

clang-common - 23.1.2
Ebuild name:

llvm-core/clang-common-23.1.2

Description

Common files shared between multiple slots of clang

Added to portage

2026-09-23

compiler-rt - 23.1.2
Ebuild name:

llvm-runtimes/compiler-rt-23.1.2

Description

Compiler runtime library for clang (built-in part)

Added to portage

2026-09-23

compiler-rt-sanitizers - 23.1.2
Ebuild name:

llvm-runtimes/compiler-rt-sanitizers-23.1.2

Description

Compiler runtime libraries for clang (sanitizers & xray

Added to portage

2026-09-23

confuse - 2.3.0
Ebuild name:

dev-python/confuse-2.3.0

Description

Confuse is a configuration library for Python that uses YAML

Added to portage

2026-09-23

crengine-ng - 0.9.13-r2
Ebuild name:

app-text/crengine-ng-0.9.13-r2

Description

Cross-platform library designed to implement e-book readers

Added to portage

2026-09-23

elfutils - 0.196-r1
Ebuild name:

dev-libs/elfutils-0.196-r1

Description

Libraries/utilities to handle ELF objects (drop in replacement for libel

Added to portage

2026-09-23

firefox - 156.0.1
Ebuild name:

www-client/firefox-156.0.1

Description

Firefox Web Browser

Added to portage

2026-09-23

firefox-l10n - 156.0.1
Ebuild name:

www-client/firefox-l10n-156.0.1

Description

Firefox Web Browser's translation files

Added to portage

2026-09-23

flake8 - 7.4.0
Ebuild name:

dev-python/flake8-7.4.0

Description

A wrapper around PyFlakes, pep8 & mccabe

Added to portage

2026-09-23

flang - 23.1.2
Ebuild name:

llvm-core/flang-23.1.2

Description

LLVM's Fortran frontend

Added to portage

2026-09-23

flang-rt - 23.1.2
Ebuild name:

llvm-runtimes/flang-rt-23.1.2

Description

LLVM's Fortran runtime

Added to portage

2026-09-23

helm-system-packages - 1.10.2
Ebuild name:

app-emacs/helm-system-packages-1.10.2

Description

A Helm interface to the package manager of your operating sys

Added to portage

2026-09-23

hexrgb - 0_p1019
Ebuild name:

app-emacs/hexrgb-0_p1019

Description

Functions to manipulate colors, including RGB hex strings

Added to portage

2026-09-23

highlight-indentation - 0.7.0_p20210221
Ebuild name:

app-emacs/highlight-indentation-0.7.0_p20210221

Description

Minor modes to highlight indentation guides in Emac

Added to portage

2026-09-23

highline - 7.2.2
Ebuild name:

app-emacs/highline-7.2.2

Description

Minor mode to highlight current line in buffer

Added to portage

2026-09-23

hiredis - 3.4.2
Ebuild name:

dev-python/hiredis-3.4.2

Description

Python extension that wraps hiredis

Added to portage

2026-09-23

kpcli - 4.1.3
Ebuild name:

app-admin/kpcli-4.1.3

Description

Command line interface to KeePass database files

Added to portage

2026-09-23

kpcli - 4.1.3-r1
Ebuild name:

app-admin/kpcli-4.1.3-r1

Description

Command line interface to KeePass database files

Added to portage

2026-09-23

less - 710
Ebuild name:

sys-apps/less-710

Description

Excellent text file viewer

Added to portage

2026-09-23

libclc - 23.1.2
Ebuild name:

llvm-runtimes/libclc-23.1.2

Description

OpenCL C library

Added to portage

2026-09-23

libcxx - 23.1.2
Ebuild name:

llvm-runtimes/libcxx-23.1.2

Description

New implementation of the C++ standard library, targeting C++11

Added to portage

2026-09-23

libcxxabi - 23.1.2
Ebuild name:

llvm-runtimes/libcxxabi-23.1.2

Description

Low level support for a standard C++ library

Added to portage

2026-09-23

libgcc - 23.1.2
Ebuild name:

llvm-runtimes/libgcc-23.1.2

Description

Compiler runtime library for clang, compatible with libgcc_s

Added to portage

2026-09-23

libheif - 1.23.5
Ebuild name:

media-libs/libheif-1.23.5

Description

ISO/IEC 23008-12 HEIF file format decoder and encoder

Added to portage

2026-09-23

libunwind - 23.1.2-r1
Ebuild name:

llvm-runtimes/libunwind-23.1.2-r1

Description

C++ runtime stack unwinder from LLVM

Added to portage

2026-09-23

libvirt - 12.7.0
Ebuild name:

app-emulation/libvirt-12.7.0

Description

C toolkit to manipulate virtual machines

Added to portage

2026-09-23

libvirt-python - 12.7.0
Ebuild name:

dev-python/libvirt-python-12.7.0

Description

libvirt Python bindings

Added to portage

2026-09-23

lit - 23.1.2
Ebuild name:

dev-python/lit-23.1.2

Description

A stand-alone install of the LLVM suite testing tool

Added to portage

2026-09-23

lld - 23.1.2
Ebuild name:

llvm-core/lld-23.1.2

Description

The LLVM linker (link editor)

Added to portage

2026-09-23

lldb - 23.1.2
Ebuild name:

llvm-core/lldb-23.1.2

Description

The LLVM debugger

Added to portage

2026-09-23

llvm - 23.1.2
Ebuild name:

dev-ml/llvm-23.1.2

Description

OCaml bindings for LLVM

Added to portage

2026-09-23

llvm - 23.1.2
Ebuild name:

llvm-core/llvm-23.1.2

Description

Low Level Virtual Machine

Added to portage

2026-09-23

llvm-common - 23.1.2
Ebuild name:

llvm-core/llvm-common-23.1.2

Description

Common files shared between multiple slots of LLVM

Added to portage

2026-09-23

mako - 1.4.3
Ebuild name:

dev-python/mako-1.4.3

Description

A Python templating language

Added to portage

2026-09-23

mate-control-center - 1.28.0-r3
Ebuild name:

mate-base/mate-control-center-1.28.0-r3

Description

The MATE Desktop configuration tool

Added to portage

2026-09-23

mlir - 23.1.2
Ebuild name:

llvm-core/mlir-23.1.2

Description

Multi-Level Intermediate Representation (library only)

Added to portage

2026-09-23

motif - 2.5.2-r3
Ebuild name:

x11-libs/motif-2.5.2-r3

Description

The Motif user interface component toolkit

Added to portage

2026-09-23

nest-asyncio2 - 1.7.3
Ebuild name:

dev-python/nest-asyncio2-1.7.3

Description

Patch asyncio to allow nested event loops

Added to portage

2026-09-23

netcdf-fortran - 4.6.4
Ebuild name:

sci-libs/netcdf-fortran-4.6.4

Description

Scientific library and interface for array oriented data access

Added to portage

2026-09-23

netgen - 6.2.2607
Ebuild name:

media-gfx/netgen-6.2.2607

Description

Automatic 3d tetrahedral mesh generator

Added to portage

2026-09-23

nodejs - 26.10.0
Ebuild name:

net-libs/nodejs-26.10.0

Description

A JavaScript runtime built on Chrome's V8 JavaScript engine

Added to portage

2026-09-23

ntfs3g - 2026.9.18
Ebuild name:

sys-fs/ntfs3g-2026.9.18

Description

Open source read-write NTFS driver that runs under FUSE

Added to portage

2026-09-23

nuitka - 4.2.2
Ebuild name:

dev-python/nuitka-4.2.2

Description

Python to native compiler

Added to portage

2026-09-23

nvidia-drivers - 595.104.02
Ebuild name:

x11-drivers/nvidia-drivers-595.104.02

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2026-09-23

nxml-libvirt-schemas - 12.7.0
Ebuild name:

app-emacs/nxml-libvirt-schemas-12.7.0

Description

Extension for nxml-mode with libvirt schemas

Added to portage

2026-09-23

ollama - 0.34.3
Ebuild name:

sci-ml/ollama-0.34.3

Description

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

Added to portage

2026-09-23

openmp - 23.1.2
Ebuild name:

llvm-runtimes/openmp-23.1.2

Description

OpenMP runtime libraries for LLVM/clang compiler

Added to portage

2026-09-23

openmp-amdgcn-amd-amdhsa - 23.1.2
Ebuild name:

llvm-runtimes/openmp-amdgcn-amd-amdhsa-23.1.2

Description

OpenMP target library for amdgcn devices

Added to portage

2026-09-23

openmp-nvptx64-nvidia-cuda - 23.1.2
Ebuild name:

llvm-runtimes/openmp-nvptx64-nvidia-cuda-23.1.2

Description

OpenMP target library for nvptx64 devices

Added to portage

2026-09-23

openmp-spirv64-intel - 23.1.2
Ebuild name:

llvm-runtimes/openmp-spirv64-intel-23.1.2

Description

OpenMP target library for spirv64 Intel devices

Added to portage

2026-09-23

openrc - 0.64.1
Ebuild name:

sys-apps/openrc-0.64.1

Description

OpenRC manages the services, startup and shutdown of a host

Added to portage

2026-09-23

openscad - 2026.09.18_pre
Ebuild name:

media-gfx/openscad-2026.09.18_pre

Description

The Programmers Solid 3D CAD Modeller

Added to portage

2026-09-23

pdm-backend - 2.4.10
Ebuild name:

dev-python/pdm-backend-2.4.10

Description

A PEP 517 backend for PDM that supports PEP 621 metadata

Added to portage

2026-09-23

polly - 23.1.2
Ebuild name:

llvm-core/polly-23.1.2

Description

Polyhedral optimizations for LLVM

Added to portage

2026-09-23

pycodestyle - 2.15.0
Ebuild name:

dev-python/pycodestyle-2.15.0

Description

Python style guide checker (fka pep8)

Added to portage

2026-09-23

pyflakes - 4.0.0
Ebuild name:

dev-python/pyflakes-4.0.0

Description

Passive checker for Python programs

Added to portage

2026-09-23

pymdown-extensions - 12.1
Ebuild name:

dev-python/pymdown-extensions-12.1

Description

Extensions for Python Markdown

Added to portage

2026-09-23

python-slugify - 9.1.1
Ebuild name:

dev-python/python-slugify-9.1.1

Description

A Python Slugify application that handles Unicode

Added to portage

2026-09-23

qtile - 0.37.1-r1
Ebuild name:

x11-wm/qtile-0.37.1-r1

Description

A full-featured, hackable tiling window manager written in Python

Added to portage

2026-09-23

rsync - 3.5.1
Ebuild name:

net-misc/rsync-3.5.1

Description

File transfer program to keep remote files into sync

Added to portage

2026-09-23

shader-slang - 2026.18.2
Ebuild name:

dev-util/shader-slang-2026.18.2

Description

Making it easier to work with shaders

Added to portage

2026-09-23

sqlglot - 30.19.0
Ebuild name:

dev-python/sqlglot-30.19.0

Description

An easily customizable SQL parser and transpiler

Added to portage

2026-09-23

swig - 4.5.1
Ebuild name:

dev-lang/swig-4.5.1

Description

Simplified Wrapper and Interface Generator

Added to portage

2026-09-23

tcpdump - 4.99.7
Ebuild name:

net-analyzer/tcpdump-4.99.7

Description

Tool for network monitoring and data acquisition

Added to portage

2026-09-23

thunderbird - 156.0.1
Ebuild name:

mail-client/thunderbird-156.0.1

Description

Thunderbird Mail Client

Added to portage

2026-09-23

thunderbird-bin - 156.0.1
Ebuild name:

mail-client/thunderbird-bin-156.0.1

Description

Thunderbird Mail Client

Added to portage

2026-09-23

thunderbird-l10n - 156.0.1
Ebuild name:

mail-client/thunderbird-l10n-156.0.1

Description

Thunderbird mail client's translation files

Added to portage

2026-09-23

tokenizers - 0.23.2
Ebuild name:

sci-ml/tokenizers-0.23.2

Description

Implementation of today's most used tokenizers

Added to portage

2026-09-23

transformers - 5.17.0
Ebuild name:

sci-ml/transformers-5.17.0

Description

State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow

Added to portage

2026-09-23

url-normalize - 3.0.1
Ebuild name:

dev-python/url-normalize-3.0.1

Description

URL normalization for Python

Added to portage

2026-09-23

uv - 0.12.18
Ebuild name:

dev-python/uv-0.12.18

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-09-23

uv-build - 0.12.18
Ebuild name:

dev-python/uv-build-0.12.18

Description

PEP517 uv build backend

Added to portage

2026-09-23

virtualenv - 21.11.0
Ebuild name:

dev-python/virtualenv-21.11.0

Description

Virtual Python Environment builder

Added to portage

2026-09-23

wordpress - 6.4.12
Ebuild name:

www-apps/wordpress-6.4.12

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-09-23

wordpress - 6.5.12
Ebuild name:

www-apps/wordpress-6.5.12

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-09-23

wordpress - 6.6.9
Ebuild name:

www-apps/wordpress-6.6.9

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-09-23

wordpress - 6.7.9
Ebuild name:

www-apps/wordpress-6.7.9

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-09-23

wordpress - 6.8.10
Ebuild name:

www-apps/wordpress-6.8.10

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-09-23

wordpress - 6.9.9
Ebuild name:

www-apps/wordpress-6.9.9

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-09-23

wordpress - 7.0.6
Ebuild name:

www-apps/wordpress-7.0.6

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-09-23

wordpress - 7.1.2
Ebuild name:

www-apps/wordpress-7.1.2

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-09-23

xfce4-whiskermenu-plugin - 2.10.1-r1
Ebuild name:

xfce-extra/xfce4-whiskermenu-plugin-2.10.1-r1

Description

Alternate application launcher for Xfce

Added to portage

2026-09-23

zabbix - 7.0.31
Ebuild name:

net-analyzer/zabbix-7.0.31

Description

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

Added to portage

2026-09-23

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