Cannot share a printer with a windows client on my home network

Asked by Mike Cummings

I have an HP PSC-1310 printer attached to my Ubuntu 6.10 machine that i want to share with a Win XP machine on my home network. I have Samba and Cups installed and configured, but the windows machine can't "see" the printer (it sees the server, just not the printer). Cups shows the printer sharing as enabled, and here is the output frm my smb.conf file:
[global]
        workgroup = MSHOME
        server string = %h server (Samba, Ubuntu)
        obey pam restrictions = Yes
        passdb backend = tdbsam
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        printcap name = cups
        dns proxy = No
        panic action = /usr/share/samba/panic-action %d
        invalid users = root
        printing = cups
        print command =
        lpq command = %p
        lprm command =

[printers]
        comment = All Printers
        path = /var/lib/samba
        printer admin = root
        create mask = 0700
        guest ok = Yes
        printable = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /etc/samba/drivers
        write list = root

[mike]
        path = /home/mike
        read only = No
        guest ok = Yes

All the docs i read say the printer should be installable if you enter the printer URL in the Add Printer Wizard in Windows, but I am not sure of how to find the URL for my printer. Can you help?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Aaron Whitehouse (aaron-whitehouse) said :
#1

Have you added a samba user? You need to create a samba user that the Windows machine can use to connect to the Linux machine (it can be the same user that you use to log in).

See https://help.ubuntu.com/6.10/ubuntu/serverguide/C/configuring-samba.html

Revision history for this message
codeslinger (codeslinger) said :
#2

as an alternative, you could try installing it as an "internet printer"

XP is able to talk directly to cups if you install the XP Internet Printing software via the control panel -- look under the "system" section of add/remove programs.

Revision history for this message
Selbun (sun-bat-sun) said :
#3

Hi all,

I have a HP2015dn network printer that am planning to setup on Ubuntu 9.10. I will be using CUPS. I would like this printer to be used by around 200 users from their Windows XP/Vista machines. Can someone please let me know the step by step configuration? I had earlier tried hard but failed because the Ubuntu PC could NOT be seen by any Windows users. So the first thing would be HOW should the Ubuntu PC be made visible for Windows workgroup users. All help sincerely appreciated. Thanks in advance.

Regards,
Sel

Can you help with this problem?

Provide an answer of your own, or ask Mike Cummings for more information if necessary.

To post a message you must log in.