--> David Woodfall <d...@dawoodfall.net> [2013-02-06 03:04:41 +0000]:
> On Tue, Feb 05, 2013 at 09:34:54PM -0500, Ed <w...@comcast.net> put forth the > proposition: > >I keep getting this error:: > > > >sh: 1: lpr: not found > > > >but I don't know where it is coming from. In my muttprintrc I have > >the printer set to hp-psc-1310 which is the system printer and is > >using CUPS. Its a USB printer, so where is the lpr coming from ? > > > >Ed > > lpr is one of the system commands to print. There are also lp and > lpr-cups IIRC. Maybe you need to specify the print command somewhere? > When you installed cups, it installs its own lp* binaries, usually under /usr/local. So you need to override the systems default lp* commands in /usr/bin either by removing thier executable bit or by putting /usr/local/bin before /usr/bin in your $PATH. At the shell prompt, do lp <tab><tab> and it will list all the lp* commands on your system. All my cups commands are in /usr/local/bin and /usr/local/sbin. When you installed cups you will have had to set up the printer by using the local web interface at http://localhost:631 in a browser and making sure from there, using the admin tool, that your printer is found and configured as the default printer. Have you done all of that already? However, I do use a BSD system so my set up will be different to a Debian system, but the principals of cups and setting it up are the same. The command lpr is the correct command to use from the command-line and any command-line programs like mutt, you just need to point it/them to the cups lpr instead of the default versions. In your muttrc, setting $print_command to something like "cups" is incorrect. It must be set to either a script that deals with the print commands required or to a print binary installed on your system, such as set print_command=/usr/local/bin/lpr. I have not used muttprint before but you should review its documentation on how to set it up correctly. As I understand it, it's a trivial thing. -- Primary Key: 4096R/1D31DC38 2011-12-03 Key Fingerprint: A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38