LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 05-07-2012, 01:04 PM   #16
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44

Something went wrong during packets transmission or on the other side of the communication since I'm almost sure that all was done good and that the Linux printer system (CUPS) is doing well its job.
Maybe the printer cannot accept the job but cannot communicate to the Linux printer system or vice versa.
Is there any kind of firewall?
 
Old 05-09-2012, 08:22 AM   #17
sam845
Member
 
Registered: Mar 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
yes there is a firewall, and more than one actually, but I have been told it is set to allow all on my lan, which is where my printer is.
Could I use a tool such as nc to see what's wrong ? If so, could you guide me through it? I've never used it before.

Last edited by sam845; 05-09-2012 at 08:23 AM.
 
Old 05-09-2012, 08:43 AM   #18
sam845
Member
 
Registered: Mar 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
Actually I tried tcpdump and what I find out is that my computer seems to sends the following sentence to the printer, instead of the file content:
**** Unable to open the initial device, quitting.
Does that help to figure out what's wrong ?
 
Old 05-09-2012, 08:56 AM   #19
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Try installing the printer as a "Generic PCL5 printer" and print again.
 
Old 05-09-2012, 09:32 AM   #20
sam845
Member
 
Registered: Mar 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
err... How exactly can I do that ?
Am I supposed to change the driver and choose: "Generic PCL 5 Printer - CUPS+Gutenprint v5.2.8-pre1" ?

Last edited by sam845; 05-09-2012 at 09:34 AM.
 
Old 05-09-2012, 09:44 AM   #21
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Try that, yes.
 
Old 05-09-2012, 09:50 AM   #22
sam845
Member
 
Registered: Mar 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
Well I did and it doesn't work either. It still produces no error, goes to the print queue and then gets out of it as though it was printed, but the printer still doesn't print anything. This time, tcpdump doesn't produce any understandable ascii message. If that helps, the tcp flow is as follow: syn, syn-ack, ack + psh-ack, ack + psh-ack, ack + ack + ack + psh-ack, ack + ack + ack (tcp window update), psh-ack, ack + fin-ack, ack+fin-ack, ack.
 
Old 05-09-2012, 10:32 AM   #23
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Modify your /etc/cups/printers.conf for the printer as follow:
Code:
<Printer Generic-PCL-5e>
AuthInfoRequired username,password
Info Generic
Location
MakeModel Generic PCL 5e Printer - CUPS+Gutenprint v5.2.6
DeviceURI lpr://XXX.XXX.XXX.XXX 
State Idle
StateTime 1336576980
Type 4116
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-raster 100 rastertogutenprint.5.2
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
Where XXX.XXX.XXX.XXX is the IP address of the printer.
 
Old 05-09-2012, 11:21 AM   #24
sam845
Member
 
Registered: Mar 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
okay I did, it's still exactly the same. The queue is emptied, but nothing is printed.
edit: oh and by the way this configuration file said that I should not modify it if cupsd was running, so I tried to kill it, but it spawned right back, so I did the modifications with cupsd running.

Last edited by sam845; 05-09-2012 at 11:30 AM.
 
Old 05-09-2012, 12:45 PM   #25
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
To spot cupsd you have to invocate the script and tell it to stop.
In slackware you can stop cupsd with
Code:
/etc/rc.d/rc.cups stop
and start it with:
Code:
/etc/rc.d/rc.cups start
 
Old 05-10-2012, 02:50 AM   #26
sam845
Member
 
Registered: Mar 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
There is no /etc/rc.d directory in my 12.04 ubuntu, nor any rc.cups file in the /etc/ folder, or any of its sub folder.
In any case, I rebooted the computer, which would restart that daemon, and the printer still doesn't print anything, so the modification we made in the /etc/cups/printers.conf file didn't solve the problem.
 
Old 05-10-2012, 05:27 AM   #27
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
In Ubuntu you have to:
Code:
sudo service cupsd restart
.
 
Old 05-10-2012, 06:09 AM   #28
sam845
Member
 
Registered: Mar 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
cupsd: unrecognized service
but as I said, I did restart the service by restarting the whole computer, so even that wouldn't solve the problem.
 
Old 05-10-2012, 06:31 AM   #29
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Sincerly I cannot guess what's going wrong so I hope someone can continue where we left.
Sorry.
 
Old 05-10-2012, 07:14 AM   #30
sam845
Member
 
Registered: Mar 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
It's okay, I can't guess either. Thanks a lot for your help so far.
 
  


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
Printer issue ashraflinux1@gmail.com Linux - Server 1 11-11-2009 07:01 AM
windows connectting to linux w/printer issue cjokinen Linux - Software 1 03-07-2006 08:46 AM
Virtual Printer / CUPS-PDF Printer Issue in SuSE 10 jlstratton42 Suse/Novell 0 12-21-2005 11:04 AM
Linux networking printer issue bnumark Linux - Hardware 0 07-02-2003 02:55 AM


All times are GMT -5. The time now is 02:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration