[FreeNX-kNX] Printing issue - Fedora 11

Vivek vivek at visolve.com
Mon Oct 26 16:10:03 UTC 2009


Hello Chris,

Sorry for the very late reply....

 >>Usually its 20000, but check using

 >>netstat -napt|grep cups

tcp        0      0 0.0.0.0:20000               
0.0.0.0:*                   LISTEN      2580/cupsd         
tcp        0      0 :::20000                    
:::*                        LISTEN      2580/cupsd         

On the NX session,
On the CLIENT,  I am trying to access http://localhost:20000 ( 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

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.

 >>Run
 >>        lpstat -t
 >>whilst in a remote server session and see what you session thinks is 
going on.

Before trying to print anything,

On the NX session,

#lpstat -t
scheduler is running
system default destination: LaserJet_P2015
device for LaserJet_P2015: nxipp://127.0.0.1:12023/printers/LaserJet_P2015
LaserJet_P2015 accepting requests since Mon 26 Oct 2009 09:09:07 PM IST
printer LaserJet_P2015 is idle.  enabled since Mon 26 Oct 2009 09:09:07 
PM IST

On the client side,

#lpstat -t
scheduler is running
system default destination: LaserJet_P2015
device for LaserJet_P2015: hp:/net/HP_LaserJet_P2015_Series?ip=172.16.1.125
LaserJet_P2015 accepting requests since Tue 20 Oct 2009 05:21:39 PM IST
printer LaserJet_P2015 is idle.  enabled since Tue 20 Oct 2009 05:21:39 
PM IST


After gave a printing

On the NX session,

#lpstat -t
scheduler is running
system default destination: LaserJet_P2015
device for LaserJet_P2015: nxipp://127.0.0.1:12023/printers/LaserJet_P2015
LaserJet_P2015 accepting requests since Mon 26 Oct 2009 09:36:37 PM IST
printer LaserJet_P2015 now printing LaserJet_P2015-0.  enabled since Mon 
26 Oct 2009 09:36:37 PM IST
    recoverable: Network host '127.0.0.1' is busy; will retry in 5 
seconds...
LaserJet_P2015-1        vivek            12288   Mon 26 Oct 2009 
09:36:37 PM IST


On the client side,

#lpstat -t
scheduler is running
system default destination: LaserJet_P2015
device for LaserJet_P2015: hp:/net/HP_LaserJet_P2015_Series?ip=172.16.1.125
LaserJet_P2015 accepting requests since Tue 20 Oct 2009 05:21:39 PM IST
printer LaserJet_P2015 is idle.  enabled since Tue 20 Oct 2009 05:21:39 
PM IST


Is it possible to use the samba printer sharing in this case ?. Please 
give your valuable suggestions..



Thanks
Vivek



chris at ccburton.com wrote:
>
>
> Vivek <vivek at visolve.com> wrote on 20/10/2009 13:55:59:
>
> > Hello Chris,
> >
> > Thanks for your help...
> >
> > I have tried to access http://localhost:20000 
> <http://localhost:20000/> directly from the
>
> Usually its 20000, but check using
>
> netstat -napt|grep cups
>
> > 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...
> >
>
> 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.
>
> 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.
>
> 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.
>  
> > My /hone/vivek/.nx/cups/cupsd.conf contains the same as like as you 
> have,
> >                          <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
> >
>
> That means the vivek can access it with the right password.
>
>  
> > and /home/vivek/.nx/C-**/cups/cupsd.conf file
> >
> > #JJK:  Restrict access to the server...
> > <Location />
> > Order Deny,Allow
> > Deny From All
> > Allow from 127.0.0.1
> > </Location>
> >
> > #JJK: Restrict access to the admin pages...
> > <Location /admin>
> >   Encryption Required
> >   Order allow,deny
> >   Allow localhost
> > </Location>
> >
> > #JJK: Restrict access to configuration files...
> > <Location /admin/conf>
> >   AuthType Basic
> >   Require user @SYSTEM
> >   Order allow,deny
> >   Allow localhost
> > </Location>
> >
>
> That stuff is regarding the use cupsd on the server.
>
> > CLIENT printers admin page and printers are accessible wherever in
> > the network..
> >  
>
> I guess you mean the client system cupsd. We're not there yet !!
>
>
> > Two files were creating under /home/vivek/.nx/C-**/cups/spool/
> > directory while try to printing,
> >
> > c00001,  d00001-001
> >
>
> That's on the server session.
>
>
> > and one nxipp process was starting.
> >
> > On the SERVER,     /var/log/cups/error_log shows the following message,
> >
> > 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)
> > process_browse_data: LaserJet_P2015 at 172.16.1.36 not found...
> > process_browse_data: LaserJet_P2015 found, type=10290d6,
> > hostname=172.16.1.36...
> >
>
> That looks like it's printing over the normal network rather than via 
> the FreeNX tunnel ( which is how most people run things ).
>
> cups will sort this sort of thing out for you on its own if you 
> publish your printer.
>
> It should be localhost:agent-port  for the tunnel.
>
>
> Run
>
>         lpstat -t
>
> whilst in a remote server session and see what you session thinks is 
> going on.
>
>
> > Is anything missing ?
> >
> > Thanks
> > vivek
> >
> >
> > chris at ccburton.com wrote:
> >
> >
> > Vivek <vivek at visolve.com> wrote on 19/10/2009 13:01:55:
> >
>
> > ________________________________________________________________
> >      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
> ________________________________________________________________



More information about the FreeNX-kNX mailing list