LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   CUPS windows printer sharing - Connection Refused (https://www.linuxquestions.org/questions/linux-networking-3/cups-windows-printer-sharing-connection-refused-190240/)

dafatdude 06-06-2004 02:11 AM

CUPS windows printer sharing - Connection Refused
 
Hi guys,

i'm having a damn hard time getting this to work atm. I'm following a guide from this site:

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

I've followed everything right up to the first lpadmin line and when i type the command it says i get a response like this:
Code:

root@dafat2:/usr/lib/cups/backend# lpadmin -p RicePrinter -v smb://dafatdude/CanonBub -P /root/inkjet.ppd
lpadmin: Unable to connect to server: Connection refused

I can't see why this wont let me connect. I can view my windows share using a simple:
Code:

root@dafat2:/usr/lib/cups/backend# smbclient -L dafatdude
added interface ip=192.168.0.14 bcast=192.168.0.255 nmask=255.255.255.0
Password:
Domain=[WORKGROUP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename      Type      Comment
        ---------      ----      -------
        E$            Disk      Default share
        IPC$          IPC      Remote IPC
        D$            Disk      Default share
        My Music      Disk
        print$        Disk      Printer Drivers
        CanonBub      Printer  Canon Bubble-Jet BJC-255SP
        Downloads      Disk
        F$            Disk      Default share
        ADMIN$        Disk      Remote Admin
        C$            Disk      Default share

        Server              Comment
        ---------            -------

        Workgroup            Master
        ---------            -------

Do i need to put in a username or a password in the lpadmin part? At the moment there isn't any password to view the shares....

can someone help me out here?

andrewdodsworth 06-06-2004 04:44 PM

I only successfully got to print from linux box to windows printer by using:

smb://user:password@server/printername

This was even when i had shared the printer to the whole world with no password.
The user and password have to exist on the windows machine.
I assume you're not using domains or anything but the same logic applies - whatever name and password you log on to the windows box you put in.

Hope this helps


All times are GMT -5. The time now is 11:25 AM.