1 | smbprint.exe - Samba Print Command for OS/2
|
---|
2 | ===========================================
|
---|
3 |
|
---|
4 | CONTENTS:
|
---|
5 |
|
---|
6 | A. Introduction
|
---|
7 | B. Installation
|
---|
8 | C. Limitations, To-Do list
|
---|
9 | D. FAQ
|
---|
10 | E. Author
|
---|
11 |
|
---|
12 | A. Introduction:
|
---|
13 |
|
---|
14 | The Samba Server requires an external print command script or program
|
---|
15 | to pick up the spoolfile, send it to the printer and remove it afterwards.
|
---|
16 |
|
---|
17 | This is what smbprint.exe does. It acts as a bridge between Samba and OS/2's
|
---|
18 | current printer subsystem.
|
---|
19 |
|
---|
20 | B. Installation:
|
---|
21 |
|
---|
22 | 1. Put smbprint.exe into the Samba directory (the one where smbd.exe resides).
|
---|
23 |
|
---|
24 | 2. Make sure you have VROBJ.DLL somewhere in your LIBPATH (should be there
|
---|
25 | anyway, as it comes with all recent OS/2 and eCS versions.
|
---|
26 |
|
---|
27 | 3. Add the following lines to the [global] section of smb.conf:
|
---|
28 |
|
---|
29 | printing = bsd
|
---|
30 |
|
---|
31 | 4. Add a printer section to smb.conf:
|
---|
32 |
|
---|
33 | Example:
|
---|
34 | ---------------------------<snip>-----------------------------------
|
---|
35 | ;Name of the printer share
|
---|
36 | [stylus]
|
---|
37 | ; Make sure this directory exists!
|
---|
38 | path = x:/samba/var/spool/stylus
|
---|
39 | create mask = 0700
|
---|
40 | printable = Yes
|
---|
41 | ; Do not change this line except the path to smbprint.exe!
|
---|
42 | ; smbprint.exe requires the parameters exactly in that order!
|
---|
43 | ; The "print command" may be added either separately for each
|
---|
44 | ; printer or in the [global] section. In this case is is used
|
---|
45 | ; for every printer
|
---|
46 | print command = x:/samba/smbprint.exe "%s" "%p" "%J" "%c" "%z"
|
---|
47 | ; Set the OS/2 printer queue (shown as "physical name" on the
|
---|
48 | ; first notebook page of a printer object) as the printer name.
|
---|
49 | ; This is required by smbprint.exe in order to know to which OS/2
|
---|
50 | ; printer a file should be printed.
|
---|
51 | printer name = OMNIStyl
|
---|
52 | ---------------------------<snap>-----------------------------------
|
---|
53 |
|
---|
54 | 5. Install the appropriate driver on the client.
|
---|
55 |
|
---|
56 | 6. You are done.
|
---|
57 |
|
---|
58 | C. Limitations, To-Do list:
|
---|
59 |
|
---|
60 | - smbprint should remember its position
|
---|
61 | - smbprint should be configurable to run optionally invisibly
|
---|
62 | - smbprint should have configurable fonts, colours etc.
|
---|
63 | - smbprint should have a wizard-like mode to add printers to smb.conf
|
---|
64 | (alternatively this might go into the (unreleased) Small Samba Config
|
---|
65 | Center).
|
---|
66 |
|
---|
67 | D. FAQ:
|
---|
68 |
|
---|
69 | 1. Q: Why this? A 'print command = PRINT.EXE /D:LPT1 /B %s' should be
|
---|
70 | sufficient.
|
---|
71 |
|
---|
72 | A: No, not at all. The spool files will not be removed and you only
|
---|
73 | can print to printers connected to LPTx, COMx but not to all others.
|
---|
74 | By using smbprint.exe you can print to ANY printer KNOWN to OS/2,
|
---|
75 | regardless how it is connected to your machine and the spoolfile
|
---|
76 | will be removed after printing. In addition the print job shows up
|
---|
77 | with the appropriate title in the OS/2 printer objects.
|
---|
78 |
|
---|
79 | E. Author:
|
---|
80 |
|
---|
81 | Herwig Bauernfeind, 31.08.2007
|
---|
82 | mailto:herwig.bauernfeind@aon.at
|
---|