mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
b44cd11b6f
in the global section, and I've sorted the [Printers] section to match how it's organized in cupsaddsmb(1). I've also added references to that page, and to the samba How To since I found them both useful when I set this up.
89 lines
2.1 KiB
Plaintext
89 lines
2.1 KiB
Plaintext
**********************************************************************
|
|
**********************************************************************
|
|
MANUAL INSTALL INSTRUCTIONS:
|
|
==============================
|
|
|
|
To complete the installation of print/cups-samba, do in order:
|
|
|
|
CUPS-BASE
|
|
-----------
|
|
|
|
1) Uncomment application/octet-stream line in mime.types
|
|
2) Uncomment application/octet-stream line in mime.convs
|
|
3) Restart cupsd
|
|
|
|
SAMBA
|
|
-------
|
|
|
|
1) edit the [global] section of smb.conf and make sure it has these
|
|
lines (see 'man cupsaddsmb' for more info):
|
|
|
|
[global]
|
|
load printers = yes
|
|
printing = cups
|
|
printcap name = cups
|
|
|
|
2) edit the [printers] section of smb.conf and make sure it has these
|
|
lines:
|
|
|
|
[printers]
|
|
comment = All Printers
|
|
path = /var/spool/samba
|
|
browseable = no
|
|
public = yes
|
|
guest ok = yes
|
|
writable = no
|
|
printable = yes
|
|
printer admin = root
|
|
|
|
3) edit the [print$] section of smb.conf and make sure it has these
|
|
lines:
|
|
|
|
[print$]
|
|
comment = Printer Drivers
|
|
path = %%PREFIX%%/share/cups/drivers
|
|
browseable = yes
|
|
# guest ok = yes works too
|
|
guest ok = no
|
|
read only = yes
|
|
write list = root
|
|
|
|
4) restart Samba
|
|
|
|
____________
|
|
NOTE: Samba needs to know about the passwords for printer admin and
|
|
write list or authentication will fail.
|
|
|
|
|
|
CUPS-LPR
|
|
----------
|
|
|
|
1) Run cupsaddsmb
|
|
|
|
If only a subset of your printers will be installed as exportable to
|
|
MS Windows NT/XP/2000/2003 clients:
|
|
|
|
#cupsaddsmb -U root cups_printer_1 cups_printer_2 ...
|
|
|
|
To export all printers to MS Windows NT/XP/2000/2003 clients:
|
|
|
|
#cupsaddsmb -U root -a
|
|
|
|
In either case, you will be prompted for the root password.
|
|
|
|
WINDOWS
|
|
---------
|
|
|
|
1) Browse and install for a network printer as usual. The drivers
|
|
will be automagically installed.
|
|
|
|
____________
|
|
NOTE: Other settings in smb.conf may work, but your REALLY need to
|
|
know what your are doing. :)
|
|
|
|
%%PREFIX%%/share/doc/samba/Samba-HOWTO-Collection.pdf has some
|
|
valuable information on this topic, especially chapters 17 and 18.
|
|
|
|
**********************************************************************
|
|
**********************************************************************
|