LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Print TO WinXP Printer via Samab & Redmon - Problem/s (https://www.linuxquestions.org/questions/slackware-14/print-to-winxp-printer-via-samab-and-redmon-problem-s-781836/)

BashTin 01-12-2010 09:07 PM

Print TO WinXP Printer via Samab & Redmon - Problem/s
 
Hi all Slackys. Here again to test out your expertise, you haven't let me down yet.

Now bear with me, this could go on a little. First a quick overview of what I am try to accomplish. I have my Slack box (Slack 13, 64bit) and wish to print to a Cannon ip1980 inkjet (32 bit drivers only. Source is only partially open, some libraries are closed source so cannot compile my own 64 bit driver) connected to WinXp laptop using the Windows drivers via wireless and Samba.

So I came across a little Windows app called RedMon that redirects a printer port to any other app http://pages.cs.wisc.edu/~ghost/redmon/

So basically what happens now on the Windows laptop is I have a virtual printer setup whose port is redirected to Redmon (call this Ghostscript2cannon) which in turn redirects it to a program called gsprint (command line tool that takes standard input - the print job - converts it to Postscript/Ghostscript for none PS printers) and then finally it goes off to the Cannon printer for printing using the Windows drivers - so far so good.

So the problem - basically I cannot get the printer to print from the Slack box even though I can see the shared printer and send a job to it. After a job is sent from the Linux box to the XP laptop if you double click on Ghostscript2cannon (on the xp machine) the job shows but there is no printer activity, the job just sits there and does not complete.

Some Diagnostics:

I can print a test page from Ghostscript2cannon directly on the Windows laptop so I know the Windows printer/redirect part is working.

From the Linux box I can see the shared folders of the XP laptop from Dolphin so we know the Samba/wireless part is functioning (although I cannot see the printer)

However
Code:

>$smbclient  -L shelly -Umrt%mrt

Domain=[SHELLY] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename      Type      Comment
        ---------      ----      -------
        IPC$            IPC      Ü
                                    IPC
        print$          Disk      Sp:q¨

        SharedDocs      Disk
        Ghostscript2cannon Printer  Ghostscript2cannon
        business        Disk
Domain=[SHELLY] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Server              Comment
        ---------            -------

        Workgroup            Master
        ---------            -------

so the printer can be seen from the Linux box

and..........

Code:

>$smbspool smb://mrt:mrt@shelly/Ghostscript2cannon na na "test" 1 na

added interface eth0 ip=fe80::6ef0:49ff:fe01:45d3%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.0.100 bcast=192.168.0.255 netmask=255.255.255.0
Connecting to host=shelly
tdb(unnamed): tdb_open_ex: could not open file /var/cache/samba/gencache.tdb: Permission denied
resolve_lmhosts: Attempting lmhosts lookup for name shelly<0x20>
resolve_wins: Attempting wins lookup for name shelly<0x20>
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name shelly<0x20>
resolve_hosts: getaddrinfo failed for name shelly [Name or service not known]
name_resolve_bcast: Attempting broadcast lookup for name shelly<0x20>
Got a positive name query response from 192.168.0.101 ( 192.168.0.101 )
Connecting to 192.168.0.101 at port 445
Doing spnego session setup (blob length=16)
server didn't supply a full spnego negprot
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
DEBUG: Connected with username/password...

Shows I can connect to the printer. This is the point at which I can see the print job on the xp box but nothing happens.

So I think I am almost there, just need that last little missing bit.
Any help/ideas would be very much appreciated, BashTin.

BashTin 01-15-2010 04:05 AM

Come on guys...........don't let me down this time. Someone, any ideas??

BastTin

allend 01-15-2010 06:32 AM

Perhaps this will help.
http://tldp.org/HOWTO/Debian-and-Win...o_windows.html
Note the <username>:<password>@<machinename> syntax in:
Quote:

/usr/sbin/lpadmin -p RicePrinter -v smb://fred:mypass@rice/INKJET -P /root/inkjet.ppd


All times are GMT -5. The time now is 02:26 AM.