What can I do to reestablish my printing possibilities?
In the OS/2 SAMBA, I can configure the local printers on my OS/2
system to be reachable as shared network printers from the Windows
stations in my LAN, but I can't see a way not the other way round.
Cheers,
L.W.
Samba for OS/2 doesn't include a port driver for accessing network
printers yet (last I checked).
You can supposedly print from the command line using the 'smbspool' command.
Once you have that working, you can in theory use the 'eRedMan' port driver
to print to a pipe that redirects to smbspool.
From a post in the NetLabs Samba-user group:
------------------------------------------------------------------------
From: Herwig Bauernfeind <herwig.bauernfeind@...>
Subject: Re: Creating a Samba port driver
Newsgroups: gmane.org.netlabs.samba.user
Date: 2007-09-11 14:13:18 GMT
...
> So what I'm thinking is: why not do the same thing to support
> SMB/CIFS printing? Just take virtually the same driver, except
> call SMBSPOOL with the correct parameters (instead of LPR), and
> the Samba code in SMBSPOOL should take care of the rest.
>
Well, currently eRedMan can be used to do that: It creates a pipe as a
printer port, picks up the file and passes it to any program configured
to handle it.
http://members.aon.at/herwig.bauernfeind/eredman/eredman091.zip
Not as elegant, but by and large works well (as long as you don't feed
it with thousands of jobs).
------------------------------------------------------------------------
--
Alex Taylor
Fukushima, Japan
http://www.socis.ca/~ataylo00
Please take off hat when replying.
arigatoo for your reply.
> > In the OS/2 SAMBA, I can configure the local printers on my OS/2
> > system to be reachable as shared network printers from the Windows
> > stations in my LAN, but I can't see a way not the other way round.
>
> Samba for OS/2 doesn't include a port driver for accessing network
> printers yet (last I checked).
OK, I suspected that, but wasn't sure.
> You can supposedly print from the command line using the 'smbspool' command.
> Once you have that working, you can in theory use the 'eRedMan' port driver
> to print to a pipe that redirects to smbspool.
Hm. Maybe it is simpler to use LPR/LPD.
OK, I found the SMBSPOOL.EXE in the Samba directory. I found eRedMan
on the Web. Maybe I should look into that.
BTW, there is also a SMBPRINT.EXE, but calling it with a -? or /? it
tells me only that there is a "Invalid (non existent) print queue
specified in smb.conf: ''". I'm not sure how to set that up either. I
guess that is for _incoming_ printing, right? I have problems with
that, too.
Cheers,
L.W.
-- -----------------------------------------------------
Jetzt die 30-Stunden-Woche einführen bei vollem Lohnausgleich!
> <http://www.sockandawe.com> das online Buschuh-Spiel
> > You can supposedly print from the command line using the 'smbspool'
> > command.
> > Once you have that working, you can in theory use the 'eRedMan' port
> > driver to print to a pipe that redirects to smbspool.
>
> Hm. Maybe it is simpler to use LPR/LPD.
If it works for your environment, I would imagine it almost certainly is
(SLPR, in particular).
> BTW, there is also a SMBPRINT.EXE, but calling it with a -? or /? it
> tells me only that there is a "Invalid (non existent) print queue
> specified in smb.conf: ''". I'm not sure how to set that up either. I
> guess that is for _incoming_ printing, right? I have problems with
> that, too.
I don't know, sorry. I'm not really an expert on how Samba fits together.
Start eredman /setup:smb and it should do most steps automagically.
> BTW, there is also a SMBPRINT.EXE, but calling it with a -? or /? it
> tells me only that there is a "Invalid (non existent) print queue
> specified in smb.conf: ''". I'm not sure how to set that up either. I
> guess that is for _incoming_ printing, right?
Yes.
> I have problems with that, too.
smbprint.exe is a bridge between the Samba server and the OS/2 printing
subsystem.
If you use sscc.exe (the Samba Installer/configurator) and create a
shared printer it will configure smbprint.exe automagically for you.
In order to add it manually, add the following line in the section of
you shared printer in smb.conf:
print command = x:\SAMBA\smbprint.exe "%s" "%p" "%J" "%c" "%z"
Please note that the general problem with using Samba as a printer
server is that printing is a situation which especially suffers from the
EAGAIN problem which is also the reason for
http://svn.netlabs.org/samba/ticket/69 and
http://svn.netlabs.org/samba/ticket/71 . It definitely does work but it
is really slow.
Kind regards,
Herwig
> >> You can supposedly print from the command line using the 'smbspool' command.
> >> Once you have that working, you can in theory use the 'eRedMan' port driver
> >> to print to a pipe that redirects to smbspool.
> >
> > Hm. Maybe it is simpler to use LPR/LPD.
> >
> > OK, I found the SMBSPOOL.EXE in the Samba directory. I found eRedMan
> > on the Web. Maybe I should look into that.
>
> Start eredman /setup:smb and it should do most steps automagically.
Actually it didn't.
I finally tried it, but already at the first invocation with
"eRedman /MAKEOBJ" or "eRedMan /SETUP:ePDF" there was an error:
"Line 36 of Pipe_properties_Create in eRedMan.VRM:
Call PB_PipeSave_Click;
I managed to manually set up a pipe for ePDF, but when I try to send
a testpage, it tells me only that no printer is associated with that
pipe.
"eRedMan /setup:smb" results in nothing.
When I start eredman from OS/2-Commander, it only changes the
Commander window into a grey area.
Trübe Aussichten.
MfG,
L.W.
--
-----------------------------------------------------
I saw something about a samba client printer port being available
recently...
Looks like this may help
http://members.aon.at/herwig.bauernfeind/samba/#SambaPortDriver
Regards
Pete