View Single Post
Old 3rd March 2011
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,131
Default

IMHO http://netbsd.org/docs/guide/en/netbsd.html#chap-print is also excellent.

Some general information and links can be found in http://en.wikipedia.org/wiki/Line_Pr...aemon_protocol

apsfilter creates the spool directories with the correct permissions
Quote:
Originally Posted by My alpha apsfilter installation guide
1.14 Install, create printcap entry, spool directory and save settings

Code:
==================================================================
	  A P S F I L T E R   S E T U P			  -- MAIN MENUE --
	==================================================================

	(D)	Available Device Drivers in your gs binary
	(R)	Read Ghostscript driver documentation	     (devices.txt)

	(1)	Printer Driver Selection		[ljet4]
	(2)	Interface Setup				[parallel]
	(3)	Paper Format				[a4]
	(4)	Printing Quality			[high]
	(5)	Color Mode				[gray]
	(6)	Print Resolution in "dots per inch"	[600x600]
	(7)	Default Printing Method			[auto]

	(T)	Print Test Page
	(V)	View performance log (times of print attempts)

	(A)	Abort installation (don't do anything)
	(I)	==> Install printer with values shown above - repeat this
		    step for installing multiple printers
	(Q)	==> Finish installation

	Your choice? i
IMPORTANT: If you are happy with the settings you selected, the proper sequence to save them is:
# Select (I) ==> Install printer with values shown above
# Select (Q) ==> Finish installation

Forgetting to choose Install will leave you with a not working configuratation.

Code:
Please enter a printer queue name for printer 'ljet4'.
The default name is 'lp'.

Your choice: lp

** creating printcap entry for printer lp...
   creating spooldir ...
   remember SETUP settings in printers apsfilterrc file...
** done.

[ press <RETURN> to continue ] Enter
RE: lpd start in "/etc/rc.conf.local"

After I made a similar typo/mistake I made it a habit to use grep on the default rc.conf

Code:
 $ grep lpd /etc/rc.conf
lpd_flags=NO            # for normal use: "" (or "-l" for debugging)
You never test with netstat whether the daemons you enbled really are LISTENing?
Code:
$ netstat -an -f inet    
Active Internet connections (including servers)
Proto   Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp          0      0  192.168.222.20.20442   82.199.134.137.80      CLOSE_WAIT
tcp          0      0  192.168.222.20.21154   80.255.10.121.80       TIME_WAIT
tcp          0      0  192.168.222.20.10766   209.85.229.102.80      ESTABLISHED
tcp          0      0  192.168.222.20.29107   192.168.222.244.22     ESTABLISHED
tcp          0      0  *.6000                 *.*                    LISTEN
tcp          0      0  *.3306                 *.*                    LISTEN
tcp          0      0  127.0.0.1.587          *.*                    LISTEN
tcp          0      0  127.0.0.1.25           *.*                    LISTEN
tcp          0      0  *.515                  *.*                    LISTEN
tcp          0      0  192.168.222.20.22      *.*                    LISTEN
Active Internet connections (including servers)
Proto   Recv-Q Send-Q  Local Address          Foreign Address        (state)
udp          0      0  192.168.222.20.19094   85.158.249.144.123    
udp          0      0  192.168.222.20.7216    91.198.174.197.123    
udp          0      0  192.168.222.20.38801   72.26.217.210.123     
udp          0      0  *.514                  *.*
I can recommend to get into this habit
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote