LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Connecting to a windows shared printer (http://www.linuxquestions.org/questions/linux-networking-3/connecting-to-a-windows-shared-printer-386240/)

rbm 11-24-2005 05:32 PM

Connecting to a windows shared printer
 
Hello,

I have a (small) network with only 2 pc's and a (wireless) router.

I have a Windows 2000 prof. edition machine which is sharing a HP DeskJet 710c printer. Now I also have a laptop running Fedora (Core 4).

My question, how can I connect to the windows printer share?

Note: all machines ar standalone's.

Please answer this question. Thanks in advantage.

mokele 11-24-2005 05:45 PM

Hello rbm

Maybe - this - will help (reading the hole thread will help you better). If not try reading - this - too.

Regards.

West.

soulestream 11-24-2005 05:46 PM

im sure fedora has some kinda print manager,

or if you have cups installed(you probably do), you can

open a browser(firefox, ephinany,whatever) and

http://localhost:631

enter root and password

add printer

smb

soule

rbm 11-24-2005 06:22 PM

Quote:

Originally posted by soulestream
im sure fedora has some kinda print manager,

or if you have cups installed(you probably do), you can

open a browser(firefox, ephinany,whatever) and

http://localhost:631

enter root and password

add printer

smb

soule

I tried above steps, but when trying to print a test page, the printer does not start.
The printer is at the following location:
\\192.168.123.102\HP DeskJet 710C
Do I have to add something to the smb?

I tried the following:
smb://192.168.123.102/HP DeskJet 710C

I think it has something to do with the authentication on my Windows machine.
This machine knows (besides the Administrator) a user "user" with no password applied. How can I configure this?

ps. the printer is connected to my Windows (2000 prof.) system, not my Fedora system.

soulestream 11-24-2005 06:47 PM

check firewall on 2k (if you have one)

make sure samba is running on the linux box

and of course check your path to the printer

soule

rbm 11-25-2005 04:52 PM

Quote:

Originally posted by soulestream
check firewall on 2k (if you have one)

make sure samba is running on the linux box

and of course check your path to the printer

soule

Firewall: Sygate (which accepts all winodws printer/file connections.

Samba is (as far as a know) installed

The path to the printer stated above is correct.

The problem is the user authentication when connecting to a Windows 2000 prof. machine. How can i add this to the smb uri? Just like in an FTP?
then the uri has to be:
smb://user@192.168.123.102/HP DeskJet 710C

knowing that the user account does not have a passoword. Is this correct or does Fedora Core 4 / Samba use other ports?

bignewf 11-25-2005 05:52 PM

first, I would disable any firewalls on the windows machine, or open the ports on the firewall for smb: 135,137, 139, 445
Make sure that smb is disabled to the internet side of your firewall (this is the biggest windows vulnerability)
make sure smb is enabled on your linux box(s)
In the print server settings:

server: //ipadress of server
share: //ipaddress of server/windows share name (usually case sensitive and watch the spaces)

you can get the share name by right-clicking on the printer name>properties>sharing>share name

If it is a windows workgroup, for username servermachinename/username
i.e printserver1/administrator
password

Using a blank password can cause problems with authentication to the windows printservers.
I would use a user account with administrative permissions on the windows printserver

bignewf 11-25-2005 10:52 PM

first, I would disable any firewalls on the windows machine.
In the print server settings:

server: //ipadress of server
share: //ipaddress of server/windows share name (usually case sensitive and watch the spaces)

you can get the share name by right-clicking on the printer name>properties>sharing>share name

If it is a windows workgroup, then: machinename/username where machinename is the netbios name of the printserver
i.e printserver1/administrator
password

I would use a user account with administrative permissions on the windows printserver

rbm 11-28-2005 04:34 PM

Quote:

Originally posted by bignewf
first, I would disable any firewalls on the windows machine.
In the print server settings:

server: //ipadress of server
share: //ipaddress of server/windows share name (usually case sensitive and watch the spaces)

you can get the share name by right-clicking on the printer name>properties>sharing>share name

If it is a windows workgroup, then: machinename/username where machinename is the netbios name of the printserver
i.e printserver1/administrator
password

I would use a user account with administrative permissions on the windows printserver

That is going a bit to fast.

The Windows 2000 prof. workstation is installed with in a Workgroup and knowing users "user" with no password and Administrator with a password installed.

The ip of the server is 192.168.123.102

So the correct uri is smb://192.168.123.102/user/HP DeskJet 710C

Or is it something else.

ps. the current printerstatus is the following:
Description: HP DeskJet 710C
Location: Desktop computer
Printer State: processing, accepting jobs.
"Connection failed with error NT_STATUS_UNSUCCESSFUL"
Device URI: smb://192.168.123.102/user/HP DeskJet 710C

What am I doing wrong?

jschiwal 11-28-2005 04:45 PM

I wonder if you want to reconfigure the printer in CUPS to interface through the IPP:/ protocol. I think that is the protocol that Windows uses for sharing printers.

rbm 12-01-2005 05:32 PM

Quote:

Originally posted by jschiwal
I wonder if you want to reconfigure the printer in CUPS to interface through the IPP:/ protocol. I think that is the protocol that Windows uses for sharing printers.
Trying that I get this:
Description: HP DeskJet 710C
Location: Desktop Computer
Printer State: processing, accepting jobs.
"No pages found!"
Device URI: http://192.168.123.102:631/user/HP%20DeskJet%20710C

There is paper in the printer. Does annyone has a solution.

jschiwal 12-05-2005 03:29 PM

It seems that your problem is centering around the driver you are using rather than a failure to connect with the printer (server).

rbm 12-10-2005 04:05 PM

Quote:

Originally Posted by jschiwal
It seems that your problem is centering around the driver you are using rather than a failure to connect with the printer (server).

Which driver sould I use? I now use the (old) HP deskjet choice.

rbm 12-18-2005 08:29 AM

I found something in an other topic.

I sould connect to smb://$USER:$PASSWD@samba_server_ip/$PRINTER_NAME

Now I changed it, and in someway when I try to print a test page, it submits (and recieves at the destionation), but the printer does not start printing.

I have token this steps

First screen:
name: home
location: desktop computer
description: HP DeskJet 710C

Second screen:
Device: Windows Printer via SAMBA

Third screen:
Device uri: smb://$USER:$PASSWD@samba_server_ip/$PRINTER_NAME

Forth screen:
Make: HP

Fifth screen:
Model: HP DeskJet Series CUPS v1.1

After that my printer is added succesfully.

When printing a testpage, it works (except for that the printer is not starting printing, but I see the document in the queue.)

The status is:
Printer State: idle, accepting jobs.
"CUPS v1.1.23 is ready to print."

But when printing something with an other application (for example, gedit), it does nothing at al. Not even set the document in the queue.

When printing something with Firefox:
Printer State: idle, accepting jobs.
"No pages found!"

And somehow in the status of the job is "aborted".

What am I doing wrong and how can I correct it? Thanks in advantage.

mokele 12-18-2005 02:32 PM

Did you try the first step provided in the link, in the post #2?

-W


All times are GMT -5. The time now is 05:52 PM.