LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-17-2005, 08:03 PM   #1
rjkfsm
Member
 
Registered: Apr 2004
Location: Charleston, SC
Distribution: RHEL, CentOS, Debian, Gentoo, Knoppix & DSL
Posts: 126

Rep: Reputation: 15
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
 
Old 04-17-2005, 09:34 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
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
 
Old 04-18-2005, 10:58 AM   #3
rjkfsm
Member
 
Registered: Apr 2004
Location: Charleston, SC
Distribution: RHEL, CentOS, Debian, Gentoo, Knoppix & DSL
Posts: 126

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
RH9 - swat/samba = hair all pulled out =) filsee Linux - Networking 13 02-08-2006 04:43 PM
Gonna pull my hair out (Ethereal Disp Filters) Lurker01 Linux - Software 3 10-02-2004 07:20 PM
samba-latest source... not much hair left to pull out german Linux - Software 8 11-11-2003 01:10 PM
cups and samba smurf Linux - Software 0 05-30-2003 12:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration