LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Samba and CUPS - Pull hair out here (https://www.linuxquestions.org/questions/linux-general-1/samba-and-cups-pull-hair-out-here-314303/)

rjkfsm 04-17-2005 08:03 PM

Samba and CUPS - Pull hair out here
 
Hi, I'm having trouble sharing a printer from a Debian system (server) to WinXP (client).

I can print locally on either machine.

I can "connect" to the printer from the client and it shows ready, but when I try to print Windows gives me a "Failed to create job" error. I have tried several different compatable drivers, I have hooked up the printer to the Win box and this has worked before via the network when it was two win boxes.

The CUPS error log gives me only one error:
LoadAllClasses: Unable to open /etc/cups/classes.conf - No such file or directory

I installed CUPS via apt-get. My printer & Samba are set up for raw mode and yes, I modified the all three config files (cupsd.conf, mime.conv & mime.types) for raw mode,

Here is my smb.conf

Thanks in davance for any help.

RK

[global]

printcap name = cups
printing = cups
security = share
use client driver = yes
workgroup = mshome
netbios name = debian

[printers]

browseable = yes
printable = yes
public = yes
create mode = 0777
guest only = yes
guest account = smbprint
path = /home/smbprint

[xfer]

path = /home/shunter

foo_bar_foo 04-17-2005 09:34 PM

might try reading this
http://www.owlfish.com/thoughts/wini...003-07-20.html
because you are using debian (i love debian) my system is alot newer than yours so take that into consideration (unfortunately this stuff seems to change like the wind)

Quote:

Unable to open /etc/cups/classes.conf - No such file or directory
is that the right directory ? /etc/cups/
this may be what the page above is refering to when he says make a class ??
i have never seen that before

that file classes.conf for me is just a sample file and every entry in it is commented out
try making a dummy file with the same permissions as cupsd.conf
i'm wondering why that is not there -- most likely a version thing i guess (i'm using cups 1.1.21)
Quote:

and yes, I modified the all three config files (cupsd.conf, mime.conv & mime.types) for raw mode
now there are two ways to setup raw printing altering the configs or just setting up another printer cue that is raw (i do the second thing using the cups web interface)
and i don't know about changes to cupsd.conf for raw printing (don't think you need any)
you just need to allow the connection

cups is very complex so it's even kind of hard to talk about so i move on to samba

is this all there is in your samba config ?? or did yu just give us pieces ?
all i can think to do is give you my global and print section
now i am doing more than just using shared printer i have shared drives and dvd drives and whatnot
so it's hard for me to know now what is what but this does anyway point to some errors in your samba.conf file (i guess all the authentication stuff you can ignore ?) not sure
Code:

[global]
        username map = /etc/samba/user.map
        unix password sync = yes
        workgroup = WORKGROUP
        valid users = gary
        dns proxy = no
        wins support = true
        encrypt passwords = yes
        max log size = 50
        allow hosts = 192.168.0.2  192.168.0.1
        load printers = yes
        writeable = yes
        smb passwd file = /etc/samba/smbpasswd
        socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
        os level = 20
        netbios name = WORKGROUP
        null passwords = yes
        log file = /var/log/samba/%m.log
        security = user
        default = gary
        printcap name = /etc/printcap 
        passwd program = /usr/bin/passwd

[printers]
        comment = All Printers
        browseable = no
        printable = yes
        use client driver = yes

good luck -- it's doable it just takes alot of tries ! so just relax and start over

rjkfsm 04-18-2005 10:58 AM

Yes, that link you gave me had the answer (At least it appears so) - Thank you.

I used PCAnywhere to send a test page and got no "Windows has recovered from a serious error" dialog box. That's a good sign, eh? I'll find out tonight when I get home from work if it really worked or not. Previously, I had received several different error messages that I had never seen Windoze spit out at me before. (ie Error: StartDocPrint not sent)

Instead of using Samba, that article just has you unbind CUPS from your local loopback. You then tell windoze to connect to port 631 and voila, your done!!. I even went a little further and set it up to where I could (get this) admin CUPS via my LAN from a WinXP Box.

Again, Thanks.

RK


All times are GMT -5. The time now is 06:21 AM.