LinuxQuestions.org
Visit Jeremy's Blog.
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 06-03-2015, 08:26 PM   #1
dgalt
LQ Newbie
 
Registered: Jun 2015
Posts: 8

Rep: Reputation: Disabled
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.

Last edited by dgalt; 06-03-2015 at 09:47 PM.
 
Old 06-05-2015, 07:26 AM   #2
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 4,077

Rep: Reputation: 717Reputation: 717Reputation: 717Reputation: 717Reputation: 717Reputation: 717Reputation: 717
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
 
Old 06-06-2015, 02:13 PM   #3
dgalt
LQ Newbie
 
Registered: Jun 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
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
 
Old 06-06-2015, 06:09 PM   #4
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 4,077

Rep: Reputation: 717Reputation: 717Reputation: 717Reputation: 717Reputation: 717Reputation: 717Reputation: 717
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.
 
Old 06-07-2015, 12:13 PM   #5
dgalt
LQ Newbie
 
Registered: Jun 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
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
 
Old 06-07-2015, 06:58 PM   #6
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 4,077

Rep: Reputation: 717Reputation: 717Reputation: 717Reputation: 717Reputation: 717Reputation: 717Reputation: 717
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.
 
Old 06-08-2015, 08:49 AM   #7
dgalt
LQ Newbie
 
Registered: Jun 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
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.
 
Old 06-08-2015, 06:00 PM   #8
dgalt
LQ Newbie
 
Registered: Jun 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
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
 
Old 06-08-2015, 06:08 PM   #9
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 4,077

Rep: Reputation: 717Reputation: 717Reputation: 717Reputation: 717Reputation: 717Reputation: 717Reputation: 717
As I was beginning to suspect. Glad that the open source driver is working for you.
 
Old 06-13-2015, 10:12 AM   #10
dgalt
LQ Newbie
 
Registered: Jun 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
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?)
 
Old 06-13-2015, 06:03 PM   #11
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 4,077

Rep: Reputation: 717Reputation: 717Reputation: 717Reputation: 717Reputation: 717Reputation: 717Reputation: 717
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).
 
Old 06-13-2015, 06:22 PM   #12
dgalt
LQ Newbie
 
Registered: Jun 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
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)
 
Old 06-13-2015, 06:28 PM   #13
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 4,077

Rep: Reputation: 717Reputation: 717Reputation: 717Reputation: 717Reputation: 717Reputation: 717Reputation: 717
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.
 
  


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 problem - connecting to local printer as well as CUPS server bobm2011 Linux - Newbie 4 01-11-2010 08:28 AM
server acting like a printer psarni Linux - Hardware 2 09-20-2004 09:38 PM
Configuring CUPS printing through router w/ print server AIMath Linux - Networking 6 08-31-2004 12:51 AM
problems configuring lexmark 100 printer with cups gutman007 Linux - Newbie 0 04-18-2004 03:56 PM
Configuring CUPS with Lexmark printer Inexactitude Linux - Software 17 11-21-2003 11:09 AM

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

All times are GMT -5. The time now is 07:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration