The Design of Software (CLOSED)

A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.

The "Design of Software" discussion group has been merged with the main Joel on Software discussion group.

The archives will remain online indefinitely.

SMB printer interface.

I'm trying to work out how to use a shared Windows printer with linux's smbclient.

I can print to it fine with the "print <file>" command.

I'm wondering how you access the controls for things like paper bins and stuff over smb?

Cheers for any help.
Katie Lucas
Monday, November 15, 2004
This is the cleanest description I've seen (caveat, I've not used Samba 2.2), and at that its not that clean.
Simon Lucy Send private email
Monday, November 15, 2004
CUPS [ ] knows how to do all the stuff. I'm not sure how it communicates with SMB, but if you can, you're better off using CUPS anyway.
Ori Berger Send private email
Tuesday, November 16, 2004

I have done this in the past - though I admit it was configured by YaST at my direction.  It worked well on HP LaserJets and Color LaserJets.

As the OP suggested, I used CUPS.  This uses a program in Samba called 'smbspool'

The latest documentation is here.

What printer(s) do you have?

Popular printers have PPD (postscript printer description) files that give you access to bin/tray selection and duplexing options.  Useful PPD files will be installed automatically by SuSE and no doubt other Linux distros.  HP OfficeJet multifunction printers have advanced Linux printer drivers written by Hewlett-Packard.

The trick then is to get the tray selection info into your print job.  User GUI tools such as kprinter (install kdebase) or gnomeprint are the easiest; much tougher would be to embed bin selection statements in a postscript file by hand.

Katie - please post how you get on.

David Corking Send private email
Tuesday, November 16, 2004

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
Powered by FogBugz