Printer not working

Ian Hogben ian at safcol.com.au
Mon Nov 20 03:43:10 GMT 2000


Hello, samba people:

I've been toying with a shiny new replacement to our Novell system, and the
Samba system that I decided to go with is going to make my life a dream to
deal with. *IF* I survive the initial configuration...! :] I have a
question:

I can't get a printer to work. I have a printcap file on my RedHat 7 box
with two entries, and one of them works, the other doesn't. Both work using
lpr, but the "ricoh" printer won't through Samba. Looking through the
/var/spool/lpd/ricoh_lp/status.ricoh.lp file, the print job is submitted
successfully. The printcap file and smb.conf file are attached. I wonder if
anyone has any advice?

# extract of status.ricoh_lp file.
waiting for subserver to exit at 2000-11-20-13:51:08.115 ##
identifier=<NULL> number=0 process=3029
sending job 'ian at mambo+28' to PORT1 at ricoh at 2000-11-20-13:51:08.118 ##
identifier=ian at mambo+28 number=28 process=3030
connecting to 'ricoh', attempt 1 at 2000-11-20-13:51:08.119 ##
identifier=ian at mambo+28 number=28 process=3030
connected to 'ricoh' at 2000-11-20-13:51:08.142 ## identifier=ian at mambo+28
number=28 process=3030
requesting printer PORT1 at ricoh at 2000-11-20-13:51:08.142 ##
identifier=ian at mambo+28 number=28 process=3030
sending control file 'cfA028mambo.safcol.com.au' to PORT1 at ricoh at
2000-11-20-13:51:08.150 ## identifier=ian at mambo+28 number=28 process=3030
completed sending 'cfA028mambo.safcol.com.au' to PORT1 at ricoh at
2000-11-20-13:51:08.663 ## identifier=ian at mambo+28 number=28 process=3030
sending data file 'dfA028mambo.safcol.com.au' to PORT1 at ricoh at
2000-11-20-13:51:08.663 ## identifier=ian at mambo+28 number=28 process=3030
completed sending 'dfA028mambo.safcol.com.au' to PORT1 at ricoh at
2000-11-20-13:51:09.188 ## identifier=ian at mambo+28 number=28 process=3030
done job 'ian at mambo+28' transfer to PORT1 at ricoh at 2000-11-20-13:51:09.188
## identifier=ian at mambo+28 number=28 process=3030
subserver pid 3030 exit status 'JSUCC' at 2000-11-20-13:51:09.195 ##
identifier=<NULL> number=0 process=3029
ricoh_lp at mambo.safcol.com.au: job 'ian at mambo+28' printed at
2000-11-20-13:51:09.195 ## identifier=ian at mambo+28 number=28 process=3029
job 'ian at mambo+28' removed at 2000-11-20-13:51:09.196 ##
identifier=ian at mambo+28 number=28 process=3029

#> cat /etc/printcap
admin1| Network printer on pr_admin:\
                 :lp=:\
                 :sd=/var/spool/lpd/admin1:\
                 :lf=/var/spool/lpd/admin1/log:\
                 :rm=pr_admin:\
                 :rp=pr1:
# The ricoh printer is the one busted.
ricoh_lp| ricoh:\
        :lp=:\
        :sd=/var/spool/lpd/ricoh_lp:\
        :lf=/var/spool/lpd/admin1/log:\
        :rm=ricoh:\
        :rp=PORT1:

#> cat /etc/samba/smb.conf
   [global]
   workgroup = Safcol
   server string = Mambo
   log file = /var/log/samba/%m.log
   max log size = 0
   security = user
   encrypt passwords = yes
   smb passwd file = /etc/samba/smbpasswd
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   dns proxy = no

# Below is for printers
   printcap name = /etc/printcap
   load printers = yes
   printing = lprng
   printer driver file = /home/shared/printers/printers.def
   printer driver location = \\mambo\printer$

# Below is for netlogons
   domain logons = yes
   logon script = %U.bat
   domain master = yes
   preferred master = yes
   local master = yes
   root preexec = /home/shared/netlogon/genlogon.pl %U %G %L
   root postexec = rm /home/shared/netlogon/%U.bat

[netlogon]
   comment = Network Logon Scripts
   path = /home/shared/netlogon
   writeable = no
   guest ok = no

[root]
   comment = Root File Share
   path = /home/shared
   writeable = yes
   guest ok = no

[homes]
   comment = Home Directories
   browseable = no
   writable = yes

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest ok = no
   printable = yes

[printer$]
   comment = Printer installation share
   path = /home/shared/printers
   browseable = no
   guest ok = no

[admin1]
   comment = HP LaserJet 1100
   path = /var/spool/samba
   browseable = yes
   printable = yes
   public = yes
   printer driver = HP LaserJet

[ricoh_lp]
   comment = System Printer
   path = /var/spool/samba
   browseable = yes
   printable = yes
   public = yes
   printer driver = System Printer

Many thanks in advance!

-+-+-+-+-+-+-+-+-+-
Ian Hogben | Information Support Manager | Safcol Australia
mailto:ian at safcol.com.au | fon:(08)82821082 | fax:(08)82821099
-+-+-+-+-+-+-+-+-+-
       "When eating bamboo shoots,
    remember the men who planted them."
           - Chinese Proverb





More information about the samba mailing list