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:

87212

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-07-27
cares-tools - 0.4
Ebuild name:

net-dns/cares-tools-0.4

Description

c-ares tools host, nslookup

Added to portage

2026-07-27

gamescope - 3.16.25-r1
Ebuild name:

gui-wm/gamescope-3.16.25-r1

Description

Efficient micro-compositor for running games

Added to portage

2026-07-27

libxmp - 4.7.2
Ebuild name:

media-libs/libxmp-4.7.2

Description

Library that renders module files to PCM data

Added to portage

2026-07-27

2026-07-26
acl - 2.4.0-r1
Ebuild name:

sys-apps/acl-2.4.0-r1

Description

Access control list utilities, libraries, and headers

Added to portage

2026-07-26

action_text-trix - 2.1.16-r1
Ebuild name:

dev-ruby/action_text-trix-2.1.16-r1

Description

A rich text editor for everyday writing

Added to portage

2026-07-26

actioncable - 8.0.4-r1
Ebuild name:

dev-ruby/actioncable-8.0.4-r1

Description

Integrated WebSockets for Rails

Added to portage

2026-07-26

actioncable - 8.1.2-r1
Ebuild name:

dev-ruby/actioncable-8.1.2-r1

Description

Integrated WebSockets for Rails

Added to portage

2026-07-26

actionmailbox - 8.0.4-r1
Ebuild name:

dev-ruby/actionmailbox-8.0.4-r1

Description

Framework for designing email-service layers

Added to portage

2026-07-26

actionmailbox - 8.1.2-r1
Ebuild name:

dev-ruby/actionmailbox-8.1.2-r1

Description

Framework for designing email-service layers

Added to portage

2026-07-26

actionmailer - 8.0.4-r1
Ebuild name:

dev-ruby/actionmailer-8.0.4-r1

Description

Framework for designing email-service layers

Added to portage

2026-07-26

actionmailer - 8.1.2-r1
Ebuild name:

dev-ruby/actionmailer-8.1.2-r1

Description

Framework for designing email-service layers

Added to portage

2026-07-26

actionpack - 8.0.4-r1
Ebuild name:

dev-ruby/actionpack-8.0.4-r1

Description

Eases web-request routing, handling, and response

Added to portage

2026-07-26

actionpack - 8.1.2-r1
Ebuild name:

dev-ruby/actionpack-8.1.2-r1

Description

Eases web-request routing, handling, and response

Added to portage

2026-07-26

actiontext - 8.0.4-r1
Ebuild name:

dev-ruby/actiontext-8.0.4-r1

Description

Edit and display rich text in Rails applications

Added to portage

2026-07-26

actiontext - 8.1.2-r1
Ebuild name:

dev-ruby/actiontext-8.1.2-r1

Description

Edit and display rich text in Rails applications

Added to portage

2026-07-26

actionview - 8.0.4-r1
Ebuild name:

dev-ruby/actionview-8.0.4-r1

Description

Simple, battle-tested conventions and helpers for building web pages

Added to portage

2026-07-26

actionview - 8.1.2-r1
Ebuild name:

dev-ruby/actionview-8.1.2-r1

Description

Simple, battle-tested conventions and helpers for building web pages

Added to portage

2026-07-26

activejob - 8.0.4-r1
Ebuild name:

dev-ruby/activejob-8.0.4-r1

Description

Job framework with pluggable queues

Added to portage

2026-07-26

activejob - 8.1.2-r1
Ebuild name:

dev-ruby/activejob-8.1.2-r1

Description

Job framework with pluggable queues

Added to portage

2026-07-26

activemodel - 8.0.4-r1
Ebuild name:

dev-ruby/activemodel-8.0.4-r1

Description

Toolkit for building modeling frameworks like Active Record and Activ

Added to portage

2026-07-26

activemodel - 8.1.2-r1
Ebuild name:

dev-ruby/activemodel-8.1.2-r1

Description

Toolkit for building modeling frameworks like Active Record and Activ

Added to portage

2026-07-26

activerecord - 8.0.4-r1
Ebuild name:

dev-ruby/activerecord-8.0.4-r1

Description

Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM

Added to portage

2026-07-26

activerecord - 8.1.2-r1
Ebuild name:

dev-ruby/activerecord-8.1.2-r1

Description

Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM

Added to portage

2026-07-26

activestorage - 8.0.4-r1
Ebuild name:

dev-ruby/activestorage-8.0.4-r1

Description

Attach cloud and local files in Rails applications

Added to portage

2026-07-26

activestorage - 8.1.2-r1
Ebuild name:

dev-ruby/activestorage-8.1.2-r1

Description

Attach cloud and local files in Rails applications

Added to portage

2026-07-26

bitwarden-cli-bin - 2026.7.0
Ebuild name:

app-admin/bitwarden-cli-bin-2026.7.0

Description

CLI client for Bitwarden compatible servers

Added to portage

2026-07-26

bogus - 0.1.7-r1
Ebuild name:

dev-ruby/bogus-0.1.7-r1

Description

Ensuring that the things you stub or mock actually exist

Added to portage

2026-07-26

carbon-c-relay - 3.9
Ebuild name:

app-misc/carbon-c-relay-3.9

Description

Enhanced C version of Carbon relay, aggregator and rewriter

Added to portage

2026-07-26

dalli - 4.3.3
Ebuild name:

dev-ruby/dalli-4.3.3

Description

A high performance pure Ruby client for accessing memcached servers

Added to portage

2026-07-26

dalli - 5.0.5
Ebuild name:

dev-ruby/dalli-5.0.5

Description

A high performance pure Ruby client for accessing memcached servers

Added to portage

2026-07-26

dconf - 0.49.0
Ebuild name:

gnome-base/dconf-0.49.0

Description

Simple low-level configuration system

Added to portage

2026-07-26

diff-lcs - 2.0.0
Ebuild name:

dev-ruby/diff-lcs-2.0.0

Description

Use the McIlroy-Hunt LCS algorithm to compute differences

Added to portage

2026-07-26

discord - 1.0.150
Ebuild name:

net-im/discord-1.0.150

Description

All-in-one voice and text chat for gamers

Added to portage

2026-07-26

dolphin - 2606-r1
Ebuild name:

games-emulation/dolphin-2606-r1

Description

Gamecube and Wii game emulator

Added to portage

2026-07-26

erb - 6.0.6
Ebuild name:

dev-ruby/erb-6.0.6

Description

An easy to use but powerful templating system for Ruby

Added to portage

2026-07-26

flatpak-builder - 1.4.10
Ebuild name:

dev-util/flatpak-builder-1.4.10

Description

Tool to build flatpaks from source

Added to portage

2026-07-26

gjs - 1.88.1
Ebuild name:

dev-libs/gjs-1.88.1

Description

Javascript bindings for GNOME

Added to portage

2026-07-26

glibc - 2.44
Ebuild name:

sys-libs/glibc-2.44

Description

GNU libc C library

Added to portage

2026-07-26

globalid - 1.4.0
Ebuild name:

dev-ruby/globalid-1.4.0

Description

Reference models by URI

Added to portage

2026-07-26

importmap-rails - 2.2.3-r1
Ebuild name:

dev-ruby/importmap-rails-2.2.3-r1

Description

Use ESM with importmap to manage JavaScript in Rails

Added to portage

2026-07-26

io-endpoint - 0.17.1-r1
Ebuild name:

dev-ruby/io-endpoint-0.17.1-r1

Description

Provides a separation of concerns interface for IO endpoints

Added to portage

2026-07-26

jackett-bin - 0.24.1367
Ebuild name:

www-apps/jackett-bin-0.24.1367

Description

API Support for your favorite torrent trackers

Added to portage

2026-07-26

kdiff3 - 1.12.6
Ebuild name:

kde-misc/kdiff3-1.12.6

Description

Frontend to diff3 based on KDE Frameworks

Added to portage

2026-07-26

kid3 - 3.10.1
Ebuild name:

media-sound/kid3-3.10.1

Description

Simple tag editor based on Qt

Added to portage

2026-07-26

libdisplay-info - 0.4.0
Ebuild name:

media-libs/libdisplay-info-0.4.0

Description

EDID and DisplayID library

Added to portage

2026-07-26

libqalculate - 5.12.0
Ebuild name:

sci-libs/libqalculate-5.12.0

Description

A modern multi-purpose calculator library

Added to portage

2026-07-26

librsvg - 2.62.3
Ebuild name:

gnome-base/librsvg-2.62.3

Description

Scalable Vector Graphics (SVG) rendering library

Added to portage

2026-07-26

liquidctl - 1.16.0
Ebuild name:

app-misc/liquidctl-1.16.0

Description

Cross-platform tool and drivers for liquid coolers and other devices

Added to portage

2026-07-26

live - 2026.07.23
Ebuild name:

media-plugins/live-2026.07.23

Description

Libraries for standards-based RTP/RTCP/RTSP multimedia streaming

Added to portage

2026-07-26

localhost - 1.7.0-r1
Ebuild name:

dev-ruby/localhost-1.7.0-r1

Description

Manage a local CA for self-signed localhost development servers

Added to portage

2026-07-26

mixlib-shellout - 3.4.13
Ebuild name:

dev-ruby/mixlib-shellout-3.4.13

Description

Run external commands on Unix or Windows

Added to portage

2026-07-26

mocha - 2.8.2-r1
Ebuild name:

dev-ruby/mocha-2.8.2-r1

Description

Mocking and stubbing using a syntax like that of JMock and SchMock

Added to portage

2026-07-26

mqtt - 0.7.0
Ebuild name:

dev-ruby/mqtt-0.7.0

Description

Pure Ruby gem that implements the MQTT protocol

Added to portage

2026-07-26

muon - 0.6.0
Ebuild name:

dev-build/muon-0.6.0

Description

A meson-compatible build system

Added to portage

2026-07-26

net-imap - 0.4.25
Ebuild name:

dev-ruby/net-imap-0.4.25

Description

Ruby client api for Internet Message Access Protocol

Added to portage

2026-07-26

net-imap - 0.5.15
Ebuild name:

dev-ruby/net-imap-0.5.15

Description

Ruby client api for Internet Message Access Protocol

Added to portage

2026-07-26

net-imap - 0.6.6
Ebuild name:

dev-ruby/net-imap-0.6.6

Description

Ruby client api for Internet Message Access Protocol

Added to portage

2026-07-26

ollama - 0.32.4
Ebuild name:

sci-ml/ollama-0.32.4

Description

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

Added to portage

2026-07-26

openjdk - 11.0.32_p9
Ebuild name:

dev-java/openjdk-11.0.32_p9

Description

Open source implementation of the Java programming language

Added to portage

2026-07-26

openjdk - 17.0.20_p8
Ebuild name:

dev-java/openjdk-17.0.20_p8

Description

Open source implementation of the Java programming language

Added to portage

2026-07-26

openjdk - 21.0.12_p8
Ebuild name:

dev-java/openjdk-21.0.12_p8

Description

Open source implementation of the Java programming language

Added to portage

2026-07-26

openjdk - 25.0.4_p7
Ebuild name:

dev-java/openjdk-25.0.4_p7

Description

Open source implementation of the Java programming language

Added to portage

2026-07-26

openjdk - 27_beta31
Ebuild name:

dev-java/openjdk-27_beta31

Description

Open source implementation of the Java programming language

Added to portage

2026-07-26

openjdk - 28_alpha7
Ebuild name:

dev-java/openjdk-28_alpha7

Description

Open source implementation of the Java programming language

Added to portage

2026-07-26

openjdk - 8.502_p07
Ebuild name:

dev-java/openjdk-8.502_p07

Description

Open source implementation of the Java programming language

Added to portage

2026-07-26

openpgp-keys-alisarctl - 20200302-r1
Ebuild name:

sec-keys/openpgp-keys-alisarctl-20200302-r1

Description

OpenPGP keys used by Ali Abdallah

Added to portage

2026-07-26

propshaft - 1.3.1-r1
Ebuild name:

dev-ruby/propshaft-1.3.1-r1

Description

Deliver assets for Rails

Added to portage

2026-07-26

public_suffix - 7.0.5
Ebuild name:

dev-ruby/public_suffix-7.0.5

Description

Parse and decompose a domain name into top level domain, domain and su

Added to portage

2026-07-26

puma - 7.2.1
Ebuild name:

www-servers/puma-7.2.1

Description

a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rac

Added to portage

2026-07-26

puppet-lint - 5.1.1
Ebuild name:

app-admin/puppet-lint-5.1.1

Description

A linter for puppet DSL

Added to portage

2026-07-26

qalculate-gtk - 5.12.0
Ebuild name:

sci-calculators/qalculate-gtk-5.12.0

Description

Modern multi-purpose calculator

Added to portage

2026-07-26

qalculate-qt - 5.12.0
Ebuild name:

sci-calculators/qalculate-qt-5.12.0

Description

Qt-based UI for libqalculate

Added to portage

2026-07-26

rails - 8.0.4-r1
Ebuild name:

dev-ruby/rails-8.0.4-r1

Description

ruby on rails is a web-application and persistence framework

Added to portage

2026-07-26

rails - 8.1.2-r1
Ebuild name:

dev-ruby/rails-8.1.2-r1

Description

ruby on rails is a web-application and persistence framework

Added to portage

2026-07-26

railties - 8.0.4-r1
Ebuild name:

dev-ruby/railties-8.0.4-r1

Description

Tools for creating, working with, and running Rails applications

Added to portage

2026-07-26

railties - 8.1.2-r1
Ebuild name:

dev-ruby/railties-8.1.2-r1

Description

Tools for creating, working with, and running Rails applications

Added to portage

2026-07-26

ruby - 3.3.12
Ebuild name:

dev-lang/ruby-3.3.12

Description

An object-oriented scripting language

Added to portage

2026-07-26

ruby - 3.4.10
Ebuild name:

dev-lang/ruby-3.4.10

Description

An object-oriented scripting language

Added to portage

2026-07-26

ruby - 4.0.6
Ebuild name:

dev-lang/ruby-4.0.6

Description

An object-oriented scripting language

Added to portage

2026-07-26

seafile - 9.0.20
Ebuild name:

net-misc/seafile-9.0.20

Description

File syncing and sharing software with file encryption and group sharing

Added to portage

2026-07-26

seafile-client - 9.0.20
Ebuild name:

net-misc/seafile-client-9.0.20

Description

Seafile desktop client

Added to portage

2026-07-26

sh - 2.4.0
Ebuild name:

dev-python/sh-2.4.0

Description

Python subprocess interface

Added to portage

2026-07-26

sinatra - 4.2.1-r1
Ebuild name:

dev-ruby/sinatra-4.2.1-r1

Description

A DSL for quickly creating web applications in Ruby with minimal effort

Added to portage

2026-07-26

sprockets-rails - 3.5.2-r1
Ebuild name:

dev-ruby/sprockets-rails-3.5.2-r1

Description

Sprockets implementation for Rails 4.x (and beyond) Asset Pipelin

Added to portage

2026-07-26

strawberry - 1.2.25
Ebuild name:

media-sound/strawberry-1.2.25

Description

Modern music player and library organizer based on Clementine and Qt

Added to portage

2026-07-26

sus-fixtures-async - 0.2.0-r2
Ebuild name:

dev-ruby/sus-fixtures-async-0.2.0-r2

Description

Convenient fixture for testing async components in a reactor

Added to portage

2026-07-26

tilt - 2.8.0
Ebuild name:

dev-ruby/tilt-2.8.0

Description

Thin interface over template engines to make their usage as generic as possible

Added to portage

2026-07-26

unidiff - 1.0.0
Ebuild name:

dev-python/unidiff-1.0.0

Description

Unified diff parsing/metadata extraction library

Added to portage

2026-07-26

vaultwarden - 1.37.0
Ebuild name:

app-admin/vaultwarden-1.37.0

Description

Unofficial Bitwarden compatible password manager

Added to portage

2026-07-26

vaultwarden-web - 2026.6.4
Ebuild name:

www-apps/vaultwarden-web-2026.6.4

Description

Prebuilt web vault frontend for Vaultwarden

Added to portage

2026-07-26

yard - 0.9.45
Ebuild name:

dev-ruby/yard-0.9.45

Description

Documentation generation tool for the Ruby programming language

Added to portage

2026-07-26

zeitwerk - 2.8.2
Ebuild name:

dev-ruby/zeitwerk-2.8.2

Description

Efficient and thread-safe code loader for Ruby

Added to portage

2026-07-26

zlib - 3.2.3
Ebuild name:

dev-ruby/zlib-3.2.3

Description

Ruby interface for the zlib compression/decompression library

Added to portage

2026-07-26

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