<!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">
<big><font size="-1"><big>Hello Chris,<br>
<br>
Thanks for your help...<br>
<br>
I have tried to access <a class="moz-txt-link-freetext"
href="http://localhost:20000">http://localhost:20000</a> directly from
the CLIENT
with the username and password from
/home/vivek/.nx/C-*/cups/printers.conf file. But i was unable to access
the admin or printers page...<br>
<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>
<br>
and </big></font><font size="-1"><big>/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>
</big></font></big><font size="-1"><big><br>
CLIENT printers admin page and printers are accessible wherever in the
network..<br>
<br>
Two files were creating under
/home/vivek/.nx/C-**/cups/spool/ directory while try to printing,<br>
<br>
c00001, d00001-001<br>
<br>
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:631/printers/LaserJet_P2015",
host="172.16.1.36", resource="/printers/LaserJet_P2015", type=290d6,
state=3, location="vik-co", info="LaserJet", make_model="HP LaserJet
P2015 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,
hostname=172.16.1.36...<br>
<br>
Is anything missing ?<br>
<br>
Thanks<br>
vivek</big>
<br>
<br>
</font><br>
<a class="moz-txt-link-abbreviated" href="mailto:chris@ccburton.com">chris@ccburton.com</a>
wrote:
<blockquote
cite="mid:OF010595E3.CF2594B6-ON80257654.0051FBFC-80257654.00549F7C@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
19/10/2009
13:01:55:<br>
<br>
> Hello Chris,<br>
> <br>
> >>On the SERVER . .<br>
> >>Find which port the tunnel is using netstat -napt|grep
agent<br>
> <br>
> 0.0.0.0:4026<br>
> 127.0.0.1:6026<br>
</font></tt> <br>
<tt><font size="2">Yup</font></tt> <br>
<br>
<tt><font size="2">> <br>
> >>Look in /home/vivek/.nx/C-sesssion-id/cups/printers.conf<br>
> >>for the line which looks like <br>
> <br>
> In the /home/vivek/.nx/C-tsrv-co-2025-<br>
> EF5FDA64DC13661E79A2390848AB2287/cups/printers.conf file,<br>
> <br>
> DeviceURI <a class="moz-txt-link-abbreviated"
href="mailto:nxipp://vivek:185a7123bb248d5e@127.0.0.1:">nxipp://vivek:185a7123bb248d5e@127.0.0.1:</a><br>
> 12025/printers/LaserJet_P2015<br>
> <br>
There you go . . </font></tt> <br>
<br>
<tt><font size="2">> and in the /home/vivek/.nx/C-tsrv-co-2025-<br>
> EF5FDA64DC13661E79A2390848AB2287/cups/cupsd.conf<br>
> Listen localhost:11026<br>
> </font></tt> <br>
<br>
<tt><font size="2">This is because of a patch which to allow you to
connect
to the server userspace cupsd.</font></tt> <br>
<br>
<tt><font size="2">Sometimes it tries 10025 and bumps into postfix
instead</font></tt> <br>
<br>
<tt><font size="2"><br>
> #netstat -nap | grep cups<br>
> 127.0.0.1:11026<br>
> ::1:11026<br>
> <br>
> In the nxsession, I pointed the browser,<br>
> <br>
> </font></tt><a moz-do-not-send="true"
href="http://localhost:4026/"><tt><font size="2">http://localhost:4026</font></tt></a><tt><font
size="2"><br>
> <br>
> I gave the username/pwd - vivek/185a7123bb248d5e But only
homepage<br>
> came, i am unable to access other pages like<br>
> <br>
</font></tt> <br>
<tt><font size="2">If you mean the cups home page, then at least you
are connecting to cups.</font></tt> <br>
<br>
<br>
<tt><font size="2">> </font></tt><a moz-do-not-send="true"
href="http://localhost:4026/admin"><tt><font size="2">http://localhost:4026/admin</font></tt></a><tt><font
size="2">
or </font></tt><a moz-do-not-send="true"
href="http://localhost:4026/admin/"><tt><font size="2">http://localhost:4026/admin/</font></tt></a><tt><font
size="2">
or <br>
> printers page...<br>
> <br>
> At the same time, ON THE CLIENT SIDE,<br>
> <br>
</font></tt> <br>
<tt><font size="2">Hmmmm</font></tt> <br>
<br>
<tt><font size="2">> In the /home/vivek/.nx/cups/error_log file, I
saw a line..<br>
> <br>
> cupsdSendError: 15 code=401 (Unauthorized)<br>
> <br>
> If we try to print, same error in the /home/vivek/.nx/C-tsrv-<br>
> co-2025-EF5FDA64DC13661E79A2390848AB2287/cups/log/error_log,<br>
> <br>
> " recoverable: Network host '127.0.0.1' is busy; will retry in
30 seconds... "<br>
> <br>
</font></tt> <br>
<tt><font size="2">OK</font></tt> <br>
<br>
<tt><font size="2">Now try conecting to the client userland cupsd
directly
on THE CLIENT.</font></tt> <br>
<br>
<tt><font size="2">It normally listens on 20000 or so.</font></tt> <br>
<br>
<tt><font size="2">You can find it by ps -ef |egrep
"cupsd.*nx/cups/cups.conf"</font></tt> <br>
<br>
<tt><font size="2">It will have a -c path-to-its-cups.conf file as
part
of its command line</font></tt> <br>
<br>
<tt><font size="2">You need to get the password from THE SERVER as
before
in</font></tt> <br>
<br>
<tt><font size="2">/home/vivek/.nx/C-tsrv-co-2025-EF5FDA64DC13661E79A2390848AB2287/cups/printers.conf</font></tt>
<br>
<br>
<tt><font size="2">If you don't get to see the admin page by
connecting
on THE CLIENT,</font></tt> <br>
<tt><font size="2">then you need to check out what the relevant
cups.conf
file says regarding authority.</font></tt> <br>
<br>
<tt><font size="2">You can edit it and restart the cupsd . . .</font></tt>
<br>
<br>
<tt><font size="2">with /usr/sbin/cupsd -c
/home/vivek/.nx/path-to-cupsd.conf</font></tt> <br>
<br>
<tt><font size="2">I can't see why it would stop you printing,
because
it normally just has require user and allow from 127.0.0.1.</font></tt>
<br>
<br>
<tt><font size="2">My cupsd.conf(s) look like this :-</font></tt> <br>
<br>
<tt><font size="2">
TempDir /home/vivek/.nx/cups/spool/tmp</font></tt> <br>
<tt><font size="2">
StateDir /home/vivek/.nx/cups/certs</font></tt> <br>
<tt><font size="2">
CacheDir /home/vivek/.nx/cups/cache</font></tt> <br>
<tt><font size="2">
RequestRoot /home/vivek/.nx/cups/spool</font></tt> <br>
<tt><font size="2">
ServerRoot /home/vivek/.nx/cups</font></tt> <br>
<tt><font size="2">
ErrorLog /home/vivek/.nx/cups/error_log</font></tt> <br>
<tt><font size="2">
LogLevel debug</font></tt> <br>
<tt><font size="2">
Port 20000</font></tt> <br>
<tt><font size="2">
Browsing Off</font></tt> <br>
<tt><font size="2">
ServerName localhost</font></tt> <br>
<br>
<tt><font size="2">
<Location /></font></tt> <br>
<tt><font size="2">
Order Deny,Allow</font></tt> <br>
<tt><font size="2">
Deny From All</font></tt> <br>
<tt><font size="2">
Require user vivek</font></tt> <br>
<tt><font size="2">
AuthType Digest</font></tt> <br>
<tt><font size="2">
Allow from 127.0.0.1</font></tt> <br>
<tt><font size="2">
</Location></font></tt> <br>
<tt><font size="2">
StateDir /home/vivek/.nx/cups/certs</font></tt> <br>
<tt><font size="2">CacheDir /home/vivek/.nx/cups/cache</font></tt> <br>
<br>
<br>
<tt><font size="2">Did you rename the account to vivek from something
else ??</font></tt> <br>
<br>
<br>
<tt><font size="2">Has anything arrived into the SPOOL directory
recently
???</font></tt> <br>
<br>
<br>
<tt><font size="2">If /home/vivek/.nx/cups/printers.conf has a
printer
set up in it, then you could</font></tt> <br>
<br>
<tt><font size="2">try putting : -</font></tt> <br>
<br>
<tt><font size="2">
ServerName localhost:20000 ( or whatever the
port is )</font></tt> <br>
<br>
<tt><font size="2">into /home/vivek/.cups/client.conf </font></tt> <br>
<br>
<tt><font size="2">then restarting oowriter or something and seeing
if
you can spool.</font></tt> <br>
<tt><font size="2">Dont forget to delete
/home/vivek/.cups/client.conf
afterwards !!</font></tt> <br>
<br>
<br>
<tt><font size="2">> <br>
> Thanks<br>
> Vivek<br>
> <br>
</font></tt> <br>
<tt><font size="2">> <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>
> ________________________________________________________________<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>