[FreeNX-kNX] Printing issue - Fedora 11
Vivek
vivek at visolve.com
Wed Oct 14 19:19:32 UTC 2009
Hello Chris,
Thanks for your detailed explanation. It helped me a lot...
Server :-
Fedora 11
freenx-server - 0.7.3-15
cups-1.4-0
Client :-
Fedora 8
NoMachine NX - 3.3.0.6
cups-1.3.9-2
NOTE: In nxnode, I have changed " LogLevel debug ".
If ENABLE_CUPS_SEAMLESS="0",
The nxclient wants you to choose the printer and foomatic-ppdfile (
correct behavior ). Now we are unable to see the client's printer on
applications like firefox, text editor...
In the ~vivek/.nx/C-*/cups/log/error_log,
----------------------
D [15/Oct/2009:00:31:31 +0530] cupsdAcceptClient: skipping getpeercon()
D [15/Oct/2009:00:31:31 +0530] cupsdAcceptClient: 12 from localhost (Domain)
D [15/Oct/2009:00:31:32 +0530] cupsdReadClient: 12 POST / HTTP/1.1
D [15/Oct/2009:00:31:32 +0530] cupsdSetBusyState: Active clients
D [15/Oct/2009:00:31:32 +0530] cupsdAuthorize: No authentication data
provided.
D [15/Oct/2009:00:31:32 +0530] cupsdReadClient: 12 1.1 CUPS-Get-Printers 1
D [15/Oct/2009:00:31:32 +0530] CUPS-Get-Printers
D [15/Oct/2009:00:31:32 +0530] CUPS-Get-Printers client-error-not-found:
No destinations added.
D [15/Oct/2009:00:31:32 +0530] Returning IPP client-error-not-found for
CUPS-Get-Printers (no URI) from localhost
D [15/Oct/2009:00:31:32 +0530] cupsdSetBusyState: Not busy
D [15/Oct/2009:00:31:32 +0530] cupsdReadClient: 12 WAITING Closing on EOF
D [15/Oct/2009:00:31:32 +0530] cupsdCloseClient: 12
---------------------
If ENABLE_CUPS_SEAMLESS="1",
The nxclient doesn't show any xmessage for choosing the printer type (
correct behavior ). Now we are able to see the client's printer on
applications.
If we print any thing, one process will start..
" nxipp://127.0.0.1:12001/printers/LaserJet_P2015 1 * * * "
Here are some extracted lines from ~vivek/.nx/C-*/cups/log/error_log
D [15/Oct/2009:00:42:27 +0530] Print-Job
ipp://localhost:631/printers/LaserJet_P2015
D [15/Oct/2009:00:42:27 +0530] [Job ???] Auto-typing file...
I [15/Oct/2009:00:42:27 +0530] [Job ???] Request file type is
application/postscript.
D [15/Oct/2009:00:42:27 +0530] add_job: setting context of job to UNKNOWN SL
D [15/Oct/2009:00:42:27 +0530] cupsdMarkDirty(----J-)
D [15/Oct/2009:00:42:27 +0530] cupsdSetBusyState: Active clients and
dirty files
D [15/Oct/2009:00:42:27 +0530] add_job: requesting-user-name="vivek"
D [15/Oct/2009:00:42:27 +0530] [Job 1]
envp[18]="PPD=/home/vivek/.nx/C-tsrv-co-2001-48E7BDCB5AE3C488C3299C1023E618A0/cups//ppd/LaserJet_P2015.ppd"
D [15/Oct/2009:00:42:27 +0530] [Job 1]
envp[21]="DEVICE_URI=nxipp://127.0.0.1:12001/printers/LaserJet_P2015"
D [15/Oct/2009:00:42:27 +0530] Returning IPP successful-ok for Print-Job
(ipp://localhost:631/printers/LaserJet_P2015) from localhost
W [15/Oct/2009:00:42:27 +0530] [Job 1] recoverable: _Network host
'127.0.0.1' is busy_; will retry in 5 seconds..
What would be the problem... share your views..
~Vivek
chris at ccburton.com wrote:
>
>
> Vivek <vivek at visolve.com> wrote on 13/10/2009 12:31:13:
>
> > Hello Chris,
> >
> > I tried to make it working. But no luck.
> >
> > Why client shouldn't provide the appropriate ppd file but windows
> client
> > provides the correct ppd.
>
> Not quite sure what you mean . . .
>
> >
> > Did i missed anything ?...
> >
> > Please share your views to identify the root cause.
>
>
> I thought your problem was a Busy Printer message ??
>
> I think "Network host a.b.c.d is busy" etc is the message cups socket://
> gives if it finds the IP address but doesn't get a connection . . . .
>
>
>
>
> Regarding ppd files, if you want the horrible truth . . .
>
> With a windows client, you have to choose the appropriate ppd driver
> from the list, which either . .
>
> launches gs ( or whatever ps2printer filter it is configured with)
> to convert *nix postscript to the correct format for a non PS
> printer . . .
> or
> doesn't if you have a PS compatible printer, it spools PS.
>
> Once you have chosen, FreeNX remembers your choice and gives you
> the option to stick with it or re-configure.
>
> The .ppd files are copied and stored below the cupsd's own working
> directory
> ie ~/.nx/C-Session-id/cups/ppd/*.ppd
>
>
>
> ipp:// PS to a *nix PS printer also has .ppd files.
>
> With a *nix client using ipp:// printing , you are printing via
> three cupsds in a chain, the user-land one on the server, a user-land
> one on the client and the system one on the client (this is to avoid
> giving away your password, not that I want your password).
>
>
> If you set the server to ENABLE_CUPS_SEAMLESS=1, FreeNX attempts
> to download the .ppd file from the client.
>
> If you installed the cupsd-wrapper script on the client ( did you ???),
> then the user-land cupsd on the client will have copies of the .ppd
> files which the wrapper downloaded from the client machine system
> cupsd, but then renamed as your-printer_nxdl.ppd.
>
> These are then UP-loaded TO the server for use by the user-land
> cupsd on the server.
>
> With me so far ????
>
> If you don't use the wrapper then the FreeNX curl job saves the
> "File not found" HTML page in the ppd directory under ~/.nx/config
> as a your-printer.ppd file even though it isn't any such thing.
>
> BUT . . . .
>
> This doesn't matter, because the non .ppd file downloaded by
> FreeNX ISN'T USED and FreeNX, or more properly cups, which
> helpfully sets up the printer anyway, sets it to spools raw
> PS through to wherever you told it to go, in our case down the
> chain of cupsds, where, by a miracle good defaulting, it is
> finally processed by the .ppd file on the client system cupsd.
>
> cups ignores the -P .ppd switches to lpadmin if it doesn't
> like what it sees there which is most of the time.
>
> This of course is why it is the best to use seamless.
> No .ppd issues . . . though not nessessarily as you were
> expecting it to work.
>
> If you don't use ENABLE_CUPS_SEAMLESS=1 but instead elect
> to select a .ppd driver from the dialogue, any PS2windoze
> conversion needed is done by the user-land cupsd on the server
> and you need to spool RAW along the chain to the printer.
>
>
>
> So you say you have it working on windows ???
>
> What error messages are you getting exactly in *nix??
>
> How far is the spool going??
>
> Do you have your cupsds set to accept application/octet-stream??
>
> etc
>
> And how do you know it's not an "appropriate ppd file"
>
>
> >
> > ~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
> ________________________________________________________________
More information about the FreeNX-kNX
mailing list