Setting up lpd on *BSD

ivan.roth at free.fr ivan.roth at free.fr
Tue Jan 17 03:42:35 PST 2006


Quoting Jon Drews <jon.drews at gmail.com>:

> On 1/16/06, ivan.roth at free.fr <ivan.roth at free.fr> wrote:
>> Hi Jon,
>>
>> First thank you for your reply (same thank to Lowell Gilbert).
>>
>> I tried to change the mode with lptcontrol -p -d /dev/lpt0 but that is even
>> worth because I have no more output at all!
>
> Yes - I was afraid to use things like that myself.
>
>
>>
>> I am a bit lost between all the confguration files now. CUPS, apsfilter and
>> friends is too much in one day :)
>
> CUPS is a completely different print system than the native FreeBSD
> lpd. apsfilter does not use *.ppd files. These *.ppd files are
> required by your Canon printer. This is also the probable reason why
> lptest would not print.
>
>>
>> Can you tell me where to install an especially downloaded ppd file?
>
> To use lpd do the following. I have not set it up on FreeBSD yet so
> this may not be entirely accurate.
>
> 1) Go to Linux Printing http://www.linuxprinting.org/printer_list.cgi
> and see if your printer is supported. I think your Canon printer is
> not well supported as I did not find a listing there. Here is the site
> for Canon drivers:
> ftp://download.canon.jp/pub/driver/bj/
>
> However I did not see anything that may be of use to you.
>
> 2) You now have to pick a *ppd (Postscript Printer Definition) file
> and a driver that will work with your Canon bubble jet. I don't know
> what it would be for the Canon i865. I Googled for quite a while
> trying to find a driver and *.ppd file for the i865 printer.
>  For my HP printer, the driver would be /usr/pkgsrc/print/hpijs (I
> looked at the FreeBSD ports and their hpijs depends on CUPS, so I
> don't know how to set up lpd on FreeBSD).
>
> 3) Create an /etc/printcap file that looks something like this:
>
> #       $NetBSD: printcap,v 1.11 2002/07/01 23:10:19 hubertf Exp $
> #       from: @(#)printcap      8.1 (Berkeley) 6/9/93
>
> lp|HP3740|HP Local Printer :\
>        :sh:lp=/dev/ulpt0:af=/usr/pkg/etc/HP-DeskJet_3740-hpijs.ppd:\
>        :if=/usr/pkg/bin/foomatic-rip:\
>        :sd=/var/spool/output/lpd/lp:lf=/var/log/lpd-errs:\
>        :mx#0:sh:
>
> You would replace HP-DeskJet_3740-hpijs.ppd with a Canon ppd.
>
> 4) Add your full hostname to /etc/hosts.lpd. See HOSTS.LPD(5) in the
> FreeBSD man pages.
>
> 5) I think you have to add lpd=YES in rc.conf, for FreeBSD. Look in
> /etc/defaults/rc.conf to see what it should be.
>
> 6) Add the following directories to /var/spool/output/lpd:
>
> # mkdir /var/spool/output/lpd/lp
>
> # mkdir /var/spool/output/lpd/$PRINTER_NAME_THAT_IS_IN_PRINTCAP
>
> in my case this would be
> # mkdir /var/spool/output/lpd/HP3740
>
> 7) Finally, as root, do:
>
> # lpc stop all
> # lpc start all
>
> Then do:
>
> # lpc status all
>
> and you should see something like this:
> lp:
>        queuing is enabled
>        printing is enabled
>        no entries
>        printer idle
>
> 8) Now try and print. Do something like this:
>
> # lpr /root/.profile
>
> and if all goes well you should get a printout.
> If not then do:
>
> # lpq
>
> and see the job number of your print job.
>
>
>
>> Now my printer's led is flashing permanently, but nothing else happenned.
>>
>> I never thank that printing would be that much exciting and full of 
>> suspense :)
>>
>
> It's a real pain. All I can say is that computer programs are made by
> "the society for the preservation of artificial complexity". Anyway
> here are some good references:
> On the web:
>
> http://www.linuxprinting.org/lpd-doc.html
>
> http://www.tldp.org/HOWTO/Printing-HOWTO/
>
> Books:
> "Essential System Administration" by Aeleen Frisch, Chapter 13.
>
> "UNIX System Administration Handbook" by Evi Nemeth and others, Chapter 23
>
>
> --
> Kind regards,
> Jonathan
>

Thank you very much Jon.
I will follow the steps you gave me tonight and will give you a feedback. Hope
it'll works.

Thanks again, Ivan.


More information about the freebsd-questions mailing list