LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-12-2010, 09:07 PM   #1
BashTin
Member
 
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 14.1, Centos 7
Posts: 278

Rep: Reputation: 32
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.
 
Old 01-15-2010, 04:05 AM   #2
BashTin
Member
 
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 14.1, Centos 7
Posts: 278

Original Poster
Rep: Reputation: 32
Come on guys...........don't let me down this time. Someone, any ideas??

BastTin
 
Old 01-15-2010, 06:32 AM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,357

Rep: Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to print with printer connected to WinXP? RottenMutt Fedora 11 03-03-2006 10:15 PM
Unable to print to Samba printer from WinXP TSloth Linux - Networking 3 02-06-2005 05:13 PM
Print to Printer con to Mandk from WinXP nat2k4us Mandriva 0 08-18-2004 11:46 AM
Print from Linux to WinXP printer MattOlz Linux - Networking 1 07-12-2004 03:52 PM
Setting up Redhat 7.3 to print to a WinXP printer oryan_dunn Linux - Newbie 2 11-26-2002 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration