samba printing to hplaserjet


What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):



From: "Brian K. White" <linut@squonk.net>
Subject: Re: Samba and HP Laserjet III's References: <slrn94fe2c.bmu.dpuryear@localhost.localdomain> <3A487CB1.4A544942@aplawrence.com> <slrn94qpa6.12l.dpuryear@localhost.localdomain> <G6E166.G7F@wjv.com> <slrn96bpbd.187.dpuryear@localhost.localdomain>
Date: Wed, 17 Jan 2001 21:04:01 GMT

My Unix and Linux Troubleshooting E-Book will show you how to
solve tough system problems!



Dustin Puryear wrote:

> On Sat, 30 Dec 2000 15:46:54 GMT, Bill Vermillion <bill@wjv.com> wrote:
> >>My question: if the "dumb" print filter doesn't add or remove any
> >>formatting codes to the print job why is this not working?
> >
> >How about using the HP Laserjet III 'filter' and use the -o raw
> >option?   Since you say it's a graphics printing problem, that's
> >what you typically use  'raw' for.

> I am not sure how to do this. I ran 'scoadmin printer' and didn't see the
> option to use "raw" printing. I also viewed /etc/printcap and viewed it's
> manpage for any OSR5-specific extensions.



all you do in scoadmin is select the model "HPLaserJet" (or whatever other
model you see there that you want to try out)














to use the "-oraw" (not "raw", and not "-raw", do not presume we made
typos until you try it exactly as stated and it doesn't work) in smb.conf
where it says "lp <some stuff>" insert "-oraw" into the <some stuff>



here is a sample from my smb.conf on my linux box...
[global]
        ...
        print command = lpr -r -P%p %s
        ...



here is the equivalent for osr5
[global]
        ...
        print command = lp -d%p -oraw %s
        ...


ad




note 2 things:
 this print command can be added to to indavidual shares sections too, so
you can have something like:



[NEC P1200]
        comment = NEC PinWriter P1200
        path = /var/spool/samba
        writeable = Yes
        guest ok = Yes
        printable = Yes
        printer = nec
        print command = lp -d%p -oraw,nff,b,12cpi,lq %s









 and also the "print command =" line doesn't even show up by default
anywhere in smb.conf in some cases unless you want to modify it from it's
default behaviour.




I highly recommend enabling swat.
I've already regurgitated enough stuff that you could have read for
yourself by typing in "samba configuration" into any search engine, so I
leave it to you to do that and find out how one enables and uses swat.



-- 
Brian K. White                   http://www.squonk.net/users/linut
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx  Linux SCO  Prosper/FACTS AutoCAD  #callahans Satriani








Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner

cartoon
My Working for yourself E-Book will show you how to break free
from the 9 to 5 grind.


Views for this page
Today This Week This Month This Year  Overall
132184 1,325

/Bofcusm/968.html copyright 1997-2004 (various authors) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

More:
       - Newsgroup




Unix/Linux Consultants


http://www.vss3.com SCO/Caldera OpenServer, Unixware & Linux. Tarantella & Non-stop Clustering


UBB Computer Services Support for Openserver, Unixware and Linux. Windows integration with Unix/Linux servers. Hardware, Backup and Networking issues. Located near Sacramento CA, we provide onsite support throughout Northern CA and Nationwide via remote access. We are a SCO Authorized Partner and a Microlite BackupEdge Certified Reseller.


http://thatitguy.com Business networking servers, Linux and Unix experts. In business since 1997! Windows and Exchange to Samba and Scalix migration experts.



Twitter
  • Dec 3 14:01
    Just went out and added more bungee reinforcement. That ought to hold it..
  • Dec 3 13:58
    I'm second guessing myself on how I bungeed the cover on my golf cart for winter storage. Wondering if high wind could rip it off..




card_image








Change Congress