LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   get samba to share printer by cups (https://www.linuxquestions.org/questions/linux-software-2/get-samba-to-share-printer-by-cups-4175421612/)

ted_chou12 08-11-2012 04:26 PM

get samba to share printer by cups
 
Hi, I have samba v3.5 up running already, and I have cups 1.4.6 up running already, I have my printer added to samba and now able to print locally. But I still can't see my printer in the samba shared folder, what configurations am I missing?
Here is my smb.conf file:
Code:

[global]
        netbios name = SERVER
        server string = SERVER
        interfaces = eth0, 192.168.1.12/24
        bind interfaces only = Yes
        security = SHARE
        log file = /var/log/samba
        max log size = 50
        name resolve order = wins hosts lmhosts
        printcap name = /etc/printcap
        dns proxy = No
        idmap config * : backend = tdb
        force user = root
        force group = root
        guest only = Yes
        hosts allow = 192.168.

[main]
        comment = main
        path = /mnt/main
        read only = No
        guest ok = Yes

[printers]
        comment = All Printers
        path = /var/spool/samba
        read only = No
        create mask = 0700
        guest ok = Yes
        printable = Yes
        print ok = Yes
        use client driver = Yes
        browseable = No

Please let me know if any other information is needed.
Thanks,
Ted

ted_chou12 08-11-2012 04:51 PM

got it! printcap name = cups, not the /etc/printcap. I dont understand why this simple info isnt supplied in the samba config notes file by default. Took me so long to find this out.
But another problem I am facing, eventhough i can now see the printer right in the local network machine in win 7. when I try to print or double click on the printer, it asks for the driver, I thought cups is suppose to manage that? why would I need driver on the client side?
Thanks,
Ted


All times are GMT -5. The time now is 09:55 AM.