Printing in TNG

Richard Sharpe sharpe at ns.aus.com
Mon Feb 21 06:03:26 GMT 2000


At 05:37 AM 2/22/00 +1100, Steve Litt wrote:
>Inge,
>
>What you describe is the as-designed performance of Samba as configured by
>the Red Hat distro. With Red Hat, you need to hard code printing, print
>command, and any other commands you regularly use (lprm command, for
>instance). You'll also need to change the printcap name= to /etc/printcap.
>If you get a SWAT problem mentioning lpstat, the printcap name= change will
>fix it.

Hmmm, a small correction.  With the old versions of Samba, this is true.
The RH 2.0.3 RPM did have a bug like Inge describes below, but an upgrade
to 2.0.5a fixes that problem.

However, there was also an underlying bug in Samba (fixed in 2.0.7, I
think) where we were handling various printing-related parameters correctly.

>As an alternative, I download the Samba 2.0.x .tgz and compile and make.
>I've found that to yield a better setup, and it doesn't default to sysv
>printing.
>
>Steve Litt
>
>At 03:50 AM 02/22/2000 +1100, Inge-Håvard Hunstad wrote:
>>When I try to change printing system from the default "sysv" to "bsd" in
>>smb.conf the printing commands doesn't seem to change. When I run
>>testparm after changing the "printing" parameter it looks like this:
>>
>>        print ok = No
>>        postscript = No
>>        printing = bsd
>>        print command = lp -c -d%p %s; rm %s
>>        lpq command = lpstat -o%p
>>        lprm command = cancel %p-%j
>>        lppause command = lp -i %p-%j -H hold
>>        lpresume command = lp -i %p-%j -H resume
>>        queuepause command = lpc stop %p
>>        queueresume command = lpc start %p
>>        printer name =
>>        printer driver = NULL
>>        printer driver location =
>>
>>At least I didn't know that BSD printing used lp and lpstat so I think
>>there is an error somewhere. 
>>
>>Thanks for all help.
>>
>>inge
>>
>>
>>smb.conf global section:
>>
>>#======================= Global Settings
>>=====================================
>>[global]
>>ldap suffix = "ou=People,dc=student,dc=uit,dc=no"
>>ldap bind as = "uid=manager,dc=student,dc=uit,dc=no"
>>ldap passwd file = /opt/samba-tng/private/ldappasswd 
>>ldap server = localhost 
>>ldap port = 389 
>>workgroup = LDAP
>>netbios name = <Netbios name>
>>server string = <Netbios name> Samba %v
>>hosts allow = XXX.XXX.X. XXX.XXX.XX. 127.
>>printcap name = /etc/printcap
>>load printers = yes
>>printing = BSD
>>log level = 0
>>log file = /opt/samba-tng/var/log.%m
>>max log size = 5000
>>security = user
>>null passwords = No
>>encrypt passwords = yes
>>local master = Yes
>>os level = 65 
>>domain master = yes 
>>preferred master = yes
>>domain logons = yes
>>name resolve order = wins lmhosts bcast
>>logon path = \\<Netbios name>\Profiles\users.man
>>logon home = \\<Netbios name>\%U
>>logon drive = H:
>>Wins server = XXX.XXX.XX.XX
>>Dns Proxy = No
>>interfaces = XXX.XXX.XXX.XXX/24
>>
>>
>>
>>-- 
>>Inge-Håvard Hunstad
>>email: 	inge at cc.uit.no
>>Tlf:   	77646527
>>(intern nr. UiT: 6527)
>>
>
>

Regards
-------
Richard Sharpe, sharpe at ns.aus.com, Master Linux Administrator :-),
Samba (Team member, www.samba.org), Ethereal (Team member, www.zing.org)
Co-author, SAMS Teach Yourself Samba in 24 Hours
Author: First Australian 5-day, intensive, hands-on Linux SysAdmin course
Author: First Australian 2-day, intensive, hands-on Samba course



More information about the samba-ntdom mailing list