[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: samba printing

Hi Folk :)

I have an epson c82 and it took me ages to get it to work with CUPS and
samba. First, samba.

Here's (a snippet of) my smb.conf, maybe something will help you there.

        admin users = root
        printer admin = stephane
        printcap name = cups
        load printers = yes
        printing = cups

        comment = All Printers
        path = /var/spool/samba
        create mask = 0700
        printable = Yes
        browseable = No
        public = Yes
        guest ok = Yes
        writable = No

        comment = Printers Drivers
        path = /etc/samba/drivers
        browseable = yes
        guest ok = no
        read only = yes
        write list = root

This allows clients to automatically download the drivers when mapping the
printer. Also, when configuring CUPS, I would strictly follow their website
(www.cups.org). This is how my printers.conf looks like:

<DefaultPrinter epson_c82>
DeviceURI usb://EPSON/Stylus%20C82		<-- note the usb:// here
State Stopped
StateMessage Paused
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0

I am assuming you're using the USB version of the printer. If it's
parallele, usb:// will look different.

I think you'll need to use smbpasswd to create an account for the printer.
Also, according to your workgroup/domain settings, you'll need to add the
printer using the admin account (root in my case), otherwise you'll get
priviledges problems.

Again, the CUPS website got me started... If you want the clients to
automatically download the printer's drivers, you have to put a few PPDs and
other files in /usr/share/cups/model, but that's another discussion.

Hope this helps.


-----Original Message-----
From: Alessandro Speranza [mailto:speranza@math.unifi.it]
Sent: Thursday, October 02, 2003 5:20 AM
To: debian-laptop@lists.debian.org
Subject: samba printing

Hi Folks.
I know this is not exactly a laptop problem, but since I'm having it with 
my laptop I ask it to you.
I've got (damn it!) an Epson printer connected to a Windows XP box. The 
printer is shared with the other computers of the workgroup. One of these 
computers is mine, which dual boots (with same IP) on linux and windows. 
I've got samba (smbd and nmbd) running  and if I do 
smbclient //servername/sharename
I get the smb prompt and can put stuff and get it printed. However, when I 
try to configure cups, after I finish I get the following message from the 
cups web-interface:

Description: epson
Printer State: processing, accepting jobs.
"Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: SMB 
tree connect failed: NT_STATUS_ACCESS_DENIED"
Device URI: smb://MATEMATICA11/EPSON82

Furthermore, from the samba log file for the print server I get messages 

[2003/10/01 11:53:36, 0] passdb/pdb_ldap.c:ldap_open_connection(201)
  LDAPS option set...!
[2003/10/01 11:53:36, 0] passdb/secrets.c:fetch_ldap_pw(264)
  fetch_ldap_pw: no ldap secret retrieved!
[2003/10/01 11:53:36, 0] passdb/pdb_ldap.c:ldap_connect_system(308)
  ldap_connect_system: Failed to retrieve password for  from secrets.tdb

Does anybody have any idea what's going on?

By the way, I installed the "unix print service" or something like that on 
the windows machine.


To UNSUBSCRIBE, email to debian-laptop-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact

Reply to: