Re: [Samba] samba printer share

2006-09-25 Thread Kostya Berger
Well, it seems, I've got it at last ...
But, my, it's far from being easy, to tell ye the truth!
Perhaps, I didn't really need to install HPLIP? And Foomatic?

As a matter of fact, I had all sorts of problems mentioned in various 
UNANSWERED mailing list threads while trying to organize driver upload to MS 
Win2000 hosts; ended up in "Quota limit reached" and no printing even with 
super-SUPER-user privilleges. Wanna share some solutions, you know; if any of 
you guys are being tormented by any of these problems, here is how I did it:

1)If your printer share is not visible in Konqueror's smb:// view, it still 
can be visible from Windows explorer; nothing to worry about.

2)installing drivers for upload via "rpcclient -adddriver" command ended 
up(after all) first in WERR_BADFILE, then in WERR_UNKNOWN_PRINTER_DRIVER and 
nothing could be done about the latter one. 

3)Thankfully, for CUPS we have "cupsaddsmb -U root ..." command to install the 
uploadable Windows drivers;  just a bit stumbled at 
"NT_STATUS_LOGON_FAILURE", which taught me a valuable lesson:
it won't heart to get yourself a SAMBA password when working with SAMBA! Even 
if you think you are a "root" and even have the root password...

4)When at last all was set, the drivers installed and EVEN uploaded 
on-demand(!!!) , the nasty thing refused to print: "ERROR: Quota limit 
reached". Such message appeared at localhost:631 (print test page). After 
about 2 hours of ... I noticed that "lpstat -p" didn't really show my  
printer, to which the last week of my life was entirely dedicated!
So, a very simple operation of reinstalling the printer via web-interface 
(setting /dev/lp0 instead of /dev/parport0) did it.
What do I care now, if the driver upload (alas!) stopped working after that? 

Even all the Win2000 machines (not even talking about the XP monsters) now can 
print via SAMBA, and my SUSE-10.1 laptop -- via CUPS!

JUST TELL ME NOW, PLEASE, WHAT ARE THE ADVANTAGES OF USING CUPS?
It seems, things are easier printing from some Win2000 host. Where can I read 
about the advantages of CUPS in a short and understandable way?
I mean, I beleive in CUPS, just how can I explain it to others?
Thank everyone for help and patience, sorry for taking so much space.

Kostya
On Sunday 24 September 2006 22:43, Kostya Berger wrote:


pgpX4aMnNDPvR.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] samba printer share

2006-09-22 Thread Bruno Rodrigues Neves

Hi,

And if you add something like that into the smb.conf:

[global]
  disable spoolss = yes

[print$]
  comment = Printer Drivers
  path = /var/lib/samba/printers

[hp2300]
  path = /tmp
  writeable = yes
  browseable = yes
  printable = yes
  guest ok = yes

what happens?

--
Bruno


On 9/21/06, Kostya Berger <[EMAIL PROTECTED]> wrote:

Hello, dear colleagues using SAMBA.

Who could possibly tell me what I am missing in order to make my SAMBA printer
share visible on the windows network( i.e., accessing it from a MS Windows
machine's explorer, for example )?
It is SAMBA 3.0.23 on Linux 2.4.33 machine(originally RedHat 7.3. based, but
so much upgraded, even to GLIBC-2.3.6).
here are the linked libraries:
=
#ldd /usr/local/samba/sbin/smbd
libcups.so.2 => /usr/lib/libcups.so.2 (0x40023000)
libpthread.so.0 => /lib/libpthread.so.0 (0x40056000)
libm.so.6 => /lib/libm.so.6 (0x400a8000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x400cb000)
libresolv.so.2 => /lib/libresolv.so.2 (0x400f8000)
libnsl.so.1 => /lib/libnsl.so.1 (0x40109000)
libdl.so.2 => /lib/libdl.so.2 (0x4011d000)
libpopt.so.0 => /usr/lib/libpopt.so.0 (0x40121000)
libc.so.6 => /lib/libc.so.6 (0x40128000)
libpthread.so.20 => /usr/lib/libpthre
And here, at last, my smb.conf:
[global]
log file = /usr/local/samba/var/log.%m
load printers = yes
socket options = TCP_NODELAY
username map = /etc/samba/user.map
interfaces = 192.168.0.1/27
domain master = yes
null passwords = yes
public = yes
wins support = true
guest account = nobody
dns proxy = no
netbios name = Samba
netbios aliases = Samba
printing = cups
server string = Samba
default = global
local master = yes
workgroup = QUBICA
os level = 65
printcap name = cups
security = share
max log size = 50

[Server_files]
map archive = no
writeable = yes
path = /mnt/nfs
hide dot files = no
public = yes
case sensitive = yes

[printers]
postscript = yes
printer = hp_LaserJet_3015
lpq command = lpstat -o %p
browseable = yes
printable = yes
print command = lpr -P %p -o raw %s -r
comment = All Printers
lprm command = cancel %p-%j
printer admin = root
===
My printer here is installed via HPLIP, CUPS is running OK, everything's OK,
except that I can't see the printer through windows  network browsing,
neither from linux, nor from windows machines. Of course, I did the RTFM
search and corrected everything accordingly, but still. The [Server_files]
share IS visible, the [printers] is NOT.

ANY IDEAS?

THANKS IN ADVANCE FOR YOUR KIND SUPPORT AND YOUR PRECIOUS TIME!
Kostya


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba




--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] samba printer share

2006-09-21 Thread Kostya Berger
Hello, dear colleagues using SAMBA.

Who could possibly tell me what I am missing in order to make my SAMBA printer 
share visible on the windows network( i.e., accessing it from a MS Windows 
machine's explorer, for example )? 
It is SAMBA 3.0.23 on Linux 2.4.33 machine(originally RedHat 7.3. based, but 
so much upgraded, even to GLIBC-2.3.6).
here are the linked libraries:
=
#ldd /usr/local/samba/sbin/smbd
libcups.so.2 => /usr/lib/libcups.so.2 (0x40023000)
libpthread.so.0 => /lib/libpthread.so.0 (0x40056000)
libm.so.6 => /lib/libm.so.6 (0x400a8000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x400cb000)
libresolv.so.2 => /lib/libresolv.so.2 (0x400f8000)
libnsl.so.1 => /lib/libnsl.so.1 (0x40109000)
libdl.so.2 => /lib/libdl.so.2 (0x4011d000)
libpopt.so.0 => /usr/lib/libpopt.so.0 (0x40121000)
libc.so.6 => /lib/libc.so.6 (0x40128000)
libpthread.so.20 => /usr/lib/libpthre
And here, at last, my smb.conf:
[global]
log file = /usr/local/samba/var/log.%m
load printers = yes
socket options = TCP_NODELAY
username map = /etc/samba/user.map
interfaces = 192.168.0.1/27
domain master = yes
null passwords = yes
public = yes
wins support = true
guest account = nobody
dns proxy = no
netbios name = Samba
netbios aliases = Samba
printing = cups
server string = Samba
default = global
local master = yes
workgroup = QUBICA
os level = 65
printcap name = cups
security = share
max log size = 50

[Server_files]
map archive = no
writeable = yes
path = /mnt/nfs
hide dot files = no
public = yes
case sensitive = yes

[printers]
postscript = yes
printer = hp_LaserJet_3015
lpq command = lpstat -o %p
browseable = yes
printable = yes
print command = lpr -P %p -o raw %s -r
comment = All Printers
lprm command = cancel %p-%j
printer admin = root
===
My printer here is installed via HPLIP, CUPS is running OK, everything's OK, 
except that I can't see the printer through windows  network browsing, 
neither from linux, nor from windows machines. Of course, I did the RTFM 
search and corrected everything accordingly, but still. The [Server_files] 
share IS visible, the [printers] is NOT.

ANY IDEAS?

THANKS IN ADVANCE FOR YOUR KIND SUPPORT AND YOUR PRECIOUS TIME!
Kostya


pgpYy4LEwTH0E.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] Samba printer share with Windows

2003-03-25 Thread Joel Hammer
Make it simple.

Get a print queue on your Samba server that can handle postscript files.
This will need a correct printcap file. Something like this works for
me in my printcap:

ps|z53:\
sh:sd=/var/spool/lpd/z53:mx#0:\
:lp=/dev/lp0:\
:if=/usr/local/lexmark/z53/z53.sh  
:mc#1
:sh:

(hmm... I forget what mc does)
Make sure you run checkpc -f, if you are using lprng.
Make sure your restart your print server after setting this up.

Then, in your smb.conf, have something like this:

[ps]
comment = Filtered for Z53
path = /tmp
read only = No
create mask = 0700
guest ok = yes
hosts allow = 192.168.
printable = Yes
printing = lprng
print command = echo %J %p %s  >>  /tmp/junkJ;\
   a="`echo '%J' | sed "s/^.*- //"`" ;\
   echo This is truncated $a >> /tmp/junkJ;\
   /usr/bin/lpr -Pps  -J"$a"  %s;\
rm %s
lpq command = /usr/bin/lpq -Pps
lprm command = /usr/bin/lprm -Pps %j
lppause command = /usr/sbin/lpc hold ps %j
lpresume command = /usr/sbin/lpc release ps %j
share modes = No
use client driver = yes 

You don't have to have a fancy print command. But, I do specify all
commands. It gets interesting when you realize you can have anything
you want for these commnands.

If you are using lprng, make sure your /etc/lpd.perms is permissive. Here
is all I have in mind, just this one line:

DEFAULT ACCEPT

Then, on your windows client, select for your printer an HP Laserjet
III Plus or something similar sounding.

In this way, you should be sending a postscript file to your samba server
which should be able to handle postscript files.


Joel



On Tue, Mar 25, 2003 at 12:45:36PM -0800, Matthew Wu wrote:
> Is there one can give me some information on how to setup printer in Samba
> so windows can print to it.
> My file sharing works fine. In winows can't see the printer. Thanks
> 
> 
> 
> Matthew Wu
> School Loans Corp.
> 10780 Santa Monica Blvd, Ste 225
> Los Angeles, ca 90025
> Tel. 310-474-7456 ext.235
> Email [EMAIL PROTECTED]
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Samba printer share with Windows

2003-03-25 Thread Matthew Wu
Is there one can give me some information on how to setup printer in Samba
so windows can print to it.
My file sharing works fine. In winows can't see the printer. Thanks



Matthew Wu
School Loans Corp.
10780 Santa Monica Blvd, Ste 225
Los Angeles, ca 90025
Tel. 310-474-7456 ext.235
Email [EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba