LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-16-2004, 05:04 AM   #1
rdjurovich
LQ Newbie
 
Registered: Mar 2004
Posts: 14

Rep: Reputation: 0
Exclamation Print from linux to windows (FC2 to WinXP)


BIG PROBLEM! - I have tried many, many, many times to do this, spent countless hours googling for help, and even posted a thread here before, but never been able to solve this stupid problem.

I can still remember when I first installed linux (RH8) on my box a couple of years ago. I loved it, and was over the moon when I figured out how to print to my windows box. Now, however, I am suffering. For the past year or so (since RH9), I have had to make a short trip to my windows box so I could print something. I usually just transfer a file (using samba), then print from there.

Whilst I could and still can put up with this for the joys of linux, the rest of my family cannot. I have install FC2 on a spare machine for others to use (I also have FC2 on my machine), however I get yelled at when they need to print.

I know that there is a lot of people around the world with this same problem, and would really love to not just get it working for me but make their lives happier as well. IF ANYONE CAN SOLVE THIS, PLEASE DO!!!!

Here's the low-down: I can setup printing numerous way, but when I visit localhost:631 and use CUPS, I get the closest to being able to print. I can setup a printer, print the test page, and all seems well from my end. However, looking from the windows machine's print queue, I see:
"Remote Downlevel Document" with a status of "Printing". It stays like that for about 30 seconds (whilst the printer remains a still as ever), before it is automatically deleted from the queue.

Here is how I set it up in cups:
* Go to the "Printers" page
* Press "Add printer"
* Enter name: "hplaserjet", location: "P2600" (the computers name), leave description blank, then press "Continue"
* Select the device called "Windows Printer Via SAMBA" and press "Continue"
* Enter the "Device URI": "smb://administrator:ADMINS_PASSWORD@Djurovich/192.168.98.1/laserjet", of course my workgroups name is Djurovich, the computers IP is 192.168.98.1, and the shares name is laserjet. I then press continue
* Select make: "HP", press continue.
* Select model: "HP LaserJet Series CUPS v1.1 (en)", press continue.
* The printer is then successfully added, and I click on its name which takes me to it.
* I press "Print test page", and the test page is sent.
* It is sent to the queue then is deleted by windows

I have a HP LaserJet 1000 and a HP DeskJet 930C. I used the laserjet in this example above, but both printers have the same problems.

Sorry for the long thread, and thanks for reading. All help is greatly appreciated!
 
Old 06-16-2004, 11:54 AM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
what does smbclient -L P2600 -N show? i am referencing a how to here

http://www.faqs.org/docs/Linux-mini/...ing_to_windows

good luck.
 
Old 06-16-2004, 03:44 PM   #3
andrewdodsworth
Member
 
Registered: Oct 2003
Location: United Kingdom
Distribution: SuSE 10.0 - 11.4
Posts: 347

Rep: Reputation: 30
I had similar problems to yours - test print working - printing appearing to start but nothing printing. Finally I configured using CUPS like you did but using the smb format as follows:

smb://userassword@windows_name/printer_share

where windows_name is the name of the machine not IP address. I'm not sure whether the windows user has to be an administrator - in my case it is but I've just tested changing it to an ordinary user and it's worked.
 
Old 06-17-2004, 05:39 AM   #4
rdjurovich
LQ Newbie
 
Registered: Mar 2004
Posts: 14

Original Poster
Rep: Reputation: 0
Unhappy

First of all, to PEACEDOG:

"what does smbclient -L P2600 -N show?": I have tried this command before and did it again just to check.
It shows both the printers:
deskjet Printer HP DeskJet 930C
laserjet Printer HP LaserJet 1000


And secondly, to andrewdodsworth:

"Finally I configured using CUPS like you did but using the smb format as follows:

smb://userassword@windows_name/printer_share

where windows_name is the name of the machine not IP address. I'm not sure whether the windows user has to be an administrator - in my case it is but I've just tested changing it to an ordinary user and it's worked.": I used the URI that you suggested, with a normal user and the computer name, however this did not fix the problem. It shows in the print queue on windows that the owner is the normal username, and not administrator like before - a suggestion that the print has gone through correctly as a regular user.

Thank-you both for your help, and fast replies. Now if only I could find a solution to this problem!
 
Old 06-17-2004, 05:57 AM   #5
rdjurovich
LQ Newbie
 
Registered: Mar 2004
Posts: 14

Original Poster
Rep: Reputation: 0
I just relized that when I used to have printing working, it was only on my deskjet printer. the difference at the time between it and the laserjet was the laserjet was using usb, and deskjet was using parallel. Does anyone know if this could effect it? I might give the printer a try with the parallel cable again if I can find it, however I would much prefer use usb.
 
Old 06-17-2004, 06:55 AM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Quote:
"what does smbclient -L P2600 -N show?": I have tried this command before and did it again just to check.
It shows both the printers:
deskjet Printer HP DeskJet 930C
laserjet Printer HP LaserJet 1000
so the share name is laserjet, not

Quote:
* Enter name: "hplaserjet", location: "P2600" (the computers name), leave description blank, then press "Continue"
am i correct in this assumption.
 
Old 06-17-2004, 05:16 PM   #7
rdjurovich
LQ Newbie
 
Registered: Mar 2004
Posts: 14

Original Poster
Rep: Reputation: 0
yes the share name is laserjet, good assumption.
 
Old 06-17-2004, 05:38 PM   #8
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
In the CUPS setup, you need to specify the printer driver.
However the default driver settings may need tickling..
If my memory serves me correctly, use the Generic Postscript driver and make sure the paper size is correct.
I'm in Europe and use A4 while the driver defaults to US Letter size..

Do you have the foomatic package installed?
It contains a huge number of drivers..
 
Old 06-18-2004, 11:51 PM   #9
rdjurovich
LQ Newbie
 
Registered: Mar 2004
Posts: 14

Original Poster
Rep: Reputation: 0
Wow, I can't believe my eyes!
After peter_robb said " use the Generic Postscript driver", I tried that instead of the HP LaserJet Driver, and the printer responded! However, I was not quite finished - because it printed on line of text that made no sense, then printed about 10 blank sheets.
I decided to try setting up the printer using the Fedora printer configure GUI, using the postscript driver to see if there was any difference. Nup, same thing. However, I then thought I would have one last shot at this GUI since that is how I originally had my printer set-up a long time ago. Now they work!!!

Ok, for those of you readers wanting to know what I did, here are my steps:
* From the Fedora menu I chose: System Settings > Printing
* Entered my root password
* Pressed "New", then next in the popup wizard.
* Entered the name "deskjet", and left the description blank
* Selected queue type: "Networked Windows (SMB)"
* Pressed specify
* Entered my workgroup name (all in capitals) for "workgroup", computer name for "server", //COMPUTER_NAME/SHARE_NAME for "share", the machines username for "username", and the machines password for "password"
* Pressed forward
* Selected "HP" from the manufactures drop-down menu
* Chose "DeskJet 930C" for the make
* Pressed forward, then finish
* Applied the changes, then selected the new printer from the list and pressed "Edit"
* Chose the "Queue type" tab
* Changed the "Server hostname or IP address" from the IP address to the computers name
* Pressed ok, and applied changes

Hope my experiences can help future readers.

Last edited by rdjurovich; 06-18-2004 at 11:55 PM.
 
  


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
Unable to print from WinXP to my Linux-shared printer guarriman Linux - General 5 05-24-2005 10:45 AM
Partitioning WinXP Drive with Linux FC2 to dual Boot. oberon-ken-obi Linux - Newbie 1 03-10-2005 01:18 PM
cannot print documents generated on Windows by CUPS in FC2 kentri9 Linux - Software 2 11-26-2004 06:35 AM
Linux->WinXP Network print problems : Ubuntu seasidebaz Linux - Networking 2 11-23-2004 01:30 PM
Print from Linux to WinXP printer MattOlz Linux - Networking 1 07-12-2004 03:52 PM

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

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