[FreeNX-kNX] cant get working remote printing

chris at ccburton.com chris at ccburton.com
Thu Jul 26 08:46:18 UTC 2012


freenx-knx-bounces at kde.org wrote on 26/07/2012 02:07:03:

> I dont know much of bash, but i think that what is happening is:
> 
> nxnode.nxnode_func is a dispatcher for operations, among others, --
> startsession and --addprinter.
> 
> --startsession invokes startsession, which in 
> turn invokes node_start_applications in background
> 
> --addprinter invokes cmd_node_addprinter  in background
> 
> cmd_node_addprinter set CUPS_SERVER, BUT as it is in background bash
> forks a new process with its own environment, that do not affect 
> orginal process environment, right?

Yup - you don't have a patched nxnode . . .

> 
> node_start_applications set CUPS_SERVER, IF directory 
> $session_id/cups exists. (cmd_node_addprinter run in a separate 
> process, asynchronously, and at the time of evaluation that 
> directory does not exists. IF there is the directory, we are in 
> another process and do not affect original, right?)
> 
> - this is because i dont have CUPS_SERVER setted. Now, how can i fix 
it?.

You need a patched FreeNX for your distro (whatever it is)

> 
> thanks, Eric
> 
> On Wed, Jul 25, 2012 at 7:35 PM, Eric Bazzana <ebazzana at gmail.com> 
wrote:
> Alastair, i have ENABLE_CUPS_SERVER_EXPORT = "1"  setted. But, as 
> you say, i have not set CUPS_SERVER in environment. There is an 
> export in nxnode.
> cmd_node_addprinter: CUPS_SERVER=$(node_cupsd_get_socket), and a 
> pair of evaluations in nxnode.node_start_applications. It seems that
> the one in cmd_node_addprinter is missed, because 
> cmd_node_addprinter is completely executed.
> 
> thanks, Eric
> 

> On Wed, Jul 25, 2012 at 4:24 PM, Alastair Johnson 
<alastair at solutiontrax.com
> > wrote:
> On Wednesday 25 July 2012 15:13:46 Eric Bazzana wrote:
> > Now i have another problem, CUPS server is listening in a port like
> > http://localhost:11007, and from the admin web page i can manage the
> > printer, submit test pages, etc.. But, apps dont see that port, they 
are
> > going to default http://localhost:631. What is what i have to change 
to
> > make it work? is there some nx parameter? or some script?

> The config parameter is:
>         ENABLE_CUPS_SERVER_EXPORT = "1"
> I think that's the default though, so if you don't have environemnt 
variable
> CUPS_SERVER set correctly there's probably a bug in the logic for 
setting it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20120726/2db5da7b/attachment.html>


More information about the FreeNX-kNX mailing list