From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GNitg-0000au-AC for garchives@archives.gentoo.org; Thu, 14 Sep 2006 04:32:20 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8E4VNn9014994; Thu, 14 Sep 2006 04:31:23 GMT Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.228]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8E4R3J5031996 for ; Thu, 14 Sep 2006 04:27:03 GMT Received: by wx-out-0506.google.com with SMTP id t4so2976016wxc for ; Wed, 13 Sep 2006 21:27:03 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=XQ2jYUIY46jfoQgYTZmqEfIc53fnyf9G/aZ9A2L++FtAk+ZAjdtJFSlnV5O6omzc1lnta7iFI/PrbymOZm0EqsO4+tPmIrP40W3xdx4YcasAik+Dr6Ro8KPqSeJMUZL+ZIU3+q3YhJRZ2Uy8bz2M3egiTWgfHloZ/bLigdGJ5G8= Received: by 10.70.80.14 with SMTP id d14mr11766168wxb; Wed, 13 Sep 2006 21:27:03 -0700 (PDT) Received: by 10.70.110.1 with HTTP; Wed, 13 Sep 2006 21:27:03 -0700 (PDT) Message-ID: <7573e9640609132127w4f9d254fq9bbc3a763ddfadf7@mail.gmail.com> Date: Wed, 13 Sep 2006 21:27:03 -0700 From: "Richard Fish" Sender: richard.j.fish@gmail.com To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: [OT] print to printer on winxp via cups samba smb In-Reply-To: <87y7snqifr.fsf@newsguy.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <87lkonvh18.fsf@newsguy.com> <7573e9640609131318h48ad6563jbbad3b9475baeb72@mail.gmail.com> <87k647s16g.fsf@newsguy.com> <7573e9640609131855g5349bcbcm765428e80c857514@mail.gmail.com> <87y7snqifr.fsf@newsguy.com> X-Google-Sender-Auth: e62834dacc127815 X-Archives-Salt: b465feb5-4e33-4d11-a43a-e645e5e1b840 X-Archives-Hash: 299dd0c6958334c109f08e805b73d314 On 9/13/06, reader@newsguy.com wrote: > > Hmm, do you get something similar if you do: > > > > DEVICE_URI=smb://reader:XXXXX@chub/chub-print > > export DEVICE_URI > > /usr/bin/smbspool 0 reader test 1 0 /etc/fstab > > Well, that tried to print something at least. Somekind of stepping > problem seems to have prevented a real print. I got 2 pages. one page > with the first and second line of fstab. The second line was indented > about half a page. Then a blank page. Ok, that's good. The staircasing is easily explained/fixed, but not really important. Mostly we are just interested in the fact that that command did connect and try and print. First, do an "ls -l /usr/libexec/cups/backend/smb" It should be a symbolic link pointing to /usr/bin/smbspool. If it is, then we need to see what the differences are between running that command directly vs the way cups runs it. We can use some shell script trickery to do this: 1. mv /usr/bin/smbspool /usr/bin/smbspool.bin 2. $EDITOR /usr/bin/smbspool Make a new script that contains: ------ #!/bin/bash tmpfile=/tmp/smbspool.$$ echo $0:$1:$2:$3:$4:$5:$6:$7 > $tmpfile env >>$tmpfile # this part is just a guess.. export DEVICE_URI=$0 /usr/bin/smbspool $1 $2 $3 $4 $5 $6 >>$tmpfile ------ 3. chmod 755 /usr/bin/smbspool Try printing again through cups. After the failure, you should have one or more /tmp/smbspool.* files. Post one of those here, although you may want to inspect it first and mask out anything that reveals your password! -Richard -- gentoo-user@gentoo.org mailing list