LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 10-20-2012, 12:09 AM   #1
n56
LQ Newbie
 
Registered: Jan 2011
Posts: 11

Rep: Reputation: Disabled
How to connect CUPS to a USB LPR network print server?


I've got one of those Winstars Technology Co., Ltd. Networking USB LPR Print Servers (Model WS-NU62P1) as shown here http://www.win-star.com/eshop/goods.php?id=58.

But I can't get a good test page printout when I use it with Linux (Ubuntu 10.04 Lucid Lynx).

Wireshark shows lots of TCP retransmissions from my Linux box and something like 239 TCP Dup ACKs coming from the server for every TCP retransmission from my Linux box.

Eventually something comes out of the printer. But when it finally does, it's mostly blank sheets of paper with only the top portion of the test page showing somewhere in the middle of the dozens of sheets that come out of the printer. I don't know if the entire test page would get printed because I cancel the job before much more paper gets wasted.

I can print directly to the printer from Linux just fine through either the parallel port (/dev/lp0), or direct USB. All 3 configurations (parallel, USB, and printer server) are using the CUPS driver for my printer.

When I set the printer device URI in Ubuntu, I tell it to "Find Network Printer", which it does. And when it probes, it comes back with the queue as "PASSTHRU".

So the full Device URI ends up being: lpd://ip_address/PASSTHRU (where ip_address is really a numeric IP address on my local network)

I can also print to the printer through the printer server using OSX. Those test pages come out right away on one sheet as they should.

So it doesn't seem to be an issue where the printer isn't supported by the print server.

Unfortunately, although this printer server has its own web server, the only diagnostic info it provides is a link status of either "Online" (when it's idle) or "Busy" (when it's processing a print job), and a device status of either "Unsupported" (when the printer is powering up) or "Ready" (after the printer powers up). I can find no logging information. No telnet or rsh either into the device either.

By the way, the Ubuntu printer properties show "Printer State: Processing - Spooling LPR job, 0% complete..." for the longest time. I didn't bother to notice what that changes to when paper finally starts coming out of the printer.

Anyone have any ideas on how to get Linux to print properly with this printer server?

Note that I did see this thread which was marked as "SOLVED" in 2010: http://www.linuxquestions.org/questi...-server-845203. That thread was closed out when the original poster found out that his printer was not supported by his printer server.

Last edited by n56; 10-20-2012 at 12:30 AM. Reason: Added logging info (or lack thereof that is)
 
Old 10-20-2012, 10:32 PM   #2
aetratus
LQ Newbie
 
Registered: Jul 2006
Location: Internet
Distribution: Fedora, CentOS, Archlinux
Posts: 27

Rep: Reputation: 6
Code:
cd /usr/lib/cups/backend && ./bjnp
What's that report? I suspect you should be using lp, not passthru for the queue (specs say it's supported).
 
Old 10-21-2012, 05:07 AM   #3
n56
LQ Newbie
 
Registered: Jan 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
It reports:
Quote:
network bjnp "Unknown" "Canon network printer"
I don't have a Canon printer. And that message looks to be what you get if:

Code:
(num_printers = bjnp_discover_printers (printers)) == 0)
But it could just be my installation of cups-bjnp. I had to download the source and build/install it first. And I had to install libcups2-dev and libcupsdriver1-dev to get it to build.

Quote:
I suspect you should be using lp, not passthru for the queue
I can change (and have changed) the queue to lp, but it doesn't seem to make a difference.

Bummer. Looks like I'll be stuck using the non-network option to print from my Linux box.
 
Old 10-22-2012, 12:27 AM   #4
aetratus
LQ Newbie
 
Registered: Jul 2006
Location: Internet
Distribution: Fedora, CentOS, Archlinux
Posts: 27

Rep: Reputation: 6
Yuck. Have you tried changing it to lpd://ip_address:8611 just for giggles? For that matter, try scanning it to see which ports are open on it (nmap), then test connecting to those ports (nc -v)...might want to look up the manual commands for lp to test printing that way.
 
  


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
[SOLVED] How to connect CUPS to a USB LPR network print server? fedoralinuxjunkie Linux - Networking 8 07-15-2014 01:44 AM
CUPS will not print LPR jobs from certain devices sheppie68 Linux - Server 1 02-03-2009 12:42 PM
can't print using lpr, but can using cups/ooffice/evince hedpe Linux - Hardware 1 07-11-2007 02:58 PM
LXer: Debian Linux file and print server: NFS, CUPS, LPR LXer Syndicated Linux News 0 02-13-2007 09:31 PM
OfficeJet G85, CUPS Web based Admin test print works, lpr/lp dose not. ptal-print OK. NLR Linux - Hardware 2 09-20-2004 02:59 PM

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

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