[Samba] printing form linux clients to samba

David Morel david.morel at amakuru.net
Sun Feb 15 21:31:58 GMT 2004


Le dim 15/02/2004 à 21:08, zynkx a écrit :
> 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...

you should define this printer by default in cups with lpadmin -D
printername (if IIRC, might be -d). That's more of a cups question. Then
lpr will behave as you expect and send the jobs to this printer.

but I can't figure out why you're using the smb backend instead of the
native cups protocol (which wouldn't require setting up a driver on the
client) between the 2 nix boxes...

-- 
***********************************************
david.morel at amakuru.net
OpenPGP public key: http://www.amakuru.net/dmorel.asc
28192ef126bc871757cb7d97f4a44536


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=
Url : http://lists.samba.org/archive/samba/attachments/20040215/0cb4bf25/attachment.bin


More information about the samba mailing list