Skip site navigation (1)Skip section navigation (2)
Date:      07 Nov 2002 19:10:18 +0000
From:      Stacey Roberts <stacey@Demon.vickiandstacey.com>
To:        ScaryG <freymann@scaryg.shacknet.nu>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Printing to HP845c attached to Win2K - over samba?
Message-ID:  <1036696221.78873.23.camel@Demon.vickiandstacey.com>
In-Reply-To: <20021106213606.05cbf297.freymann@scaryg.shacknet.nu>
References:  <1036390903.42594.8.camel@Demon.vickiandstacey.com> <20021104182126.70c42542.freymann@scaryg.shacknet.nu> <1036519197.42594.50.camel@Demon.vickiandstacey.com> <20021105131252.4735de85.freymann@scaryg.shacknet.nu> <1036619836.21717.113.camel@Demon.vickiandstacey.com>  <20021106213606.05cbf297.freymann@scaryg.shacknet.nu>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-K0Zl49pAt43eHTi3vF8f
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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
#=20

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
#=20

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
#=20

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=3D<snipped> bcast=3D<snipped>.255 nmask=3D255.255.255.0
Password:=20
Domain=3D[<snipped>] OS=3D[Windows 5.0] Server=3D[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
#=20

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=3D1
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=3D6,
count=3D1000: m=20
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
#=20
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=3D/usr/pkg/bin/smbclient
# Assume that smbclient will be in the same place as smbprint

smbclient=3D"`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 <stacey@Demon.vickiandstacey.com> wrote:
>=20
> > Guess what.., I managed to get apsfilter installed after all!
>=20
>  Sounds excellent.
>=20
> > However, at the end, running lpc restart all returned errors:
>=20
>  Looks like the daemon isn't running. That's ok...=20
>=20
>  To auto start it, edit your /etc/rc.conf file and add:
>=20
> lpd_enable=3D"YES"
> lpd_flags=3D"-l"
> (that's a small letter L not a number 1)
>=20
>  Manually start the line printer daemon with:
>=20
> /usr/sbin/lpd -l
>=20
>  Voila.
>=20
> > Checking /etc/printcap:
>=20
>  This file looks fine.
>=20
> > Here's my /var/spool/lpd/hp845c/.config:
>=20
>  Looks fine too.
>=20
> > /usr/local/share/examples/samba/printing/smbprint
>=20
>  Hell ya. Just copy this file to /usr/local/samba directory.
>=20
> > And smbclient is located here:
> > /usr/local/bin/smbclient
>=20
>  Yep. That's where mine is.
>=20
>  I think once you start the lp daemon and copy over smbprint, you should
> be ready.
>=20
> =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-=3D-=3D-=3D
>  Scary Gerry -- Senior Systems Manager
>  freymann@scaryg.shacknet.nu
>  -For web-hosting, Perl, PHP & MySql=20
>   programming see http://www.interpool.ca
> -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-=3D-=3D-
>=20
--=20
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com


--=-K0Zl49pAt43eHTi3vF8f
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQEVAwUAPcq6lpvQeubckvvXAQGblgf7BNFYH7sO+2EvaCBCHPIfEvsHa1fOdTpU
/VBqJciyEgipRE/ZQa1Qf0GBTJ2IVms3sEbXYcYv1Bi18naiIoKRoVICAdI2tE7+
uTLcWgsUsaEoxyPyckEV9z/nhQgyIYDllVS028DRvHaPuh5JT9XFQZivbTCK0RNv
fUmlr3iMIXxxpKDhvXJZFuYfYkDOaKJ4S+hCxYIUlegrc65ixvzWHfiG3q2DdQg3
UKzDiwBut/Wi+Wr1+CWzl3RBs/JrfZ/uebaybnh7MuDTrtG3EMpOGFndLqege2q8
i0mO5MLC/ZuKMlDJp9X4kQlipCeEfNwAH+Ak0nkJu2gvdTrnhIJ9vA==
=Zf2y
-----END PGP SIGNATURE-----

--=-K0Zl49pAt43eHTi3vF8f--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1036696221.78873.23.camel>