[FreeNX-kNX] Printing issue - Fedora 11

chris at ccburton.com chris at ccburton.com
Mon Oct 19 15:24:17 UTC 2009


Vivek <vivek at visolve.com> wrote on 19/10/2009 13:01:55:

> Hello Chris,
> 
> >>On the SERVER . .
> >>Find which port the tunnel is using netstat -napt|grep agent
> 
> 0.0.0.0:4026
> 127.0.0.1:6026

Yup

> 
> >>Look in /home/vivek/.nx/C-sesssion-id/cups/printers.conf
> >>for the line which looks like 
> 
> In the /home/vivek/.nx/C-tsrv-co-2025-
> EF5FDA64DC13661E79A2390848AB2287/cups/printers.conf file,
> 
> DeviceURI nxipp://vivek:185a7123bb248d5e@127.0.0.1:
> 12025/printers/LaserJet_P2015
> 
There you go . . 

> and in the /home/vivek/.nx/C-tsrv-co-2025-
> EF5FDA64DC13661E79A2390848AB2287/cups/cupsd.conf
> Listen localhost:11026
> 

This is because of a patch which to allow you to connect to the server 
userspace cupsd.

Sometimes it tries 10025 and bumps into postfix instead


> #netstat -nap | grep cups
> 127.0.0.1:11026
> ::1:11026
> 
> In the nxsession, I pointed the browser,
> 
> http://localhost:4026
> 
> I gave the username/pwd - vivek/185a7123bb248d5e   But only homepage
> came, i am unable to access other pages like
> 

If you mean the cups home page, then at least you are connecting to cups.


> http://localhost:4026/admin or http://localhost:4026/admin/  or 
> printers page...
> 
> At the same time, ON THE CLIENT SIDE,
> 

Hmmmm

> In the /home/vivek/.nx/cups/error_log file, I saw a line..
> 
> cupsdSendError: 15 code=401 (Unauthorized)
> 
> If we try to print, same error in the /home/vivek/.nx/C-tsrv-
> co-2025-EF5FDA64DC13661E79A2390848AB2287/cups/log/error_log,
> 
> " recoverable: Network host '127.0.0.1' is busy; will retry in 30 
seconds... "
> 

OK

Now try conecting to the client userland cupsd directly on THE CLIENT.

It normally listens on 20000 or so.

You can find it by ps -ef |egrep "cupsd.*nx/cups/cups.conf"

It will have a -c path-to-its-cups.conf file as part of its command line

You need to get the password from THE SERVER as before in

/home/vivek/.nx/C-tsrv-co-2025-EF5FDA64DC13661E79A2390848AB2287/cups/printers.conf

If you don't get to see the admin page by connecting on THE CLIENT,
then you need to check out what the relevant cups.conf file says regarding 
authority.

You can edit it and restart the cupsd . . .

with /usr/sbin/cupsd -c /home/vivek/.nx/path-to-cupsd.conf

I can't see why it would stop you printing, because it normally just has 
require user and allow from 127.0.0.1.

My cupsd.conf(s) look like this :-

                         TempDir /home/vivek/.nx/cups/spool/tmp
                         StateDir /home/vivek/.nx/cups/certs
                         CacheDir /home/vivek/.nx/cups/cache
                         RequestRoot /home/vivek/.nx/cups/spool
                         ServerRoot  /home/vivek/.nx/cups
                         ErrorLog    /home/vivek/.nx/cups/error_log
                         LogLevel debug
                         Port 20000
                         Browsing Off
                         ServerName localhost

                         <Location />
                         Order Deny,Allow
                         Deny From All
                         Require user vivek
                         AuthType Digest
                         Allow from 127.0.0.1
                         </Location>
                         StateDir /home/vivek/.nx/cups/certs
CacheDir /home/vivek/.nx/cups/cache


Did you rename the account to vivek from something else ??


Has anything arrived into the SPOOL directory recently ???


If /home/vivek/.nx/cups/printers.conf has a printer set up in it, then you 
could

try putting : -

                ServerName localhost:20000  ( or whatever the port is )

into /home/vivek/.cups/client.conf 

then restarting oowriter or something and seeing if you can spool.
Dont forget to delete /home/vivek/.cups/client.conf  afterwards !!


> 
> Thanks
> Vivek
> 

> 
> ________________________________________________________________
>      Were you helped on this list with your FreeNX problem?
>     Then please write up the solution in the FreeNX Wiki/FAQ:
> 
> 
http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ
> 
>          Don't forget to check the NX Knowledge Base:
>                  http://www.nomachine.com/kb/ 
> 
> ________________________________________________________________
>        FreeNX-kNX mailing list --- FreeNX-kNX at kde.org
>       https://mail.kde.org/mailman/listinfo/freenx-knx
> ________________________________________________________________
> ________________________________________________________________
>      Were you helped on this list with your FreeNX problem?
>     Then please write up the solution in the FreeNX Wiki/FAQ:
> 
> 
http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ
> 
>          Don't forget to check the NX Knowledge Base:
>                  http://www.nomachine.com/kb/ 
> 
> ________________________________________________________________
>        FreeNX-kNX mailing list --- FreeNX-kNX at kde.org
>       https://mail.kde.org/mailman/listinfo/freenx-knx
> ________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20091019/f7252fcf/attachment.html>


More information about the FreeNX-kNX mailing list