<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Verdana" size="-1">Hello Chris,<br>
<br>
Sorry for the very late reply....<br>
<br>
>>Usually its 20000, but check using<br>
<br>
>>netstat -napt|grep cups<br>
<br>
tcp 0 0 0.0.0.0:20000
0.0.0.0:* LISTEN 2580/cupsd <br>
tcp 0 0 :::20000
:::* LISTEN 2580/cupsd <br>
<br>
On the NX session, <br>
On the CLIENT, I am trying to access <a class="moz-txt-link-freetext" href="http://localhost:20000">http://localhost:20000</a> (
username: vivek, pwd: 177815dfc601ed37 ). I can get the password from
the currently running NX session
/home/vivek/.nx/C-tsrv-co-2023-9F965601483DFDEC15FE9111BB09A95E/cups/printers.conf<br>
<br>
I am able to access only the home page, when I click the other pages, i
asks for authentication. But it doesn't accept the user name and
password.<br>
<br>
</font><font face="Verdana" size="2">>>Run</font><font
face="Verdana">
<br>
</font><font face="Verdana" size="2">>> lpstat -t</font><font
face="Verdana">
<br>
</font><font face="Verdana" size="2">>>whilst in a remote server
session and see what you
session thinks is going on.</font><font face="Verdana">
<br>
<br>
<small>Before trying to print anything,<br>
<br>
On the NX session,<br>
<br>
#lpstat -t<br>
scheduler is running<br>
system default destination: LaserJet_P2015<br>
device for LaserJet_P2015:
nxipp://127.0.0.1:12023/printers/LaserJet_P2015<br>
LaserJet_P2015 accepting requests since Mon 26 Oct 2009 09:09:07 PM IST<br>
printer LaserJet_P2015 is idle. enabled since Mon 26 Oct 2009 09:09:07
PM IST<br>
<br>
On the client side,<br>
<br>
#lpstat -t<br>
scheduler is running<br>
system default destination: LaserJet_P2015<br>
device for LaserJet_P2015:
hp:/net/HP_LaserJet_P2015_Series?ip=172.16.1.125<br>
LaserJet_P2015 accepting requests since Tue 20 Oct 2009 05:21:39 PM IST<br>
printer LaserJet_P2015 is idle. enabled since Tue 20 Oct 2009 05:21:39
PM IST<br>
<br>
<br>
After gave a printing<br>
<br>
On the NX session,<br>
<br>
#lpstat -t<br>
scheduler is running<br>
system default destination: LaserJet_P2015<br>
device for LaserJet_P2015:
nxipp://127.0.0.1:12023/printers/LaserJet_P2015<br>
LaserJet_P2015 accepting requests since Mon 26 Oct 2009 09:36:37 PM IST<br>
printer LaserJet_P2015 now printing LaserJet_P2015-0. enabled since
Mon 26 Oct 2009 09:36:37 PM IST<br>
recoverable: Network host '127.0.0.1' is busy; will retry in 5
seconds...<br>
LaserJet_P2015-1 vivek 12288 Mon 26 Oct 2009
09:36:37 PM IST<br>
<br>
<br>
On the client side,<br>
<br>
#lpstat -t<br>
scheduler is running<br>
system default destination: LaserJet_P2015<br>
device for LaserJet_P2015:
hp:/net/HP_LaserJet_P2015_Series?ip=172.16.1.125<br>
LaserJet_P2015 accepting requests since Tue 20 Oct 2009 05:21:39 PM IST<br>
printer LaserJet_P2015 is idle. enabled since Tue 20 Oct 2009 05:21:39
PM IST<br>
<br>
<br>
Is it possible to use the samba printer sharing in this case ?. Please
give your valuable suggestions..<br>
<br>
<br>
<br>
Thanks<br>
Vivek<br>
</small></font><br>
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:chris@ccburton.com">chris@ccburton.com</a> wrote:
<blockquote
cite="mid:OF83B22C65.0467B6CE-ON80257655.005D09C4-80257655.005E933E@ccburton.com"
type="cite"><br>
<br>
<tt><font size="2">Vivek <a class="moz-txt-link-rfc2396E" href="mailto:vivek@visolve.com"><vivek@visolve.com></a> wrote on
20/10/2009
13:55:59:<br>
<br>
> Hello Chris,<br>
> <br>
> Thanks for your help...<br>
> <br>
> I have tried to access </font></tt><a moz-do-not-send="true"
href="http://localhost:20000/"><tt><font size="2">http://localhost:20000</font></tt></a><tt><font
size="2">
directly from the <br>
</font></tt>
<br>
<tt><font size="2">Usually its 20000, but check using</font></tt>
<br>
<br>
<tt><font size="2">netstat -napt|grep cups</font></tt>
<br>
<br>
<tt><font size="2">> CLIENT with the username and password from
/home/vivek/.nx/C-<br>
> */cups/printers.conf file. But i was unable to access the admin or
<br>
> printers page...<br>
></font></tt>
<br>
<br>
<tt><font size="2">If you can't access the client user-space cupsd
from
on the client, then you likely have the password wrong. Make sure you
get
the right session and don't copy the @ sign.</font></tt>
<br>
<br>
<tt><font size="2">The NX client sets it all up locally, so if you
access
it locally there is no tunneling involved and in fact FreeNX isn't
involved
at all.</font></tt>
<br>
<br>
<tt><font size="2">If you can't connect to the usr cupsd on the
client
as vivek with the password from the printers.conf on the server, that
would
count as a show stopper.</font></tt>
<br>
<tt><font size="2"> <br>
> My /hone/vivek/.nx/cups/cupsd.conf contains the same as like as
you
have,<br>
>
<Location /><br>
>
Order Deny,Allow<br>
>
Deny From All<br>
>
Require user vivek<br>
>
AuthType Digest<br>
>
Allow from 127.0.0.1<br>
>
</Location><br>
>
StateDir /home/vivek/.nx/cups/certs<br>
></font></tt>
<br>
<br>
<tt><font size="2">That means the vivek can access it with the right
password.</font></tt>
<br>
<br>
<tt><font size="2"> <br>
> and /home/vivek/.nx/C-**/cups/cupsd.conf file<br>
> <br>
> #JJK: Restrict access to the server...<br>
> <Location /><br>
> Order Deny,Allow<br>
> Deny From All<br>
> Allow from 127.0.0.1<br>
> </Location><br>
> <br>
> #JJK: Restrict access to the admin pages...<br>
> <Location /admin><br>
> Encryption Required<br>
> Order allow,deny<br>
> Allow localhost<br>
> </Location><br>
> <br>
> #JJK: Restrict access to configuration files...<br>
> <Location /admin/conf><br>
> AuthType Basic<br>
> Require user @SYSTEM<br>
> Order allow,deny<br>
> Allow localhost<br>
> </Location><br>
> <br>
</font></tt>
<br>
<tt><font size="2">That stuff is regarding the use cupsd on the
server.</font></tt>
<br>
<br>
<tt><font size="2">> CLIENT printers admin page and printers are
accessible
wherever in <br>
> the network..<br>
> <br>
</font></tt>
<br>
<tt><font size="2">I guess you mean the client system cupsd. We're
not
there yet !!</font></tt>
<br>
<br>
<br>
<tt><font size="2">> Two files were creating under
/home/vivek/.nx/C-**/cups/spool/
<br>
> directory while try to printing,<br>
> <br>
> c00001, d00001-001<br>
> <br>
</font></tt>
<br>
<tt><font size="2">That's on the server session. </font></tt>
<br>
<br>
<br>
<tt><font size="2">> and one nxipp process was starting.<br>
> <br>
> On the SERVER, /var/log/cups/error_log shows the following
message,<br>
> <br>
> process_browse_data(uri="ipp://172.16.1.36:<br>
> 631/printers/LaserJet_P2015", host="172.16.1.36", <br>
> resource="/printers/LaserJet_P2015", type=290d6, state=3,
<br>
> location="vik-co", info="LaserJet", make_model="HP
LaserJet P2015 <br>
> Series Postscript (recommended)", num_attrs=2, attrs=0x13728e8)<br>
> process_browse_data: <a class="moz-txt-link-abbreviated" href="mailto:LaserJet_P2015@172.16.1.36">LaserJet_P2015@172.16.1.36</a> not found...<br>
> process_browse_data: LaserJet_P2015 found, type=10290d6, <br>
> hostname=172.16.1.36...<br>
> <br>
</font></tt>
<br>
<tt><font size="2">That looks like it's printing over the normal
network
rather than via the FreeNX tunnel ( which is how most people run things
).</font></tt>
<br>
<br>
<tt><font size="2">cups will sort this sort of thing out for you on
its
own if you publish your printer.</font></tt>
<br>
<br>
<tt><font size="2">It should be localhost:agent-port for the tunnel.</font></tt>
<br>
<br>
<br>
<tt><font size="2">Run</font></tt>
<br>
<br>
<tt><font size="2"> lpstat -t</font></tt>
<br>
<br>
<tt><font size="2">whilst in a remote server session and see what you
session thinks is going on.</font></tt>
<br>
<br>
<br>
<tt><font size="2">> Is anything missing ?<br>
> <br>
> Thanks<br>
> vivek <br>
> <br>
> <br>
> <a class="moz-txt-link-abbreviated" href="mailto:chris@ccburton.com">chris@ccburton.com</a> wrote: </font></tt>
<br>
<tt><font size="2">> <br>
> <br>
> Vivek <a class="moz-txt-link-rfc2396E" href="mailto:vivek@visolve.com"><vivek@visolve.com></a> wrote on 19/10/2009 13:01:55:<br>
> <br>
<br>
> ________________________________________________________________<br>
> Were you helped on this list with your FreeNX
problem?<br>
> Then please write up the solution in the FreeNX Wiki/FAQ:<br>
> <br>
> </font></tt><a moz-do-not-send="true"
href="http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ"><tt><font
size="2">http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ</font></tt></a><tt><font
size="2"><br>
> <br>
> Don't forget to check the NX Knowledge
Base:<br>
> </font></tt><a moz-do-not-send="true"
href="http://www.nomachine.com/kb/"><tt><font size="2">http://www.nomachine.com/kb/</font></tt></a><tt><font
size="2">
<br>
> <br>
> ________________________________________________________________<br>
> FreeNX-kNX mailing list --- <a class="moz-txt-link-abbreviated" href="mailto:FreeNX-kNX@kde.org">FreeNX-kNX@kde.org</a><br>
> </font></tt><a moz-do-not-send="true"
href="https://mail.kde.org/mailman/listinfo/freenx-knx"><tt><font
size="2">https://mail.kde.org/mailman/listinfo/freenx-knx</font></tt></a><tt><font
size="2"><br>
> ________________________________________________________________</font></tt>
<pre wrap="">
<hr size="4" width="90%">
________________________________________________________________
Were you helped on this list with your FreeNX problem?
Then please write up the solution in the FreeNX Wiki/FAQ:
<a class="moz-txt-link-freetext" href="http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ">http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ</a>
Don't forget to check the NX Knowledge Base:
<a class="moz-txt-link-freetext" href="http://www.nomachine.com/kb/">http://www.nomachine.com/kb/</a>
________________________________________________________________
FreeNX-kNX mailing list --- <a class="moz-txt-link-abbreviated" href="mailto:FreeNX-kNX@kde.org">FreeNX-kNX@kde.org</a>
<a class="moz-txt-link-freetext" href="https://mail.kde.org/mailman/listinfo/freenx-knx">https://mail.kde.org/mailman/listinfo/freenx-knx</a>
________________________________________________________________</pre>
</blockquote>
</body>
</html>