Re: [XonX-Users] printing from XDarwin?
Brought to you by:
torrey
From: Torrey T. L. <to...@mr...> - 2002-02-12 01:07:27
|
At 4:15 PM -0800 2/8/02, RCohen wrote: >Is there an easy way to print from xdarwin? I would like to be >able to print pdf's, text files, etc, to a printer on my mac's network >when I'm logged in from someplace else. I notice that there is an >lpr on my machine, but when I run it it complains about not being >able to start a daemon. What is needed to create or start printer >daemons, or is this the wrong approach? You have to configure lpr the same way you do on other flavors of Unix. Actually... make that almost the same way. You need to add items to NetInfo equivalent to what you would normally put in /etc/printcap. Typically this is done by crafting your /etc/printcap file and then using "niload printcap . /etc/printcap" to pull it into NetInfo. You can use "nidump printcap ." to see what is currently being used. You can also create the printer by hand in NetInfo Manager as well. Here is one person's sample printcap: 192.168.0.1: \ :lo=lock: \ :ppdurl=file://localhost/System/Library/Printers/PPDs/ Contents/Resources/en.lproj/LaserWriter%2012_640%20PS: \ :LPR_PRINTER=1:rm=192.168.0.1:sd=/var/spool/lpd/192.168.0.1: The format is :propertName=propertyValue. On Mac OS X 10.0.x if you created an lpr printer in the PrintCenter it was added to NetInfo. Unfortunately in 10.1, the two printing environments have diverged and this is no longer true. You now have to add the NetInfo printcap entries yourself. There is quite a bit of discussion of this on the Darwin OS User's email list. --Torrey |