LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   hp deksjet 3747 printing with samba (https://www.linuxquestions.org/questions/linux-software-2/hp-deksjet-3747-printing-with-samba-598926/)

jzimm0007@msn.com 11-11-2007 10:49 PM

hp deksjet 3747 printing with samba
 
I have an hp deskjet 3747 printer that is setup with samba through cups. I have downloaded the linux drivers from hp and installed them on the fedora machine. I have it setup through smb://MSHOME/blue1689/HPDskjet3747. It is shared as HPDskjet3747 on the windows machine. It is port USB001. It verifies okay. When I try to print a test page in fedora 8, it shows up in the print queue on the windows machine. It is about a 64k file, so I think its working right, but it says pages N/A, status>printing. The printer gets ready to print and quits before anything comes out. (I mean the light flashes, it makes noise, then it doesn't do anything) I'm not sure if it has anything to do with permissions on the linux box, drivers or what it is. Isn't it supposed to say pages 1/1 instead of N/A? Could someone please tell me why my printer doesn't print anything or how I can resolve the issue.

Peacedog 11-12-2007 06:20 PM

Hi jzimm0007@msn.com, I hope that's not a valid email address. Anyway, this should help.
What is the Device URI: ?
Good luck. ;-)

jzimm0007@msn.com 11-13-2007 01:45 PM

The device URI is: smb://MSHOME/blue1689/HPDskjet3747

Here is the output of smbclient -L blue1689 -N
Domain=[BLUE1689] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
Documents and Settings Disk
My Documents Disk
IPC$ IPC Remote IPC
SharedDocs Disk
My Music Disk
print$ Disk Printer Drivers
HPDskjet3747 Printer Feel free to use this printer.
C Disk
Josh Zimmerman.BLUE1689 Disk
ADMIN$ Disk Remote Admin
C$ Disk Default share
Tommy's Music Disk
Domain=[BLUE1689] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Server Comment
--------- -------

Workgroup Master
--------- -------

Peacedog 11-13-2007 06:25 PM

Did you use the hpijs driver with foomatic?
Good luck. ;-)

jzimm0007@msn.com 11-13-2007 07:31 PM

Yes, It shows up in the print queue of the windows computer, but it does not print. I think it might be, because it says pages n/a so it thinks it is done printing before it starts.

Peacedog 11-14-2007 07:48 AM

What does the /var/log/cups/error_log look like? Any clues there as to what is failing?
Good luck. ;-)

jzimm0007@msn.com 11-14-2007 05:16 PM

E [13/Nov/2007:14:40:18 -0500] cupsdAuthorize: Local authentication certificate not found!
I [13/Nov/2007:14:40:26 -0500] [Job 13] Completed successfully.
E [13/Nov/2007:14:40:53 -0500] cupsdAuthorize: Local authentication certificate not found!
E [13/Nov/2007:14:40:53 -0500] cupsdAuthorize: Local authentication certificate not found!
E [11/Nov/2007:22:10:56 -0500] [cups-driverd] Unable to open PPD directory "/usr/local/share/ppd": No such file or directory
E [11/Nov/2007:22:10:56 -0500] [cups-driverd] Unable to open PPD directory "/opt/share/ppd": No such file or directory
I [11/Nov/2007:22:11:12 -0500] Started "/usr/lib/cups/daemon/cups-driverd" (pid=31869)
E [11/Nov/2007:22:11:12 -0500] [cups-driverd] Unable to open PPD directory "/usr/local/share/ppd": No such file or directory
E [11/Nov/2007:22:11:12 -0500] [cups-driverd] Unable to open PPD directory "/opt/share/ppd": No such file or directory
Does this mean anything? (had to shorten it)

Peacedog 11-14-2007 07:10 PM

It looks like you don't have a ppd or the wrong ppd file. Try going the the cups configuration from a browser and choose Foomatic/hpijs driver. You can access this from here.

http://localhost:631/

Good luck. ;-)

jzimm0007@msn.com 11-14-2007 08:19 PM

DeskJet_3740 (Default Printer)
Description: HP Deskjet 3740
Location: Josh's Computer
Printer Driver: HP DeskJet 3740 Foomatic/hpijs (recommended)
Printer State: idle, accepting jobs, published.
Device URI: smb://MSHOME/blue1689/HPDskjet3747

I modified the printer changing the ppd driver to /etc/cups/ppd/deskjet_3747.ppd

Peacedog 11-15-2007 07:42 AM

Let's have a look at /etc/cups/cupsd.conf. Did you input a username and password when setting the Device URI: ?
Good luck. ;-)

jzimm0007@msn.com 11-15-2007 01:45 PM

No; I did not put in a username and password.
LogLevel info
SystemGroup sys root
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
# Allow shared printing and remote administration...
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin>
Encryption Required
# Allow remote administration...
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
# Allow remote access to the configuration files...
Order allow,deny
Allow @LOCAL
</Location>
<Policy default>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>

Peacedog 11-15-2007 05:30 PM

Quote:

No; I did not put in a username and password.
I believe you'll need to use a valid username and password to authenticate the print job on the windows machine. Check your Device URI in /etc/cups/printers.conf, it should look something like this.
Code:

DeviceURI smb://username:password@workgroup/server/printer
Good luck. ;-)

jzimm0007@msn.com 12-21-2007 09:46 PM

I tried that and on the windows computer it says the owner is Guest. It still won't print anything. I also tried changing the permissions for Josh Zimmerman, but that didn't work either. Is there a way I can use the ipp protocal, because I don't know what the ip address of the printer is?

Peacedog 12-22-2007 02:06 PM

You can find some configuration information here.
Good luck. ;-)

jzimm0007@msn.com 12-23-2007 04:36 AM

My printer does not have a NIC in it. Doesn't the other protocols require this? I noticed when I am printing it says owner:Guest when it should be the person I am logged in as under Fedora 8 right? Maybe it isn't the permissions, would printing directly to the printer do anything? Why does it say pages N/A? It's supposed to say Remote downlevel document printing pages:1/1? I had to disable bi-directional printing on the windows machine. They should mention that in the cups documentation (They probably did I just did not see it).


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