294 lines
9.4 KiB
HTML
294 lines
9.4 KiB
HTML
<!--startcut ======================================================= -->
|
||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
||
<html><head>
|
||
<META NAME="generator" CONTENT="lgazmail v1.1pre9c">
|
||
<TITLE>The Answer Guy 31:
|
||
Remote lpd from Solaris to Linux
|
||
</TITLE>
|
||
<!-- ORIGINAL SUBJECT:
|
||
printing Solaris->Linux
|
||
JTD SUBTITLE:
|
||
|
||
-->
|
||
</head>
|
||
|
||
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#A000A0"
|
||
ALINK="#FF0000">
|
||
<H4>"Linux Gazette...<I>making Linux just a little more fun!</I>"
|
||
</H4>
|
||
<P> <hr> <P>
|
||
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
|
||
<H1 align="center"><A NAME="answer">
|
||
<img src="../gx/dennis/qbubble.gif" alt="" border="0" align="middle">
|
||
<a href="./index.html">The Answer Guy</a>
|
||
<img src="../gx/dennis/bbubble.gif" alt="" border="0" align="middle">
|
||
</A></H1>
|
||
<BR>
|
||
<H4 align="center">By James T. Dennis,
|
||
<a href="mailto:linux-questions-only@ssc.com">linux-questions-only@ssc.com</a>
|
||
<BR>Starshine Technical Services, <A HREF="http://www.starshine.org/">http://www.starshine.org/</A>
|
||
</H4>
|
||
<p><hr><p>
|
||
<!--endcut ========================================================= -->
|
||
|
||
<p>The original thread appeared in Issue 30,
|
||
<a href="../issue30/tag_solprint.html">Solaris -> Linux</a>.
|
||
The entire thread below was also posted in the</strong>
|
||
<a href="news:comp.unix.questions">comp.unix.questions</a>
|
||
newsgroup.</p>
|
||
|
||
<p><hr width="40%"><p>
|
||
<H3><img src="../gx/dennis/bbub.gif" alt="(!)"
|
||
width="50" height="28" align="left" border="0"
|
||
>Remote lpd from Solaris to Linux</H3>
|
||
<p><strong>From <em>The Answer Guy</em> on 08 Jul 1998 </strong></p>
|
||
|
||
<!-- begin body -->
|
||
|
||
<blockquote>Kuksi,
|
||
</blockquote>
|
||
|
||
<blockquote>
|
||
Here's another suggestion forwarded from one of
|
||
my readers:
|
||
</blockquote>
|
||
|
||
|
||
<strong><p><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)" width="50" height="28" border="0" lign="bottom">
|
||
I like to print from Solaris to Linux.
|
||
(...repeat of <a href="../issue30/tag_solprint.html">thread</a>...)
|
||
</p></strong>
|
||
|
||
<blockquote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)" width="50" height="28" border="0" lign="bottom">
|
||
To which "Joe Ellis" adds:
|
||
</blockquote>
|
||
|
||
<blockquote><font color="navy"><em>
|
||
Wasn't sure how to reply to this (no email address that I saw) but
|
||
whoever had this question:
|
||
</em></font></blockquote>
|
||
|
||
<blockquote><font color="navy"><em>
|
||
You have to (under redhat 5.0 anyway) add an account for each
|
||
username on the remote system whom you wish to be able to print.
|
||
I.E. if user '<tt>foo</tt>' on the Solaris machine wants to remote print to
|
||
the Linux box, you have to add a user account '<tt>foo</tt>' to the Linux
|
||
box. This is in addition to the host/ip in the <tt>/etc/hosts.lpd</tt>
|
||
file. I haven't figured out WHY but I know in a stock redhat 5 box
|
||
thats how it works. I cannot validate this for other Linux systems
|
||
other than redhat as thats the only dist. I have access to at the
|
||
moment.
|
||
</em></font></blockquote>
|
||
|
||
<blockquote><font color="navy"><em>
|
||
-joe
|
||
</em></font></blockquote>
|
||
|
||
<blockquote>
|
||
That makes sense. You could probably edit the
|
||
appropriate PAM (pluggable authentication module)
|
||
configuration to allow anonymous access --- but I
|
||
don't know, just off hand, which file that would be
|
||
or what the magic configuration would look like.
|
||
</blockquote>
|
||
|
||
<blockquote>
|
||
I suppose we could ask on the PAM mailing list...
|
||
</blockquote>
|
||
|
||
<blockquote>
|
||
I've been meaning to install LPRng (the "next
|
||
generation" print spooling suite) but haven't taken
|
||
the time to do it. For now I actually rcp and
|
||
print my files manually. I've had lpd working on
|
||
some of my systems, sometimes. But I hardly ever
|
||
print anything, so there's little inconvenience and
|
||
not nearly enought to track it down.
|
||
</blockquote>
|
||
|
||
<blockquote>For the first few years I used Linux I printed everything
|
||
by preparing a file and using:
|
||
</blockquote>
|
||
|
||
<blockquote><code>'cat ... > /dev/lp0'
|
||
</code></blockquote>
|
||
|
||
<blockquote>... on that.
|
||
</blockquote>
|
||
|
||
<blockquote>Let's just say, I don't like printers very much.
|
||
</blockquote>
|
||
<!-- end body -->
|
||
<p><hr width="40%"></p>
|
||
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"width="50" height="28"
|
||
align="left" border="0">printing Solaris->Linux</H3>
|
||
<p><strong>From kuksi on 13 Jul 1998 </strong></p>
|
||
|
||
<!-- begin body -->
|
||
|
||
<strong><p><font color="navy"><em>
|
||
You have to (under redhat 5.0 anyway) add an account for each
|
||
username on the remote system whom you wish to be able to print.
|
||
</em></font></p></strong>
|
||
|
||
<strong><p><font color="navy"><em>
|
||
--: joe
|
||
</em></font></p></strong>
|
||
|
||
<p><strong>There is no need to add an account, but thanks to Joe for the answer
|
||
</strong></p>
|
||
|
||
<p><strong>Now it is working !!!! Yeahuj!! *** The problem was idiocity... :
|
||
I installed the remote printer under Solaris:
|
||
</strong></p>
|
||
|
||
<pre>1. #lpsystem -t bsd linux_machine_name
|
||
/Identifies the print server system and its type(bsd for BSD)/
|
||
|
||
2. #lpadmin -p printer_name -s linux_machine_name -T unknown -I any
|
||
/Identifies the printer on the printer server./
|
||
|
||
3. #accept printer_name
|
||
#enable printer_name
|
||
|
||
^^^^^^^^^^^^^^^^^^^
|
||
/Specifies that the print client can send print request to the printer./
|
||
|
||
4. #lpadmin -d printer_name
|
||
/Set's the printer as the system's default printer destination./
|
||
</pre>
|
||
|
||
<strong><p>BUT! In the point 3. "enable printer_name" it isn't enough, because:
|
||
</p></strong>
|
||
|
||
<pre>5. #lpstat -t
|
||
scheduler is running
|
||
system default destination: printer_name
|
||
system for printer_name: linux_machine_name
|
||
printer_name accepting request since Mon Jul 13 10:25:43 MET DST 1988
|
||
|
||
printer printer_name is ready. disabled since Mon Jul 13 10:25:55 MET
|
||
|
||
^^^^^^^^
|
||
|
||
DST 1988
|
||
|
||
new printer
|
||
|
||
/Verifies that the printer is ready./
|
||
</pre>
|
||
|
||
<strong><p>It needs a second "#enable printer_name" command, and after this
|
||
it is working...
|
||
</p></strong>
|
||
|
||
<strong><p>Shhhhh.. ! ***
|
||
</p></strong>
|
||
|
||
<strong><p>Otherwise..
|
||
</p></strong>
|
||
|
||
<strong><p>= (think i am <IMG SRC="../gx/dennis/smily.gif" ALT="" height="24" width="20" align="middle">
|
||
</p></strong>
|
||
|
||
<strong><p>Thank for your answers
|
||
</p></strong>
|
||
|
||
<strong><p>kuksi
|
||
</p></strong>
|
||
<!-- end body -->
|
||
<p><hr width="40%"></p>
|
||
<H3><img src="../gx/dennis/qbub.gif" alt="(?)"width="50" height="28"
|
||
align="left" border="0">printing Solaris->Linux </H3>
|
||
<p><strong>From kuksi on 14 Jul 1998 </strong></p>
|
||
|
||
<!-- begin body -->
|
||
|
||
<STRONG><P><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)" width="50" height="28" border="0" lign="bottom"
|
||
><font color="navy"><em>
|
||
You have to (under redhat 5.0 anyway) add an account for each
|
||
username on the remote system whom you wish to be able to print.
|
||
</em></font></p></strong>
|
||
|
||
<strong><p><font color="navy"><em>
|
||
--: joe
|
||
</em></font></p></strong>
|
||
|
||
<strong><p>However joe has right....the linux account to be a must.
|
||
</p></strong>
|
||
|
||
<p><strong>(gondolom en
|
||
<IMG SRC="../gx/dennis/smily.gif" ALT="" height="24" width="20"
|
||
align="middle">
|
||
</strong></p>
|
||
|
||
|
||
<p><strong>kuksi
|
||
</strong></p>
|
||
|
||
|
||
<BLOCKQUOTE><IMG SRC="../gx/dennis/bbub.gif" alt="(!)"width="50" height="28"
|
||
align="left" border="0"
|
||
>Well, if that's a problem you could always try
|
||
<a href="http://ftp.gts.cz/FTP/pub/MIRRORS/ftp.astart.com/pub/LPRng/HOWTO/LPRng.html">LPRng</a>.
|
||
Otherwise you might want to set up Linux as a NIS
|
||
client on this LAN (if you're using NIS) --- or
|
||
configure it so that it's passwd files are kept in
|
||
sync with the others (assuming you're maintaining
|
||
synchronized passwd files, which you really want if
|
||
you're running any NFS throughout that site).
|
||
</blockquote>
|
||
<!-- end body -->
|
||
|
||
<!--================================================================-->
|
||
<P> <hr> <P>
|
||
<H5 align="center"><a href="http://www.linuxgazette.com/copying.html"
|
||
>Copyright ©</a> 1998, James T. Dennis <BR>
|
||
Published in <I>Linux Gazette</I> Issue 31 August 1998</H5>
|
||
<P> <hr> <P>
|
||
<!--================================================================-->
|
||
<table width="98%"><tr valign="center" align="center">
|
||
<td rowspan="3"><A HREF="./lg_answer31.html"><IMG
|
||
SRC="../gx/dennis/answernew.gif"
|
||
ALT="[ Answer Guy Index ]"></A></td>
|
||
<td><A HREF="tag_backup.html">backup</A></td>
|
||
<td><A HREF="tag_uidgid.html">uidgid</A></td>
|
||
<td><A HREF="tag_connect.html">connect</A></td>
|
||
<td><A HREF="tag_95slow.html">95slow</A></td>
|
||
<td><A HREF="tag_badblock.html">badblock</A></td>
|
||
<td><A HREF="tag_trident.html">trident</A></td>
|
||
<td><A HREF="tag_sound.html">sound</A></td>
|
||
|
||
</tr><tr valign="center" align="center">
|
||
<td><A HREF="tag_kernel.html">kernel</A></td>
|
||
<td><A HREF="tag_solprint.html">solprint</A></td>
|
||
<td><A HREF="tag_idescsi.html">idescsi</A></td>
|
||
<td><A HREF="tag_distrib.html">distrib</A></td>
|
||
<td><A HREF="tag_modem.html">modem</A></td>
|
||
<td><A HREF="tag_NDS.html">NDS</a></td>
|
||
<td><A HREF="tag_rpm.html">rpm</A></td>
|
||
|
||
</tr><tr valign="center" align="center">
|
||
<td><A HREF="tag_guy.html">guy</A></td>
|
||
<td><A HREF="tag_maildns.html">maildns</A></td>
|
||
<td><A HREF="tag_memleak.html">memleak</a></td>
|
||
<td><A HREF="tag_multihead.html">multihead</A></td>
|
||
<td><A HREF="tag_cdr.html">cdr</A></td>
|
||
</tr></table>
|
||
<P> <hr> <P>
|
||
<!--================================================================-->
|
||
<A HREF="./index.html"><IMG SRC="../gx/indexnew.gif"
|
||
ALT="[ Table Of Contents ]"></A>
|
||
<A HREF="../index.html"><IMG SRC="../gx/homenew.gif"
|
||
ALT="[ Front Page ]"></A>
|
||
<A HREF="lg_bytes31.html"><IMG SRC="../gx/back2.gif"
|
||
ALT="[ Previous Section ]"></A>
|
||
<A HREF="./searls.html"><IMG SRC="../gx/fwd.gif"
|
||
ALT="[ Next Section ]"></A>
|
||
<!--startcut ======================================================= -->
|
||
</body>
|
||
</html>
|
||
<!--endcut ========================================================= -->
|
||
|
||
|