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:

82539

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
2025-12-20
alsa-lib - 1.2.15.1
Ebuild name:

media-libs/alsa-lib-1.2.15.1

Description

Advanced Linux Sound Architecture Library

Added to portage

2025-12-20

alsa-ucm-conf - 1.2.15.1
Ebuild name:

media-libs/alsa-ucm-conf-1.2.15.1

Description

ALSA ucm configuration files

Added to portage

2025-12-20

alsa-utils - 1.2.15.1
Ebuild name:

media-sound/alsa-utils-1.2.15.1

Description

Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)

Added to portage

2025-12-20

amatch - 0.6.0
Ebuild name:

dev-ruby/amatch-0.6.0

Description

Approximate Matching Extension for Ruby

Added to portage

2025-12-20

awscli - 1.44.4
Ebuild name:

app-admin/awscli-1.44.4

Description

Universal Command Line Environment for AWS

Added to portage

2025-12-20

bijiben - 40.2
Ebuild name:

app-misc/bijiben-40.2

Description

Note editor designed to remain simple to use

Added to portage

2025-12-20

bitwarden-desktop-bin - 2025.12.0
Ebuild name:

app-admin/bitwarden-desktop-bin-2025.12.0

Description

Bitwarden password manager desktop client

Added to portage

2025-12-20

boto3 - 1.42.14
Ebuild name:

dev-python/boto3-1.42.14

Description

The AWS SDK for Python

Added to portage

2025-12-20

botocore - 1.42.14
Ebuild name:

dev-python/botocore-1.42.14

Description

Low-level, data-driven core of boto 3

Added to portage

2025-12-20

contracts - 0.17.3
Ebuild name:

dev-ruby/contracts-0.17.3

Description

provides contracts for Ruby

Added to portage

2025-12-20

cryptsetup - 2.8.3
Ebuild name:

sys-fs/cryptsetup-2.8.3

Description

Tool to setup encrypted devices with dm-crypt

Added to portage

2025-12-20

dd-rescue - 1.99.22
Ebuild name:

sys-fs/dd-rescue-1.99.22

Description

Similar to dd but can copy from source with errors

Added to portage

2025-12-20

ena-driver - 2.16.1
Ebuild name:

net-misc/ena-driver-2.16.1

Description

Amazon EC2 Elastic Network Adapter (ENA) kernel driver

Added to portage

2025-12-20

flatbuffers - 25.12.19
Ebuild name:

dev-libs/flatbuffers-25.12.19

Description

Memory efficient serialization library

Added to portage

2025-12-20

flatbuffers - 25.12.19
Ebuild name:

dev-python/flatbuffers-25.12.19

Description

RFC 7049 - Concise Binary Object Representation

Added to portage

2025-12-20

furo - 2025.12.19
Ebuild name:

dev-python/furo-2025.12.19

Description

Clean customisable Sphinx documentation theme

Added to portage

2025-12-20

gdb - 17.1
Ebuild name:

dev-debug/gdb-17.1

Description

GNU debugger

Added to portage

2025-12-20

gnome-network-displays - 0.98.0
Ebuild name:

gnome-extra/gnome-network-displays-0.98.0

Description

Stream the desktop to Wi-Fi Display capable devices

Added to portage

2025-12-20

gnome-nibbles - 4.4.2
Ebuild name:

games-arcade/gnome-nibbles-4.4.2

Description

Nibbles clone for GNOME

Added to portage

2025-12-20

hcloud - 2.13.0
Ebuild name:

dev-python/hcloud-2.13.0

Description

Official Hetzner Cloud python library

Added to portage

2025-12-20

igt-gpu-tools - 2.3
Ebuild name:

x11-apps/igt-gpu-tools-2.3

Description

Intel GPU userland tools

Added to portage

2025-12-20

intervaltree - 3.2.0
Ebuild name:

dev-python/intervaltree-3.2.0

Description

Editable interval tree data structure for Python 2 and 3

Added to portage

2025-12-20

ispc - 1.29.1
Ebuild name:

dev-lang/ispc-1.29.1

Description

Intel SPMD Program Compiler

Added to portage

2025-12-20

libfilezilla - 0.53.1
Ebuild name:

dev-libs/libfilezilla-0.53.1

Description

C++ library offering some basic functionality for platform-independent

Added to portage

2025-12-20

meld - 3.22.3
Ebuild name:

dev-util/meld-3.22.3

Description

A graphical diff and merge tool

Added to portage

2025-12-20

meson - 1.10.0
Ebuild name:

dev-build/meson-1.10.0

Description

Open source build system

Added to portage

2025-12-20

minitest - 6.0.0
Ebuild name:

dev-ruby/minitest-6.0.0

Description

minitest/unit is a small and fast replacement for ruby's huge and slow test

Added to portage

2025-12-20

minitest-global_expectations - 1.0.2
Ebuild name:

dev-ruby/minitest-global_expectations-1.0.2

Description

Support minitest expectation methods for all objects

Added to portage

2025-12-20

minitest-hooks - 1.5.3
Ebuild name:

dev-ruby/minitest-hooks-1.5.3

Description

Adds around and before_all/after_all/around_all hooks for Minitest

Added to portage

2025-12-20

nbclient - 0.10.3
Ebuild name:

dev-python/nbclient-0.10.3

Description

A client library for executing Jupyter notebooks

Added to portage

2025-12-20

nushell - 0.109.1
Ebuild name:

app-shells/nushell-0.109.1

Description

A new type of shell, written in Rust

Added to portage

2025-12-20

oslo-log - 8.0.0
Ebuild name:

dev-python/oslo-log-8.0.0

Description

OpenStack logging config library, configuration for all openstack project

Added to portage

2025-12-20

pandas - 3.0.0_rc1
Ebuild name:

dev-python/pandas-3.0.0_rc1

Description

Powerful data structures for data analysis and statistics

Added to portage

2025-12-20

pandora_box - 0.17.0
Ebuild name:

sys-apps/pandora_box-0.17.0

Description

Syd's log inspector & profile writer

Added to portage

2025-12-20

picard - 3.0_pre20251219
Ebuild name:

media-sound/picard-3.0_pre20251219

Description

Cross-platform music tagger

Added to portage

2025-12-20

quickcrypt - 0.9.2b-r1
Ebuild name:

app-crypt/quickcrypt-0.9.2b-r1

Description

gives you a quick MD5 Password from any string

Added to portage

2025-12-20

rdoc - 7.0.1
Ebuild name:

dev-ruby/rdoc-7.0.1

Description

An extended version of the RDoc library from Ruby 1.8

Added to portage

2025-12-20

rss - 0.3.2
Ebuild name:

dev-ruby/rss-0.3.2

Description

Family of libraries that support various formats of XML feeds

Added to portage

2025-12-20

s390-tools - 2.40.0-r1
Ebuild name:

sys-apps/s390-tools-2.40.0-r1

Description

User space utilities for the zSeries (s390) Linux kernel and device d

Added to portage

2025-12-20

scribus - 1.7.1
Ebuild name:

app-office/scribus-1.7.1

Description

Desktop publishing (DTP) and layout program

Added to portage

2025-12-20

sof-firmware - 2025.12
Ebuild name:

sys-firmware/sof-firmware-2025.12

Description

Sound Open Firmware (SOF) binary files

Added to portage

2025-12-20

sphinx - 9.1.0_rc1
Ebuild name:

dev-python/sphinx-9.1.0_rc1

Description

Python documentation generator

Added to portage

2025-12-20

sqlparse - 0.5.5
Ebuild name:

dev-python/sqlparse-0.5.5

Description

A non-validating SQL parser module for Python

Added to portage

2025-12-20

syd - 3.47.0
Ebuild name:

sys-apps/syd-3.47.0

Description

seccomp and landlock based application sandbox with support for namespaces

Added to portage

2025-12-20

testtools - 2.8.2
Ebuild name:

dev-python/testtools-2.8.2

Description

Extensions to the Python standard library unit testing framework

Added to portage

2025-12-20

typer - 0.20.1
Ebuild name:

dev-python/typer-0.20.1

Description

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

Added to portage

2025-12-20

umockdev - 0.19.4
Ebuild name:

dev-util/umockdev-0.19.4

Description

Mock hardware devices for creating unit tests

Added to portage

2025-12-20

vlc - 3.0.22
Ebuild name:

media-video/vlc-3.0.22

Description

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

Added to portage

2025-12-20

xorg-proto - 2025.1
Ebuild name:

x11-base/xorg-proto-2025.1

Description

X.Org combined protocol headers

Added to portage

2025-12-20

zint - 2.16.0
Ebuild name:

media-libs/zint-2.16.0

Description

Barcode encoding library supporting over 50 symbologies

Added to portage

2025-12-20

2025-12-19
awscli - 1.44.3
Ebuild name:

app-admin/awscli-1.44.3

Description

Universal Command Line Environment for AWS

Added to portage

2025-12-19

bacula - 15.0.3-r3
Ebuild name:

app-backup/bacula-15.0.3-r3

Description

Featureful client/server network backup suite

Added to portage

2025-12-19

boto3 - 1.42.13
Ebuild name:

dev-python/boto3-1.42.13

Description

The AWS SDK for Python

Added to portage

2025-12-19

botocore - 1.42.13
Ebuild name:

dev-python/botocore-1.42.13

Description

Low-level, data-driven core of boto 3

Added to portage

2025-12-19

cfn-lint - 1.43.1
Ebuild name:

dev-python/cfn-lint-1.43.1

Description

CloudFormation Linter

Added to portage

2025-12-19

cliff - 4.13.1
Ebuild name:

dev-python/cliff-4.13.1

Description

Command Line Interface Formulation Framework

Added to portage

2025-12-19

debug - 1.11.1
Ebuild name:

dev-ruby/debug-1.11.1

Description

Debugging functionality for Ruby

Added to portage

2025-12-19

deno-bin - 2.6.2
Ebuild name:

dev-lang/deno-bin-2.6.2

Description

Modern runtime for JavaScript and TypeScript

Added to portage

2025-12-19

dist-kernel - 6.12.63
Ebuild name:

virtual/dist-kernel-6.12.63

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-12-19

dist-kernel - 6.17.13
Ebuild name:

virtual/dist-kernel-6.17.13

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-12-19

dist-kernel - 6.18.2
Ebuild name:

virtual/dist-kernel-6.18.2

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-12-19

docutils - 0.22.4
Ebuild name:

dev-python/docutils-0.22.4

Description

Python Documentation Utilities (reference reStructuredText impl.)

Added to portage

2025-12-19

dropbear - 2025.89
Ebuild name:

net-misc/dropbear-2025.89

Description

Small SSH 2 client/server designed for small memory environments

Added to portage

2025-12-19

e3-core - 22.10.0
Ebuild name:

dev-ada/e3-core-22.10.0

Description

Ease the development of portable automated build systems

Added to portage

2025-12-19

e3-core - 22.8.0
Ebuild name:

dev-ada/e3-core-22.8.0

Description

Ease the development of portable automated build systems

Added to portage

2025-12-19

egl-gbm - 1.1.3_pre20251125
Ebuild name:

gui-libs/egl-gbm-1.1.3_pre20251125

Description

NVIDIA GBM EGL external platform library

Added to portage

2025-12-19

fastfetch - 2.56.1
Ebuild name:

app-misc/fastfetch-2.56.1

Description

Fast neofetch-like system information tool

Added to portage

2025-12-19

firefox - 146.0.1
Ebuild name:

www-client/firefox-146.0.1

Description

Firefox Web Browser

Added to portage

2025-12-19

firefox-bin - 146.0.1
Ebuild name:

www-client/firefox-bin-146.0.1

Description

Firefox Web Browser

Added to portage

2025-12-19

fldigi - 4.2.11
Ebuild name:

media-radio/fldigi-4.2.11

Description

Sound card based multimode software modem for Amateur Radio use

Added to portage

2025-12-19

flrig - 2.0.10
Ebuild name:

media-radio/flrig-2.0.10

Description

Transceiver control program for Amateur Radio use

Added to portage

2025-12-19

gentoo-kernel - 6.12.63
Ebuild name:

sys-kernel/gentoo-kernel-6.12.63

Description

Linux kernel built with Gentoo patches

Added to portage

2025-12-19

gentoo-kernel - 6.17.13
Ebuild name:

sys-kernel/gentoo-kernel-6.17.13

Description

Linux kernel built with Gentoo patches

Added to portage

2025-12-19

gentoo-kernel - 6.18.2
Ebuild name:

sys-kernel/gentoo-kernel-6.18.2

Description

Linux kernel built with Gentoo patches

Added to portage

2025-12-19

gentoo-kernel-bin - 6.12.63
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.63

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-12-19

gentoo-kernel-bin - 6.17.13
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.17.13

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-12-19

gentoo-kernel-bin - 6.18.2
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.2

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-12-19

gentoo-sources - 6.12.63
Ebuild name:

sys-kernel/gentoo-sources-6.12.63

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-12-19

gentoo-sources - 6.17.13
Ebuild name:

sys-kernel/gentoo-sources-6.17.13

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-12-19

gentoo-sources - 6.18.2
Ebuild name:

sys-kernel/gentoo-sources-6.18.2

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2025-12-19

gromacs - 2026_rc
Ebuild name:

sci-chemistry/gromacs-2026_rc

Description

The ultimate molecular dynamics simulation package

Added to portage

2025-12-19

haproxy - 2.8.17
Ebuild name:

net-proxy/haproxy-2.8.17

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2025-12-19

haproxy - 3.3.1
Ebuild name:

net-proxy/haproxy-3.3.1

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2025-12-19

linode-cli - 5.65.0
Ebuild name:

app-admin/linode-cli-5.65.0

Description

Official command-line interface for interacting with the Linode API

Added to portage

2025-12-19

maxitest - 6.1.0
Ebuild name:

dev-ruby/maxitest-6.1.0

Description

Minitest + all the features you always wanted

Added to portage

2025-12-19

mkdocs-material - 9.7.1
Ebuild name:

dev-python/mkdocs-material-9.7.1

Description

A Material Design theme for MkDocs

Added to portage

2025-12-19

nvidia-drivers - 580.94.13
Ebuild name:

x11-drivers/nvidia-drivers-580.94.13

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2025-12-19

nvidia-drivers - 590.48.01
Ebuild name:

x11-drivers/nvidia-drivers-590.48.01

Description

NVIDIA Accelerated Graphics Driver

Added to portage

2025-12-19

phonenumbers - 9.0.21
Ebuild name:

dev-python/phonenumbers-9.0.21

Description

Python port of Google's libphonenumber

Added to portage

2025-12-19

pixi - 0.62.1
Ebuild name:

dev-util/pixi-0.62.1

Description

A package management and workflow tool

Added to portage

2025-12-19

prism - 1.7.0
Ebuild name:

dev-ruby/prism-1.7.0

Description

Prism Ruby parser

Added to portage

2025-12-19

pytest-reserial - 0.6.0
Ebuild name:

dev-python/pytest-reserial-0.6.0

Description

Pytest plugin for recording and replaying serial port traffic duri

Added to portage

2025-12-19

qmidiarp - 0.7.1_p20251217
Ebuild name:

media-sound/qmidiarp-0.7.1_p20251217

Description

Arpeggiator, sequencer and MIDI LFO for ALSA

Added to portage

2025-12-19

ruff - 0.14.10
Ebuild name:

dev-util/ruff-0.14.10

Description

An extremely fast Python linter, written in Rust

Added to portage

2025-12-19

scikit-image - 0.26.0_rc2
Ebuild name:

dev-python/scikit-image-0.26.0_rc2

Description

Image processing routines for SciPy

Added to portage

2025-12-19

soupsieve - 2.8.1
Ebuild name:

dev-python/soupsieve-2.8.1

Description

A modern CSS selector implementation for BeautifulSoup

Added to portage

2025-12-19

tins - 1.49.0
Ebuild name:

dev-ruby/tins-1.49.0

Description

All the stuff that isn't good enough for a real library

Added to portage

2025-12-19

translate-toolkit - 3.17.5
Ebuild name:

dev-python/translate-toolkit-3.17.5

Description

Toolkit to convert between many translation formats

Added to portage

2025-12-19

vanilla-kernel - 6.12.63
Ebuild name:

sys-kernel/vanilla-kernel-6.12.63

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-12-19

vanilla-kernel - 6.17.13
Ebuild name:

sys-kernel/vanilla-kernel-6.17.13

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-12-19

vanilla-kernel - 6.18.2
Ebuild name:

sys-kernel/vanilla-kernel-6.18.2

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-12-19

vanilla-sources - 6.12.63
Ebuild name:

sys-kernel/vanilla-sources-6.12.63

Description

Full sources for the Linux kernel

Added to portage

2025-12-19

vanilla-sources - 6.17.13
Ebuild name:

sys-kernel/vanilla-sources-6.17.13

Description

Full sources for the Linux kernel

Added to portage

2025-12-19

vanilla-sources - 6.18.2
Ebuild name:

sys-kernel/vanilla-sources-6.18.2

Description

Full sources for the Linux kernel

Added to portage

2025-12-19

virtualbox - 7.2.4-r1
Ebuild name:

app-emulation/virtualbox-7.2.4-r1

Description

Family of powerful x86 virtualization products for enterprise and

Added to portage

2025-12-19

voluptuous - 0.16.0
Ebuild name:

dev-python/voluptuous-0.16.0

Description

A Python data validation library

Added to portage

2025-12-19

whenever - 0.9.4
Ebuild name:

dev-python/whenever-0.9.4

Description

Modern datetime library for Python

Added to portage

2025-12-19

xwaylandvideobridge - 0.4.0_p20250215
Ebuild name:

gui-apps/xwaylandvideobridge-0.4.0_p20250215

Description

Screenshare Wayland windows to XWayland apps

Added to portage

2025-12-19

zfs - 2.4.0
Ebuild name:

sys-fs/zfs-2.4.0

Description

Linux kernel module and userland utilities for ZFS

Added to portage

2025-12-19

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