SliTaz SliTaz Forum

You are not logged in.

#1 2016-01-02 00:25:40

steinc_ST
Member
Registered: 2015-12-02
Posts: 23

printing with parallel port printer

Can anyone tell me how to print to the parallel port?

The parallel port modules get loaded. The kernel recognizes my printer, which is connected to the parallel port, but CUPS does not detect my printer.

Also, I cannot do raw printing to /dev/lp0 because there is no such device. What device should I use?

Offline

#2 2016-01-04 10:56:26

llev
Member
Registered: 2011-12-09
Posts: 568

Re: printing with parallel port printer

Maybe restart cupsd after plugging and turning on your printer?

In the administration page of CUPS, try "Add a printer" instead of "Search for printers": does it offer LPT?

Offline

#3 2016-01-06 20:35:46

steinc_ST
Member
Registered: 2015-12-02
Posts: 23

Re: printing with parallel port printer

The kernel does detect the printer, but CUPS doesn't.  Here is what I get from dmesg | grep par:

parport_pc 00:09: reported by Plug and Play ACPI

parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE,EPP]

parport0: Printer, Hewlett-Packard HP LaserJet 6MP

ppdev: user-space parallel port driver

But when I do lpinfo -v, I only see network connections such as

network ipps

network socket     ...

When I try to add a printer in CUPS, I get asked for the username and password, and when I enter those two items, I get back the window prompting me for username and password.  This seems to be quite a frequently observed phenomenon, and I am looking into what general solutions have been suggested for this problem.

Offline

#4 2016-01-06 20:49:44

llev
Member
Registered: 2011-12-09
Posts: 568

Re: printing with parallel port printer

For CUPS administration, did you provide root credentials? You have to.

Offline

#5 2016-01-06 23:41:02

steinc_ST
Member
Registered: 2015-12-02
Posts: 23

Re: printing with parallel port printer

Yes, I did.  I was logged in as root when I tried to add a printer.

Offline

#6 2016-01-11 11:49:33

llev
Member
Registered: 2011-12-09
Posts: 568

Re: printing with parallel port printer

Hi,

Sorry, I'm out of ideas and I can't test this (no parallel printer).

Anyone else? (Turn this thread as "not resolved", the red dot may attract more participants!)

Offline

#7 2016-01-12 14:56:44

steinc_ST
Member
Registered: 2015-12-02
Posts: 23

Re: printing with parallel port printer

I will do without printing from my SliTaz for now. Thanks for your help.

Offline

#8 2016-01-13 06:46:00

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: printing with parallel port printer

I cannot do raw printing to /dev/lp0 because there is no such device.

But when I do lpinfo -v, I only see network connections such as

network ipps

network socket ...

[c]modprobe lp[/c]

Offline

#9 2016-01-14 15:58:50

steinc_ST
Member
Registered: 2015-12-02
Posts: 23

Re: printing with parallel port printer

Doing  modprobe lp  was a good tip. It solved half of my problem. When the lp module is loaded together with the other parallel port modules, I can do raw priting to the parallel port.

However, the web interface of CUPS still does not let me add my printer. But when I run

[c]/usr/lib/cups/backend/parallel[/c]

the response is

[c]direct parallel:/dev/lp0 "HP LaserJet 6MP" "HP LaserJet 6MP LPT #1" "MANUFACTURER:Hewlett-Packard;COMMAND SET:PJL,MLC,PCLXL,PCL,POSTSCRIPT;MODEL:HP LaserJet 6MP;CLASS:PRINTER;DESCRIPTION:Hewlett-Packard LaserJet 6MP Printer;" ""[/c]

When I do

[c]lpinfo -v[/c]

I still only see network connections. So what is going on here?

Offline

#10 2016-01-15 06:30:07

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: printing with parallel port printer

Set permissions on the backend:

[c]chmod 0700 /usr/lib/cups/backend/parallel[/c]

Offline

#11 2016-01-16 17:29:16

steinc_ST
Member
Registered: 2015-12-02
Posts: 23

Re: printing with parallel port printer

The permission was set to 0711 before. With 0700 the result is the same: My CUPS does not see my local parallel printer.

The output of the CUPS error log is as follows:

[c][cups-deviced] PID 1685 (parallel) stopped with status 13![/c]

The CUPS access log says:

[c]"POST / HTTP/1.1" 401 88 CUPS-Get-Devices successful-ok[/c]

Offline

#12 2016-01-17 17:26:19

steinc_ST
Member
Registered: 2015-12-02
Posts: 23

Re: printing with parallel port printer

P.S.   CUPS and printing work without a problem with a live Cd of Puppy Linux.

Offline

#13 2016-01-17 21:06:04

llev
Member
Registered: 2011-12-09
Posts: 568

Re: printing with parallel port printer

Can you set LogLevel to debug in /etc/cups/cupsd.conf, and retry? This might give more insight...

P.-S. : From http://cook.slitaz.org/cooker.cgi?files=cups-filters it looks like /usr/lib/cups/backend/parallel should have had permissions 755, not 711. Maybe the installation of this package is somehow broken? Also, in the cups package some backends have permissions 700, others 555. Doesn't cost much to try...

Offline

#14 2016-01-24 19:15:12

steinc_ST
Member
Registered: 2015-12-02
Posts: 23

Re: printing with parallel port printer

I did that, but this generates a very long error_log file in /var/log/cups and it is unclear what any of that has to do with my problem. The details of the permissions of the backends make no difference.

I found a ppd file for a pdf-writer in the puppy distro, and if I copy this file into /etc/cups/ppd, my CUPS recognizes this as an "internal" local printer and installs it. This works as it should. However, for reasons unknown, my CUPS just does not recognize, or communicate with, the external local printer at lp0.

Perhaps I will try the CUPS package in the most recent cooking version which includes again all dependencies.

Offline

#15 2016-02-21 18:48:32

steinc_ST
Member
Registered: 2015-12-02
Posts: 23

Re: printing with parallel port printer

After many unsuccessful attempts at getting CUPS to work, I have given up on it.

But for my case - printing from a single workstation to a single parallel printer - there is a very simple work-around:  Use foomatic.

All you have to do is install the  foomatic-filters-4.0.5.tazpkg  package, get yourself the PPD file for your printer, edit this file slightly, and you will be printing.

The instructions are here:

[c]http://www.linuxfoundation.org/collaborate/workgroups/openprinting/database/nospoolerdocumentation[/c]

The instructions are detailed and clear, and I am sure setup would not be much more difficult for a different printer configuration.

Offline

#16 2016-02-21 18:54:39

steinc_ST
Member
Registered: 2015-12-02
Posts: 23

Re: printing with parallel port printer

I forgot one thing in the post above:  In order to work properly, foomatic needs the bash shell to be installed, but bash does not need to be the default shell.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.56 MiB (Peak: 1.77 MiB) ]