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:

59355

userrating:

average rating: 1.5 (4 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
2021-12-08
Faker - 10.0.0
Ebuild name:

dev-python/Faker-10.0.0

Description

A Python package that generates fake data for you

Added to portage

2021-12-08

charinfo_width - 1.1.0
Ebuild name:

dev-ml/charinfo_width-1.1.0

Description

Determine column width for a character

Added to portage

2021-12-08

cmake - 3.22.1
Ebuild name:

dev-util/cmake-3.22.1

Description

Cross platform Make

Added to portage

2021-12-08

django - 4.0
Ebuild name:

dev-python/django-4.0

Description

High-level Python web framework

Added to portage

2021-12-08

exo - 4.16.3
Ebuild name:

xfce-base/exo-4.16.3

Description

Extensions, widgets and framework library with session support for Xfce

Added to portage

2021-12-08

geoip - 1.6.12-r1
Ebuild name:

dev-libs/geoip-1.6.12-r1

Description

GeoIP Legacy C API

Added to portage

2021-12-08

google-api-python-client - 2.33.0
Ebuild name:

dev-python/google-api-python-client-2.33.0

Description

Google API Client for Python

Added to portage

2021-12-08

icewm - 2.9.2
Ebuild name:

x11-wm/icewm-2.9.2

Description

Ice Window Manager with Themes

Added to portage

2021-12-08

lambda-term - 3.1.0
Ebuild name:

dev-ml/lambda-term-3.1.0

Description

Terminal manipulation library for OCaml

Added to portage

2021-12-08

liborigin - 3.0.1_p20210828
Ebuild name:

sci-libs/liborigin-3.0.1_p20210828

Description

Library for reading OriginLab OPJ project files

Added to portage

2021-12-08

libxmlb - 0.3.6
Ebuild name:

dev-libs/libxmlb-0.3.6

Description

Library to help create and query binary XML blobs

Added to portage

2021-12-08

luv - 0.5.10-r1
Ebuild name:

dev-ml/luv-0.5.10-r1

Description

Binding to libuv cross-platform asynchronous I/O

Added to portage

2021-12-08

lwt - 5.4.2-r1
Ebuild name:

dev-ml/lwt-5.4.2-r1

Description

Cooperative light-weight thread library for OCaml

Added to portage

2021-12-08

lwt_log - 1.1.1
Ebuild name:

dev-ml/lwt_log-1.1.1

Description

Cooperative light-weight thread library for OCaml

Added to portage

2021-12-08

memory_profiler - 0.59
Ebuild name:

dev-python/memory_profiler-0.59

Description

A module for monitoring memory usage of a python program

Added to portage

2021-12-08

mew - 0.1.0
Ebuild name:

dev-ml/mew-0.1.0

Description

General modal editing engine generator

Added to portage

2021-12-08

mew_vi - 0.5.0
Ebuild name:

dev-ml/mew_vi-0.5.0

Description

A vi-like modal editing engine generator

Added to portage

2021-12-08

myspell-tn - 20060316
Ebuild name:

app-dicts/myspell-tn-20060316

Description

Setswana dictionaries for myspell/hunspell

Added to portage

2021-12-08

phonenumbers - 8.12.39
Ebuild name:

dev-python/phonenumbers-8.12.39

Description

Python port of Google's libphonenumber

Added to portage

2021-12-08

pytest-django - 4.5.2
Ebuild name:

dev-python/pytest-django-4.5.2

Description

A Django plugin for py.test

Added to portage

2021-12-08

pytest-testinfra - 6.5.0
Ebuild name:

dev-python/pytest-testinfra-6.5.0

Description

Write unit tests in Python to test actual state of your servers

Added to portage

2021-12-08

qcheck - 0.18
Ebuild name:

dev-ml/qcheck-0.18

Description

QuickCheck inspired property-based testing for OCaml

Added to portage

2021-12-08

qemu - 6.1.0-r2
Ebuild name:

app-emulation/qemu-6.1.0-r2

Description

QEMU + Kernel-based Virtual Machine userland tools

Added to portage

2021-12-08

qtest - 2.11.2
Ebuild name:

dev-ml/qtest-2.11.2

Description

Inline (Unit) Tests for OCaml

Added to portage

2021-12-08

qwt - 5.2.3_p20210828
Ebuild name:

x11-libs/qwt-5.2.3_p20210828

Description

2D plotting library for Qt5

Added to portage

2021-12-08

qwt - 6.2.0
Ebuild name:

x11-libs/qwt-6.2.0

Description

2D plotting library for Qt5

Added to portage

2021-12-08

qwtplot3d - 0.2_p20210828
Ebuild name:

x11-libs/qwtplot3d-0.2_p20210828

Description

3D plotting library for Qt5

Added to portage

2021-12-08

reason - 3.7.0
Ebuild name:

dev-ml/reason-3.7.0

Description

Simple, fast & type safe language that leverages JavaScript and OCaml

Added to portage

2021-12-08

rq - 1.10.1
Ebuild name:

dev-python/rq-1.10.1

Description

simple, lightweight library for creating and processing background jobs

Added to portage

2021-12-08

rust - 1.57.0
Ebuild name:

virtual/rust-1.57.0

Description

Virtual for Rust language compiler

Added to portage

2021-12-08

scidavis - 2.4.0_p20211117
Ebuild name:

sci-visualization/scidavis-2.4.0_p20211117

Description

Application for Scientific Data Analysis and Visualizati

Added to portage

2021-12-08

skypeforlinux - 8.79.0.95
Ebuild name:

net-im/skypeforlinux-8.79.0.95

Description

Instant messaging client, with support for audio and video

Added to portage

2021-12-08

sqlalchemy - 1.4.27-r3
Ebuild name:

dev-python/sqlalchemy-1.4.27-r3

Description

Python SQL toolkit and Object Relational Mapper

Added to portage

2021-12-08

terminaltables - 3.1.10
Ebuild name:

dev-python/terminaltables-3.1.10

Description

Generate simple tables in terminals from a nested list of strings

Added to portage

2021-12-08

thunderbird - 91.4.0
Ebuild name:

mail-client/thunderbird-91.4.0

Description

Thunderbird Mail Client

Added to portage

2021-12-08

thunderbird-bin - 91.4.0
Ebuild name:

mail-client/thunderbird-bin-91.4.0

Description

Thunderbird Mail Client

Added to portage

2021-12-08

tigervnc - 1.12.0-r1
Ebuild name:

net-misc/tigervnc-1.12.0-r1

Description

Remote desktop viewer display system

Added to portage

2021-12-08

trie - 1.0.0
Ebuild name:

dev-ml/trie-1.0.0

Description

Strict impure trie tree

Added to portage

2021-12-08

utop - 2.8.0
Ebuild name:

dev-ml/utop-2.8.0

Description

Universal toplevel for OCaml

Added to portage

2021-12-08

websocket-client - 1.2.3
Ebuild name:

dev-python/websocket-client-1.2.3

Description

WebSocket client for python with hybi13 support

Added to portage

2021-12-08

xbindkeys - 1.8.7-r2
Ebuild name:

x11-misc/xbindkeys-1.8.7-r2

Description

Tool for launching commands on keystrokes

Added to portage

2021-12-08

xmlto - 0.0.28-r8
Ebuild name:

app-text/xmlto-0.0.28-r8

Description

Script for converting XML and DocBook documents to a variety of output for

Added to portage

2021-12-08

zed - 3.1.0
Ebuild name:

dev-ml/zed-3.1.0

Description

Abstract engine for text edition in OCaml

Added to portage

2021-12-08

2021-12-07
alsa-lib - 1.2.6
Ebuild name:

media-libs/alsa-lib-1.2.6

Description

Advanced Linux Sound Architecture Library

Added to portage

2021-12-07

alsa-plugins - 1.2.6
Ebuild name:

media-plugins/alsa-plugins-1.2.6

Description

ALSA extra plugins

Added to portage

2021-12-07

alsa-ucm-conf - 1.2.6
Ebuild name:

media-libs/alsa-ucm-conf-1.2.6

Description

ALSA ucm configuration files

Added to portage

2021-12-07

alsa-utils - 1.2.6
Ebuild name:

media-sound/alsa-utils-1.2.6

Description

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

Added to portage

2021-12-07

ansible - 5.0.1
Ebuild name:

app-admin/ansible-5.0.1

Description

Model-driven deployment, config management, and command execution framework

Added to portage

2021-12-07

ansible-base - 2.11.7
Ebuild name:

app-admin/ansible-base-2.11.7

Description

Model-driven deployment, config management, and command execution fra

Added to portage

2021-12-07

ansible-base - 2.12.1
Ebuild name:

app-admin/ansible-base-2.12.1

Description

Model-driven deployment, config management, and command execution fra

Added to portage

2021-12-07

ant-contrib - 1.0_beta6_pre20201123-r1
Ebuild name:

dev-java/ant-contrib-1.0_beta6_pre20201123-r1

Description

Ant-contrib tasks for Apache Ant

Added to portage

2021-12-07

arel-helpers - 2.13.0
Ebuild name:

dev-ruby/arel-helpers-2.13.0

Description

Tools to help construct database queries

Added to portage

2021-12-07

awscli - 1.22.21
Ebuild name:

app-admin/awscli-1.22.21

Description

Universal Command Line Environment for AWS

Added to portage

2021-12-07

bash-support - 4.3
Ebuild name:

app-vim/bash-support-4.3

Description

vim plugin write and run bash scripts using menus and hotkeys

Added to portage

2021-12-07

boto3 - 1.20.21
Ebuild name:

dev-python/boto3-1.20.21

Description

The AWS SDK for Python

Added to portage

2021-12-07

botocore - 1.23.21
Ebuild name:

dev-python/botocore-1.23.21

Description

Low-level, data-driven core of boto 3

Added to portage

2021-12-07

chrome-binary-plugins - 96.0.4664.93
Ebuild name:

www-plugins/chrome-binary-plugins-96.0.4664.93

Description

Binary plugins from Google Chrome for use in Chromiu

Added to portage

2021-12-07

chromium - 96.0.4664.93
Ebuild name:

www-client/chromium-96.0.4664.93

Description

Open-source version of Google Chrome web browser

Added to portage

2021-12-07

conmon - 2.0.31
Ebuild name:

app-emulation/conmon-2.0.31

Description

An OCI container runtime monitor

Added to portage

2021-12-07

diffoscope - 195
Ebuild name:

dev-util/diffoscope-195

Description

Will try to get to the bottom of what makes files or directories different

Added to portage

2021-12-07

django - 2.2.25
Ebuild name:

dev-python/django-2.2.25

Description

High-level Python web framework

Added to portage

2021-12-07

django - 3.1.14
Ebuild name:

dev-python/django-3.1.14

Description

High-level Python web framework

Added to portage

2021-12-07

django - 3.2.10
Ebuild name:

dev-python/django-3.2.10

Description

High-level Python web framework

Added to portage

2021-12-07

droidcam - 1.8.1-r1
Ebuild name:

media-video/droidcam-1.8.1-r1

Description

Use your phone or tablet as webcam with a v4l device driver and app

Added to portage

2021-12-07

dsniff - 2.4_beta1_p30
Ebuild name:

net-analyzer/dsniff-2.4_beta1_p30

Description

A collection of tools for network auditing and penetration testin

Added to portage

2021-12-07

ejabberd - 0
Ebuild name:

acct-group/ejabberd-0

Description

Group for net-im/ejabberd

Added to portage

2021-12-07

ejabberd - 0
Ebuild name:

acct-user/ejabberd-0

Description

User for net-im/ejabberd

Added to portage

2021-12-07

ejabberd - 21.04-r1
Ebuild name:

net-im/ejabberd-21.04-r1

Description

Robust, scalable and extensible XMPP server

Added to portage

2021-12-07

encfs - 1.9.5-r2
Ebuild name:

sys-fs/encfs-1.9.5-r2

Description

An implementation of encrypted filesystem in user-space using FUSE

Added to portage

2021-12-07

git-delta - 0.11.1
Ebuild name:

dev-util/git-delta-0.11.1

Description

A syntax-highlighting pager for git

Added to portage

2021-12-07

google-chrome - 96.0.4664.93
Ebuild name:

www-client/google-chrome-96.0.4664.93

Description

The web browser from Google

Added to portage

2021-12-07

haproxy - 2.0.26
Ebuild name:

net-proxy/haproxy-2.0.26

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2021-12-07

imageio - 2.13.2
Ebuild name:

dev-python/imageio-2.13.2

Description

Python library for reading and writing image data

Added to portage

2021-12-07

isync - 1.4.4
Ebuild name:

net-mail/isync-1.4.4

Description

MailDir mailbox synchronizer

Added to portage

2021-12-07

lustyexplorer - 5.0
Ebuild name:

app-vim/lustyexplorer-5.0

Description

vim plugin dynamic filesystem and buffer explorer

Added to portage

2021-12-07

maturin - 0.12.4
Ebuild name:

dev-util/maturin-0.12.4

Description

Build and publish crates with pyo3, rust-cpython and cffi bindings

Added to portage

2021-12-07

mkdocs-git-authors-plugin - 0.6.2
Ebuild name:

dev-python/mkdocs-git-authors-plugin-0.6.2

Description

Mkdocs plugin to display git authors of a page

Added to portage

2021-12-07

mkdocs-git-revision-date-localized-plugin - 0.11
Ebuild name:

dev-python/mkdocs-git-revision-date-localized-plugin-0.11

Description

Display the localized date of the last gi

Added to portage

2021-12-07

mkdocs-material - 8.0.5
Ebuild name:

dev-python/mkdocs-material-8.0.5

Description

A Material Design theme for MkDocs

Added to portage

2021-12-07

myspell-tn - 20150904
Ebuild name:

app-dicts/myspell-tn-20150904

Description

Setswana dictionaries for myspell/hunspell

Added to portage

2021-12-07

myspell-tr - 1.2
Ebuild name:

app-dicts/myspell-tr-1.2

Description

Turkish dictionaries for myspell/hunspell

Added to portage

2021-12-07

myspell-tr - 1.2
Ebuild name:

app-dicts/myspell-tr-1.2

Description

Turkish dictionaries for myspell/hunspell

Added to portage

2021-12-07

myspell-uk - 1.6.5
Ebuild name:

app-dicts/myspell-uk-1.6.5

Description

Ukrainian dictionaries for myspell/hunspell

Added to portage

2021-12-07

myspell-uk - 5.3.1
Ebuild name:

app-dicts/myspell-uk-5.3.1

Description

Ukrainian dictionaries for myspell/hunspell

Added to portage

2021-12-07

nuitka - 0.6.18.1
Ebuild name:

dev-python/nuitka-0.6.18.1

Description

Python to native compiler

Added to portage

2021-12-07

opendnssec - 2.1.10-r1
Ebuild name:

net-dns/opendnssec-2.1.10-r1

Description

An open-source turn-key solution for DNSSEC

Added to portage

2021-12-07

pyalsa - 1.2.6
Ebuild name:

dev-python/pyalsa-1.2.6

Description

Python bindings for ALSA library

Added to portage

2021-12-07

python - 3.10.1
Ebuild name:

dev-lang/python-3.10.1

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2021-12-07

qdarkstyle - 3.0.3
Ebuild name:

dev-python/qdarkstyle-3.0.3

Description

A dark style sheet for QtWidgets application

Added to portage

2021-12-07

regexp_property_values - 1.1.0
Ebuild name:

dev-ruby/regexp_property_values-1.1.0

Description

See which property values are supported by the regular expres

Added to portage

2021-12-07

rocketchat-desktop-bin - 3.7.0
Ebuild name:

net-im/rocketchat-desktop-bin-3.7.0

Description

The Ultimate Open Source Web Chat Platform

Added to portage

2021-12-07

rr - 3.0.9
Ebuild name:

dev-ruby/rr-3.0.9

Description

A double framework featuring a selection of double techniques and a terse syntax

Added to portage

2021-12-07

rust - 1.57.0
Ebuild name:

dev-lang/rust-1.57.0

Description

Systems programming language from Mozilla

Added to portage

2021-12-07

rust-bin - 1.57.0
Ebuild name:

dev-lang/rust-bin-1.57.0

Description

Systems programming language from Mozilla

Added to portage

2021-12-07

tigervnc - 9999
Ebuild name:

net-misc/tigervnc-9999

Description

Remote desktop viewer display system

Added to portage

2021-12-07

tikzplotlib - 0.9.16
Ebuild name:

dev-python/tikzplotlib-0.9.16

Description

Convert matplotlib figures into TikZ/PGFPlots

Added to portage

2021-12-07

tlib - 1.27
Ebuild name:

app-vim/tlib-1.27

Description

vim plugin a library of utility functions

Added to portage

2021-12-07

websocket-client - 1.2.2
Ebuild name:

dev-python/websocket-client-1.2.2

Description

WebSocket client for python with hybi13 support

Added to portage

2021-12-07

xfsprogs - 5.14.2
Ebuild name:

sys-fs/xfsprogs-5.14.2

Description

xfs filesystem utilities

Added to portage

2021-12-07

yamlpath - 3.6.4
Ebuild name:

dev-python/yamlpath-3.6.4

Description

Command-line processors for YAML/JSON/Compatible data.

Added to portage

2021-12-07

yt-dlp - 2021.12.1-r1
Ebuild name:

net-misc/yt-dlp-2021.12.1-r1

Description

youtube-dl fork with additional features and fixes

Added to portage

2021-12-07

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 14.6 ms