Lets do this in stages...
1. Generate a file to send to the printer (from what I read, your
printer will take ljet4 and hl1250 input
* % gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=ljet4
-sOutputFile=/tmp/golfer.ljet4
/usr/sfw/share/ghostscript/8.15/examples/golfer.eps
* % gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=hl1250
-sOutputFile=/tmp/golfer.hl1250
/usr/sfw/share/ghostscript/8.15/examples/golfer.eps
2. Verify that the parallel port works and the driver is attached
* # cat /tmp/golfer.ljet4 >/dev/printers/0
* # cat /tmp/golfer.hl1250 >/dev/printers/0
* lights should flash, paper should come out.
3. Configure a print queue (using the ljet4 driver, you might also
try the hl1250 and the hpijs drivers)
* # /usr/sbin/lpadmin -p laser -v /dev/printers/0 -m
standard_foomatic -n
/usr/share/ppd/SUNWfoomatic/Brother/Brother-HL-1430-ljet4.ppd.gz
-o banner=never -I any
* # /usr/bin/enable laser
* # /usr/sbin/accept laser
4. Try to /etc/motd,
/usr/sfw/share/ghostscript/8.15/examples/golfer.eps,
/tmp/golfer.ljet4, and /tmp/golfer.hl1250
* $ lp -d laser /etc/motd
* $ lp -d laser
/usr/sfw/share/ghostscript/8.15/examples/golfer.eps
* $ lp -d laser /tmp/golfer.ljet4
* $ lp -d laser /tmp/golfer.hl1250
5. Try printing a pdf file from the comand line
* $ lp -d laser foo.pdf
As for the lpadmin warning, lpadmin has checked to see if the
permissions on the device allow others to use it since the beginning of
time. Perhaps it's time we remove the warning. It's not like anyone
does anything about it.
As Ghee pointed out, there is an evince bug that causes it not to print
full PDF files. You can workaround this by printing to a file and
printing the file. BFUing your system won't give you the fix, you need
to install from a dvd image based on snv_61 or later. BFU only updates
one portion of the Solaris bits on your system (the ON bits). Solaris
is a combination of bits from multiple sources. The ON bits are at the
core, but there are other groups that deliver the X server, desktop,
... If you BFU'd your system, you will need to do a fresh install
before you can upgrade again. BFU doesn't update the packaging DB and
as a result, upgrade isn't likely to work. FWIW, I have my systems set
up to live upgrade and I do so at pretty much each build.
-Norm
Stuart Mackie wrote:
>> Try to see if it helps.
>>
>
> Printing should Just Work - it's very frustrating...
>
> For what it's worth I've now upgraded (bfu) to:
>
> SunOS solaris 5.11 opensol-20070326 i86pc i386 i86pc
>
> And, following the advice in:
>
> http://www.opensolaris.org/jive/thread.jspa?threadID=25998&tstart=0
>
> I have:
>
> online 21:50:01 svc:/application/print/ppd-cache-update:default
>
> Using the GUI print admin tool:
>
> New Attached Printer
> % /usr/sbin/lpadmin -p laser -s localhost -v /dev/printers/0 -m
> standard_foomatic -A write -n
> /usr/share/ppd/SUNWfoomatic/Brother/Brother-HL-1430-hl1250.ppd.gz -o
> banner=never -I postscript -u allow:all
> % /usr/sbin/lpadmin -p laser -D "Brother HL-1430"
> % /usr/sbin/lpadmin -d laser
> % /usr/bin/enable laser
> % /usr/sbin/accept laser
> UX:lpadmin: WARNING: "/dev/printers/0" is accessible by others.
> TO FIX: If other users can access it you may get
> unwanted output. If this is not what you
> want change the owner to "lp" and change
> the mode to 0600.
> Processing continues.
> ***
>
> I dont know why I get the above warning:
>
> cd /etc/printers
> ls -l
> lrwxrwxrwx 1 root root 32 Apr 3 20:42 0 ->
> ../../devices/isa/lp at 1,378:ecpp0
> ls-l ../../devices/isa/lp at 1,378:ecpp0
> crw------- 1 lp sys 119, 0 Apr 3 23:22 ../../devices/isa/lp at
> 1,378:ecpp0
>
> I still can't print properly (only text files). Any jobs from
> OpenOffice.org, Firefox or "cat *.pdf | lpr" fail. I can see the job in the
> queue but get no output from the printer. I can't print PDF's from Evince.
>
> I dual-boot MSXP and have confirmed there is no hardware fault with the
> printer.
>
> Previously, this printer was connected to an OpenBSD/sparc64 box (ultra5). I
> used the base lp tools with APSfilter and Ghostscript (with hl1250 added)
> from ports.
>
> APSFilter requires LPRng when used on Solaris, which is not on Blastwave...
> and would require a... source install (oh no!). Maybe an option.
>
> http://www.apsfilter.org/docs/apsfilter-handbook-stable.html#install_notes_solaris
>
>
> I even tried a "user" (/var/lp/ppd) PPD downloaded from:
>
> http://www.linuxprinting.org/show_printer.cgi?recnum=Brother-HL-1430
>
>
> So,
>
> I am unable to understand why my printer wont work as expected...
>
> My next plan is to try CUPS (yuck).
>
> I will feel a fraud if forced to use this - please help!
>
>
> Cheers,
>
> Stuart
>
>
> This message posted from opensolaris.org
> _______________________________________________
> printing-discuss mailing list
> printing-discuss at opensolaris.org
>