[nflug] ubuntu 6.10 works great

Joe josephj at main.nc.us
Mon Nov 13 10:23:18 EST 2006


Cyber Source wrote:
> bigbird at sananda:~/bin$ lp ./print
>
> Why did you run "./print"? I was wondering if it was an option to lp I
> didn't know about but find no option like that in the man page for lp.
> Try just "lp filename" and verify that you can print a cups test page.
> _______________________________________________
> nflug mailing list
> nflug at nflug.org
> http://www.nflug.org/mailman/listinfo/nflug
>
>   
"print" is a short shell script in my bin directory.  As far as lp is 
concerned, it's just a text file.  I thought that might be confusing.  
That's why I added the "./" on the front of it to try to make it more clear.

In the cups admin section, I selected deny users and typed in "None".  
Since "None" is not a user, effectively, it should allow anyone to print 
to the printer.  Is that correct?

It's behaving a bit better today (after reboots).  Now, lp knows how to 
spool a job, but not how to get it to a printer.
The cups test page prints fine and I can print from kate.  It's just lp 
that has a problem related to printcap (which says it's created from 
/etc/cups/printers.conf).

Joe

bigbird at sananda:~/bin$ lpstat
Printer: Ritas_DJ460 at sananda 'Ritas Portable Deskjet' (dest Ritas_DJ460 at sananda)
 Queue: 5 printable jobs
 Server: pid 4551 active
 Status: job 'bigbird at sananda+680' saved at 10:02:55.710
 Rank   Owner/ID               Pr/Class Job Files                 Size Time
1      bigbird at sananda+701          A   237 printcap               195 10:02:55
2      bigbird at sananda+21           A   238 (STDIN)              15694 10:02:55
3      bigbird at sananda+76           A   176 (STDIN)              14982 10:02:55
4      bigbird at sananda+76           A   177 (STDIN)              14982 10:02:55
5      bigbird at sananda+680          A   178 print                 2453 10:02:55
done   bigbird at sananda+701          A   231 printcap               195 10:02:55
Error: loop in printcap- Ritas_DJ460 at sananda -> Ritas_DJ460 at sananda
bigbird at sananda:~/bin$ locate printcap
/etc/printcap
/etc/lprng/printcap
/usr/share/doc/pnm2ppa/examples/lpd/printcap
/usr/share/doc/lprng/examples/printcap.gz
/usr/share/man/man5/printcap.5.gz
bigbird at sananda:~/bin$ sudo diff /etc/printcap /etc/lprng/printcap
Password:
bigbird at sananda:~/bin$ cat /etc/printcap
# This file was automatically generated by cupsd(8) from the
# /etc/cups/printers.conf file.  All changes to this file
# will be lost.
Ritas_DJ460|Ritas Portable Deskjet:rm=sananda:rp=Ritas_DJ460:
bigbird at sananda:~/bin$ lp ./print
request id is bigbird at sananda+327
bigbird at sananda:~/bin$ lpstat
Printer: Ritas_DJ460 at sananda 'Ritas Portable Deskjet' (dest Ritas_DJ460 at sananda)
 Queue: 6 printable jobs
 Server: pid 4551 active
 Unspooler: pid 3130 active
 Status: done job 'bigbird at sananda+701' transfer to Ritas_DJ460 at sananda at 10:06:24.753
 Rank   Owner/ID               Pr/Class Job Files                 Size Time
active bigbird at sananda+701          A   349 printcap               195 10:06:24
2      bigbird at sananda+21           A   390 (STDIN)              15694 10:06:24
3      bigbird at sananda+76           A   350 (STDIN)              14982 10:06:24
4      bigbird at sananda+76           A   391 (STDIN)              14982 10:06:24
5      bigbird at sananda+327          A   506 ./print               2453 10:06:24
6      bigbird at sananda+680          A   840 print                 2453 10:06:24
done   bigbird at sananda+680          A   839 print                 2453 10:06:24
Error: loop in printcap- Ritas_DJ460 at sananda -> Ritas_DJ460 at sananda
bigbird at sananda:~/bin$



Joe
_______________________________________________
nflug mailing list
nflug at nflug.org
http://www.nflug.org/mailman/listinfo/nflug



More information about the nflug mailing list