[FreeNX-kNX] Disable shared memory and shared pixmap

chris at ccburton.com chris at ccburton.com
Thu Nov 1 14:33:16 UTC 2012


>I’m using nxssh and nxproxy to establish NX sessions with a freeNX 
server. I use this basic startsession command:
> 
>startsession --link="lan" --imagecompressionmethod="-1" 
--type="unix-application" --shpix="0" --shmem="0" --application="xeyes" 
--encryption="0"
> 
>As it is shown, I want to disable shared memory and shared pixmap 
emulation (--shpix="0" --shmem="0"), but I get always this log when I 
start my nxproxy instance:
> 

If you want to disable shared memory via the setting
in nxclient

<Configure (button)><General (tab)><Display (section)>
<Use custom settings (checkbx)><Settings (button)><performance>

you probably need to update your nxnode to pass it to
nxagent

eg. ubuntu/fedora pin shmem=1 ignoring nxclient
so
you will need to edit nxnode and add :-

        noshpix=$(getparam noshpix)
        shpix=$(getparam shpix)
        noshmem=$(getparam noshmem)
        shmem=$(getparam shmem)

to the list at the beginning of  startsession()
and
update the bit which looks almost like:-

cat << EOF > "$USER_FAKE_HOME/.nx/C-$sess_id/options"
nx/nx,${keyboard:+keyboard=$keyboard,}${kbtype:+kbtype=$kbtype,}${kbload:+kbload=$kbload,}${keymap:+keymap=$keymap,}${geometry:+geometry=$geometry,}${client:+client=$client,}${resize:+resize=$resize,}${CACHE}${IMAGES}${PACK}link=$link,nodelay=$nodelay,type=$realtype,${clipboard:+clipboard=$clipboard,}${composite:+composite=$composite,}product=LFE/None/LFEN/None,${noshmem:+noshmem=$noshmem,}${shmem:+shmem=$shmem,}${backingstore:+backingstore=$backingstore,}${noshpix:+noshpix=$noshpix,}${shpix:+shpix=$shpix,}${ACCEPT}cookie=$proxy_cookie,id=$sess_id,samba=$samba,${sync:+sync=$sync,}${cups:+cups=$cups,}${keybd:+keybd=$keybd,}${aux:+aux=$aux,}${
http:+http=$http
,}${rdpcolors:+rdpcolors=$rdpcolors,}${rdpcache:+rdpcache=$rdpcache,}${fullscreen:+fullscreen=1,}${menu:+menu=$menu,}media=$media:$display
EOF

 . . . to pass them to nxagent (note that my version has been rationalised 
a little too)

You don't tell me what distro or rpm /deb you are using so I can't post a 
diff for you to test.

>
>>Info: Using shared memory parameters 1/2048K.
>> 
>Why it is happening? I want to use a different local X server without 
this features and I want to disable both. How can I do it?
> 
>Thank you!
>




Good luck !!! Let us know how you get on . . . .

cb



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20121101/87522811/attachment.html>


More information about the FreeNX-kNX mailing list