Rashkae rashkae at tigershaunt.com
Tue Feb 17 16:13:38 GMT 2004

I'll give you the benefit of the doubt, and assume that the message
flood was an accident, and the annoying 'loud' subject line is just
ignorance of netiquette.

Your question is more appropriate to cups than to Samba.

Use smbclient print <filename> to send a file to a remote printer.
However, the file has to be in a language your printer understands if
your sending to a RAW queue.  (Postscript should work well if you are
sending to a printer queue configured by CUPS with a driver for your

If you have a GUI enviroment with KDE installed, try using kprinter as
a frontend to cups.  That's the best Linux printing solution I've
found for Linux Desktops.

Failing that, make sure you read the CUPS documentation,
(http://localhost:631) and the printing documents in the Samba howto

And lastly, if these two computers are on the same LAN, configure cups
on the server to broadcast and accept connections remotely, and let
CUPS take care of the network sharing.  Again, refer to the CUPS
documentation.  CUPS's implementation of IPP (Internet Printing
Protocol) makes Windoze printer sharing look like a dinossaur left
over from the early 80's.  (Oh wait... that's about right, isn't it?)

On Tue, Feb 17, 2004 at 03:00:28PM +0000, zynkx wrote:

> hi all and thanks in advance for reading this
> i have worked with samba for a while, sharing drives on
>  my linux boxes and all went well until now.
> now, i tried to share a printer.
> 1 i setup a printer in a box with cups. the printer is
> working fine in that host printing everything as it is
> told.
> 2 i tried to share the printer to:
>              2.1 one windows wrokstation in the lan
>              2.2 two linux boxes on the lan
> with the following config file:
> [global]
>    workgroup = PRINTSERVER
>    netbios name = NEPTUN
>    server string = neptun print server
>    log file = /var/log/samba/log.%m
>    max log size = 50
>    security = share
>    encrypt passwords = yes
>    socket options = TCP_NODELAY SO_RCVBUF=8192
> SO_SNDBUF=8192
>    printcap name = lpstat
>    printing = cups
> [printers]   
>    comment = All Printers
>    printer = hp_670C 
>    path = /var/spool/samba
>    browseable = no
>    guest ok = yes
>    writable = no
>    printable = yes
>    create mode = 0700
>    print command = lpr -P %p -o raw %s -r
>    lpq command = lpstat -o %p
>    lprm command = cancel %p-%j
>    use client driver = yes      
> i then made the client configuration on the windows
> workstation, and windows is printing well to my linux
> printing server with samba. it shares drives and the
> printer without any kind of problem.
> the problem is that i cannot print form my linux boxes
> to that shared printer...
> on linux boxes i made the following
> 1 configured one printer queue with cups linking the
> smbspool to /usr/lib/cups/backend/ 
> ln -s /usr/bin/smbspool /usr/lib/cups/backend/smb
> 2 loaded the driver for hp 670c in cups
> 3 tried to print a test page and i did it successfully
> now... the only thing is that i am only able to print
> test pages... and i can't figure out the command line
> options to print from my linux print clients to my
> linux print server...
> windows is doing fine though. 
> other thing is that when I:
> smbclient //neptun/printers
> i can mount the share but it does not print.
> -------------------------------------------------
> Email Enviado utilizando o servi?o MegaMail
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list