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:

44687

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



Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2019-02-18
absl-py - 0.7.0
Ebuild name:

dev-python/absl-py-0.7.0

Description

Abseil Python Common Libraries

Added to portage

2019-02-18

bind - 9.12.3_p1-r1
Ebuild name:

net-dns/bind-9.12.3_p1-r1

Description

BIND - Berkeley Internet Name Domain - Name Server

Added to portage

2019-02-18

ca-certificates - 20190110.3.42.1
Ebuild name:

app-misc/ca-certificates-20190110.3.42.1

Description

Common CA Certificates PEM files

Added to portage

2019-02-18

cffi - 1.12.1
Ebuild name:

dev-python/cffi-1.12.1

Description

Foreign Function Interface for Python calling C code

Added to portage

2019-02-18

chrome-binary-plugins - 72.0.3626.109
Ebuild name:

www-plugins/chrome-binary-plugins-72.0.3626.109

Description

Binary plugins from Google Chrome for use in Chromi

Added to portage

2019-02-18

chrome-binary-plugins - 73.0.3683.39_beta
Ebuild name:

www-plugins/chrome-binary-plugins-73.0.3683.39_beta

Description

Binary plugins from Google Chrome for use in Ch

Added to portage

2019-02-18

chrome-binary-plugins - 74.0.3702.0_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-74.0.3702.0_alpha

Description

Binary plugins from Google Chrome for use in Ch

Added to portage

2019-02-18

cmake - 3.14.0_rc2
Ebuild name:

dev-util/cmake-3.14.0_rc2

Description

Cross platform Make

Added to portage

2019-02-18

cryptography - 2.5
Ebuild name:

dev-python/cryptography-2.5

Description

Library providing cryptographic recipes and primitives

Added to portage

2019-02-18

cryptography-vectors - 2.5
Ebuild name:

dev-python/cryptography-vectors-2.5

Description

Test vectors for the cryptography package

Added to portage

2019-02-18

facter - 3.13.0
Ebuild name:

dev-ruby/facter-3.13.0

Description

Added to portage

2019-02-18

gast - 0.2.2
Ebuild name:

dev-python/gast-0.2.2

Description

A generic AST to represent Python2 and Python3's Abstract Syntax Tree (AST)

Added to portage

2019-02-18

git-sources - 5.0_rc7
Ebuild name:

sys-kernel/git-sources-5.0_rc7

Description

The very latest -git version of the Linux kernel

Added to portage

2019-02-18

google-chrome - 72.0.3626.109
Ebuild name:

www-client/google-chrome-72.0.3626.109

Description

The web browser from Google

Added to portage

2019-02-18

google-chrome-beta - 73.0.3683.39
Ebuild name:

www-client/google-chrome-beta-73.0.3683.39

Description

The web browser from Google

Added to portage

2019-02-18

google-chrome-unstable - 74.0.3702.0
Ebuild name:

www-client/google-chrome-unstable-74.0.3702.0

Description

The web browser from Google

Added to portage

2019-02-18

gromacs - 2019.1
Ebuild name:

sci-chemistry/gromacs-2019.1

Description

The ultimate molecular dynamics simulation package

Added to portage

2019-02-18

http - 4.0.5
Ebuild name:

dev-ruby/http-4.0.5

Description

An easy-to-use client library for making requests from Ruby

Added to portage

2019-02-18

jenkins-bin - 2.150.3
Ebuild name:

dev-util/jenkins-bin-2.150.3

Description

Extensible continuous integration server

Added to portage

2019-02-18

jimtcl - 0.78-r1
Ebuild name:

dev-lang/jimtcl-0.78-r1

Description

Small footprint implementation of Tcl programming language

Added to portage

2019-02-18

keras-applications - 1.0.7
Ebuild name:

sci-libs/keras-applications-1.0.7

Description

Keras deep learning library reference implementations of deep lea

Added to portage

2019-02-18

keras-preprocessing - 1.0.9
Ebuild name:

sci-libs/keras-preprocessing-1.0.9

Description

Easy data preprocessing and data augmentation for deep learning

Added to portage

2019-02-18

kodi - 17.6-r10
Ebuild name:

media-tv/kodi-17.6-r10

Description

A free and open source media-player and entertainment hub

Added to portage

2019-02-18

kodi-pvr-hts - 4.4.14
Ebuild name:

media-plugins/kodi-pvr-hts-4.4.14

Description

Tvheadend Live TV and Radio PVR client addon for Kodi

Added to portage

2019-02-18

less - 550
Ebuild name:

sys-apps/less-550

Description

Excellent text file viewer

Added to portage

2019-02-18

libdbusmenu-qt - 0.9.3_pre20160218-r3
Ebuild name:

dev-libs/libdbusmenu-qt-0.9.3_pre20160218-r3

Description

Library providing Qt implementation of DBusMenu specif

Added to portage

2019-02-18

minikube - 0.34.1
Ebuild name:

sys-cluster/minikube-0.34.1

Description

Single Node Kubernetes Cluster

Added to portage

2019-02-18

multipath-tools - 0.8.0
Ebuild name:

sys-fs/multipath-tools-0.8.0

Description

Device mapper target autoconfig

Added to portage

2019-02-18

openocd - 0.10.0-r1
Ebuild name:

dev-embedded/openocd-0.10.0-r1

Description

OpenOCD - Open On-Chip Debugger

Added to portage

2019-02-18

portage - 2.3.61
Ebuild name:

sys-apps/portage-2.3.61

Description

Portage is the package management and distribution system for Gentoo

Added to portage

2019-02-18

postfix - 3.3.2-r1
Ebuild name:

mail-mta/postfix-3.3.2-r1

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2019-02-18

pycryptodome - 3.7.3
Ebuild name:

dev-python/pycryptodome-3.7.3

Description

A self-contained cryptographic library for Python

Added to portage

2019-02-18

pyxdg - 0.26-r1
Ebuild name:

dev-python/pyxdg-0.26-r1

Description

A Python module to deal with freedesktop.org specifications

Added to portage

2019-02-18

redshift - 1.12-r2
Ebuild name:

x11-misc/redshift-1.12-r2

Description

A screen color temperature adjusting software

Added to portage

2019-02-18

rust-mode - 0.3.0_p20190125
Ebuild name:

app-emacs/rust-mode-0.3.0_p20190125

Description

A major emacs mode for editing Rust source code

Added to portage

2019-02-18

satyr - 0.27
Ebuild name:

dev-libs/satyr-0.27

Description

Satyr is a collection of low-level algorithms for program failure processing

Added to portage

2019-02-18

sysvinit - 2.94_beta
Ebuild name:

sys-apps/sysvinit-2.94_beta

Description

/sbin/init - parent of all processes

Added to portage

2019-02-18

tensorboard - 1.12.2
Ebuild name:

sci-visualization/tensorboard-1.12.2

Description

TensorFlow's Visualization Toolkit

Added to portage

2019-02-18

tensorflow - 1.13.0_rc2
Ebuild name:

sci-libs/tensorflow-1.13.0_rc2

Description

Computation framework using data flow graphs for scalable machine le

Added to portage

2019-02-18

tensorflow-estimator - 1.13.0_rc0
Ebuild name:

sci-libs/tensorflow-estimator-1.13.0_rc0

Description

A high-level TensorFlow API that greatly simplifies machin

Added to portage

2019-02-18

udiskie - 1.7.7
Ebuild name:

sys-fs/udiskie-1.7.7

Description

An automatic disk mounting service using udisks

Added to portage

2019-02-18

weechat - 2.4
Ebuild name:

net-irc/weechat-2.4

Description

Portable and multi-interface IRC client

Added to portage

2019-02-18

wine-any - 4.1
Ebuild name:

app-emulation/wine-any-4.1

Description

Free implementation of Windows(tm) on Unix, with optional external patch

Added to portage

2019-02-18

wine-d3d9 - 4.1
Ebuild name:

app-emulation/wine-d3d9-4.1

Description

Free implementation of Windows(tm) on Unix, with Gallium Nine patchset

Added to portage

2019-02-18

wine-staging - 4.1
Ebuild name:

app-emulation/wine-staging-4.1

Description

Free implementation of Windows(tm) on Unix, with Wine-Staging patchs

Added to portage

2019-02-18

wine-vanilla - 4.1
Ebuild name:

app-emulation/wine-vanilla-4.1

Description

Free implementation of Windows(tm) on Unix, without external patchse

Added to portage

2019-02-18

xcalc - 1.0.7
Ebuild name:

x11-apps/xcalc-1.0.7

Description

scientific calculator for X

Added to portage

2019-02-18

youtube-dl - 2019.02.18
Ebuild name:

net-misc/youtube-dl-2019.02.18

Description

Download videos from YouTube.com (and more sites...)

Added to portage

2019-02-18

2019-02-17
abuse - 0.9_p20181213
Ebuild name:

games-action/abuse-0.9_p20181213

Description

Port of Abuse by Crack Dot Com

Added to portage

2019-02-17

aribb24 - 1.0.3-r1
Ebuild name:

media-libs/aribb24-1.0.3-r1

Description

Library for decoding ARIB STD-B24 subtitles

Added to portage

2019-02-17

cantata - 2.3.3-r1
Ebuild name:

media-sound/cantata-2.3.3-r1

Description

Featureful and configurable Qt client for the music player daemon (MPD

Added to portage

2019-02-17

cups-filters - 1.22.1
Ebuild name:

net-print/cups-filters-1.22.1

Description

Cups filters

Added to portage

2019-02-17

eselect - 1.4.14
Ebuild name:

app-admin/eselect-1.4.14

Description

Gentoo's multi-purpose configuration and management tool

Added to portage

2019-02-17

eselect-mode - 1.4.14
Ebuild name:

app-emacs/eselect-mode-1.4.14

Description

Emacs major mode for editing eselect files

Added to portage

2019-02-17

flann - 1.9.1-r2
Ebuild name:

sci-libs/flann-1.9.1-r2

Description

Fast approximate nearest neighbor searches in high dimensional spaces

Added to portage

2019-02-17

fragroute - 1.2.6-r1
Ebuild name:

net-analyzer/fragroute-1.2.6-r1

Description

Testing of network intrusion detection systems, firewalls and TCP/I

Added to portage

2019-02-17

gentoo-sources - 4.9.158
Ebuild name:

sys-kernel/gentoo-sources-4.9.158

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2019-02-17

gh - 0.15.1-r2
Ebuild name:

dev-ruby/gh-0.15.1-r2

Description

multi-layer client for the github api v3

Added to portage

2019-02-17

gom - 0.3.2-r1
Ebuild name:

dev-libs/gom-0.3.2-r1

Description

GObject to SQLite object mapper library

Added to portage

2019-02-17

horst - 5.1
Ebuild name:

net-wireless/horst-5.1

Description

Small 802.11 wireless LAN analyzer

Added to portage

2019-02-17

imagemagick - 6.9.10.27
Ebuild name:

media-gfx/imagemagick-6.9.10.27

Description

A collection of tools and libraries for many image formats

Added to portage

2019-02-17

imagemagick - 7.0.8.27
Ebuild name:

media-gfx/imagemagick-7.0.8.27

Description

A collection of tools and libraries for many image formats

Added to portage

2019-02-17

kodi - 18.1
Ebuild name:

media-tv/kodi-18.1

Description

A free and open source media-player and entertainment hub

Added to portage

2019-02-17

less - 549-r1
Ebuild name:

sys-apps/less-549-r1

Description

Excellent text file viewer

Added to portage

2019-02-17

libertine - 5.3.0.20120702-r3
Ebuild name:

media-fonts/libertine-5.3.0.20120702-r3

Description

Fonts from the Linux Libertine Open Fonts Project

Added to portage

2019-02-17

libevent - 2.1.8-r1
Ebuild name:

dev-libs/libevent-2.1.8-r1

Description

Library to execute a function when a specific event occurs on a file des

Added to portage

2019-02-17

libevent - 2.1.9_beta
Ebuild name:

dev-libs/libevent-2.1.9_beta

Description

Library to execute a function when a specific event occurs on a file d

Added to portage

2019-02-17

libpod - 1.0.1
Ebuild name:

app-emulation/libpod-1.0.1

Description

Library and podman tool for running OCI-based containers in Pods

Added to portage

2019-02-17

libstdc++-v3 - 3.3.6-r2
Ebuild name:

sys-libs/libstdc++-v3-3.3.6-r2

Description

Compatibility package for binaries linked against a pre gcc 3.4 libs

Added to portage

2019-02-17

libxml2 - 2.9.9
Ebuild name:

dev-libs/libxml2-2.9.9

Description

XML C parser and toolkit

Added to portage

2019-02-17

man-pages-de - 2.10
Ebuild name:

app-i18n/man-pages-de-2.10

Description

A somewhat comprehensive collection of Linux german man page translation

Added to portage

2019-02-17

mosquitto - 1.5.6
Ebuild name:

app-misc/mosquitto-1.5.6

Description

An Open Source MQTT v3 Broker

Added to portage

2019-02-17

mysql-connector-c++ - 1.1.12
Ebuild name:

dev-db/mysql-connector-c++-1.1.12

Description

MySQL database connector for C++ (mimics JDBC 4.0 API)

Added to portage

2019-02-17

mysql-connector-c++ - 8.0.15
Ebuild name:

dev-db/mysql-connector-c++-8.0.15

Description

MySQL database connector for C++ (mimics JDBC 4.0 API)

Added to portage

2019-02-17

ntp - 4.2.8_p12-r1
Ebuild name:

net-misc/ntp-4.2.8_p12-r1

Description

Network Time Protocol suite/programs

Added to portage

2019-02-17

numix-icon-theme-circle - 19.02.07
Ebuild name:

x11-themes/numix-icon-theme-circle-19.02.07

Description

An icon theme for Linux from the Numix project

Added to portage

2019-02-17

openldap - 2.4.45-r1
Ebuild name:

net-nds/openldap-2.4.45-r1

Description

LDAP suite of application and development tools

Added to portage

2019-02-17

openvpn - 2.4.6-r1
Ebuild name:

net-vpn/openvpn-2.4.6-r1

Description

Robust and highly flexible tunneling application compatible with many OSes

Added to portage

2019-02-17

passff - 1.6.3
Ebuild name:

www-plugins/passff-1.6.3

Description

zx2c4 pass manager extension for Firefox

Added to portage

2019-02-17

ruby - 2.6.1
Ebuild name:

dev-lang/ruby-2.6.1

Description

An object-oriented scripting language

Added to portage

2019-02-17

ruby-clutter-gdk - 3.3.2
Ebuild name:

dev-ruby/ruby-clutter-gdk-3.3.2

Description

Ruby binding of GDK specific API of Clutter

Added to portage

2019-02-17

ruby-clutter-gstreamer - 3.3.2
Ebuild name:

dev-ruby/ruby-clutter-gstreamer-3.3.2

Description

Ruby Clutter bindings

Added to portage

2019-02-17

ruby-clutter-gtk - 3.3.2
Ebuild name:

dev-ruby/ruby-clutter-gtk-3.3.2

Description

Ruby Clutter bindings

Added to portage

2019-02-17

ruby-gnome2 - 3.3.2
Ebuild name:

dev-ruby/ruby-gnome2-3.3.2

Description

Ruby Gnome2 bindings

Added to portage

2019-02-17

ruby-rsvg - 3.3.2
Ebuild name:

dev-ruby/ruby-rsvg-3.3.2

Description

Ruby bindings for librsvg

Added to portage

2019-02-17

spamassassin - 3.4.2-r4
Ebuild name:

mail-filter/spamassassin-3.4.2-r4

Description

An extensible mail filter which can identify and tag spam

Added to portage

2019-02-17

sudo - 1.8.27-r1
Ebuild name:

app-admin/sudo-1.8.27-r1

Description

Allows users or groups to run commands as other users

Added to portage

2019-02-17

texinfo - 6.6
Ebuild name:

sys-apps/texinfo-6.6

Description

The GNU info program and utilities

Added to portage

2019-02-17

travis - 1.8.9-r1
Ebuild name:

dev-ruby/travis-1.8.9-r1

Description

Travis CI Client (CLI and Ruby library)

Added to portage

2019-02-17

typhoeus - 0.6.9-r1
Ebuild name:

dev-ruby/typhoeus-0.6.9-r1

Description

Runs HTTP requests in parallel while cleanly encapsulating handling logi

Added to portage

2019-02-17

xmr-stak - 2.8.3
Ebuild name:

net-p2p/xmr-stak-2.8.3

Description

Unified all-in-one Monero miner

Added to portage

2019-02-17

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2018 Sascha Nitsch Unternehmensberatung UG(haftungsbeschänkt)
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: 5.4 ms