mtaylor at bytecraft.com.au
Sun Jan 23 22:13:06 PST 2005
Hmm - I use
printing = lprng
and my standard lp setup that all unix programs use
on the windows box is can see \\unixhost\lp as an available printer
so I just added it using the wizard on winblows...
To avoid windows sending printer binary codes I chose a printer
type of Postscript.
It Just Works (tm)
I suspect that lpr would work also - I think the real trick
is to sidestep the windows print-ripping actions and let
The Printer Print (tm)
BTW I ma using a HP 5MP on a parallel port of the FBSD boxen.
The 5MP has the postscript engine inboard.
On Mon, 2005-01-24 at 13:48, McCy Ron wrote:
> I have/had the same problem - couldn't print to the Samba shared printer
> until I found in the
> "Handbook" a couple of line of code that were missing in my smb.conf....
> comment = Guttenburgs Pride
> printable = yes
> printing = BSD
> printcap name = /etc/printcap
> print command = /usr/bin/lpr -P%p -r %s
> path = /var/spool/samba
> min print space = 2000
> public = yes
> I've got a printcap setting that uses a "pass-through" filter.....
> Windows provides the drivers that talk to the printer correctly. BSD
> need only pass the bytes through.
> ### printcap setup for Samba printer share......
> broxima|hplj4|Samba Laser:\
> ### pass-prt ......Pass through filter........
> /bin/cat && exit 0
> Mikko Heiskanen wrote:
> >Hi list,
> >I'm having hard time getting printing working from samba winXP client to
> >a printer parallelport connected to my FreeBSD-4.10-release box.
> >I have a HP Laserjet 1200 -printer, and am using LPD and apsfilter with
> >postscript driver as suggested by linuxprinting.org.
> >Everything works real well under BSD, but I am unable to get any output
> >to printer from the Windows box.
> >I have gathered different bits and pieces from around the net and
> >manuals, and have come up with the following:
> > :lp=/dev/lpt0:\
> > :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\
> > :sd=/var/spool/lpd/lp:\
> > :lf=/var/spool/lpd/lp/log:\
> > :af=/var/spool/lpd/lp/acct:\
> > :mx#0:\
> > :sh:
> >raw|hp|HP LaserJet 1200:\
> > :lp=/dev/lpt0:\
> > :sd=/var/spool/raw:\
> > :lf=/var/spool/raw/log:\
> > :af=/var/spool/raw/acct:\
> > :mx#0:\
> > :sf:\
> > :sh:
> >$ ls -ld /var/spool/lpd/lp
> >drwxr-xr-x 2 root daemon 512 Jan 23 19:59 /var/spool/lpd/lp
> >$ ls -ld /var/spool/raw/
> >drwxr-xr-x 2 root wheel 512 Jan 23 19:57 /var/spool/raw/
> > hosts allow 10.0.0.
> > security = user
> > encrypt passwords = yes
> > socket options = TCP_NODELAY
> > client code page=850
> > wins support = yes
> > printing = bsd
> > printcap name = /etc/printcap
> > comment = Laserjet 1200
> > path = /var/spool/samba
> > printer name = raw
> > public = yes
> > writeable = no
> > printable = yes
> >$ ls -ld /var/spool/samba/
> >drwxrwxrwt 2 root wheel 512 Jan 23 20:03 /var/spool/samba/
> >In the Windows box, I've added a local printer with the "Add new printer
> >wizard" pointing it to lpt1-port. After that, I have opened a command
> >prompt, and typed "net use lpt1: \\10.0.0.1\lp".
> >I have filesharing also in samba, and that works without problems.
> >My windows username and password are same as samba username and
> >However, as said, nothing gets printed. No files are in the
> >spooldirectories. I do not know how to proceed, and would love some
> >guidance. Thanks,
> >ps. would hate to have to put it into windows box, as printer supports
> >freebsd-questions at freebsd.org mailing list
> >To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> ***This Email has been scanned for Viruses by MailMarshal.***
Special Projects Engineer
Bytecraft Systems & Entertainment
P: +61 3 8710 2555
F: +61 3 8710 2599
D: +61 3 9238 4275
M: +61 417 319 256
E: murraytaylor at bytecraftsystems.com
or visit us on the web
The information transmitted in this e-mail is for the exclusive
use of the intended addressee and may contain confidential
and/or privileged material. Any review, re-transmission,
dissemination or other use of it, or the taking of any action
in reliance upon this information by persons and/or entities
other than the intended recipient is prohibited. If you
received this in error, please inform the sender and/or
addressee immediately and delete the material.
E-mails may not be secure, may contain computer viruses and
may be corrupted in transmission. Please carefully check this
e-mail (and any attachment) accordingly. No warranties are
given and no liability is accepted for any loss or damage
caused by such matters.
***This Email has been scanned for Viruses by MailMarshal.***
More information about the freebsd-questions