Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Printing from Gentoo to a shared Windows XP printer via Cups
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
ugus
Apprentice
Apprentice


Joined: 23 Jul 2004
Posts: 213
Location: Darmstadt, Germany

PostPosted: Thu Dec 02, 2004 8:58 pm    Post subject: Reply with quote

thank you!.
clear, short, very good guide.
working perfect. :D
_________________
while(!sleep())
{
sheep++;
}
My Desktop
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Tue Dec 07, 2004 5:07 pm    Post subject: Reply with quote

Bob P wrote:
After installing the printer as recommended, I've noticed that any user on the Linux box can browse their way to the printer settings menu in the control center and view the username:password combination that samba is using to access the printer share on the windows box. Specifically, the location of the printer is listed in plain view on the printer configuration menu:

Code:
Type: local printer
State: Idle (accepting jobs)
Location: smb://username:password@workgroup/hostname/sharename
Description: URI: ipp://gentoo:631/printers/HLPJ4
Device: smb://workgroup/hostname/sharename
Model:  HP Laserjet 4

i am a bit concerned about having the username and password for logging onto the Win box being plainly visible like that. is there a better way to do this that would not involve displaying the username and password? i have to admit, i'm not too enthusiastic about the idea of using a guest account with no password, as this would allow anyone to use the printer without restriction.


i have the solution for the problem where a user's SMB username:password is being displayed inappropriately in the "location" field of the KDE Printer Manager. this error was caused by a misunderstanding of what the contents of the "location" field in the printer description are intended to contain. although it may appear that the printer URI information is supposed to be entered in the printer location field, doing so will cause the password disclosure problem referenced earlier. instead of entering the URI information in the location field, use your own descriptive information about the physical location of the printer in your workplace.

To put this in better context, let's look at the instructions in this HowTo regarding logging onto http://localhost:631 to configure the printer:

hulk2nd wrote:
open your favourite browser and go to http://localhost:631/
go to "manage printers". if you're asked for a password type in your normal root account infos. the first three informations (name, location, description) can be filled just like you want. i choosed to name it epsonc62 but i don't think it is needfull that this name is the same one that you gave your printer on the xp machine. click continue. choose "Windows Printer via SAMBA". click continue.
then tipe in the location:
Code:
smb://username:pass@workgroup/host/printer

after logging onto the localhost and supplying your root credentials, you are asked to provide three pieces of information: printer name, printer location, printer description. it is essential that you DO NOT enter the URI location information into this "location" field. doing so will inappropriately disclose your username:password information on the windows box in plain text within the KDE Printer Manager in plain view for all to see!

Instead of entering this information for the "printer location"
Code:
smb://username.password@workgroup/domain/sharename

try entering something descriptive, like this:
Code:
Main Computer Lab

the result is that when a KDE user opens the KDE Printer Manager, the text string "Main Computer Lab" will displayed in the printer's location field instead of the URI to your SMB box (which would inadvertently provide full disclosure of the username:password!).

After you finish entering the printer name, printer location, and printer description, select "Device: Windows Printer via Samba." on the next screen the following information should be entered into into the "Device URI" field: (don't enter it anywhere else!)
Code:
smb://username.password@workgroup/domain/sharename



This mistake resulted from confusion about using the term "printer location" interchangeably with "printer URI". be sure that you understand the difference.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks


Last edited by Bob P on Wed Dec 22, 2004 3:33 pm; edited 2 times in total
Back to top
View user's profile Send private message
Belial`
n00b
n00b


Joined: 04 Jan 2004
Posts: 23
Location: Beveren, Belgium

PostPosted: Tue Dec 07, 2004 10:46 pm    Post subject: Reply with quote

Well, I think I've tried everything I could find on the net, but it just won't work :cry:
I have a HP DeskJet 3420, everything works fine (Printer is shared, and I can send jobs to it) but when the printer should start to print, he doesn't.
It just hangs at 64kb/3,70MB in the print queue, or whatever you call it...
So I this means, my Gentoo sends te file to the print queue, but Windows, or the printer can't do anything with it...
Is it just a non-linux-compatible printer or what? I really want this to work :? Can somebody help??
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Wed Dec 08, 2004 10:40 am    Post subject: Reply with quote

it may not be intuitive, but i think you need to emerge this regardless of the model of your HP printer.
Code:
emerge hpijs

i needed to emerge it for my laserjet to work properly.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Belial`
n00b
n00b


Joined: 04 Jan 2004
Posts: 23
Location: Beveren, Belgium

PostPosted: Wed Dec 08, 2004 1:52 pm    Post subject: Reply with quote

I have installed hpijs, but it still doesn't work :(
thanks anyway...
Back to top
View user's profile Send private message
GaDDiM
n00b
n00b


Joined: 01 Jan 2005
Posts: 38

PostPosted: Sat Jan 01, 2005 12:59 am    Post subject: sambaless Reply with quote

You don't need to emerge samba if you have Windows XP (don't know of other versions of windows but I assume 2000 has it also) nor doing difficult with users or guest accounts

You need to add a Windows Component under "OtherFile and Print sharing" called "Print services for Unix". This is actually just a ldp server.

If you are using a firewall (which is default with SP2) you need to open port 515 TCP.

Now add a printer just like the first post describe only with the Device URI
Code:
lpd://host/printer


if your printer name in windows contains spaces you can escape them by using %20

I have a printer called "HP Deskjet 720C" set up in windows on the computer "kamer" so my Device URI would be:
Code:
lpd://kamer/HP%20DeskJet%20720C


Update: you have also put the start up type of the service "TCP/IP Print Server" to automatic


Last edited by GaDDiM on Fri Mar 18, 2005 12:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
Anouar
n00b
n00b


Joined: 19 Dec 2004
Posts: 12

PostPosted: Sun Jan 02, 2005 8:20 pm    Post subject: prob with cups Reply with quote

Hi hulk,

I can't even get connection with the printer,
it says this:

Quote:
printer State: idle, accepting jobs.
"Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: Connection failed with error NT_STATUS_ACCESS_DENIED"
Device URI: smb://holodeck/hp


why is that?

greetz,

Anouar from the Netherlands
Back to top
View user's profile Send private message
sleek
n00b
n00b


Joined: 09 Jan 2003
Posts: 71

PostPosted: Tue Jan 04, 2005 1:28 am    Post subject: Reply with quote

Thanks! This works great with my HP DeskJet 880C. Been looking for a guide like this, so I'm extremely happy!
_________________
Yesterday was the deadline for all complaints
Back to top
View user's profile Send private message
linux_weenie
Guru
Guru


Joined: 25 Jun 2003
Posts: 365

PostPosted: Thu Jan 06, 2005 9:02 pm    Post subject: If you have an HP-DeskJet-720C Reply with quote

If you have an HP-DeskJet-720C, then you will also need to make sure you

Code:
emerge pnm2ppa

otherwise you will continue to get an aborted status on your print jobs even if you emerge hpijs. Hope this helps anyone using a pnm2ppa driver.

-Will
_________________
There are only 10 types of people in the world. Those who understand binary and those who don't.
Back to top
View user's profile Send private message
deXtuX
n00b
n00b


Joined: 02 Jan 2005
Posts: 11

PostPosted: Fri Jan 07, 2005 1:10 pm    Post subject: Reply with quote

Strangely enough, my Lexmark E220 (laser printer) wouldn't work with any of the Lexmark drivers I could find (they don't have one specifically for the E220, only the E210), so I finally chose the HP LaserJet driver though the KDE control planel just for the hell of it, and its been working perfectly ever since.
Back to top
View user's profile Send private message
saan
n00b
n00b


Joined: 03 Feb 2004
Posts: 2
Location: Concord, California

PostPosted: Thu Jan 20, 2005 4:48 am    Post subject: Works! Reply with quote

I had similar problems with people from previous posts. After monkeying around for about an hour, I got mine working by obtaining driver(.ppd file) from www.linuxprinting.org. Emerging "gimp-print" gave me awful print result on my old Epson Stylus Color 740. Oh yeah, I skip part 2 on this how-to regarding inputing local ip address into "/etc/hosts" and it still works. Also I had to used regular user with password when configuring "smb://xxx..."

Thanks for this Tips & Tricks!
Back to top
View user's profile Send private message
Seather
Apprentice
Apprentice


Joined: 23 May 2003
Posts: 194
Location: South Africa

PostPosted: Thu Feb 10, 2005 6:11 pm    Post subject: Reply with quote

When trying to add a printer in the web admin utility, Windows Printer via SAMBA is not listed in my Device: list. I have cups and samba both in my use flags?

Edit: fixed, recompiled both and started samba before cups seemed to fix that problem


Last edited by Seather on Sat Feb 12, 2005 11:52 am; edited 1 time in total
Back to top
View user's profile Send private message
Seather
Apprentice
Apprentice


Joined: 23 May 2003
Posts: 194
Location: South Africa

PostPosted: Sat Feb 12, 2005 11:51 am    Post subject: Reply with quote

I have the following problem,

When trying to print out a test page in the cups utility, I get the following error message in cups' log files:

Code:
E [12/Feb/2005:13:50:17 +0200] Unable to convert file 0 to printable format for job 12!
I [12/Feb/2005:13:50:17 +0200] Hint: Do you have ESP Ghostscript installed?


I have even tried downloading the "ESP Ghostsscript" src, compiled and installed it, but still having the same problem.

Using the Epson Stylus Color 460 driver from gnome-print

Please?
Back to top
View user's profile Send private message
AdamG
n00b
n00b


Joined: 17 Apr 2002
Posts: 46
Location: USA, MA

PostPosted: Sat Feb 12, 2005 3:56 pm    Post subject: Reply with quote

Thanks..Worked Like a charm :)
Back to top
View user's profile Send private message
KFM
n00b
n00b


Joined: 18 Aug 2004
Posts: 58

PostPosted: Thu Mar 10, 2005 10:37 pm    Post subject: Reply with quote

how do I tell what my hostname and workgroup name are on a windows box?
Back to top
View user's profile Send private message
NateZ
n00b
n00b


Joined: 05 Feb 2004
Posts: 9
Location: not found.

PostPosted: Sat Mar 12, 2005 7:53 pm    Post subject: Reply with quote

wow, thank you so much - i've been wanting to do this for so long!
Back to top
View user's profile Send private message
_Master_
n00b
n00b


Joined: 05 Mar 2005
Posts: 22
Location: Tromsø, Norway

PostPosted: Sat Mar 19, 2005 6:34 pm    Post subject: Reply with quote

thnx a bunch man :D works great with my HP Psc 2410
_________________
Fresh Gentoo User.
Back to top
View user's profile Send private message
cerealito
n00b
n00b


Joined: 10 Apr 2004
Posts: 20
Location: Toulouse, Fr

PostPosted: Sat Apr 09, 2005 11:43 pm    Post subject: works great Reply with quote

Your guide Works great with my HPLaserJet1100!
thank you very much!
Back to top
View user's profile Send private message
shanenin
Guru
Guru


Joined: 28 Nov 2003
Posts: 578
Location: Rochester, MN U.S.A

PostPosted: Thu Apr 28, 2005 5:42 pm    Post subject: Reply with quote

When I go to print a test page, it starts the process(I can hear the printer move), then it just stops. According to windows XP the page is being printed, but never finished.
_________________
http://brighteyedcomputer.com


Last edited by shanenin on Fri Apr 29, 2005 2:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
YuriyRusinov
Apprentice
Apprentice


Joined: 21 Jul 2004
Posts: 208
Location: Saint-Petersburg, Russia

PostPosted: Fri Apr 29, 2005 6:36 am    Post subject: Reply with quote

hulk2nd, thank you very much. I many many days unsuccessfully configured printing on Windows machines via cups before I have found this topic. Your guide is works great.
_________________
Best regards,
Yuriy Rusinov.
Back to top
View user's profile Send private message
shanenin
Guru
Guru


Joined: 28 Nov 2003
Posts: 578
Location: Rochester, MN U.S.A

PostPosted: Fri Apr 29, 2005 2:53 pm    Post subject: Reply with quote

shanenin wrote:
When I go to print a test page, it starts the process(I can hear the printer move), then it just stops. According to windows XP the page is being printed, but never finished.


I got it to work by setting up an account with a password. One guy on this thread said he got it to work with a guest account, so I thought I would try(unsuccesfully).
_________________
http://brighteyedcomputer.com
Back to top
View user's profile Send private message
bertaboy
l33t
l33t


Joined: 05 Nov 2004
Posts: 600

PostPosted: Wed May 11, 2005 2:44 am    Post subject: Re: Solution to SMB/CUPS password problem on Win shared prin Reply with quote

billbalt wrote:
Normally, a Windows printer is shared with Everyone/Print permissions. No password is required to access the printer.

To print to a printer configured in this manner from Linux using SMB/CUPS, you must connect using the guest account using no password.

When you don't set it up properly, you get this error: "SMB tree connect failed: NT_STATUS_ACCESS_DENIED"

If you get this error, go to http://localhost:631. As you are adding or modifying your printer, when you get to "Device URI:" , enter " smb://guest:@computername/printsharename".

Thanks, that solved it for me
Back to top
View user's profile Send private message
thomasa88
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2005
Posts: 143
Location: Sweden

PostPosted: Tue May 31, 2005 6:40 pm    Post subject: Reply with quote

Weee 8)

I have tried with foomatic and kde setup (the cups admin page wouldnt find my printer model) and that worked ok when the printer was connected locally, but when it runs through a win2k I have to use ghostscript,

thx for telling me how :D
_________________
- thomasa88
Back to top
View user's profile Send private message
blackcell
n00b
n00b


Joined: 17 Aug 2002
Posts: 56
Location: Oregon

PostPosted: Wed Jun 01, 2005 2:05 am    Post subject: Reply with quote

Worked great for me on first try.
I used
Code:
smb://username:pass@192.168.100.2/hpdeskjet
.

Thanks :D
Back to top
View user's profile Send private message
Garth
n00b
n00b


Joined: 21 Jan 2004
Posts: 35
Location: Michigan

PostPosted: Fri Jun 03, 2005 6:22 pm    Post subject: Reply with quote

Thanks for the HOW-TO. Works fine now.

I tried to connect to a Windows98 connected printer and found that the smb string had to simply be:
Code:

smb://computername/printername


Make sure you don't have a password set on the printer share in Win98. I couldn't find a workaround for that.
_________________
Garth
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 4 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum