Hi there,

I had to setup command line printing on my OSX a few months ago, and 
I made a tutorial web page, but it is in french... (sorry i'm french 
;-)
http://macspabc.obspm.fr/mac.php?id=2

I can give you there some tips and tricks about this setup :

1. edit the /etc/printcap file to add your printer. Keep in mind that 
for an unknown reason, you can't give aliases in you /etc/printcap 
file, so the entry should in the following form :

my_printer:\
        :lf=/var/log/my_printer-errs:\
        :lp:\
        :mx#0:\
        :rm=remote.host.name:\
        :rp=printer_name:\
        :sd=/var/spool/lpd/my_printer:

aliases are specified with such entries :
my_printer|alias1|alias2:\ ...

It does not work if you put aliases, so you know what to do ...

2. create spool and log directories and files :
root# cd /var/spool/lpd/
root# mkdir my_printer
root# chown root.daemon my_printer
root# cd bat16_rv/
root# touch .seq
root# chown root.daemon .seq
root# cd /var/log
root# touch my_printer-errs
root# chown root.daemon my_printer-errs
root# chmod 644 my_printer-errs

3. if you want to use this printer through normal Aqua programs, you 
have to load the /etc/printcap content into netinfo :

root# niload printcap / < /etc/printcap

4. activate the lpd daemon :

root# /usr/libexec/lpd

NB : if it is already launched, kill it and re-launch it

5. now you can normaly print using

lpr -Pmy_printer file.ps

or select your printer with the print center for Aqua apps. your 
printer is hidden in the Directory Services item.

Here you are, normally, it should work (it did for me and some other 
(french) people that read my page...)

Bye
Bapts





-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to