[FreeNX-kNX] Disable shared memory and shared pixmap

Julio Carlos Barrera Juez juliocarlos.barrera at grupoica.com
Fri Nov 2 08:37:27 UTC 2012


Hi cb!

Thank you for your response.

I’m using a freeNX server on an Ubuntu machine and a freeNX client on an Ubuntu machine. I’m testing nxproxy and nxssh command line binaries, I’m not using nxclient or other GUI NX clients at all. I want to disable shared memory and shared pixmap features using these client binaries and without modifying the server. When I want to establish a session I use nxssh binary to provide command line input like these:

$ nxssh -i  key nx at server_machine –B
> login
> user
> password
> startsession --link="lan" --imagecompressionmethod="-1" --type="unix-application" --application="xeyes" --encryption="0" --noshmem="1" --noshpix="1"

After a few seconds the sessions is created and I use cookie and port to create the remote connection using nxproxy binary in another console like this:

$ nxproxy -S server_machine:provided_port cookie=provided_cookie

It works at all!

But I want to disable shared memory and shared pixmaps features, because I’m experimenting with a different local X server. I have tried many different options in startsession line like:

--noshmem="1" --noshpix="1"

or

--shmem="0" --shpix="0"

But every time I get lines of nxproxy client binary like this:

Info: Using shared memory parameters 1/2048K.

I have never achieved not using shared memory or shared pixmap. I want just it without modifying any source code or binary, just using startsession commands using nxssh established session. Any idea?

Thank you for your time!


De: freenx-knx-bounces at kde.org [mailto:freenx-knx-bounces at kde.org] En nombre de chris at ccburton.com
Enviado el: jueves, 01 de noviembre de 2012 15:33
Para: User Support for FreeNX Server and kNX Client
Asunto: Re: [FreeNX-kNX] Disable shared memory and shared pixmap


>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<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/20121102/9899f5e9/attachment.html>


More information about the FreeNX-kNX mailing list