LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-01-2005, 07:09 PM   #1
tisource
Member
 
Registered: Feb 2002
Posts: 322

Rep: Reputation: 30
Users can't manage print jobs on CUPS/Samba printer


I am in the process of installing a new linux server, and would like to move printing from windows to linux. However, I have had a difficult doing to.

I set up both of our network printers in CUPS. Both are network printers (direct IP). Samba automatically sees them and displays them as available printers (print queues) for our subnet.

I can print from windows through samba just fine. However, when I double click the remote samba queue from my windows workstation, I can't see any of the jobs (I see "printer is offline... cannot connect" in the title bar, but it still prints). I need that functionality, or I'm afraid printing will have to stay on windows.

Is there a way to do this? I have searched a number of docs on google, and have done some digging, but most docs simply show how to make simple CUPS/Samba integration work. I'm a bit lost.

Suggestions?
 
Old 04-02-2005, 12:53 AM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
You might be fighting a firewall issue (related to port 515?). Try stopping all firewalls (linux and windows) and see if the problem goes away. If Yes, then work backwards to identify the problem’s source.

It isn’t clear which distro you are using, but if it is FC3, there are some odd bugs in Samba (see https://bugzilla.redhat.com/bugzilla....cgi?id=133064). Pay close attention in the bug report to the comment about “-A RH-Firewall-1-INPUT -p tcp -s <printer-IP> --sport 515 -j ACCEPT”.
 
Old 04-02-2005, 11:17 PM   #3
tisource
Member
 
Registered: Feb 2002
Posts: 322

Original Poster
Rep: Reputation: 30
I have no firewall running, particularly because we're on a small private subnet (behind an IP masquerade).

I performed an nmap scan from another box on the box in question. I also checked netstat on the local box. I have nothing running on port 515.

I'm running SuSE. Samba is 3.0.9.
 
Old 04-03-2005, 10:22 AM   #4
jerky
Member
 
Registered: Jul 2003
Distribution: RH 7.3 , RH9,RHEL,FC
Posts: 38

Rep: Reputation: 15
ipp printing

if you are running Redhat distro of some sort, run the system-config-printer ,and setup your printer, once it is setup, right click on it and goto the sharing tab which will allow you to share it for your local network , 192.168.0.0/24 or whatever yours maybe. THis is necessary as by default Cups only allows connections from localhost. You can of course, set it up as you mentioned by a samba share which then has different priviliges.

You should then setup a printer in Windows, to print to an IPP port at your newly created ipp port. The format of the IPP port is http://IP_ADDRESS/printers/PRINTERNAME .

Windows 2000, Xp both support printing to IPP port. This is a best method, as Samba will show it as a Shared device, and depending on your SAMBA configuration, it may authenticate the user that you are logged in with in your windows computer, against the samba password database.

IPP is preferred method as you can use local device drivers.
 
Old 04-05-2005, 01:05 PM   #5
tisource
Member
 
Registered: Feb 2002
Posts: 322

Original Poster
Rep: Reputation: 30
It isn't a Redhat distro... its SuSE.

I changed the directives to allow everyone on our subnet to print (10.0.0.*). When I try to connect with XP (direct IPP), I get an instant error. It says Windows cannot connect to the printer, and then gives possible explanations (connect lost, or incorrect name).

I was going to verify my configuration through the CUPS web interface, but it doesn't come up. Doesn't that run on :631 also?
 
Old 04-08-2005, 06:10 PM   #6
dannyl
Member
 
Registered: Aug 2003
Location: Near Marion, Ill.
Distribution: Slackware 12.2, Kubuntu, Zenwalk
Posts: 102

Rep: Reputation: 15
I haven't installed one of these, but I know in XP you have to go into setup to tell XP to use smb. Forgot exactly how to do that, but it is in the system configuration.

For some reason Micro$oft doesn't like to admit other operating systems exist and they deliberately make it difficult to work with. If everything is Window$ they will work automatically.

It is just as difficult printing from a Linux box to a Window$ connected printer.

Last edited by dannyl; 04-08-2005 at 06:14 PM.
 
Old 04-17-2005, 01:27 PM   #7
chrismil
LQ Newbie
 
Registered: Apr 2005
Location: UK
Distribution: FC3/rh9/FC2/KNOPPIX
Posts: 1

Rep: Reputation: 0
Yes I know that one. Prints fine, but cannot look at jobs. I'm looking into it now for myself on a fresh install.

The key to search for is cupsaddsmb - you should have a copy. I'm not yet sure how well this works in FC3 so read up first. This automates a process using RPC to add the necessary definitions and drivers to the samba server; if it fails you should be able to track down instructions on the web to do the parts by hand.

See also http://www.cups.org/windows/index.php

Good luck,
Chris

Last edited by chrismil; 04-17-2005 at 01:39 PM.
 
Old 04-20-2005, 04:50 PM   #8
XIII
LQ Newbie
 
Registered: Apr 2005
Location: Amsterdam, The Netherlands
Distribution: Debian
Posts: 2

Rep: Reputation: 0
I think you might have in you smb.conf under the [printers] section the following

browseable = No

just set it to yes and it should work.

Also check ofcourse the PATH of the printers...

let me know if it worked yes or no
 
Old 04-21-2005, 12:52 PM   #9
tisource
Member
 
Registered: Feb 2002
Posts: 322

Original Poster
Rep: Reputation: 30
Sorry for the late reply... my cups is hanging up my samba, so I had to shut cups off. Until I get that error fixed, this problem isn't a top priority.
 
  


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
Cant print using samba and cups to a windows printer araldit Linux - Networking 5 11-27-2007 09:21 PM
Problem installing my printer under CUPS - All print jobs get cancelled immediately lowpro2k3 Slackware 6 10-31-2005 02:09 PM
jobs queued in cups but printer wont print samel_tvom Linux - Software 1 11-28-2004 09:03 PM
Allowing any user to manage/ delete print jobs mpk25 Linux - Networking 0 10-13-2004 02:05 PM
Suse 8.1,Samba,Cups print to Win2k printer mithrin Linux - Networking 1 03-14-2003 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:12 PM.

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