Hi Gerry,
   I'm afraid that this still isn't working for me.

This is what I did:
1] # cp /usr/local/share/examples/samba/printing/smbprint
/usr/local/samba/

So, this is what I now have in /usr/lcoal/samba:
# ls -la /usr/local/samba
total 8
drwxr-xr-x   4 root  wheel   512 Nov  7 18:38 .
drwxr-xr-x  19 root  wheel   512 Nov  5 18:55 ..
drwxr-xr-x   3 root  wheel   512 Oct 20 20:20 lib
drwxr-xr-x   4 root  wheel   512 Nov  2 11:39 profiles
-rwxr-xr-x   1 root  wheel  3284 Nov  7 18:38 smbprint
# 

2] Restarted lpd :
kill PID from ps waux | grep -i lpd
Restarted lpd - /usr/sbin/lpd -l

Its running at the moment:
# ps waux | grep -i lpd
root   49267  0.0  0.2   976  616  ??  Is    6:39PM   0:00.01
/usr/sbin/lpd -l
root   75974  0.0  0.2   988  676  ??  I     6:44PM   0:00.00
/usr/sbin/lpd -l
root   89836  0.0  0.2  1084  660  p2  S+    6:49PM   0:00.00 grep -i
lpd
# 

So now I figured that all I need to do is to try to print something.
First I try something simple:
lpr -Php845c /etc/hosts

This results in the same initialization noises at the printer, paper is
accepted, then all stops, manual feed button lights start blinking. The
*exact* same thing that happeded before I installed apsfilter.

Pressing the manual feed button ejects the paper that has the first line
printed stair-cased.

I check the status after manually ejecting the paper:
# lpc status all
hp845c:
        queuing is enabled
        printing is enabled
        no entries in spool area
        printer idle
# 

Not sure what this means, but there's definitely something not right
here. I know that you've said as much, but I fear that there might
actually be something wrong with this set-up somehow.

Printing from smbclient doesn't work either:
# smbclient //snowball/hp845c
added interface ip=<snipped> bcast=<snipped>.255 nmask=255.255.255.0
Password: 
Domain=[<snipped>] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
smb: \> print /etc/hosts
putting file /etc/hosts as hosts-12686 (121.4 kb/s) (average 121.4 kb/s)
smb: \> quit
# lpc status all
hp845c:
        queuing is enabled
        printing is enabled
        no entries in spool area
        printer idle
# 

In this case, the same noises are heard, then the printer just stops,
and again the manual feed light button is flashing.

Checking logs:
# tail /var/log/messages
Nov  7 18:37:49 Demon su: stacey to root on /dev/ttyp2
Nov  7 18:39:22 Demon lpd[49267]: lpd startup: logging=1
Nov  7 18:39:22 Demon lpd[49267]: lpd startup: ready to accept requests
Nov  7 18:40:35 Demon su: stacey to root on /dev/ttyp2
Nov  7 18:44:42 Demon lpd[75974]: <FBSD Box> requests printjob hp845c
Nov  7 18:44:47 Demon hpijs: unable to write to output, fd=6,
count=1000: m 
Nov  7 18:45:17 Demon last message repeated 62066 times
Nov  7 18:47:19 Demon last message repeated 202773 times
Nov  7 18:53:58 Demon last message repeated 674483 times
Nov  7 18:53:58 Demon lpd[2501]: <FBSD Box> requests printjob hp845c
# 
Demon# ls -la /var/spool/lpd/hp845c/
total 6
drwxr-xr-x  2 root  daemon  512 Nov  7 18:53 .
drwxr-xr-x  3 root  daemon  512 Nov  6 21:24 ..
-rwxr-xr-x  1 root  daemon   51 Nov  6 22:16 .config
-rw-r----x  1 root  daemon    4 Nov  7 18:44 .seq
-rw-r--r--  1 root  daemon    0 Nov  6 21:24 acct
-rw-rw-r--  1 root  daemon   37 Nov  7 18:44 lock
-rw-r--r--  1 root  daemon    0 Nov  6 21:24 log
-rw-rw-r--  1 root  daemon   29 Nov  7 18:44 status
#

*What* am I doing wrong?

This appears to be related what I was saying in earlier posts,, that I
am not able to determine how it is that smbclient is supposed to "see"
smbprint, if smbprint is located in /usr/local/samba. I'm not saying
that you're wrong in any way, but from its own comments, smbprint says
that smbclient presumes that he lives in the same location as smbprint:

#smbclient=/usr/pkg/bin/smbclient
# Assume that smbclient will be in the same place as smbprint

smbclient="`dirname $0`/smbclient"

Hey, a funny thing has just happened here.., as I was tapping this out,
that last job actually printed itself off (after some 10 minutes), still
stepped!

Very.., very.., weird.

Please HELP!

Stacey


On Thu, 2002-11-07 at 02:36, ScaryG wrote:
> On 06 Nov 2002 21:57:15 +0000
> Stacey Roberts <[EMAIL PROTECTED]> wrote:
> 
> > Guess what.., I managed to get apsfilter installed after all!
> 
>  Sounds excellent.
> 
> > However, at the end, running lpc restart all returned errors:
> 
>  Looks like the daemon isn't running. That's ok... 
> 
>  To auto start it, edit your /etc/rc.conf file and add:
> 
> lpd_enable="YES"
> lpd_flags="-l"
> (that's a small letter L not a number 1)
> 
>  Manually start the line printer daemon with:
> 
> /usr/sbin/lpd -l
> 
>  Voila.
> 
> > Checking /etc/printcap:
> 
>  This file looks fine.
> 
> > Here's my /var/spool/lpd/hp845c/.config:
> 
>  Looks fine too.
> 
> > /usr/local/share/examples/samba/printing/smbprint
> 
>  Hell ya. Just copy this file to /usr/local/samba directory.
> 
> > And smbclient is located here:
> > /usr/local/bin/smbclient
> 
>  Yep. That's where mine is.
> 
>  I think once you start the lp daemon and copy over smbprint, you should
> be ready.
> 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>  Scary Gerry -- Senior Systems Manager
>  [EMAIL PROTECTED]
>  -For web-hosting, Perl, PHP & MySql 
>   programming see http://www.interpool.ca
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> 
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to