From owner-freebsd-questions Thu Nov 7 11:10:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27A8B37B404 for ; Thu, 7 Nov 2002 11:10:27 -0800 (PST) Received: from colossus.systems.pipex.net (colossus.systems.pipex.net [62.241.160.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44BD243E88 for ; Thu, 7 Nov 2002 11:10:24 -0800 (PST) (envelope-from stacey@Demon.vickiandstacey.com) Received: from Demon (81-86-129-77.dsl.pipex.com [81.86.129.77]) by colossus.systems.pipex.net (Postfix) with ESMTP id 1C8DC160001BC; Thu, 7 Nov 2002 19:10:16 +0000 (GMT) Subject: Re: Printing to HP845c attached to Win2K - over samba? From: Stacey Roberts Reply-To: sroberts@dsl.pipex.com To: ScaryG Cc: FreeBSD Questions 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> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-K0Zl49pAt43eHTi3vF8f" X-Mailer: Ximian Evolution 1.0.8 Date: 07 Nov 2002 19:10:18 +0000 Message-Id: <1036696221.78873.23.camel@Demon.vickiandstacey.com> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-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 bcast=3D.255 nmask=3D255.255.255.0 Password:=20 Domain=3D[] 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]: 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]: 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 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