On Tuesday 09 Aug 2005 16:55, John Bowden wrote:
> On Tuesday 09 Aug 2005 16:18, Mikkel L. Ellertson wrote:
> > John Bowden wrote:
> > > Hi Folks.
> > >   Trying to get samba to share my printer. when I double click my
> > > printer, in the samba share browser, it tells me it can not find the
> > > file "home/john/print.ps". I have looked for it starting from root,
> > > (logged in as usr john) and it seems that it don't exist. I can send
> > > a test page to the printer so I know it's working. Any ideas?
> >
> > Let me make sure I understand what you are trying to do. It sounds
> > like you are trying to attach a printer on another machine using
> > smb4k. While you can print a single file this way. If you want to map
> > a printer on another machine using Samba, you need to go into CUPS
> > setup and add the printer.
> >
> > If you just want to pint once in a while, you can have the program
> > print to a file, and use smb4k to print that file. Just select the
> > correct file to print in the file browser box in place of print.ps.
> >
> > Mikkel
>
> The printer is installed on my Mdk box and I want to share it with all
> the other machines on the network. A mix of w2k, xp, debian and mdk

John, I didn't reply earlier, because the reference to home/john/print.ps 
didn't ring any bells.  However, I do have a printer attached to a 
Mandrake 10.0 box, which serves 2 2005LE boxes and occasionally Win98 and 
XP boxes.  The trick is to set a line like
ServerName 192.168.0.30
in /etc/cups/client.conf

Then check /etc/samba/smb.conf.  My print section looks like this:

# =====================================
# print command: see above for details.
# =====================================
   print command = lpr-cups -P %p -o raw %s -r   # using client side 
printer drivers.
#   print command = lpr-cups -P %p %s # using cups own drivers (use generic 
PostScript on clients).
# If you install drivers on the server, you will want to uncomment this so
# clients request the driver 
   use client driver = yes

[print$]
   path = /var/lib/samba/printers
   browseable = yes
   write list = @adm root
   guest ok = yes
   inherit permissions = yes

It is far the easiest to get the windows boxes to load a suitable driver 
for your printer than it is to attempt to use the local drivers.

HTH

Anne

Attachment: pgp8t86Enegf7.pgp
Description: PGP signature

Reply via email to