Need some help with printing with SAMBA

mcveigh

Diamond Member
Dec 20, 2000
6,457
6
81
I could use some help here, it's been too long since I did anyprinting with samba.
I just got a new brother HL-1440 printer, I decided to attach this one to my Linux box. it's attached to the parallel port.
But I can't print to it from my wifes windows 98 box

here is part of my smb.conf
[printers]
comment = HL-1440
path = /var/spool/samba
guest ok = Yes
printable = Yes
browseable = No

[print$]
path = /usr/local/samba/printers
write list = @home
guest ok = Yes

I stole part of it from a samba list.
anyways I dont get any error messages, I just can't print from windows.
It works fine in linux using the lpr command to print.

 

manly

Lifer
Jan 25, 2000
13,190
3,974
136
My samba printing setup is much simpler. Here are the lines from smb.conf:

printing = bsd
printcap name = /etc/printcap
load printers = yes

I don't actually use the printer share anymore, but in the past I know it worked. If I'm not mistaken, on the Windows clients, instead of choosing a Brother HL-1440 as the printer type to use native drivers, you choose a postscript printer/driver.

The reason is that Linux's LPR printing subsystem uses Ghostscript to convert Postscript (generated from applications) to the printer's native printing language. So an application (whether local or remote) sends either plain ASCII or Postscript to the LPR daemon. Since Samba is just calling lpr, you want remote clients to send over Postscript.

Note that there is a way to actually configure Samba to serve Windows print drivers (this behavior is an imitation of W2K). However, for a basic setup, I don't see any necessity for that.

Note, since there aren't too many choices for a Postscript printer/driver in Winblows, one choice that works is the Apple LaserWriter IINT. As an aside, that printer is built like a tank (many of the LaserWriters were).

Finally, O'Reilly publishes a book called Using Samba. It's also available electronically. SuSE Linux includes the book in HTML form in it's samba RPM. Other distros might do the same. It's a good read, although a bit outdated (it was written in the Samba 2.0 days). If you can't find it electronically, I'll zip up the files and send them over.
 

mcveigh

Diamond Member
Dec 20, 2000
6,457
6
81
Thanks! I'll give it a try wen I get home. I pretty comfortable with samba, and I do have the Oreilly book (just can't find it) but prigntin is an area in linux I am weak on.
 

mcveigh

Diamond Member
Dec 20, 2000
6,457
6
81
No joy yet,

heres what I have now
[global]
workgroup = xxx
netbios name = MIDAS
server string = Samba Server %v
encrypt passwords = Yes
log file = /var/log/samba/%m.log
max log size = 0
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
wins support = Yes
remote announce = 192.168.0.255
admin users = seth,icarus
printer admin = @home
hosts allow = xxx.xxx.xxx. 127.

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775

[music]
comment = music
path = /home/music
write list = all
force group = home
read only = No
create mask = 0777
directory mask = 0777

[tmp]
comment = Temporary file space
path = /tmp
read only = No
guest ok = Yes

[HL1440]
path = /usr/spool/public
guest ok = Yes
printable = Yes

I still get errors, I tried using the apple driver you suggested.

how do you have the printer show up w/o a specific printer share or just "[printers]" share

 

manly

Lifer
Jan 25, 2000
13,190
3,974
136
Here's an example of a basic printer share from Using Samba:

7.1.3 A Minimal Printing Setup

Let's start with a simple but illustrative printing share. Assuming that you're on a Linux system and you have a printer called lp listed in the printer capabilities file, the following addition to your smb.conf file will make the printer accessible through the network:

[printer1]
printable = yes
print command = /usr/bin/lpr -r %s
printer = lp
printing = BSD
read only = yes
guest ok = yes

The other style of share, as you know, is the [printers] share, which creates a share for each printer in /etc/printcap

However, I have neither share in my smb.conf, so I suspect the load printers = yes line is achieving the same functionality.

Like I said, Using Samba was written in the v. 2.0 days, so it's a bit dated. But try the above syntax, and see if it works.
 

mcveigh

Diamond Member
Dec 20, 2000
6,457
6
81
Success!!:D

[HL1440]
path = /tmp
guest ok = Yes
printable = Yes
printer name = lpt1
print command = lpr -r -P%p %s
printing = BSD


Thanks for your help manly!!
:)