Printing from Command Line won't work - just sits in print queue
CUPS was not originally installed on my server, I have installed it but cannot print to my network printer. On my laptop, I can... they are both running the same version of Debian. What could be missing?
Here are some details... I have two computers running the same version of Debian. One is a server with no GUI and the other is my laptop with GDM installed. My laptop (which prints with no problem) is connected via Wifi. My server is connected directly to the router via Ethernet. I cannot print from the server. The printer is a Canon Pixma MP495 that connects to the router via Wifi. I have downloaded drivers for the printer from http://support-au.canon.com.au/conte...100301501.html and installed them successfully using dpkg on both computers. Right now I have a regular text file that I am using for a test page. To print from my laptop (with success) I type: Code:
cat test.txt | lpr lpq run on server: Code:
root@server:# lpq Code:
root@server:# lpinfo -v |
One other thing I noticed:
lpq shows there is a job in the queue but when I use the web interface (at http://localhost:631/admin) there are no jobs. I have also set the printer to shared.. my laptop discovered the printer, shared through the server. So I printed via the share, through the server and the page printed. However, I still cannot print from the server, via the command line. |
My first swag is the default printer name is not the same as your network printer.
Can you print a test page via cups printers webpage successfully? Try instead lpr -P printername test.txt |
Here's a tutorial that might help: http://www.debiantutorials.org/debia...linux-etch-228.
|
Quote:
Code:
root@server:# lpr -P MP495LAN test Quote:
|
Ok look at the output and post the info for your printer:
localhost:631/printers |
Quote:
Here is the info on the localhost:631/printers page: Code:
▼ Queue Name ▼ Description Location Make and Model Status |
Also...
Code:
root@server:# lpstat -v |
At first glance looks ok. What happens when you try:
lpr -P cMP495 test.txt |
Quote:
Code:
root@server:# lpr -P cMP495 test.txt |
It might be possible that your lpr is the BSD printer spooler and not the cups-lpr wrapper.
Look at the output of the command: dpkg -s cups-bsd dpkg -s cups-client |
On another note, I did notice that when I print from the command line on my laptop it says (stdin) instead of (standard input), which appears on the server's job queue.
And here is some output below... from what I see below, you are right about it being the BSD version (I could be wrong). Code:
root@server:# dpkg -s cups-bsd Code:
root@server:# dpkg -s cups-client Code:
root@server:# dpkg -s lpr Code:
root@server:# apt-cache search lpr | grep spool |
Hmmmm.... I am thinking of removing lpr and installing lprng... but because of deps I get the below code. Any suggestions?
Code:
root@server:# aptitude install lprng |
AFAIK cups-bsd replaces lpr. I do not think lprng is what you want.
|
Quote:
When I printed on the shared version of the printer, through the server, I imagine CUPS on the laptop processed the print job, not CUPS on the server. Right? I am thinking of just starting over again, uninstall (purge) and re-install cups. |
All times are GMT -5. The time now is 01:46 AM. |