Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


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

RH 7.3 / CUPS / LPRng / Samba Blues



Fresh from my battle of getting majordomo and mailman to coexist (what a
mess!  Why would two packages choose the same arbitrary filename that
needs to exist in /etc/smrsh?  After fixing that they can live side by
side jsut fine.), I am now trying to get CUPS to work and Samba to talk to
it, so I can print on my Windows computer to the printer on my Linux
server.

Once again the original problem with CUPS appears to have been that I
installed LPRgn also, and the install program neither warned me or gave me
some indicaiton how to resolve the ensuing mess.  I figured out eventually
to repoint the symlinks in /usr/bin/ to their .cups counterparts, and now
I can lp and lpr through cups (well, I _think_ cups is the one doing the
printing), but I can't get printing from the Windows box working yet.

When I set up the printer in Windows, everything looks fine, but when I
try to print to it, in the "Printers" dialog box the status is "Access
denied, unable to connect".

I have tried connecting to the printer in Windows Explorer (it's in the
same workgroup), using IP addresses, \\ServerName\Printername,
\\IP\\PrinterName... I'm running out of clues.

I can assign a drive letter to my home directory on my server, and I can
HTTP to port 631 to get the CUPS admin page.

I was getting in /var/log/samba, at first I was seeing
  pixar (192.168.1.11) Can't change directory to /var/spool/cups 
(Permission denied)

After fixing that, I see
[2002/09/16 13:47:03, 0] printing/printing.c:print_job_start(951)
  print_job_start: insufficient permissions to open spool file 
/var/spool/cups/smbprn.000008.igz82I.

Someone told me there was a serious bug in Samba such that it could not
resolve -P %p in the print command line, and that I should replace it with
/dev/lp0, but I still got the same error on Windows.

I changed, that, but it didn't seem to help.

I did find out one more thing though.  In nmbd.log I noticed:

[2002/09/16 13:17:10, 0] libsmb/nmblib.c:send_udp(755)
  Packet send failed to 66.92.68.255(138) ERRNO=Operation not permitted

It seems that it's trying to broadcast on my external IP address instead 
of 192.168.1.255.  Where would I set that?

Note that I do NOT think this is my problem, because the time of this 
message does not coincide with a printing attempt; I think this might have 
to do with CUPS browsing.  Thoughts?

But later on in that file I noticed:

[2002/09/16 18:49:59, 0] 
nmbd/nmbd_responserecordsdb.c:find_response_record(236)
  find_response_record: response packet id 23410 received with no matching 
record.
[2002/09/16 18:49:59, 0] 
nmbd/nmbd_responserecordsdb.c:find_response_record(236)
  find_response_record: response packet id 23411 received with no matching 
record.
[2002/09/16 18:55:42, 0] 
nmbd/nmbd_become_lmb.c:become_local_master_stage2(404)
  *****
  
  Samba name server UNI is now a local master browser for workgroup 
INTRANET on subnet 192.168.1.1
  
  *****
[2002/09/16 18:56:19, 0] nmbd/nmbd_packets.c:process_browse_packet(1062)
  process_browse_packet: Discarding datagram from IP 192.168.1.1. Source 
name UNI<00> is one of our names !

I think I turned on Browsing and this happened, but I'm not sure if I'm 
better off understanding and fixing this problem, or turning browsing back 
off.  If browsing is just for device discovery, I and my wife already know 
the printer is there ;)


Does anyone think this would be easier if I uninstalled LPRng and 
printconf?

Does anyone think I should give up and go back to LPRng, which I had 
working on my old server?


Thanks in advance. 


-------------------------------------------------------------------
DDDD   David Kramer                           http://thekramers.net
DK KD
DKK D  The plural of anecdote is not data.
DK KD  
DDDD   





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org