(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



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

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
        ...


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




Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



/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

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.



More:
       - OSR5
       - Bofcusm


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress