[FreeNX-kNX] cant get working remote printing

Eric Bazzana ebazzana at gmail.com
Thu Jul 26 01:07:03 UTC 2012


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?

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?.

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.
>> ________________________________________________________________
>>      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/20120725/c2290956/attachment.html>


More information about the FreeNX-kNX mailing list