Manual Printer Driver Installations
Joel at HammersHome.com
Thu Oct 18 16:58:03 GMT 2001
I notice that you didn't post the print filter. The filter might be a shell
script which sets up parameters for the real filter and might be worth
I am going to make two suggestions. Likely, neither of them will really work
but they might give you insight into how to solve this problem.
I don't have the ifhp filter or its documentation.
Read the documentation of ifhp.conf. I am assuming that is a configuration
file for the iphf program, and it is from printer manufacturer. I may be
In iphf.conf there must be a way to specify a default page size.
Make an entry in iphf.conf, say [ phaser2135 A4 ]
and make a4 the default paper size.
Then, add an entry to your printcap for this printer. Duplicate what you
have for phaser2135 but give it a different queue directory (sd).
I would avoid the redhat configuration utility here, unless you know how to
run checkpc -f to install the queue for your new printer. Look for errors.
When you run checkpc -f, do you get an error for the filter parameter in
printcap? That looks odd to me. It is duplicated. "if" is the proper name
for the filter location.
Then, try printing from your linux server to the two queues. Hopefully, you
will get the different page sizes.
Then you can add a share to your smb.conf so your windows clients can access
either print queue.
With your current queue, try printing from your samba server with various options with lpr. There
must be a way to pass the filter some of those options with lpr so you can
get different paper sizes.
Read man lpr. Maybe the -Z option will let you do it.
lpr -Pphaser2135 -Za4 (worth a try. Experiment!)
If this works, you make a different share in smb.conf which is identical to
your current printer share, but changes the print command in the share
to the one above with the -Za4 option. Then, your clients could use
it for a4 sizes.
And, as always with linux, consider this a good learning experience.
On Thu, Oct 18, 2001 at 10:59:35PM +0200, Eirik Thorsnes wrote:
> If I could have an automatic convertion from letter to A4 size I would be
> overly happy. Samba is given a postscript file from the client with letter
> size specified. The printer below is the one with most trouble. In fact,
> currently it won't allow anything but letter (and some other obscure formats
> :) to be selected in the dialog box at the NT/w2k client.
> I guess the solution should be easily transferable to other similar
> postscript printers. Any suggestions to other solutions are also welcome.
> this is what I have:
> Printing software: LPRng 3.7.4
> Filter: ifhp 3.4.7
> System: Redhat 7.1 on i386
> Printer: Xerox (tektronix) phaser 2135
> phaser2135|Xerox Phaser 2135 PS
> :cm=Xerox Phaser 2135 PS:
> The portion in ifhp.conf:
> [ phaser2135 ]
> pjl_only= [ ENTER EOJ JOB ]
> ps_user_opts= [ collate duplex tray1 tray2 tray3 tray4 tray5 manual
> autoselect a4 a3 a5 letter legal ledger oversize
> transparancy ]
> ps_letter= << /PageSize [612 792] /ImagingBBox null >> setpagedevice
> ps_a4= << /PageSize [595 842] /ImagingBBox null >> setpagedevice
> ps_a3= << /PageSize [842 1191] /ImagingBBox null >> setpagedevice
> ps_a5= << /PageSize [420 595] /ImagingBBox null >> setpagedevice
> ps_transparency= << /MediaType (Transparency) >> setpagedevice
More information about the samba