LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-17-2009, 12:51 PM   #1
Majin_Buu
LQ Newbie
 
Registered: Apr 2006
Posts: 12

Rep: Reputation: 0
Red face [cups] "no printers found" - printer isn't recognized by CUPS over network


Hi! I've been at this mess pardon my french for a few hours and i'm still going nowhere, original thread posted over at archlinux forums: http://bbs.archlinux.org/viewtopic.php?id=74188


http://img.photobucket.com/albums/v3...o-printers.png CUPS webinterface on the server

Printer: Samsung ML-1630 Series (Samsung ML-1630 Series)
Client ip: 192.168.1.100
Server ip: 192.168.1.104

Printer hooked up to client (dmesg)
Works: yes


Code:
usb 2-1: new high speed USB device using ehci_hcd and address 4
usb 2-1: configuration #1 chosen from 1 choice
usblp1: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04E8 pid 0x328B
usbcore: registered new interface driver usblp

Detected Printers:

Samsung ML-1630 Series (Samsung ML-1630 Series USB #2)
Printer hooked up to server (dmesg)
Works: unknown (not detected by cups over the network)


Code:
usb 2-1: new high speed USB device using ehci_hcd and address 4
usb 2-1: configuration #1 chosen from 1 choice
usblp1: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04E8 pid 0x328B
usbcore: registered new interface driver usblp
cupsd.conf (client)

Code:
#
# "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $"
#
#   Sample configuration file for the Common UNIX Printing System (CUPS)
#   scheduler.  See "man cupsd.conf" for a complete description of this
#   file.
#

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel debug

# Administrator user group...
SystemGroup sys root


# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
ServerName 192.168.1.104

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAllow all

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Order allow,deny
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Encryption Required
  Order allow,deny
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an administrator...
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

#
# End of "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $".
#
cupsd.conf (server)

Code:
#
# "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $"
#
#   Sample configuration file for the Common UNIX Printing System (CUPS)
#   scheduler.  See "man cupsd.conf" for a complete description of this
#   file.
#

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel debug

# Administrator user group...
SystemGroup sys root lp


# Only listen for connections from the local machine.
port 631
Listen /var/run/cups/cups.sock
Listen 192.168.1.104:631

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAllow all


DefaultEncryption Never

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Order allow,deny
  Allow all
</Location>

# Restrict access to the admin pages...
<Location /admin>
  #Encryption Required
  Order allow,deny
  Allow all
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
  Allow all
</Location>

<Location />
  Order allow,deny
  Allow localhost
  Allow all
</Location>




<Location

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an administrator...
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

#
# End of "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $".
#
CUPS on the client logs:

http://pastebin.com/m57ac4766 (error_log)

CUPS on the server logs:

http://pastebin.com/ma23b916 (error_log)

EDIT: this is the output from my server:


Code:
lpinfo -v
network socket
network beh
network http
network ipp
network lpd
direct scsi
network smb
CUPS doesn't support USB printer over network? Nah that can't be the case most printers today is USB not parallell.

Since my printer isn't visible on my server (works just fine on my client) I tried to manually add various URI (tried em all) and I went from "printer location not found, waiting for jobs, to printer isnt running".

In my opinion it should be working but it's not, i've read the linux printer database/various linux forums/#cups on freenode (idled for 2 days no response)/gentoo wiki/forums and the old tool "google" but most of the "hacks" I tried didn't work.

There's a lot of google links with issues similars to my own and alas they are all unresolved, is this a typical problem with unix/CUPS over servers/network?

Why is it so difficult for CUPS to detect my printer over my server?

Anyone have any ideas?

Thank You

Last edited by Majin_Buu; 06-17-2009 at 12:54 PM.
 
Old 06-17-2009, 03:41 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
You have posted so many links and logs, it is difficult to see the forest for the trees.

I understand your frustration, but although you have already given us "too much information", you also haven't given us the "right" information:

What distro is your "server" running ?
What distro is your "client" running ?
What versions of cups are you running on each ?

To condense your problem (correctly, I hope):

- Printer plugged into "client" - works. ( But what, exactly, is "client"? ).
- Printer plugged into "Server" doesn't. ( But what, exactly, is "server"? ).

These are the steps I think you need to go through:

1] Plug your printer into the PC you want to be your print server - let's call it Pserver

2] Configure cups on Pserver so you can print from Pserver to the local printer.

3] Configure /etc/cups/cupsd.conf on Pserver so that it will broadcast the printer to your LAN and accept print requests from your range of LAN IPs. The cupsd.conf file is well commented, so this is not too difficult.

4] Restart cups on Pserver so the changes to the cupsd.conf file are noticed.
For my distro (kubuntu) the command is
Code:
sudo /etc/init.d/cupsys restart
Yours may be different, but there'll be something similar (Hint: Search).

Then...

5] Fire up cups on the "client". Add a printer. Tell it to search for printers on your LAN subnet. You may have to adjust the default LAN subnet addresses it searches (Eg from 192.168.x.y to 10.x.y.z or whatever you LAN IP network addresses are).

6] Select your printer ( It should be found at something like ipp://Pserver:631/printers/PrinterName )

If you haven't set up the file /etc/hosts on both machines, you'll need to refer to the printer as ipp://LAN.IP.ADDR.ESS:631/printers/PrinterName.

Better to set up /etc/hosts before you even start on this printer business.

If it is still not found, then you haven't set up cupsd.conf correctly on your Pserver. Go back to step [3] and try again. Don't forget to restart cups after you have made changes to cupsd.conf

7] Set it as a "Raw printer" (no driver needs to be selected, as this is handled by the driver on Pserver)

6] Print a test page.

Then you should be set to go.

If you have problems, please search for cups howto then come back here.

If you get it working, it would be polite to tell us exactly what your problem and resolution were.
 
Old 06-17-2009, 05:52 PM   #3
ntrcessor
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
If your printer is a host based printer, and the Server is a windows box, then you may have to jump through a lot of hoops to get it working. You'll want to check out http://openprinting.org
And download all the drivers (footmatic, and ppd files) for your printer.

Without the ppd file from the windows driver you will not be able to print, as the print job will have to be sent w/ the firmware for the printer. (i.e. cups needs the firmware for your printer to print to it remotely...local cups will work because it handles that. RAW should work if you are going cups to cups.)
 
Old 06-18-2009, 10:25 AM   #4
Majin_Buu
LQ Newbie
 
Registered: Apr 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by tredegar View Post
You have posted so many links and logs, it is difficult to see the forest for the trees.

I understand your frustration, but although you have already given us "too much information", you also haven't given us the "right" information:

What distro is your "server" running ?
What distro is your "client" running ?
What versions of cups are you running on each ?

To condense your problem (correctly, I hope):

- Printer plugged into "client" - works. ( But what, exactly, is "client"? ).
- Printer plugged into "Server" doesn't. ( But what, exactly, is "server"? ).

These are the steps I think you need to go through:

1] Plug your printer into the PC you want to be your print server - let's call it Pserver

2] Configure cups on Pserver so you can print from Pserver to the local printer.

3] Configure /etc/cups/cupsd.conf on Pserver so that it will broadcast the printer to your LAN and accept print requests from your range of LAN IPs. The cupsd.conf file is well commented, so this is not too difficult.

4] Restart cups on Pserver so the changes to the cupsd.conf file are noticed.
For my distro (kubuntu) the command is
Code:
sudo /etc/init.d/cupsys restart
Yours may be different, but there'll be something similar (Hint: Search).

Then...

5] Fire up cups on the "client". Add a printer. Tell it to search for printers on your LAN subnet. You may have to adjust the default LAN subnet addresses it searches (Eg from 192.168.x.y to 10.x.y.z or whatever you LAN IP network addresses are).

6] Select your printer ( It should be found at something like ipp://Pserver:631/printers/PrinterName )

If you haven't set up the file /etc/hosts on both machines, you'll need to refer to the printer as ipp://LAN.IP.ADDR.ESS:631/printers/PrinterName.

Better to set up /etc/hosts before you even start on this printer business.

If it is still not found, then you haven't set up cupsd.conf correctly on your Pserver. Go back to step [3] and try again. Don't forget to restart cups after you have made changes to cupsd.conf

7] Set it as a "Raw printer" (no driver needs to be selected, as this is handled by the driver on Pserver)

6] Print a test page.

Then you should be set to go.

If you have problems, please search for cups howto then come back here.

If you get it working, it would be polite to tell us exactly what your problem and resolution were.
Hi! Yeah everything you suggested I already tried+various other guides and I even read the ENTIRE cups man+manual but i'm still not goin anywhere. My distro which i've should have mentioned is archlinux (BSD init instead of SYSV), same one I run on my server as well. I spent a fews hours yesterday and a few today but once more i'm still not getting anywhere.

As of now i'm gonna hook up the printer to my laptop (inconvience) and accept the fact this printer (samsung m1630) won't be working on my current linux build, time is probably a better word.

Thank you tredegar for taking your time giving me a few headlines on how to debug my CUPS error, much appreciated sir!

@ntrcessor

No sir, only linux here no windows no samba!

Thanks a lot guys, if I somehow would find a solution I will update this thread

Regards

Frank
 
  


Reply



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
Printing from XP to a Slug via CUPS - "Get-Printer-Attributes successful-ok " wibbleypants Linux - Networking 0 01-28-2009 12:24 PM
"Printer not connected.." with CUPS 1.2.10 and Brother MFC-215C USB mattp52 Linux - Hardware 1 09-18-2007 03:39 AM
CUPS Error "Request Entity Too Large" When Adding/Modifying Printer liquidrabbit Linux - Software 1 06-09-2006 10:16 AM
CUPS w/two HP printers "media tray empty" error OhMyAchingGut Linux - Hardware 2 01-20-2005 08:34 PM
Cups & gimp-print "No pages found!" Silent1 Linux - Hardware 2 01-17-2003 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:29 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