Printing from RH6.1 to a W95 printer

2000-06-22 Thread Rodent of Unusual Size

On my home network, my printer is attached to my Windows 95 box.
I want to print to it from Linux as well.  I added the printer
with the printtool control panel, but it doesn't work: specifically,
when I lpr -m a job from Linux, it vanishes into the bit bucket and
I get a confirmation message -- but nothing actually comes out.
If I give the Linux printer definition a bogus share name (i.e.,
nothing like anything on the Windows box), I get identical
behaviour.

All the Samba printing docco I've found so far has been focussed
on things going the other way: Windows trying to print on a
Linux-served printer.  Would someone be so kind as to point me
at something that can help me get things to go the other direction?
Thanks..
-- 
#kenP-)}

Ken Coarhttp://Golux.Com/coar/
Apache Software Foundation  http://www.apache.org/
"Apache Server for Dummies" http://Apache-Server.Com/
"Apache Server Unleashed"   http://ApacheUnleashed.Com/



**
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**



Re: Printing from RH6.1 to a W95 printer

2000-06-22 Thread John Abreau

On Thu, 22 Jun 2000, Rodent of Unusual Size wrote:

 All the Samba printing docco I've found so far has been focussed
 on things going the other way: Windows trying to print on a
 Linux-served printer.  Would someone be so kind as to point me
 at something that can help me get things to go the other direction?
 Thanks..

Samba comes with an ftp-like client called "smbclient", and one of its
commands is "print". Connecting and issuing "print -" will make it print
from stdin.

There's also a script for printing called "smbprint", which calls
smbclinet to print a job. I had the same problem with the redhat tool, and
I ended up examining the script and then writing a simplified version of
it that did work. Here's how it works:

To print to the NT print share "laserjet" on the NT server "foo", assuming
my NT login is "johndoe" and my password is "FooBar":

( echo 'print -' ; cat file.ps ) | \
smbclient //foo/laserjet FooBar -U johndoe -N -P

Presumably this should work with a Win9x print share as well.

--
John Abreau / Executive Director, Boston Linux  Unix 
Email: [EMAIL PROTECTED] / URL: http://www.blu.org
ICQ#28611923 / AIM abreauj
---
"Working with NT is like trying to tune a watch wearing oven mitts.
 You can't get your fingers inside like you can with UNIX.
---


**
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**



Re: Printing from RH6.1 to a W95 printer

2000-06-22 Thread Bobnhlinux

Ken,
I do this every day on my Linux boxes, using Red Hat 6.x.
I merely set up a printer, in my case the default printer,
using the RH / Gnome control panel - printer tool.
I told the printer set up tool that the HP4000 is connected
by SMB, the host name of the printer server, the share name
of the printer server on that server,  the printer type.
The printer is shared from a W95 box using standard M$
networking, with no passwords.
Yes, it uses smbprint down inside the filter, and I did use
smbprint to learn about it, but if all you want to do is print,
then this should suffice.

Bob Sparks
Linux guru wannabe

**
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**



Re: Printing from RH6.1 to a W95 printer

2000-06-22 Thread Thomas Charron

From: Rodent of Unusual Size [EMAIL PROTECTED]
To: Greater New Hampshire Linux Users [EMAIL PROTECTED]
Sent: Thursday, June 22, 2000 6:53 AM
Subject: Printing from RH6.1 to a W95 printer
 On my home network, my printer is attached to my Windows 95 box.
 I want to print to it from Linux as well.  I added the printer
 with the printtool control panel, but it doesn't work: specifically,
 when I lpr -m a job from Linux, it vanishes into the bit bucket and
 I get a confirmation message -- but nothing actually comes out.
 If I give the Linux printer definition a bogus share name (i.e.,
 nothing like anything on the Windows box), I get identical
 behaviour.
 All the Samba printing docco I've found so far has been focussed
 on things going the other way: Windows trying to print on a
 Linux-served printer.  Would someone be so kind as to point me
 at something that can help me get things to go the other direction?
 Thanks..

  Go ahead and open up the smbprint script that get's installed as part of
samba.  Most of the time, it's like /usr/bin/smbprint.  It's a self
documented sh script that can accept print jobs, and forward them via
smbclient to a destination machine on a Win32 based network.  It should do
the trick, or at least blatently show you how..  If it isn't installed as
part of your distro, I'd be glad to send you a copy..


**
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**