If you have a printer connected to a Windows machine, then setting it up for network printing on a Mac is easy, even if there are no drivers for OSX for this printer.
Three things are needed for this:- Printer working properly on a Windows machine
- Ghostscript - PostScript Printer Emulator
- RedMon - Redirection Port Monitor
Download and install distributions.
For convenience of the description and setup - we make installation in the
C: \ gs folder
Setting up a virtual printer in Windows
')
In my example, two printers without OSX drivers — a monchrome laser “Samsung ML2250” and a color laser “Konica 2400W”. Let's start with black and white Samsung.
First, you need to create a configuration file for this printer,
C: \ gs \ samsung.rsp , its contents:
-IC:\gs\gs8.64\lib;C:\gs\fonts<br>
-sDEVICE=mswinpr2<br>
-dNOPAUSE<br>
-dSAFER<br>
-sPAPERSIZE=a4<br>
-mono<br>
-sOutputFile="%printer%Samsung ML-2250"
In the last line, you must specify the exact name of the real printer installed and configured in the system (possible with spaces). For a monochrome printer, I added the line "-mono".
Now you need to configure a virtual printer. To do this, run the standard wizard and add a new local printer:


As a port, select "Redirected Port":

Wizard will create a new Redirect-port and offer to rename it, leaving everything as it is:

In the next step, you need to select a standard driver for a virtual printer, and a set of drivers from Apple is best suited for this. Choose a black and white laser printer. I chose the Apple LaserWriter 16/600 PS.

We agree with the proposal to keep the existing driver:

Specify the name of the printer:

You can immediately "share" the printer:

Now you can specify additional data, for example, explain how to install the printer and which drivers to use for this:

You do not need to print a test page at this step:

Printer installation is complete:

Go to the settings of the printer, on the tab "Ports" select the newly created port "RPT1: Redirected Port":

Port Configuration "RPT1: Redirected Port":
In the field “Redirect this port to the program” with the help of “Browse” we indicate the path to
gswin32c.exe , in our case it is
C: \ gs \ gs8.64 \ bin \ gswin32c.exeIn the line “Arguments for this program are:” specify the path to the printer settings file in the format Ghost:
@C: \ gs \ samsung.rsp -Please note that it is very important not to forget to put a “space” and “-” after the file name.
In the "Output" select "Copy temporary file to printer".
As the "Printer" choose a real printer, in my case it is "Samsung ML-2250".
“Run” - “Hidden” - hide all dialogs and windows of the program.

Feel free to click "OK"!
This completes the printer setup on the Windows machine; now you can check the redirect functionality by printing a test page from the virtual printer settings panel.
Setting up a printer in Leopard
Launch System Preferences and select Print & Fax.

In my screenshot, both printers are already configured :) To configure another one, click "+" and select the connection by "IP".
"Protocol" - "Line Printer Daemon - LPD"
"Address" - the IP address of the Windows machine with the shared printer.
"Name" - we write the name for the printer.
“Location” is the value specified during the Windows setup of the printer in the “Location” field (this is not a prerequisite, but more accurate).
“Print Using” - “Select a driver to use” and using the convenient search select “Apple LaserWriter 16/600 PS”.

Click "Add". This is where the printer connection to Leopard is complete. Check, rejoice.
Setting up a color laser printer "Konica 2400W" was made similarly. “Apple Color LaserWriter 12/600 PS” was selected as the driver, and the
-mono option was removed in the printer configuration file.