LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-09-2009, 04:57 PM   #1
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700

Rep: Reputation: 43
SOLVED: Cannot print via network


Hi,

My printer (HP PSC 1410) works fine and I've been trying to get it to work on my other computer via LAN (two pc's behind a router, both SW 12.2).
I followed this tutorial, the printer shows up on CUPS (localhost:631), but it won't print. Users are allowed.

In Guarddog I allowed IPP.
What can it be?

Update:
I just followed Alien Bob's tutorial, to no avail.

Update 2:
When I try to modify the default printer (on the client) I get an error that the server didn't reply within the time limit.

Last edited by adriv; 08-15-2009 at 06:37 AM.
 
Old 08-09-2009, 07:57 PM   #2
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
can you ping the printer from your location? Are there any firewalls in the way?
 
Old 08-10-2009, 12:04 AM   #3
vinegaroon
Member
 
Registered: Sep 2008
Posts: 99

Rep: Reputation: 21
Try using HPLIP. It is included in Slackware in the ap series. Look into hp-toolbox and hp-setup. I have had success with networked HP printers on linux using HPLIP.
 
Old 08-10-2009, 07:10 AM   #4
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by C-Sniper View Post
can you ping the printer from your location? Are there any firewalls in the way?
In both my firewalls IPP is allowed.
Cannot ping, makeuri doesn't give me an adress:
Code:
error: Device not found

Quote:
Originally Posted by vinegaroon View Post
Try using HPLIP. It is included in Slackware in the ap series. Look into hp-toolbox and hp-setup. I have had success with networked HP printers on linux using HPLIP.
Tried it but no luck:
Code:
No devices found.

Last edited by adriv; 08-10-2009 at 07:12 AM.
 
Old 08-10-2009, 09:14 AM   #5
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
If it is a network printer you should have an IP address for it. I have a Brother HL-2170W on my network that I use CUPS with and it is set to DHCP which CUPS picks up.
 
Old 08-10-2009, 05:26 PM   #6
alan9339
LQ Newbie
 
Registered: Sep 2008
Location: Tennessee
Distribution: Ubuntu
Posts: 19

Rep: Reputation: 0
I'm having the same problem. I can print on my Windows machine, but not my linux (Ubuntu 9.04) box. Both computers go through my Belkin router to get to my wireless printer. When I try to print, I get the error message "Error While Printing". I look and all I have is "Generic Printer". My HP J6480 is no where to be found. When I open System/Administration/Printing, I can select Refresh and Server. When I select Server, the only option is to select Connect. When I do I get the following "CUPS server error There was an error during the CUPS operation: 'httpConnectionEncrypt failed'."

I'm not sure what to try next or how to get Linux to see a wireless printer.

Any suggestions are greatly appreciated!!!
 
Old 08-11-2009, 10:39 AM   #7
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
Quote:
Originally Posted by alan9339 View Post
I'm having the same problem. I can print on my Windows machine, but not my linux (Ubuntu 9.04) box. Both computers go through my Belkin router to get to my wireless printer. When I try to print, I get the error message "Error While Printing". I look and all I have is "Generic Printer". My HP J6480 is no where to be found. When I open System/Administration/Printing, I can select Refresh and Server. When I select Server, the only option is to select Connect. When I do I get the following "CUPS server error There was an error during the CUPS operation: 'httpConnectionEncrypt failed'."

I'm not sure what to try next or how to get Linux to see a wireless printer.

Any suggestions are greatly appreciated!!!
try going through the administration tab in CUPS and adding the printer that way with its IP address.
 
Old 08-11-2009, 11:01 AM   #8
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Rep: Reputation: 201Reputation: 201Reputation: 201
Can you please explain how the print is set up.
Is it an networkprinter by the printer it self or is it shared to your network from another box?
I have many HP printers and there all work on linux even as network printers (some doesn't work on XP due to an bug in the HP drivers when used as network printer so i had to use one of the linux servers to handle that network printer (connect it with cups over the network) and share it with samba for the xp boxes).
I have an HP PSC 1402 but not as an network printer and thats how close i can get trying your setup if you tell me how it's setup.
I don't think PSC 1402 and 1410 differ to much but i'm not sure.
 
Old 08-11-2009, 02:42 PM   #9
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700

Original Poster
Rep: Reputation: 43
It's not a network printer, but USB connected on another Slackbox. Via the tutorials I followed it actually shows up on the client through CUPS, but it won't work.
Like I said, makeuri doesn't work, nor does hp-toolbox. Both don't "see" it.
Could it be that my router (Thomson Speedtouch 546) is just not capable?

All in all, it's not a big deal, both computers stand next to each other, so it's easy enough to switch the plug. It's just that the other day I stumbled upon a topic on a Mac forum where a guy with the same printer claimed that he had it working through his router. So I thought...
 
Old 08-11-2009, 02:45 PM   #10
alan9339
LQ Newbie
 
Registered: Sep 2008
Location: Tennessee
Distribution: Ubuntu
Posts: 19

Rep: Reputation: 0
My set-up is:
Vista hard wired to Belkin Router
Ubuntu hard wired to Belkin Router
XP wireless to Belkin Router
Printer wireless to Belkin Router (not hard wired into anything)

All my network traffic goes through the router. Currently all three computers can see and can share files with each other. My Vista box can print, I haven't tried XP.

As of this afternoon, Ubuntu can see the printer and it's set as default. (This morning, Ubuntu couldn't see the printer - I have no idea what happened as I made absolutely no changes!)
Anyway, Ubuntu tells me that the document has printed but nothing has. I even tried to print a test page and Ubuntu tells me it printed, but nothing came out of the printer.
I went to System/Administration/Printer and right-clicked on the HP printer. Everything looks correct to include the Device URI, however, Printer State has a message that I can't read. It states "Idle - Unable to start backend "hp" - No su..."
That's it. I don't know where to look to find the rest of the message.

Any suggestions?
 
Old 08-11-2009, 09:29 PM   #11
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
Quote:
Originally Posted by Adriv
It's not a network printer, but USB connected on another Slackbox. Via the tutorials I followed it actually shows up on the client through CUPS, but it won't work.
Like I said, makeuri doesn't work, nor does hp-toolbox. Both don't "see" it.
Could it be that my router (Thomson Speedtouch 546) is just not capable?

All in all, it's not a big deal, both computers stand next to each other, so it's easy enough to switch the plug. It's just that the other day I stumbled upon a topic on a Mac forum where a guy with the same printer claimed that he had it working through his router. So I thought...
You could run it through SAMBA and set it that way. I am not sure how to do it but I know SAMBA has the capability


Quote:
Originally Posted by alan9339 View Post
Any suggestions?
Have you tried the Ubuntu forums?

Last edited by C-Sniper; 08-11-2009 at 09:30 PM.
 
Old 08-11-2009, 09:41 PM   #12
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
I'm going to go slightly off tangent here, but could we see the cups logs, specifically access and error?

It's also possible that it could be a driver issue (how is the printer set up? with a ppd, or a suggested driver?).

Anyway, let's check the logs first for clues....

[edit] Also, what version of cups?

cheers,

Last edited by mrclisdue; 08-11-2009 at 10:10 PM.
 
Old 08-13-2009, 12:58 AM   #13
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
Have you actually allowed remote cups access on the machine with the printer?

The default "/etc/cups/cupsd.conf" only allows localhost access and any remote access will error out with a timeout.

From the client machine open a web browser and put in http://SERVER_IP:631/ where SERVER_IP is the IP address for the server with the printer attached, if you get a timeout then you need to fix the cupsd.conf on the server before you try and add the printer into the clients configuration.

EDIT:

The current cups web based GUI allows you to enable remote access with a couple of clicks.

Under Administration you will see "Basic Server Settings"
This needs a tick in "Share published printers connected to this system"
Followed by clicking on "Change Settings" and entering root and roots password in the dialog box.

Last edited by wildwizard; 08-13-2009 at 01:03 AM.
 
Old 08-13-2009, 03:14 AM   #14
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 878

Rep: Reputation: 120Reputation: 120
I'm jumping into this thread in the middle but I network printers on a hardwired network to another box running slack and for me to start with two things have to be right.

1) you have to have a file on the client, /etc/cups/client.conf that tells the cups running on the client to go to the server for printers. This file doesn't seem to come with the cups package anymore so I just make a one line file that points to my server like this:
Quote:
ServerName 192.168.1.4
2) The cups server has to have an /etc/cups/cupsd.conf that tells cups who to allow access to the printers as in the snippet below. Note that I use fixed IP addresses and in my cupsd.conf give a range. Note also that the cupsd.conf is longer than what I've pasted in below and if you want to trouble shoot you can change the loglevel from info to debug to get more insight into problems.
Quote:
LogLevel info
<snip>
# Administrator user group...
SystemGroup sys root

# Only listen for connections from the local machine.
# Listen localhost:631
# Listen /var/run/cups/cups.sock
port 631

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow @local

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
Order deny,allow
deny from all
Allow From 127.0.0.1
*Allow From 127.0.0.2
Allow From 192.168.1.*
*Allow From 10.0.*.*
<snip>
</Location>
 
Old 08-13-2009, 04:41 PM   #15
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by mrclisdue View Post
I'm going to go slightly off tangent here, but could we see the cups logs, specifically access and error?

It's also possible that it could be a driver issue (how is the printer set up? with a ppd, or a suggested driver?).

Anyway, let's check the logs first for clues....

[edit] Also, what version of cups?

cheers,
I'm using CUPS 1.3.10 on both machines (the standard SW package).
The driver is a suggested one, bot I tried a ppd file too, doesn't make any difference.
The access logs show no errors, as far as I can tell:
Code:
localhost - - [13/Aug/2009:23:25:40 +0200] "GET / HTTP/1.1" 200 5211 - -
localhost - - [13/Aug/2009:23:25:40 +0200] "GET /images/button-help.gif HTTP/1.1" 200 256 - -
localhost - - [13/Aug/2009:23:25:40 +0200] "GET /images/button-manage-server.gif HTTP/1.1" 200 493 - -
localhost - - [13/Aug/2009:23:25:40 +0200] "GET /images/happy.gif HTTP/1.1" 200 3522 - -
localhost - - [13/Aug/2009:23:25:43 +0200] "GET /printers/ HTTP/1.1" 200 0 - -
localhost - - [13/Aug/2009:23:25:43 +0200] "POST / HTTP/1.1" 200 138 CUPS-Get-Default successful-ok
localhost - - [13/Aug/2009:23:25:43 +0200] "POST / HTTP/1.1" 200 523 CUPS-Get-Printers successful-ok
localhost - - [13/Aug/2009:23:25:43 +0200] "GET /printers/ HTTP/1.1" 200 9472 - -
localhost - - [13/Aug/2009:23:25:43 +0200] "GET /images/button-search.gif HTTP/1.1" 200 332 - -
localhost - - [13/Aug/2009:23:25:43 +0200] "GET /images/button-clear.gif HTTP/1.1" 200 279 - -
localhost - - [13/Aug/2009:23:25:43 +0200] "GET /images/button-sort-descending.gif HTTP/1.1" 200 606 - -
localhost - - [13/Aug/2009:23:25:43 +0200] "GET /images/printer-idle.gif HTTP/1.1" 200 2546 - -
localhost - - [13/Aug/2009:23:25:43 +0200] "GET /images/button-stop-printer.gif HTTP/1.1" 200 383 - -
localhost - - [13/Aug/2009:23:25:43 +0200] "GET /images/button-print-test-page.gif HTTP/1.1" 200 457 - -
localhost - - [13/Aug/2009:23:25:43 +0200] "GET /images/button-reject-jobs.gif HTTP/1.1" 200 395 - -
localhost - - [13/Aug/2009:23:25:43 +0200] "GET /images/button-move-jobs.gif HTTP/1.1" 200 462 - -
localhost - - [13/Aug/2009:23:25:43 +0200] "GET /images/button-cancel-all-jobs.gif HTTP/1.1" 200 450 - -
localhost - - [13/Aug/2009:23:25:43 +0200] "GET /images/button-unpublish-printer.gif HTTP/1.1" 200 499 - -
localhost - - [13/Aug/2009:23:25:43 +0200] "GET /images/button-modify-printer.gif HTTP/1.1" 200 454 - -
localhost - - [13/Aug/2009:23:25:43 +0200] "GET /images/button-set-printer-options.gif HTTP/1.1" 200 541 - -
localhost - - [13/Aug/2009:23:25:43 +0200] "GET /images/button-delete-printer.gif HTTP/1.1" 200 412 - -
localhost - - [13/Aug/2009:23:25:43 +0200] "GET /images/button-set-as-default.gif HTTP/1.1" 200 479 - -
localhost - - [13/Aug/2009:23:25:43 +0200] "GET /images/button-set-allowed-users.gif HTTP/1.1" 200 549 - -
localhost - - [13/Aug/2009:23:25:43 +0200] "GET /images/button-publish-printer.gif HTTP/1.1" 200 446 - -
The error log however show this:
Code:
I [13/Aug/2009:23:23:06 +0200] Listening to :::631 (IPv6)
I [13/Aug/2009:23:23:06 +0200] Listening to 0.0.0.0:631 (IPv4)
I [13/Aug/2009:23:23:06 +0200] Listening to /var/run/cups/cups.sock (Domain)
I [13/Aug/2009:23:23:06 +0200] Remote access is enabled.
I [13/Aug/2009:23:23:06 +0200] Loaded configuration file "/etc/cups/cupsd.conf"
I [13/Aug/2009:23:23:06 +0200] Using default TempDir of /var/spool/cups/tmp...
I [13/Aug/2009:23:23:06 +0200] Configured for up to 100 clients.
I [13/Aug/2009:23:23:06 +0200] Allowing up to 100 client connections per host.
I [13/Aug/2009:23:23:06 +0200] Using policy "default" as the default!
I [13/Aug/2009:23:23:06 +0200] Full reload is required.
I [13/Aug/2009:23:23:06 +0200] Saving job cache file "/var/cache/cups/job.cache"...
I [13/Aug/2009:23:23:06 +0200] Loaded MIME database from '/etc/cups': 35 types, 38 filters...
I [13/Aug/2009:23:23:06 +0200] Loading job cache file "/var/cache/cups/job.cache"...
I [13/Aug/2009:23:23:06 +0200] Full reload complete.
I [13/Aug/2009:23:23:06 +0200] Listening to :::631 on fd 0...
I [13/Aug/2009:23:23:06 +0200] Listening to 0.0.0.0:631 on fd 2...
I [13/Aug/2009:23:23:06 +0200] Listening to /var/run/cups/cups.sock on fd 3...
I [13/Aug/2009:23:23:06 +0200] Resuming new connection processing...
In the CUPS webinterface, when I try to print a test page, I get a server time-out.

Quote:
Originally Posted by wildwizard View Post
Have you actually allowed remote cups access on the machine with the printer?

The default "/etc/cups/cupsd.conf" only allows localhost access and any remote access will error out with a timeout.

From the client machine open a web browser and put in http://SERVER_IP:631/ where SERVER_IP is the IP address for the server with the printer attached, if you get a timeout then you need to fix the cupsd.conf on the server before you try and add the printer into the clients configuration.

EDIT:

The current cups web based GUI allows you to enable remote access with a couple of clicks.

Under Administration you will see "Basic Server Settings"
This needs a tick in "Share published printers connected to this system"
Followed by clicking on "Change Settings" and entering root and roots password in the dialog box.
Yes, I've done all that, to no avail.
Quote:
Originally Posted by justwantin View Post
I'm jumping into this thread in the middle but I network printers on a hardwired network to another box running slack and for me to start with two things have to be right.

1) you have to have a file on the client, /etc/cups/client.conf that tells the cups running on the client to go to the server for printers. This file doesn't seem to come with the cups package anymore so I just make a one line file that points to my server like this:

2) The cups server has to have an /etc/cups/cupsd.conf that tells cups who to allow access to the printers as in the snippet below. Note that I use fixed IP addresses and in my cupsd.conf give a range. Note also that the cupsd.conf is longer than what I've pasted in below and if you want to trouble shoot you can change the loglevel from info to debug to get more insight into problems.
1) Didn't have that, now I do.
2) Like stated earlier, I followed a few tutorials and tried various settings, none of them work.

I thank you all for your input, but unfortunately, it didn't lead to succes.
I'm thinking it has to do with not being able to connect to the server.
But how or why?
 
  


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
Network Printer Won't Print jleach49 Linux - Newbie 1 06-28-2008 10:33 PM
Cannot Print thru network beeismlee Linux - Newbie 4 12-10-2007 07:15 PM
Website Print Network jphillip Linux - Networking 2 08-17-2005 02:09 PM
Can't print to network printer DaddyLongLegs Linux - Networking 1 02-02-2004 07:41 AM
Can't print over network CharlesW Linux - Newbie 0 09-25-2003 03:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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