LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-25-2004, 11:07 AM   #1
gotmonkey
Member
 
Registered: Apr 2004
Location: Dearborn, Mi
Distribution: Slackware 10 & Xandros 3
Posts: 62

Rep: Reputation: 15
Printing on Winxp Printer via cups


Here is the situation. I have my hp psc 1300 series printer shared on my winxp machine. I am trying to print from my slackware box to that printer.

I set up a basic smb.conf to allow sharing between the systems. and it works, I can swap files between the two systems.

root@snafu:/home/simian# testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
Processing section "[data]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
workgroup = SNAFU
netbios name = SIMIAN
security = SHARE
passdb backend = guest
wins server = 192.168.1.1

[data]
comment = Share
path = /home/ftp
read only = No
guest only = Yes

Printer Setup:

root@snafu:/home/simian# smbclient -L monkeyboy -N
Domain=[MONKEYBOY] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
D$ Disk Default share
print$ Disk Printer Drivers
Storage (S) Disk
winmx Disk
hppsc130 Printer hp psc 1300 series
T$ Disk Default share
Mp3 Disk
ADMIN$ Disk Remote Admin
C$ Disk Default share
S$ Disk Default share
D_Storage Disk
Uploads Here Disk
Domain=[MONKEYBOY] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

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

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

root@snafu:/home/simian# ls -l /usr/lib/cups/backend/smb
lrwxrwxrwx 1 root root 17 2004-11-18 14:21 /usr/lib/cups/backend/smb -> /usr/bin/smbspool

I then get into the cups admin to install a printer
http://localhost:631
I add a new printer,
give it a name (monkeyprinter), location (monkeyboy), description (hppsc1300).

Select windows printer via samba

Device URI for monkeyprinter
smb://guest@monkeyboy/hppsc1300

Select Mfg (HP) Model (hp psc 1300)
It tells me that the printer was successfully installed.

HP PSC 1300 Foomatic/hpijs (recommended)
Description: hppsc1300
Location: monkeyboy
Printer State: idle, accepting jobs.
Device URI: smb://monkeyboy/hppsc1300

I click "print test page" and it returns

Description: hppsc1300
Location: monkeyboy
Printer State: processing, accepting jobs.
"Unable to connect to SAMBA host, will retry in 60 seconds...foomatic-rip version $Revision: 3.47 $ running..."
Device URI: smb://monkeyboy/hppsc1300

My Cups printers.conf
# Printer configuration file for CUPS v1.1.20
# Written by cupsd on Thu Nov 25 12:20:20 2004
<DefaultPrinter monkeyprinter>
Info hppsc1300
Location monkeyboy
DeviceURI smb://guest@monkeyboy/hppsc1300
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

what am I doing wrong?

Last edited by gotmonkey; 11-25-2004 at 11:24 AM.
 
Old 11-25-2004, 12:48 PM   #2
BrianW
Member
 
Registered: Jul 2003
Location: Montana
Distribution: Slackware
Posts: 246

Rep: Reputation: Disabled
Instead of using monkeyboy as a location, try using the physical internal IP like 192.168.1.#
 
Old 11-25-2004, 07:33 PM   #3
gotmonkey
Member
 
Registered: Apr 2004
Location: Dearborn, Mi
Distribution: Slackware 10 & Xandros 3
Posts: 62

Original Poster
Rep: Reputation: 15
changed the settings, tried a test page

Description: hppsc1300
Location: monkey
Printer State: processing, accepting jobs.
"Unable to connect to SAMBA host, will retry in 60 seconds..."
Device URI: smb://192.168.0.100/hppsc1300
 
Old 11-25-2004, 07:46 PM   #4
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Rep: Reputation: 30
I had similar problems connecting to a printer on my WinXP box. I don't know what caused this or when it started because I was able to print from Linus before. For some reason, even though CUPS can see the shared printer on my network, the printer will not accept print jobs; they just stay in the queue. I never did find the solution so I connected the printer to my Linux box and share it the other way. Now I can print from both computers.

Please post any updates if you do get it to work.

Kent

Last edited by oxleyk; 11-25-2004 at 07:47 PM.
 
Old 11-25-2004, 11:12 PM   #5
BrianW
Member
 
Registered: Jul 2003
Location: Montana
Distribution: Slackware
Posts: 246

Rep: Reputation: Disabled
Is there a firewall on the Windows computer? Also try in the smb:// link to include a username and password to the windows computer that has access to the printer.
 
Old 11-26-2004, 07:56 AM   #6
elb_fr
LQ Newbie
 
Registered: Feb 2004
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
Hello,

I've sent this post to support@slackware.com :

> After updating cups to 1.1.22 with Slackware current's supplied package,
> it appears to be impossible to print to Windows network printers via
> samba.
>
> Every attempt generates an NT_STATUS_ACCESS_DENIED error in the cups
> error log. I have ruled out any password issues on the Windows side.
> Deleting and re-adding the cups printer does not help either.
>
> Reverting to cups-1.1.21 corrects the problem.
 
Old 11-26-2004, 11:15 AM   #7
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 13.37, 12.2
Posts: 321

Rep: Reputation: 31
I seem to recall reading that with NT-type systems such as XP you need to "log in" as a user to print. In order to get printing working for me I created a limited user on XP called printsrv (with a password) and entered those additional pieces in the smb://... device name.

Maybe you've done this, I just didn't see it indicated in the original post.
 
Old 11-26-2004, 10:25 PM   #8
gotmonkey
Member
 
Registered: Apr 2004
Location: Dearborn, Mi
Distribution: Slackware 10 & Xandros 3
Posts: 62

Original Poster
Rep: Reputation: 15
Nope, not behind a firewall & no blocking programs running.

I tried creating a limited user on the XP box.

device uri smb://printsrvrintsrv@192.168.0.100/hppsc1300

It kicked back the same error

Printer State: processing, accepting jobs.
"Unable to connect to SAMBA host, will retry in 60 seconds..."
Device URI: smb://192.168.0.100/hppsc1300

I verified as well, I am running Cups 1.1.21



As it turns out to be unrelated. I was having eth0 problems on my XP rig & it was acting quirky. I tried a fresh install and it made no difference, but my XP box is running fine.
 
Old 11-30-2004, 11:15 AM   #9
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 13.37, 12.2
Posts: 321

Rep: Reputation: 31
You have probably checked this, but sometimes we miss the obvious. Is printer sharing enabled on your XP box for your printer?
 
Old 11-30-2004, 12:38 PM   #10
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Rep: Reputation: 30
I don't know if this is what fixed it, but I installed the samba 3.0.9 update and now I can print to my WinXP printer.

Yes, my printer is shared. The problem happened, I think, after I installed CUPS 1.1.22. It was a few days before I realized there was a problem, though.

Kent
 
Old 11-30-2004, 01:38 PM   #11
gotmonkey
Member
 
Registered: Apr 2004
Location: Dearborn, Mi
Distribution: Slackware 10 & Xandros 3
Posts: 62

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by statguy
You have probably checked this, but sometimes we miss the obvious. Is printer sharing enabled on your XP box for your printer?
Yup, I verified it. I am able to print from other window pcs in house.


I haven't tried the samba update though. I will give it a try this evening.

Thank you for the help

*****Update*****
I updated Samba to 3.07 and it made no difference.

I think that I am going to given up on printing for a while.

Last edited by gotmonkey; 12-03-2004 at 07:18 AM.
 
  


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
CUPS to Winxp for printing UltraSoul Solaris / OpenSolaris 4 11-07-2005 07:10 AM
Printing from Linux to WinXP (SAMBA & CUPS) Yoda_Oz Linux - Networking 0 02-03-2005 09:20 PM
help cups printing to network printer sledgexiv Linux - Newbie 0 09-23-2003 06:39 PM
samba + cups printing from winxp.. doublefailure Slackware 1 04-04-2003 12:18 AM
Samba printing to CUPS printer kris.kj.jacobs Linux - Networking 1 11-02-2001 03:42 PM


All times are GMT -5. The time now is 09:29 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration