X-Apparently-To: yhamza@yahoo.com via mdd901.mail.yahoo.com
Received: from ldn2mx5.ebrd.com (193.128.202.104)
  by mta105.mail.yahoo.com with SMTP; 7 Oct 1999 04:34:53 -0700
Received: from ldn2vs2.ebrd.com (ldn2vs2.ebrd.com [193.128.202.103]) by ldn2mx5.ebrd.com (8.8.5/SCA-6.6)  with ESMTP
	id LAA02929 for <yhamza@yahoo.com>; Thu, 7 Oct 1999 11:32:02 GMT
Return-Path: <robsonk@ebrd.com>
Received: from ldn1exc2.ebrd.com (unverified) by ldn2vs2.ebrd.com
 (Content Technologies SMTPRS 2.0.15) with ESMTP id <B0001374654@ldn2vs2.ebrd.com> for <yhamza@yahoo.com>;
 Thu, 07 Oct 1999 12:26:51 +0100
Received: by ldn1exc2.ebrd.com with Internet Mail Service (5.5.2448.0)
	id <4LWHNNXA>; Thu, 7 Oct 1999 12:31:53 +0100
Message-Id: <EF059F7BBAF4D1119BB500805FA7DCF5058D932F@ldn1exm1.ebrd.com>
From: robsonk@ebrd.com
To: yhamza@yahoo.com
Subject: RE: Printing from Solaris to WinNT lpd daemon
Date: Thu, 7 Oct 1999 12:31:52 +0100 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: multipart/mixed;
	boundary="----_=_NextPart_000_01BF10B7.8D68A6EE"

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01BF10B7.8D68A6EE
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Please see attached...

- -----Original Message-----
From: Yasir Hamza [mailto:yhamza@yahoo.com]
Sent: 06 October 1999 21:05
To: Sun Managers Email List
Subject: Printing from solaris to WinNT lpd daemon


Gurus
=20
    I've succeeded in setting up printing from solaris 2.5.1 to a
tcp/ip print server on windows NT, the problem is that the printout is
alway required to be to a postscript printer.. while I'm using HP
laserJet 5L which is not a PostScript printer, anybody knows any
workaround for this problem, can I use my HP LaserJet 5l from my
SparcStations running Solaris 2.5.1?
=20
=20
Yasir Hamza
System Admin
Sudanet
Khartoum, Sudan


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.0.2i

iQA/AwUBN/yEqI3++wZnbTGUEQLqDwCglZFHSNsulGBJfyoXEfBx962IOpEAoIVa
rKK5YtALK3r29nXibS/ZC5e1
=3Dh1h6
-----END PGP SIGNATURE-----
=8D


------_=_NextPart_000_01BF10B7.8D68A6EE
Content-Type: application/octet-stream;
	name="doc2html.htm"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="doc2html.htm"

<!-- cache used -->=0A=
<html>=0A=
<head>=0A=
<title>Symptoms and Resolutions document 17039</title>=0A=
</head>=0A=
<body bgcolor=3D"#ffffff" vlink=3D"#551a8b" alink=3D"#ff0000" =
link=3D"#0000ee" text=3D"#00=0A=
0000">=0A=
<center>=0A=
<TABLE CELLPADDING=3D5 CELLSPACING=3D0 BORDER=3D0>=0A=
<th BGCOLOR=3D"#ffffff" width=3D500 VALIGN=3Dcenter ALIGN=3Dcenter>=0A=
=0A=
<font size=3D"+1">Symptoms and Resolutions article 17039</font>=0A=
</th>=0A=
</table>=0A=
</center><center>[ <a href=3Dnotify-edit.pl?srdb/17039>Notify</a> of =
changes ]<br>[ <a href=3Dmark.pl>Edit/Retrieve Marked Documents</a> ] [ =
<a href=3Dmark.pl?srdb/17039+srdb/17039>Mark Document</a> ]<br>=0A=
=0A=
=0A=
</center>=0A=
<center>=0A=
<applet code=3DFeedback.class codebase=3D"/sunsolve/uk" width=3D420 =
height=3D70>=0A=
<param name=3D"cgipath" value=3D"/private-cgi/uk">=0A=
<param name=3D"background" value=3D"white">=0A=
<param name=3D"font" value=3D"TimesRoman">=0A=
<param name=3D"fontsize" value=3D"12">=0A=
<param name=3D"usefullabel" value=3D"Was this document useful? ">=0A=
<param name=3D"labelyes" value=3D"Yes">=0A=
<param name=3D"labelno" value=3D"No">=0A=
<param name=3D"querylabel" value=3D"What were you really looking =
for?">=0A=
<param name=3D"origquery" value=3D"93929486813676">=0A=
<param name=3D"docname" value=3D"">=0A=
<param name=3D"buttonlabel" value=3D"Send feedback!">=0A=
<param name=3D"thanks" value=3D"Thanks for your feedback!">=0A=
</applet>=0A=
</center><hr><pre><B><I>SRDB ID: </I></B>17039=0A=
=0A=
<B><I>SYNOPSIS: </I></B>Printing PostScript to a Windows NT server=0A=
=0A=
<B><I>DETAIL DESCRIPTION:</I></B>=0A=
=0A=
Several customers have reported problems when submitting PostScript =
files=0A=
from a Solaris client toa Windows NT server, in such that the NT =
machine=0A=
fails to interpret the job as Postscript, resulting in the document =
being=0A=
printed as a plain ASCII file.=0A=
=0A=
<B><I>SOLUTION SUMMARY:</I></B>=0A=
=0A=
There appears to be some confusion between Solaris and other UNIX =
based=0A=
operating systems that act as print clients to a Windows NT print =
server,=0A=
with respect to compliance of RFC1179.=0A=
=0A=
The RFC states that line 6 of the control file should start with an 'o' =
if the=0A=
data file contains Postscript, but our implementation as well as other =
vendors=0A=
uses an 'f' character instead.  Windows NT on the other hand expects =
the 'o'=0A=
character as their implementation of LPD was written after the RFC=0A=
specification=0A=
had been around for quite some time.=0A=
=0A=
There are a number of workarounds that allow the NT server to print =
files=0A=
correctly:=0A=
=0A=
1) /usr/ucb/lpr -l=0A=
=0A=
   According to the RFC this option alters line 6 of the control file =
by using=0A=
   an 'l' instead of an 'f'.  This tells the remote NT server to print =
the file=0A=
=0A=
   leaving the control characters intact, allowing NT to interpret the =
file as=0A=
   raw instead of text.=0A=
=0A=
   If you have Solaris 2.4 you will need to install patch <a =
href=3D"/private-cgi/uk/doc2html?patches/101959">101959-06</a> before =
you=0A=
   can use this functionality.=0A=
   (See SRDB 13597 for the full description of this workaround)=0A=
=0A=
=0A=
Some customers have said that it is not practical to use lpr instead of =
lp, in =0A=
which case we have a problem as there is no way to alter the behaviour =
of lp to=0A=
send compatible control files.=0A=
There are however a couple of workarounds that the customer might wish =
to try:=0A=
=0A=
2) Pass through mode=0A=
=0A=
   According to the Microsoft support article ID Q150930, it is =
possible to=0A=
alter=0A=
   the standard behaviour of the LPD print service under NT so that it =
ignores =0A=
   the format control command from the LPR client and always assigns =
the RAW =0A=
   datatype to the job being printed.=0A=
=0A=
   NOTE: This setting is not available for a single printer. This =
setting=0A=
affects=0A=
   all printers on the Windows NT Server that are receiving print jobs =
from LPR=0A=
=0A=
   clients. Print jobs from non-LPR clients are not affected by this =
setting. =0A=
=0A=
   The method for altering the behavior of LPD for NT 4 is given below, =
but you=0A=
   should check out the support pages at Microsoft=0A=
(http://support.microsoft.com)=0A=
   for the full description and solution.  =0A=
   This is quoted direct from article Q150930:=0A=
=0A=
=0A=
   QUOTE=0A=
   &#34;Configuring SimulatePassThrough In Windows NT 4.0=0A=
=0A=
     For Windows NT 4.0 to assign the RAW datatype, regardless of the =
control =0A=
     file contents, do the following: =0A=
=0A=
     WARNING: Using Registry Editor incorrectly can cause serious, =
system- wide=0A=
=0A=
     problems that may require you to reinstall Windows NT to correct =
them. =0A=
     Microsoft cannot guarantee that any problems resulting from the =
use of =0A=
     Registry Editor can be solved. Use this tool at your own risk. =0A=
=0A=
        1.Run Registry Editor (REGEDT32.EXE). =0A=
=0A=
        2.From the HKEY_LOCAL_MACHINE subtree, go to the following key: =
=0A=
=0A=
                 =
\SYSTEM\CurrentControlSet\Services\LPDSVC\Parameters=0A=
=0A=
        3.On the Edit menu, click Add Value. =0A=
=0A=
        4.Add the following: =0A=
=0A=
                 Value Name: SimulatePassThrough=0A=
                 Data Type: REG_DWORD=0A=
                 Data: 1=0A=
=0A=
           NOTE: The default value is 0, which informs LPD to assign =
datatypes =0A=
           according to the control commands. =0A=
   ENDQUOTE=0A=
=0A=
   Be aware though that you might need to setup two print queues per =
printer on=0A=
   the Windows NT server - one for plain text, one for Postscript.=0A=
=0A=
=0A=
3) Replace Windows NT LPD print service=0A=
=0A=
   There is a company that provides a complete replacement for the =
Windows NT=0A=
   LPD print service.  It is called WinLPD and is available from:=0A=
=0A=
   http://www.rabox.com/=0A=
=0A=
   NOTE: This is not a Sun product and is not endorsed or supported.=0A=
   However there have been favourable reports by other customers that =
this =0A=
   solution allows the NT server to print PostScript files =
successfully.=0A=
=0A=
=0A=
At this time there are no other known solutions or workarounds.  It is =
not=0A=
envisioned that behaviour of lp under Solaris will be altered, =
therefore if you=0A=
must use lp to print you should investigate workarounds (2) and (3).=0A=
=0A=
=0A=
<B><I>PRODUCT AREA: </I></B>Printers=0A=
<B><I>PRODUCT: </I></B>Utilities=0A=
<B><I>SUNOS RELEASE: </I></B>Solaris 2.x=0A=
<B><I>HARDWARE: </I></B>any=0A=
</pre>=0A=
<HR noshade>=0A=
        <center>=0A=
<table>=0A=
<tr>=0A=
<td>=0A=
        <a href=3D"/sunsolve/uk/index.html">=0A=
	<font size=3D-1>Home</font></a>=0A=
        |=0A=
        <a href=3D"/sunsolve/uk/freeinfo.html">=0A=
	<font size=3D-1>Free Services</a></font> =0A=
	| <a href=3D"/sunsolve/uk/contractservices.html">=0A=
        <font  size=3D-1>Contract Services</font></a>=0A=
        |=0A=
        <a href=3D"/sunsolve/uk/register.html">=0A=
        <font  size=3D-1>Account Services</font></a>=0A=
        <br>=0A=
        <a href=3D"/sunsolve/uk/toc.html"><font size=3D-1>=0A=
        Table of Contents</font></a>=0A=
        | =0A=
        <a href=3D"/private-cgi/uk/comment-form.pl">=0A=
        <font  size=3D-1>Comments</font></a>=0A=
        | =0A=
        <a =
href=3D"/pub-cgi/help.pl/sunsolve/uk/helpmaps/L2header.map">=0A=
        <font  size=3D-1>Help</font></a>=0A=
        |=0A=
	<a href=3D"/sunsolve/uk/faq.html">=0A=
        <font size=3D-1>SunSolve FAQ's</a></font>=0A=
</td>=0A=
</tr>=0A=
</table>=0A=
</center>=0A=
</center>=0A=
<UL>=0A=
<FONT SIZE=3D2>Questions or comments regarding this service?=0A=
<A HREF=3D"/private-cgi/uk/comment-form.pl">=0A=
<EM>webmaster</EM></A>=0A=
<br><A HREF=3D"/sunsolve/uk/SMICopyright.html">Copyright</A>=0A=
1994-1997 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA =
94303 USA.<br>=0A=
All rights reserved.=0A=
<p>=0A=
</font></ul>=0A=
</body>=0A=
</html>=0A=
=0A=
<!-- u=3D 0.15, s=3D 0.04, cu=3D 0.00, cs=3D 0.00 (=3D 0.19) -->
------_=_NextPart_000_01BF10B7.8D68A6EE--
