LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Configuring CUPS with router acting as printer server (Arch) (https://www.linuxquestions.org/questions/linux-networking-3/configuring-cups-with-router-acting-as-printer-server-arch-4175544434/)

dgalt 06-03-2015 07:26 PM

Configuring CUPS with router acting as printer server (Arch)
 
Hi all

I have a Samsung CLP 310series printer that is hooked up to my Asus RT-N66U router via USB. The router is acting as the printer server for all the machines in the house (everything else is Windows, and Asus provides a no-brainer utility for getting the printer configured on Windows), which is working fine for everything besides my Arch install.

I have CUPS installed along with the Samsung Unified Drivers. Using the CUPS web interface I have tried to connect to the printer as a "LPD/LPR Host or Printer" using this as my connection:

lpd://192.168.1.1/LPRServer

where 192.168.1.1 is the router IP and LPRServer is the queue (based on the documentation from the router).

Everything else about the CUPS configuration tutorial works fine (my printer is listed in the devices, etc).

But when I go to print a test page I get nothing. The printer status just says "Idle"

In an effort to get this working at all I plugged the printer into the router via an ethernet cable as well. I was then able to go through the CUPS "Find New Printers" utiltiy, and it found the printer just fine. Again, though, when I go to print I don't get anything - just the printer status sitting there saying "Idle". I can ping the printer IP just fine, so I at least know that part is working.

I feel like there's some step here I must be missing, but I'm at a loss for what it could be. Any help would be appreciated.

ferrari 06-05-2015 06:26 AM

1. Is there any reason you're trying to use the router as a print server rather than just connect the printer directly to the network (since it is a network printer)?

2. Anything useful reported in the CUPS error log?

3. Does the router support JetDirect or IPP protocols?

4. When you connected the printer to the network via an ethernet cable, did the URI in /etc/cups/printers.conf look like the following?
Code:

lpd://<Printer IP address>/PASSTHRU

dgalt 06-06-2015 01:13 PM

1. Because this is how I already had it set up for the rest of the machines in the house. I currently only have the one wire (usb) running between the printer and router. Why did I set it up initially that way? I don't really remember, probably because of how simple it was to get set up on all the other machines in the house (I've only recently started using Linux).

2. Yes, actually, thanks for calling my attention to there being an error log. There seems to be something up with my drivers:

Code:

E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/M332xsc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/C420sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/SCX-472xsc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/ML-2950sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLX-3160sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLX-6220sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLP-320sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/M337xsc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/M267xsc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLP-310sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLP-620sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLX-3180sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/M283xsc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLP-300sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLX-3170sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/C43xsc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/SCX-3400sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/M2070sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/SCX-4650sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLP-600sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/SCX-470xsc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLP-660sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/SF-760sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLX-216xsc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/C410sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/ML-2540sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/ML-2160sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/M262xsc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/K2200sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/M2020sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLP-360sc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/M288xsc.cts"!
E [05/Jun/2015:22:25:08 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLP-610sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/M332xsc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/C420sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/SCX-472xsc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/ML-2950sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLX-3160sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLX-6220sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLP-320sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/M337xsc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/M267xsc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLP-310sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLP-620sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLX-3180sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/M283xsc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLP-300sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLX-3170sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/C43xsc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/SCX-3400sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/M2070sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/SCX-4650sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLP-600sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/SCX-470xsc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLP-660sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/SF-760sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLX-216xsc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/C410sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/ML-2540sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/ML-2160sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/M262xsc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/K2200sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/M2020sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLP-360sc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/M288xsc.cts"!
E [05/Jun/2015:22:25:13 -0500] [cups-driverd] Bad driver information file "/usr/share/ppd/suld/cms/CLP-610sc.cts"!

I'm going to look into this, as I'm guessing this is probably the issue.

3. No sure? I can't find anything about either in the router manual. I'm guessing the latter, but where exactly would that information be?

4. /etc/cups/printers.conf is empty

ferrari 06-06-2015 05:09 PM

You can increase the CUPS verbosity with
Code:

cupsctl LogLevel=debug
That might help with the error reporting and diagnostics.

Maybe a port scan of the router is in order, just to confirm that the print server is listening on port 515. Check with
Code:

nmap 192.168.1.1
* You will probably need to run this as root.

If you get to the point that you think that there is a problem with the proprietary driver, it may be worth trying the foomatic (foo2qpdl) driver instead. The foomatic drivers are normally available as a package for most distros.

http://www.openprinting.org/driver/foo2qpdl

Other than that, I'm out of ideas.

dgalt 06-07-2015 11:13 AM

Error log from attempt at printing test page after changing LogLevel to Debug:

http://pastebin.com/2wg4q5Ai

Output of nmap 192.168.1.1

Code:

sudo nmap 192.168.1.1

Starting Nmap 6.47 ( http://nmap.org ) at 2015-06-07 11:08 CDT
Nmap scan report for router.asus.com (192.168.1.1)
Host is up (0.0029s latency).
Not shown: 995 closed ports
PORT    STATE SERVICE
53/tcp  open  domain
80/tcp  open  http
515/tcp  open  printer
9100/tcp open  jetdirect
9998/tcp open  distinct32
MAC Address: E0:3F:49:6B:47:48 (Asustek Computer)

Nmap done: 1 IP address (1 host up) scanned in 0.26 seconds


ferrari 06-07-2015 05:58 PM

The nmap output shows that 'socket://' protocol is also supported, so that could be tried if desired, although I don't think LPR protocol is the cause of the problem here.

It would be useful to know if the printer would work when connected to your machine as a local USB printer. Report back with the results from doing that if possible.

I'm still digesting the error_log output, but hopefully others reading this thread may be able to advise further about that.

dgalt 06-08-2015 07:49 AM

I'll give that a shot tonight.

Nothing jumps out to me in the log, but I honestly don't know what I'm looking for.

dgalt 06-08-2015 05:00 PM

it was the driver. switched to the splix driver and now it's printing fine. probably should have just tried that from the get-go. thanks for the help :)

ferrari 06-08-2015 05:08 PM

As I was beginning to suspect. Glad that the open source driver is working for you. :)

dgalt 06-13-2015 09:12 AM

When installing the Splix driver I was presented with the message:

Code:

Color printers need color profile files to get better results. These
files are provided by your printer manufacturer and you have to install them
manually. To do that, download the official linux drivers and locate the "cms"
directory. Install the contents to "/usr/share/cups/profiles/$MANUFACTURER".

        Samsung color profile files are available at:
                (Then use MANUFACTURER=samsung)
                http://splix.ap2c.org/samsung_cms.tar.bz2

and within Cups, even though I can print a test page it is giving me the error message:

"SpliX Cannot open CMS file /usr/share/cups/profiles/samsung/CLP-315cms (2)"

I'm not all that clear though on how to install the color profiles properly. I have the contents of the cms folder from the unified driver, and have moved them into
Code:

/usr/share/cups/profiles/samsung/
, but this doesn't seem to be the correct way to do this since I'm getting the same error message.

How am I supposed to install these (maybe more appropriate to ask this question somewhere else?)

ferrari 06-13-2015 05:03 PM

I downloaded the archive file (by opening the link http://splix.ap2c.org/samsung_cms.tar.bz2), and examined the files contained within. I note that there was no 'CLP-215cms' file present. You mentioned that you grabbed the unified driver cms folder, but a quick look at that suggests it's using a different file format (.cts files).

dgalt 06-13-2015 05:22 PM

yeah in neither the linked repository nor the cms folder for the unified driver is there anything specifically for the 315.

Not sure how necessary this is, as color seems to be printing ok, but I haven't tested it extensively.

I know the foomatic driver is also an option (which you suggested before) - I went with the splix driver because this was supposedly what was recommended (see: http://www.openprinting.org/printer/...amsung-CLP-315)

ferrari 06-13-2015 05:28 PM

Quote:

How am I supposed to install these (maybe more appropriate to ask this question somewhere else?)
linux dgalt is offline Add to dgalt's Reputation Report This Post
I don't quite understand why they don't supply the required profiles with the driver. You might get support from

http://splix.ap2c.org/

Someone else asking how to go about the same

http://sourceforge.net/p/splix/discu...?limit=25#9ebb

and here too

http://www.openprinting.org/printer/...amsung-CLP-315

Sorry I can't help more than that.


All times are GMT -5. The time now is 02:45 PM.