CUPS fails to reccognize parallel port - AGAIN!
Charles Howse
chowse at charter.net
Sat Jul 1 05:38:01 PDT 2006
> Charles Howse wrote:
>
> > cups-1.2.0 on FreeBSD-6.1-RELEASE-p2
> > HP1100 parallel port printer on lpt0
>
> > Printer -=IS=- on, -=IS=- connected, lptest > /dev/lpt0 works.
>
> Thanks for this informations.
>
>
> > root at moe /root# find / backend
> > ..
> > find: backend: No such file or directory
>
> You try to find CUPS backend directory?
> Are you sure this is the right syntax?
>
> Please try:
> find / -type d -name "backend"
>
> Please list the content of the CUPS backend directory with "ls -l".
Hello Bernd, thanks for the reply.
I have made a little progress since posting my question.
The content of the CUPS backend directory is:
root at moe /usr/local/libexec/cups/backend# ll
total 218
lrwxr-xr-x 1 root wheel 3 Jun 29 16:02 http -> ipp
-rwx------ 1 root wheel 43823 Jun 29 16:02 ipp
-rwx------ 1 root wheel 28254 Jun 29 16:02 lpd
-rwxr-xr-x 1 root wheel 20494 Jun 29 16:02 parallel
-rwxr-xr-x 1 root wheel 10994 Jun 29 16:02 scsi
-rwxr-xr-x 1 root wheel 18506 Jun 29 16:02 serial
-rwxr-xr-x 1 root wheel 52969 Jun 29 16:02 snmp
-rwxr-xr-x 1 root wheel 17518 Jun 29 16:02 socket
-rwxr-xr-x 1 root wheel 21337 Jun 29 16:02 usb
The output of "/usr/local/libexec/cups/backend/parallel" is:
direct parallel:/dev/lpt0 "Unknown" "Parallel Port #1 (interrupt-driven)"
>
> >
> > I have done make deinstall, make reinstall on all the applicable ports, no
> > joy. The web interface does not auto-detect my printer, nor can I add it
> > for lack of the parallel port choice. The prior version of cups worked on
> > the same computer with the same version of FreeBSD.
>
> You can choose other backends?
Yes, I went through the web interface and set the printer up with "socket:/moe.local" as the DeviceURI. That created a printers.conf file. Then I edited the printers.conf file, and changed the DeviceURI to "parallel:/dev/lpt0".
> There are any important messages in the cups error log?
I set the log level to "debug" and the most important thing I see in the error log is:
E [30/Jun/2006:18:51:44 -0500] [Job 8] Unable to open parallel port device file "/dev/lpt0": Permission denied
This is the same thing the web interface tells me when I try and print a test page.
The permissions for /dev/lpt0 are:
root at moe /root# ll /dev/lpt0
crw------- 1 root wheel 0, 35 Jun 30 15:33 /dev/lpt0
Here is my cupsd.conf:
root at moe /usr/local/etc/cups# cat cupsd.conf
#
# "$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $"
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler. See "man cupsd.conf" for a complete description of this
# file.
#
# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel debug
# Administrator user group...
SystemGroup wheel
# Only listen for connections from the local machine.
Listen 192.168.254.4:631
Listen /var/run/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow 192.168.254.3
BrowseAllow @LOCAL
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
<Location />
Order allow,deny
Allow 192.168.254.3
Allow localhost
</Location>
# Restrict access to the admin pages...
<Location /admin>
Encryption Required
Order allow,deny
Allow 192.168.254.3
Allow localhost
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow 192.168.254.3
Allow localhost
</Location>
# Set the default printer/job policies...
<Policy default>
# Job-related operations must be done by the owner or an adminstrator...
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# All administration operations require an adminstrator to authenticate...
<Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
AuthType Basic
Require user @SYSTEM
Order deny,allow
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
#
# End of "$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $".
#
Here is my printers.conf:
root at moe /usr/local/etc/cups# cat printers.conf
# Printer configuration file for CUPS v1.2.0
# Written by cupsd on 2006-06-30 18:52
<DefaultPrinter HP1100>
Info HP1100 LaserJet
Location Desktop
DeviceURI parallel:/dev/lpt0
State Stopped
StateMessage Unable to open parallel port device file "/dev/lpt0": Permission denied
StateTime 1151711542
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
>
>
> What does the word "AGAIN!" mean in the subject? I can't find any other
> article from you in this newsgroup.
It means that every time I try to install CUPS I have to fight it to get a parallel port printer installed.
>
>
> best regards!
> Bernd
>
More information about the cups
mailing list