LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-06-2003, 03:56 PM   #1
phishead
Member
 
Registered: Jan 2002
Location: Dayton, Ohio
Distribution: Gentoo
Posts: 43

Rep: Reputation: 15
Windows sees printer as installed and ready, but won't print


I've installed and gotten samba working great, everybody can see everybody, and the printer connected to this (Gentoo) computer seemed to install fine on my dads (WinXP) computer. The only problem comes when I try to print a test page. Nothing happens! I get no errors, but the printer just sits there.

If there are any config files that would be helpful to see, please let me know and I'll post them. Here is my printer section of smb.conf

[HPDeskJet]
path = /var/spool/samba
read only = No
guest ok = Yes
printable = Yes
printing = cups
print command = lpr-cups -P %p -o raw %s
lpq command = lpstat -o %p
lprm command = cancel %p-%j
printer name = HPDeskJet
oplocks = No
 
Old 04-06-2003, 07:49 PM   #2
tim-linux
LQ Newbie
 
Registered: Apr 2003
Location: Sydney
Distribution: Redhat 8.0
Posts: 9

Rep: Reputation: 0
Does the printer have a emulation/language?
There are a lot of printers out there that are GDI only and will only work with windows.
 
Old 04-06-2003, 08:20 PM   #3
phishead
Member
 
Registered: Jan 2002
Location: Dayton, Ohio
Distribution: Gentoo
Posts: 43

Original Poster
Rep: Reputation: 15
I should have clarified, sorry. I can print with linux fine. The windows computer can see it and installed it, in the printer menu it shows it sitting there with "ready" next to it. However when I try to print to it using windows, nothing happens.
 
Old 04-06-2003, 08:26 PM   #4
tim-linux
LQ Newbie
 
Registered: Apr 2003
Location: Sydney
Distribution: Redhat 8.0
Posts: 9

Rep: Reputation: 0
Driver setup

Can you see the properties of the printer driver under windows? check the spool settings. I have seen the problem in the past becuase if you set the printer up as a network printer it thinks it is a win server that has the driver, it then tries to copy file from the server.
If you haven't tried already install the printer locally setup to lpt1, then redirect the local port or lpt1 port.
So go add port / local port/ then type the smb location.
let me know if it works.
 
Old 04-06-2003, 08:46 PM   #5
phishead
Member
 
Registered: Jan 2002
Location: Dayton, Ohio
Distribution: Gentoo
Posts: 43

Original Poster
Rep: Reputation: 15
When I installed, it said there wasn't an appropriate driver on the server, so it installed the windows driver. The port it listens to is http://192.168.0.2:631/printers/hpdeskjet.
 
Old 04-06-2003, 08:58 PM   #6
tim-linux
LQ Newbie
 
Registered: Apr 2003
Location: Sydney
Distribution: Redhat 8.0
Posts: 9

Rep: Reputation: 0
That is a weird location to print to, this is IPP.
If you print to this location your not going through the linux server.

Can you see the printer from windows in your linux box?
The address is usually \\linuxserver\printer or what ever.

All the times in the past, all i get people to do is install the driver locally and redirect it and it hasn't failed yet. I work for a printer manufacturer so i have had the question quite a bit.
Give it a go.
 
Old 04-06-2003, 09:20 PM   #7
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
Try using /tmp as your spool directory. What do you find in /var/log/samba/ directory?
 
Old 04-06-2003, 10:48 PM   #8
phishead
Member
 
Registered: Jan 2002
Location: Dayton, Ohio
Distribution: Gentoo
Posts: 43

Original Poster
Rep: Reputation: 15
bax, how would I change the spool directory to /tmp? Would that be somewhere in /etc/cups/cupsd.conf?

Tim, I installed as a local printer using the correct driver, and when I tried to add port \\Gentoo\HPDeskJet, it said port already exists. The port wasn't in the list it gave me though.

So here is what I tried to do, I clicked on network neighborhood, view workgroup computers and clicked on the Gentoo server. Inside I see my shared directory and HPDeskJet. So I right click on HPDeskJet and click connect, which begins the installation of the printer.
Windows tells me the server does not have the correct printer driver installed and offers to search for the proper driver. I click ok and select my printer. Click OK, then windows seems to complete the job.
I go into the control panel>printers to see if the new printer is there. There it is. It starts out saying opening, then "ready". I right click on it and hit properties, then click the print test page button.

Hmm, this time it tells me Test page failed to print. Unable to create a print job.

At least this time it decided to give me a hint!
 
Old 04-06-2003, 11:02 PM   #9
tim-linux
LQ Newbie
 
Registered: Apr 2003
Location: Sydney
Distribution: Redhat 8.0
Posts: 9

Rep: Reputation: 0
That's Microsoft for you.

See if you can see the setting of the printer and also click on configure port under ports, to see if the driver is OK.
 
Old 04-06-2003, 11:08 PM   #10
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
Change path = /var/spool/samba to path = /tmp. The advantage in this is that /tmp is readable/writable by all users. Also, you NEED to check /var/log/samba/whatevermyWindowsuserormachinnameis. Please check the logs.... This sounds like a permissions problem to me
 
Old 04-07-2003, 05:30 PM   #11
phishead
Member
 
Registered: Jan 2002
Location: Dayton, Ohio
Distribution: Gentoo
Posts: 43

Original Poster
Rep: Reputation: 15
So, where the path points to doesn't really matter, it doesn't need to have any printer files in it? Or is there a file I need to place in /tmp?
 
Old 04-07-2003, 05:47 PM   #12
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
You just need a readable/writable directory. Nothing needs to be in it. Just change it to /tmp, restart samba /etc/init/samba restart and try it. Shit, I tried everything under the sun until I got Samba up and running. I'm thinking about asking LinuxQuestions for a Samba forum given all of these Samba questions
 
Old 04-07-2003, 06:14 PM   #13
phishead
Member
 
Registered: Jan 2002
Location: Dayton, Ohio
Distribution: Gentoo
Posts: 43

Original Poster
Rep: Reputation: 15
Yes thats a good idea

Also, thank you, it no longer says it can't create the print job, but it is back to just not doing anything again. I think I know the problem this time.

When I went to try to do foomatic-configure again (which didn't work, for some reason), I found that if I just typed "DeskJet 970" at the first step, it showed me a model closer to my own (it said it was the same), whereas last time, I ended up using one for a DeskJet 975C.

So I think thats the problem, since I'm getting no errors but nothing is happening.

Without reinstalling the printer, is there an easy way to change the model and driver?
 
Old 04-07-2003, 06:51 PM   #14
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
PLEASE check /var/log/samba/ It will save you running down a lot of blind alleys
 
Old 04-07-2003, 07:03 PM   #15
phishead
Member
 
Registered: Jan 2002
Location: Dayton, Ohio
Distribution: Gentoo
Posts: 43

Original Poster
Rep: Reputation: 15
in /var/log/samba/log.levi (name of my dads computer), there isn't anything. None of the other files in there have had anything new in a few days.
 
  


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 Won't Print From Windows eggoz Linux - Networking 0 12-01-2004 10:47 PM
just installed CUPS printer is OK.. but can't print Error: loop in printcap on lpr soylentgreen Linux - Newbie 4 09-23-2004 10:41 AM
Printer installed, but cannot print on HP PSC 1200 Shantanu Gon Linux - Hardware 1 08-19-2004 02:57 AM
How do I Print using a Windows Printer 1kyle Linux - Networking 3 07-21-2004 03:28 PM
GNOME print manager not finding installed printer wfpoole Red Hat 12 10-31-2003 07:53 PM

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

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