r115 - in trunk/text: chapter01 chapter03 chapter07 chapter09

robert at linuxfromscratch.org robert at linuxfromscratch.org
Thu Jan 20 22:26:26 PST 2005


Author: robert
Date: 2005-01-20 23:26:25 -0700 (Thu, 20 Jan 2005)
New Revision: 115

Added:
   trunk/text/chapter09/02-rdate.txt
   trunk/text/chapter09/03-openntpd.txt
Removed:
   trunk/text/chapter09/02-openntpd.txt
Modified:
   trunk/text/chapter01/changelog.txt
   trunk/text/chapter03/patches.txt
   trunk/text/chapter07/02-bootscripts.txt
Log:
Added rdate

Modified: trunk/text/chapter01/changelog.txt
===================================================================
--- trunk/text/chapter01/changelog.txt	2005-01-19 19:30:53 UTC (rev 114)
+++ trunk/text/chapter01/changelog.txt	2005-01-21 06:26:25 UTC (rev 115)
@@ -109,3 +109,10 @@
 OpenNTPD to chapter 9. Added sed for sys/socket.h in iproute2 to stop the
 ridicules number of warnings.
 
+January 19th, 2005 [Robert]
+Modified gcc specs so 'ld -z now,relro,combreloc' are passed on libaries too.
+Added a couple tests for relro and now.
+
+January 21st, 2005 [Robert]
+Added rdate to chapter 9, and bootscripts.
+

Modified: trunk/text/chapter03/patches.txt
===================================================================
--- trunk/text/chapter03/patches.txt	2005-01-19 19:30:53 UTC (rev 114)
+++ trunk/text/chapter03/patches.txt	2005-01-21 06:26:25 UTC (rev 115)
@@ -2,7 +2,7 @@
 http://www.linuxfromscratch.org/patches/downloads/hlfs/bash-3.0-fixes-3.patch
 http://www.linuxfromscratch.org/patches/downloads/hlfs/binutils-2.15.94.0.2-pt_pax-1.patch
 http://www.linuxfromscratch.org/patches/downloads/hlfs/binutils-2.15.94.0.2-uClibc_conf-1.patch
-http://www.linuxfromscratch.org/patches/downloads/hlfs/blfs-bootscripts-hlfs-1.patch
+http://www.linuxfromscratch.org/patches/downloads/hlfs/blfs-bootscripts-hlfs-2.patch
 http://www.linuxfromscratch.org/patches/downloads/hlfs/coreutils-5.2.1-static_uname-1.patch
 http://www.linuxfromscratch.org/patches/downloads/hlfs/coreutils-5.2.1-suppress_uptime_kill_su-1.patch
 http://www.linuxfromscratch.org/patches/downloads/hlfs/coreutils-5.2.1-uname-2.patch

Modified: trunk/text/chapter07/02-bootscripts.txt
===================================================================
--- trunk/text/chapter07/02-bootscripts.txt	2005-01-19 19:30:53 UTC (rev 114)
+++ trunk/text/chapter07/02-bootscripts.txt	2005-01-21 06:26:25 UTC (rev 115)
@@ -14,7 +14,7 @@
 # Then unpack blfs-bootscripts. The patch adds frandom to random's start
 # command. Then install the random seed script.
 
-patch -Np1 -i ../blfs-bootscripts-hlfs-1.patch &&
+patch -Np1 -i ../blfs-bootscripts-hlfs-2.patch &&
 make install-random
 
 # This is also a good time to create a random-seed file so it is

Deleted: trunk/text/chapter09/02-openntpd.txt
===================================================================
--- trunk/text/chapter09/02-openntpd.txt	2005-01-19 19:30:53 UTC (rev 114)
+++ trunk/text/chapter09/02-openntpd.txt	2005-01-21 06:26:25 UTC (rev 115)
@@ -1,34 +0,0 @@
-- Chapter 9 - Installing OpenNTPD 3.6.1p1
-
-# Homepage:
-# http://www.openntpd.org/
-
-# Download:
-# http://openbsd.md5.com.ar/pub/OpenBSD/OpenNTPD/openntpd-3.6.1p1.tar.gz
-# ftp://ftp.de.openbsd.org/pub/unix/OpenBSD/OpenNTPD/openntpd-3.6.1p1.tar.gz
-
-# This version of the Network Time Protocol Daemon uses privilege separation,
-# like OpenSSH's daemon. We will need to add a dedicated group and user.
-
-install -o root -g sys -d /var/empty &&
-groupadd _ntp &&
-useradd -g _ntp -s /bin/false -d /var/empty -c 'OpenNTP daemon' _ntp
-
-# Then configure and install OpenNTPD.
-
-./configure --prefix=/usr --sysconfdir=/etc &&
-make &&
-make install
-
-# In the HLFS patched blfs-bootscripts do:
-
-make install-openntpd
-
-# Make these symlinks if you would like to save the system time to the
-# hardware clock at shutdown.
-
-ln -sf ../init.d/setclock /etc/rc.d/rc0.d/K46setclock &&
-ln -sf ../init.d/setclock /etc/rc.d/rc6.d/K46setclock
-
-# You may notice OpenNTPD is not compatable with the original NTPD.
-

Added: trunk/text/chapter09/02-rdate.txt
===================================================================
--- trunk/text/chapter09/02-rdate.txt	2005-01-19 19:30:53 UTC (rev 114)
+++ trunk/text/chapter09/02-rdate.txt	2005-01-21 06:26:25 UTC (rev 115)
@@ -0,0 +1,74 @@
+- Chapter 9 - Installing Rdate 1.4
+
+# Rdate is a client program which uses the Time protocol. Rdate servers must
+# be running the Time service on port 37. Clients can use either TCP or UDP.
+# This program conforms to RFC 868. The Time Protocol is not related or
+# compatible with Network Time Protocol (RFC 958). This service does one time
+# query and synchronization. See the RFC, homepage, and Man page for more
+# information.
+
+# Homepage:
+# http://freshmeat.net/projects/rdate/
+
+# Download:
+# ftp://people.redhat.com/sopwith/rdate-1.4.tar.gz
+
+# Rdate installs to /usr by default.
+
+make &&
+make install
+
+# If you do not wish to run OpenNTPD (Network Time Protocol Daemon), then
+# Rdate should be run periodically from CronD. Something like this could
+# be added to root's crontab (see below for server info):
+
+rdate -l -s clock.psu.edu time.nrc.ca ntp0.ncl.ac.uk
+
+# The -l switch allows for logging results to Syslog, -s sets the system time.
+# Both OpenNTPD and CronD are available in other packages.
+
+# If you plan to install and run OpenNTPD then Rdate should be run just before
+# OpenNTPD during boot. In the HLFS patched blfs-bootscripts do:
+
+make install-rdate
+
+# This boot script will read /etc/rdate.conf. Many servers can be used. This
+# is an example config file:
+
+cat > /etc/rdate.conf << "EOF"
+# Rdate, Time protocol client, configuration file. See 'man 1 rdate'.
+RDATEOPTIONS="-l -s"
+RDATESERVERS="clock.psu.edu time.nrc.ca ntp0.ncl.ac.uk"
+EOF
+
+# There is no worldwide list of Time servers available. Many, but not all,
+# Network Time Protocol (NTP) servers also serve Time on port 37. There is a
+# list of NTP servers here:
+# http://ntp.isc.org/bin/view/Servers/WebHome
+#
+# The National Institute of Standards and Technology (United States Gov't)
+# offers about a dozen Time servers to the public. Their server list is
+# available here:
+# http://www.boulder.nist.gov/timefreq/service/time-servers.html
+#
+# Check that a server is serving Time with "rdate -p time.server.net".
+#
+# This is a very short list of servers:
+#
+# Great Britain
+# ntp0.ncl.ac.uk
+# ntp1.ncl.ac.uk
+# ntp2.ncl.ac.uk <-- Down
+# ntp3.ncl.ac.uk
+# ntp2b.mcc.ac.uk
+# ntp2c.mcc.ac.uk
+#
+# Canada
+# time.chu.nrc.ca
+# time.nrc.ca
+# timelord.uregina.ca
+#
+# United States of America
+# clock.psu.edu
+# gandalf.theunixman.com
+

Copied: trunk/text/chapter09/03-openntpd.txt (from rev 111, trunk/text/chapter09/02-openntpd.txt)
===================================================================
--- trunk/text/chapter09/02-openntpd.txt	2005-01-18 13:39:27 UTC (rev 111)
+++ trunk/text/chapter09/03-openntpd.txt	2005-01-21 06:26:25 UTC (rev 115)
@@ -0,0 +1,52 @@
+- Chapter 9 - Installing OpenNTPD 3.6.1p1
+
+# OpenNTPD is a server and client daemon conforming to RFC 958, the Network
+# Time Protocol (NTP). The RFC reads "It should be recognized that clock
+# synchronization requires by its nature long periods and multiple comparisons
+# in order to maintain accurate timekeeping." This version of the NTP daemon
+# only steps the clock a few tenths of a second at a time, totalling to about
+# two seconds per hour. It is therefore suggested you install and run Rdate
+# before running OpenNTPD to initially set your system clock. See the homepage,
+# RFC, and Man page for more information.
+
+# Homepage:
+# http://www.openntpd.org/
+
+# Download:
+# http://ftp.chg.ru/pub/OpenBSD/OpenNTPD/openntpd-3.6.1p1.tar.gz
+# ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/openntpd-3.6.1p1.tar.gz
+
+# This version of the Network Time Protocol Daemon uses privilege separation,
+# like OpenSSH's daemon. We will need to add a dedicated group and user.
+
+install -o root -g sys -d /var/empty &&
+groupadd _ntp &&
+useradd -g _ntp -s /bin/false -d /var/empty -c 'OpenNTP daemon' _ntp
+
+# Then configure and install OpenNTPD.
+
+./configure --prefix=/usr --sysconfdir=/etc &&
+make &&
+make install
+
+# In the HLFS patched blfs-bootscripts do:
+
+make install-openntpd
+
+# Make these symbolic links if you would like to save the system time to the
+# hardware clock at shutdown.
+
+ln -sf ../init.d/setclock /etc/rc.d/rc0.d/K46setclock &&
+ln -sf ../init.d/setclock /etc/rc.d/rc6.d/K46setclock
+
+# For a list of NTP servers see:
+# http://ntp.isc.org/bin/view/Servers/WebHome
+#
+# Your /etc/ntpd.conf should include several servers. The DNS pool server
+# can be used multiple times, such as:
+#
+# server pool.ntp.org
+# server pool.ntp.org
+# server pool.ntp.org
+#
+




More information about the hlfs-dev mailing list