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


Hate these ads?



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













-
Google Friend Connect users can
comment on this page here


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



Views for this page
Today This Week This Month This Year  Overall
143185 1,326

/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


larryi@ccamedical.com SCO OS5, Debian Linux, RedHat Linux, MySQL, Apache, AJAX development using dXport/dL4/Unibasic, Windows Connectivity, Sharing Resouces, Automation, Shell Scripting


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.



Twitter
  • Dec 4 07:16
    Being tired will cost me at Poker tonight but I don't see how I can squeeze in a nap.
  • Dec 4 04:06
    Wife had a nightmare at 2:00 AM; I never got back to sleep. Gave up at 4:00 and got up.




card_image








Change Congress