Subject: misc/26876: Omission in The NetBSD Guide's remote printing section
To: None <>
From: None <>
List: netbsd-bugs
Date: 09/07/2004 14:44:31
>Number:         26876
>Category:       misc
>Synopsis:       The NetBSD guide's remote printing is not complete; lpd_flags="" >> rc.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 07 14:38:03 UTC 2004
>Release:        NetBSD 2.0_BETA
System: NetBSD 2.0_BETA NetBSD 2.0_BETA (FROHIKE) #0: Tue Aug 24 22:02:00 CEST 2004 i386
Architecture: i386
Machine: i386
	The NetBSD Guide's `recipe' to create a working print server is not
	complete and does not work if followed to the letter.  The default
	value of lpd_flags in /etc/defaults/rc.conf is "-s", which makes
	lpd listen on Unix domain sockets only.  The Guide should add to
	its description that the user should change lpd_flags so it doesn't
	include the -s flag anymore.
	The following are diffs for English and Dutch versions of the Guide:

Index: guide/en/chap-print.xml
RCS file: /cvsroot/htdocs/guide/en/chap-print.xml,v
retrieving revision 1.7
diff -u -r1.7 chap-print.xml
--- guide/en/chap-print.xml	15 May 2004 18:13:05 -0000	1.7
+++ guide/en/chap-print.xml	7 Sep 2004 12:41:37 -0000
@@ -329,10 +329,16 @@
     <para>The first step is to accept the print jobs submitted
       from the wotan host to the loge host.
-      This is accomplished by inserting a line with the wotan host name
-      in the <filename>/etc/hosts.lpd</filename> file on loge.
+      To accomplished this, a line with the wotan host name must be added
+      to the <filename>/etc/hosts.lpd</filename> file on loge.
       The format of this file is very simple: each line contains the
-      name of a host which is permitted to print on the local system.</para>
+      name of a host which is permitted to print on the local system.
+      By default the daemon only listens on UNIX domain sockets.
+      To ensure the daemon also accepts incoming network traffic, the
+      following will need to be added to
+      <filename>/etc/rc.conf</filename>:</para>
+    <programlisting>lpd_flags=""</programlisting>
     <para>Next, the <filename>/etc/printcap</filename> file on wotan
       must be configured in order to send print jobs to loge.
Index: guide/nl/chap-print.xml
RCS file: /cvsroot/htdocs/guide/nl/chap-print.xml,v
retrieving revision 1.2
diff -u -r1.2 chap-print.xml
--- guide/nl/chap-print.xml	10 Jan 2004 22:45:27 -0000	1.2
+++ guide/nl/chap-print.xml	7 Sep 2004 12:41:38 -0000
@@ -412,12 +412,19 @@
       De eerste stap is te zorgen dat loge afdrukopdrachten van
       de wotan host accepteert.
-      Dit kunt u doen door een regel op met de wotan host toe te
-      voegen aan het <filename>/etc/hosts.lpd</filename> bestand
+      Hiertoe moet eerst een regel met wotan's hostnaam toegevoegd
+      woden aan het <filename>/etc/hosts.lpd</filename> bestand
       op loge. Het formaat van dit bestand is erg simpel: elke
       regel bevat de naam van een host die toegang tot de printer
       mag hebben.
+      Standaard luistert de daemon alleen maar op UNIX domain sockets.
+      Om te zorgen dat de daemon ook inkomend netwerkverkeer accepteert
+      moet aan <filename>/etc/rc.conf</filename> het volgende worden
+      toegevoegd:
+    <programlisting>lpd_flags=""</programlisting>
       Vervolgens moet het <filename>/etc/printcap</filename> bestand
       op wotan geconfigureerd worden zodat het afdrukopdrachten naar