Configuring CUPS with router acting as printer server (Arch)
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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?
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.
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
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.
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?)
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).
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)
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.