Article View: comp.os.linux.networking
Article #865Re: Samba cannot print
From: Mark R. Rinfret
Date: Wed, 02 Jun 1999 00:00
Date: Wed, 02 Jun 1999 00:00
39 lines
2863 bytes
2863 bytes
Try adding these lines to your [global] section:
printing = BSD
printcap name = /etc/printcap
I chased this problem for a while after upgrading from RedHat 5.2 to 6.0 and
rebuilding samba from the source. While I originally approached it the
problem by investigating the source, several others on the net reminded me
that it can be addressed from the samba configuration file (too easy :-).
The samba configure script now decides that you have a System V system
(#define SYSV) and thus assumes SYSV printing (lp, lpstat vs lpr, lpq).
Since there is no lpstat command under Linux as packaged, the print fails.
The culprit is in source/include/includes.h:
/* this guess needs to be improved (tridge) */
#if (defined(STAT_STATVFS) || defined(STAT_STATVFS64)) && !defined(SYSV)
#define SYSV 1
#endif
It looks like "tridge" figured that this would come back to haunt him. My
guess is that the introduction of STAT_STATVFS64 caused this change in
default behavior. Defining SYSV establishes the lpstat command as the
default mechanism for determining the defined print queues. You can override
the default with the above changes to your /etc/smb.conf file.
Mark Rinfret
�˼��H <visitme@toilet.com> wrote in message
news:7j21be$1cl1@news.hk.linkage.net...
> I setup samba 2.0.4 in Redhat 6.0. A HP 6P is connected to it. I can print
> ascii and postcript(using ghostscript) in the linux box. However, I cannot
> print from Windows client though I can mount the home directory and other
> shares. The print job sent to the queue and disappears afterward but the
LED
> in my printer do not blink!!! I find nothing in /var/spoold/samba. My
> smb.conf is as follows. Can anyone help?
Technical Details
Message-ID:
<CW853.3644$J3.147128@news15.ispnews.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7j21be$1cl1@news.hk.linkage.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f798d,21a0abe9187673d5 X-Google-Attributes: gidf798d,public X-Google-Thread: f9b51,21a0abe9187673d5 X-Google-Attributes: gidf9b51,public X-Google-Thread: 102b32,21a0abe9187673d5 X-Google-Attributes: gid102b32,public X-Google-Thread: 103fcc,21a0abe9187673d5 X-Google-Attributes: gid103fcc,public X-Google-Thread: 100df9,21a0abe9187673d5 X-Google-Attributes: gid100df9,public X-Google-Thread: 10669a,21a0abe9187673d5 X-Google-Attributes: gid10669a,public From: "Mark R. Rinfret" <mrinfret@markrinfret.com> Subject: Re: Samba cannot print Date: 1999/06/02 Message-ID: <CW853.3644$J3.147128@news15.ispnews.com> X-Deja-AN: 484829015 References: <7j21be$1cl1@news.hk.linkage.net> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Trace: news15.ispnews.com 928324386 155.212.205.73 (Wed, 02 Jun 1999 07:53:06 EDT) X-MSMail-Priority: Normal NNTP-Posting-Date: Wed, 02 Jun 1999 07:53:06 EDT Newsgroups: comp.os.linux.networking,comp.os.linux.admin,comp.os.linux.hardware,comp.os.linux.setup,hk.comp.os.linux,tw.bbs.comp.linux