Problem
How to setup a UNIX (OpenServer or Unixware 7) printer to print to a shared Windows printer through SMB using VisionFS 3.1.
Solution
Please see the following example:From the Windows system (95/98/NT/2000/ME/XP):Assume the Windows PC is called "winpc" and the user logs into it as "support" with "support123" as the password.
- Set up a printer. In our example, we will call it "HP_Support". Make sure that the printer name does not contain any spaces (for example,"HP Support") and that the printer is an HP LaserJet IV supporting both PCL and PostScript. It is not the remit of this article to explain how to configure Windows Printers but the option is available from Start-> Control Panel->Printers->Add Printer.
For example, within Windows 2000, click on Local Printer in the
Printer Wizard and add a Standard TCP/IP Port with the IP
Address or name of the printer you wish to print to. You
should then be able to add the printer with the appropriate
driver.- Test that you can print from Windows to the printer using the "Print Test Page" option in Start->Control Panel->Printers-> HP_Support->Properties
- Share the printer and share name is HP_Support.
From the UNIX system (UnixWare 7.1.X/OpenServer 5.0.5/5.0.6):
Assuming you have successfully installed VisionFS 3.1 and it is working correctly.
- cd /usr/vision/bin- ./visionfs print --install <unix_printer> \\<SMB server>
<shared win printer name> <winuser> <winpasswd>./visionfs print --install winprint \\winpc HP_Support support
support123- To list the installed printer, enter the following:
./visionfs print --list- To print from UNIX, use the common lp command.
For example: # lp -d winprinter <file>To remove the printer, enter the following command:
./visionfs print --remove winprint