You are not logged in.
I have a Samsung laser print that is hooked up to my Asus RT-N66U router via USB. Up until now on all the other machines in the apartment (several Windows laptops) I haven't had to think much how to connect to the printer since Asus provides a no-brainer utility for connecting to the printer from Windows machines.
As far as I understand the router is acting as the network printer server. I've read through the CUPS, CUPS printer sharing, and LPRng wiki articles, but I'm still not confident in how I should proceed.
I think the basic initial question I have is whether or not I need to set up a CUPS server on my Arch machine. My guess is yes. From there is it then just a matter of configuring an LPR/LPD printer?
I know the question is rather vague, but I'm not sure how to make it more directed seeing as it's the initial starting point / strategy that I'm uncertain about.
Last edited by dgalt (2015-06-08 22:01:03)
Offline
You just need libcups: https://wiki.archlinux.org/index.php/CUPS#Client
Offline
few links for you :
to find drivers for your printer if you dont have them
ive managed to run Brother laser printer by doing this:
systemctl start org.cups.cupsd.service
then
localhost:631
in web browser and after it, just went trough settings.
P.s it will ask you for login and password and you should type in your log in name and your password which you use to log in to your system.
IBM Lenovo ThinkPad T61 ; Lenovo ThinkPad X220; Lenovo ThinkPad T440p; Lenovo Thinkpad W520; Lenovo Thinkpad P71; ThinkPad X1 Yoga Gen1; FrankenPad T25
Asus Z10PE D-16 WS; 2x Intel Xeon E-5 2690V4; 32GB ECC; nVidia Titan V CEO | Asus ROG Gene XI Intel i9-9900k nVidia 3070Ti
Offline
You just need libcups: https://wiki.archlinux.org/index.php/CUPS#Client
This is what I had originally thought, but then I'm not sure what to do after that.
Does cups still need to be installed?
systemctl start org.cups.cupsd.service
returns
Failed to start org.cups.cupsd.service: Unit org.cups.cupsd.service failed to load: No such file or directory.
jason I'll read through that article. I'll have to confirm, but I think the samsung unified driver (in the AUR) is what I need for this printer.
Offline
Still no success with this. I installed CUPS (since I assumed that that's what I needed to do) along with the Samsung Unified Driver. I've gone through the process of adding a printer in the CUPS web interface, but I'm doing something wrong with regards to setting up the connection since I cannot get a test page printed.
I think the main thing I'm struggling with is what type of connection this should be configured as.
From the network config report from my printer (not full report, so if other info is needed let me know):
[TCP / IP Information]
IP Assignment : DHCP
IP Address : 192.1681.106
SubNet Mask : 255.255.255.0
Default Gateway : 192.168.1.1
[IPP Information]
IPP Protocol : Enabled
Printer URL : [url]http://192.168.1.106[/url]
Authentication Scheme : None
[Raw TCP/IP Printing Information]
Raw TCP/IP Printing : Enabled
Port Number : 9100
[LPD Information]
LPD Printers : Enabled
Port Number : 515
I am assuming this should be set up as LPD/LPR Host or Printer. Going through the CUPs manager I have tried the following connections with the "LPD/LPR Host or Printer" option:
socket://192.168.1.1
socket://192.168.1.1:9100
http://192.168.1.106:631
I know in the examples in the web interface there is
lpd://hostname/queue
but I have no idea what queue refers to.
I've read through "Using Network Printers" help in CUPS, but I'm still at this point just guessing. Any insight would be appreciated.
Thanks
Last edited by dgalt (2015-06-03 13:25:34)
Offline
So I decided to just plug the printer into the router via an ethernet cable to see if I can get it working that way.
In CUPS, went to Find New Printers, it found the printer just fine. Went through tutorial to set it up. Go to print test page, and again nothing has. Job says complete, printer status is Idle, but nothing prints.
The IP address is correct and reachable from my machine, have checked both in the router and by ping'ing it.
What should I try next?
Offline
As far as I can remember, when you use the cups web interface via localhost:631 and add a LPD/LPR queue, you must add a queue name. I'm unsure about Samsung printers, but for HP networked printers which I've setup, I used "auto" as the queue name.
Offline
Well, when I looked through the documentation on the router's printer server it said to use LPRServer as the queue when configuring the connection as LPD/LPR (this was for Windows and Mac, but I assume the same applies for Linux).
So I've also tried:
lpd://192.168.1.1/LPRServer
What's weird to me, though, is that even with the printer connected via ethernet, and even though CUPS finds the printer / I can ping the printer IP, I still can't get it to print. I'm at a loss as to why.
Offline
Have you tried increasing the log level as suggested https://wiki.archlinux.org/index.php/CU … leshooting
Offline
Your "network config report from my printer" in an earlier post shows the ip address in two places [the first reference has a missing "."] as 192.168.1.106 so why are you using 192.168.1.1 ?
Offline
because that's how one sets up an lpd/lpr device, as far as my reading goes
lpd//:hostname/queue where hostname is the IP of the printer server (which in this case is the router IP), and the queue is determined by the router.
If I'm connecting to the printer through the ethernet connection I use the IP for the printer itself (i.e. 192.168.1.106)
I have tried both methods, neither has worked.
I will try generating logs as suggested above.
Offline
I've just re-read your original post and must have initially missed the point where you say your printer is connected via usb from your router, so sorry about that.
Can you connect your printer to the router using ethernet instead of usb? If so, then perhaps you could assign the printer a static ip address from your router and use that address for your cups setup.
Offline
See above, I did try that (and then used the printer IP assigned by the router, which is the one I listed above - i.e. 192.168.1.106), same issue.
Offline
Did you try increasing the cupsd loglevel yet?
Also with the printer connected via an ethernet connection and presuming the printer has the same IP address, what is the output of
nmap 192.168.1.106
and when you added the printer as a lpr/lpd device, what is the output of
lpstat -t
Offline
Haven't yet (been swamped with other stuff), but in the CUPS web interface, in the error logs, there is this about the driver:
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"!
These errors are generated when a new printer is added.
Note sure if related to this post:
https://bbs.archlinux.org/viewtopic.php?id=192525
output of lpstat -t:
lpstat -t
scheduler is running
no system default destination
device for OfficePrinter: lpd://192.168.1.1/LPRServer
OfficePrinter accepting requests since Fri 05 Jun 2015 10:25:22 PM CDT
printer OfficePrinter is idle. enabled since Fri 05 Jun 2015 10:25:22 PM CDT
Offline
Your lpstat output shows you are still trying to use the router as a print server: I would have thought it would be beneficial to remove a layer of complexity by using the ethernet connection and then print directly to the printer using lpd://192.168.1.106/LPRServer - the nmap command I posted will should show you which ports are open on the printer.
Offline
Error log from attempt at printing test page after changing LogLevel to Debug:
Output of nmap 192.168.1.1
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
Output of nmap 192.168.1.106:
nmap 192.168.1.106
Starting Nmap 6.47 ( http://nmap.org ) at 2015-06-07 11:17 CDT
Nmap scan report for SEC0015996BD12C (192.168.1.106)
Host is up (0.0036s latency).
Not shown: 993 closed ports
PORT STATE SERVICE
80/tcp open http
427/tcp open svrloc
515/tcp open printer
631/tcp open ipp
2000/tcp open cisco-sccp
5200/tcp open targus-getdata
9100/tcp open jetdirect
Nmap done: 1 IP address (1 host up) scanned in 0.12 seconds
Currently the router is connected to the printer both via a USB wire and via an ethernet.
Last edited by dgalt (2015-06-07 16:19:02)
Offline
9100/tcp open jetdirect
Nice, your samsung supports jetdirect.
Try socket:://192.168.1.106 or socket:://192.168.1.106:9100
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Online
9100/tcp open jetdirect
Nice, your samsung supports jetdirect.
Try socket:://192.168.1.106 or socket:://192.168.1.106:9100
Sure it's not just a port open on the router? And if you use the discovered printers option, you still have to provide the proper printer driver to cups.
Last edited by nomorewindows (2015-06-07 21:02:02)
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
Lone_Wolf wrote:9100/tcp open jetdirect
Nice, your samsung supports jetdirect.
Try socket:://192.168.1.106 or socket:://192.168.1.106:9100
Sure it's not just a port open on the router? And if you use the discovered printers option, you still have to provide the proper printer driver to cups.
Right, this is the concern. I have used the option in Cups to just find new printers, and it finds my printer just fine. however, I still cannot print to it.
Edit:
To be clear, I have tried socket:://192.168.1.106 and socket:://192.168.1.106:9100. Same issue as described above.
Last edited by dgalt (2015-06-07 21:53:14)
Offline
https://www.asus.com/Networking/RTN66U/ has an item that points to another webpage for supported printers. Might check that.
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
where do you see that?
also, i know this printer / router combination (and setup) works with both windows and osx machines. i haven't found any documentation for linux, but presumably the OS sending the print job shouldn't matter with regards to whether the router supports the printer.
Offline
It was in some finer print on a diagram.
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
9100/tcp open jetdirect
Nice, your samsung supports jetdirect.
Try socket:://192.168.1.106 or socket:://192.168.1.106:9100
Shouldn't that be single colon syntax? i.e. socket://192.168.1.106:9100
dgalt - your posted logs show you are using lpd://192.168.1.1/LPRServer - have you tried lpd://192.168.1.106/LPRServer as I previously mentioned?
Offline
Yup, I've tried an excessive number of combinations. I'm going to try plugging the printer directly into the computer and see if that works (to eliminate any of the networking issues). If it doesn't, I assume the issue is with the drivers? What would I try next?
@nomorewindows: oh I see what you're talking about. tiny font indeed. Looking at that page my printer isn't listed, but there are very few printers listed so I'm guessing this is one of those "well we tested these and confirmed that they work" but not exhaustive lists.
Offline