LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 06-13-2005, 10:10 AM   #1
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
lpd problem


I installed a new, FreeBSD 4.11-RELEASE system and compiled a custom kernel, but now when I try to print something to a printer connected to the parallel port like this:

lpr /etc/printcap

nothing is printed, but lpq shows this:

lp:
queuing is enabled
printing is enabled
1 entry in spool area
waiting for lp to become ready (offline?)

I doublechecked that the printer is connected, and it is online. So that should not be a problem.

The relevant part of the /etc/printcap is:
lp|hp|epson|laserjet:\
:lp=/dev/lpt0:sd=/var/spool/output/lpd/epson:lf=/var/log/lpd-errs:\
:vf=/usr/libexec/ifsimple.sh:sh:sf:

The filter script ifsimple.sh is executable for anyone, and it just contains this:
# Simply copies stdin to stdout. Ignores all filter arguments.
/bin/cat && exit 0
exit 2

Maybe did I miss something when I compiled my custom kernel? Here are my kernel options:
# Parallel port
#device ppc0 at isa? irq 7
device ppbus # Parallel port bus (required)
device lpt # Printer
#device plip # TCP/IP over parallel
#device ppi # Parallel port interface device
#device vpo # Requires scbus and da

So I enabled ppbus and lpt, but disabled ppc0, plip and ppi. Should I enable them in order that the lp daemon can work correctly? Or this has nothing to do with my problem?

Could you help me with any hints how to debug this?

Last edited by J_Szucs; 06-13-2005 at 10:17 AM.
 
Old 06-13-2005, 07:10 PM   #2
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
I realized that the ppc0 device is required for printing via the parallel port, so I recompiled my kernel with the following option:
device ppc0 at isa?

(according to the FreeBSD handbook, this should enable the parallel port device, and it should also set it up to polled communication mode)

But not mine :-(

After the recompilation I have still no /dev/ppc0 device (though I enablet it in the kernel config file); meanwhile I noticed that I had a /dev/ppi0 device, which had been disabled in my kernel config file (as shown in my previous post).

Despite this, lpd now starts together with the system (I had to start it manually previously).

However, the situation is worse: now even the printer queue does not work anymore, or at least lpq -a never shows any jobs in it.
(I wonder if this is due to the fact that I chowned the spool directory to daemon:daemon and permission 770, as recommended in the FreeBSD handbook)

Any hints?

Edit:
Problem solved: the missing ppc device option was the culprit

Last edited by J_Szucs; 06-15-2005 at 12:30 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lpd problem ltrain Linux - Networking 3 11-11-2004 11:19 AM
lpd problem moger Linux - General 5 02-17-2003 01:19 PM
LPRng - LPD problem robinhood1995 Linux - General 0 04-21-2002 11:57 AM
lpd host problem devraj Linux - General 0 01-03-2002 01:32 PM
lpd problem - please help SSUHALE Linux - General 0 09-07-2001 12:18 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 01:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration