From owner-freebsd-questions@FreeBSD.ORG Mon Dec 22 09:00:24 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCA6B16A4CE for ; Mon, 22 Dec 2003 09:00:24 -0800 (PST) Received: from mail.1plan.net (ns1.1plan.net [216.240.143.74]) by mx1.FreeBSD.org (Postfix) with SMTP id 5C4B643D39 for ; Mon, 22 Dec 2003 09:00:23 -0800 (PST) (envelope-from aanton@reversedhell.net) Received: (qmail 86314 invoked from network); 22 Dec 2003 17:01:32 -0000 Received: from unknown (HELO reversedhell.net) (81.196.32.25) by ns1.1plan.net with SMTP; 22 Dec 2003 17:01:32 -0000 Message-ID: <3FE72327.2030003@reversedhell.net> Date: Mon, 22 Dec 2003 19:00:23 +0200 From: Anton Alin-Adrian User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6b) Gecko/20031212 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: FreeBSD Questions References: <20031222153127.B949.LUKEK@meibin.net> In-Reply-To: <20031222153127.B949.LUKEK@meibin.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Cups X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Dec 2003 17:00:24 -0000 Luke Kearney wrote: > Hello, > I am having a troublesome time with CUPS and printing to an Epson > PM-740DU inkjet printer. I have set up cups and it works to a degree. I > can print test pages like there is no tomorrow but I cannot print from > desktop applications let alone from any of the networked machines via > samba. The client machines can browse and add the printer but they > cannot print to it. I am using a fairly generic PPD for the printer as I > could not find one for BSD in the ports and linuxprinting.org didn't > offer much joy. I understand that the printer is roughly equivalent to > the Stylus Photo 780 ( max dpi 2880x720 , 6 colours ). > > When trying to print a txt file from the cmd line I get > lpr: lp: unknown printer > /etc/printcap shows > > tamachi: $ cat /etc/printcap > # This file was automatically generated by cupsd(8) from the > # /usr/local/etc/cups/printers.conf file. All changes to this file > # will be lost. > # written for pips780 > pm780c|EPSON PM780C:\ > :sd=/var/spool/lpd/pm780c:\ > :mx#0:\ > :sh:\ > :lp=/dev/ulpt0:\ > :if=/usr/local/libexec/pips780/filter780.rev:\ > :lf=/var/log/lpd-errs: > # pips780 end > > actually having installed the pips780 file from ports I ran the setup > script to get this into printcap. If I modify the printer via the CUPS > interface it scraps all of the above and replaces it with one line which > is the name I gave the printer in the setup. > > Appreciate any tips or links to howtos that are similar to my situation > here. > > Regards > > > You did rename your /usr/bin/lpr with /usr/bin/lrp.old and set the path to /usr/local/bin/ *before* /usr/sbin in your .profile (if you are using bash shell), didn't you? (other shells use different files for configuring the $PATH variable).Cups installs new lp* files in /usr/local/ , you have to use those instead of the system-provided ones, in order to have your printer work.. Otherwise all the other programs will try to use the system-provided files, which are not cups, and which are not even configured for any printer usage, by default. CUPS is excellent. Also do modify your /usr/local/etc/cups/ppd/*.ppd file to make sure your default printing resolution is set to maximum. Check this article: http://www.freebsddiary.org/cups.php This one is even better: http://webs.tconline.net/softedges/linux/cugbsd4.html So: mv /usr/bin/lp /usr/bin/lp.bak mv /usr/bin/lpr /usr/bin/lpr.bak mv /usr/bin/lprm /usr/bin/lprm.bak mv /usr/bin/lpq /usr/bin/lpq.bak Cheers.. Alin.