Technical article 116590

VisionFS, How can I print from a UNIX system to a shared Windows printer through SMB?

OpenServer 5.0.5OpenServer 5.0.6UnixWare 7.1.0UnixWare 7.1.1

Written · Last revised

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

From the Xinuos technical article database, record 116590. Reproduced with permission. The original is at www.sco.com/ta/116590, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.