<br><font size=1 face="sans-serif"><b>Julio Carlos Barrera Juez <juliocarlos.barrera@grupoica.com></b>
Sent by: freenx-knx-bounces@kde.org</font>
<br>
<p><font size=2 color=#004080 face="sans-serif">Hi cb!</font>
<br>
<br><font size=2 color=red face="sans-serif">'lo Julio</font>
<br>
<br><font size=2 color=#004080 face="sans-serif"> </font>
<br><font size=2 color=#004080 face="sans-serif">Thank you for your response.</font>
<br><font size=2 color=#004080 face="sans-serif"> </font>
<br><font size=2 color=#004080 face="sans-serif">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:</font>
<br><font size=2 color=#004080 face="sans-serif"> </font>
<br><font size=2 color=#004080 face="sans-serif">$ nxssh -i key nx@server_machine
–B</font>
<br><font size=2 color=#004080 face="sans-serif">> login</font>
<br><font size=2 color=#004080 face="sans-serif">> user</font>
<br><font size=2 color=#004080 face="sans-serif">> password</font>
<br><font size=2 color=#004080 face="sans-serif">> startsession --link="lan"
--imagecompressionmethod="-1" --type="unix-application"
--application="xeyes" --encryption="0" --noshmem="1"
--noshpix="1"</font>
<br><font size=2 color=#004080 face="sans-serif"> </font>
<br><font size=2 color=#004080 face="sans-serif">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:</font>
<br><font size=2 color=#004080 face="sans-serif"> </font>
<br><font size=2 color=#004080 face="sans-serif">$ nxproxy -S server_machine:provided_port
cookie=provided_cookie</font>
<br><font size=2 color=#004080 face="sans-serif"> </font>
<br><font size=2 color=#004080 face="sans-serif">It works at all!</font>
<br><font size=2 color=#004080 face="sans-serif"> </font>
<br><font size=2 color=#004080 face="sans-serif">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:</font>
<br><font size=2 color=#004080 face="sans-serif"> </font>
<br><font size=2 color=#004080 face="sans-serif">--noshmem="1"
--noshpix="1"</font>
<br><font size=2 color=#004080 face="sans-serif"> </font>
<br><font size=2 color=#004080 face="sans-serif">or</font>
<br><font size=2 color=#004080 face="sans-serif"> </font>
<br><font size=2 color=#004080 face="sans-serif">--shmem="0"
--shpix="0"</font>
<br>
<br><font size=2 color=red face="sans-serif">***** These are hard-coded
( back ) to 1 in nxnode ********</font>
<br>
<br><font size=2 color=#004080 face="sans-serif"> </font>
<br><font size=2 color=#004080 face="sans-serif">But every time I get lines
of nxproxy client binary like this:</font>
<br><font size=2 color=#004080 face="sans-serif"> </font>
<br><font size=2 color=#004080 face="sans-serif">Info: Using shared memory
parameters 1/2048K.</font>
<br><font size=2 color=#004080 face="sans-serif"> </font>
<br><font size=2 color=#004080 face="sans-serif">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?</font>
<br><font size=2 color=#004080 face="sans-serif"> </font>
<br><font size=2 color=#004080 face="sans-serif">Thank you for your time!</font>
<br>
<br>
<br><font size=2 color=red face="sans-serif">Well if you want that</font>
<br><font size=2 color=red face="sans-serif">then</font>
<br><font size=2 color=red face="sans-serif">you either need no shared
memory available in X</font>
<br><font size=2 color=red face="sans-serif">or</font>
<br><font size=2 color=red face="sans-serif">you need to set</font>
<br>
<br><font size=2 color=red face="sans-serif">
shseg=0</font>
<br>
<br><font size=2 color=red face="sans-serif">for nxnode, in addition to
shmem and shpix.</font>
<br>
<br>
<br><font size=2 color=red face="sans-serif">Nomachine set it via "ProxyExtraOptions"
node.conf</font>
<br>
<br><font size=2 color=red face="sans-serif">FreeNX has</font>
<br><font size=2 color=red face="sans-serif">
PROXY_EXTRA_OPTIONS</font>
<br>
<br><font size=2 color=red face="sans-serif"> but it is only invoked
for </font>
<br>
<br><font size=2 color=red face="sans-serif">
"nxproxy single application mode session" </font>
<br>
<br><font size=2 color=red face="sans-serif">which appears to be a rootless
non rootless session type !!</font>
<br><font size=2 color=red face="sans-serif">
( I have never used it ( or looked at it ) )</font>
<br>
<br><font size=2 color=red face="sans-serif">The easiest way (for a live
environment) to set shseg is via</font>
<br>
<br><font size=2 color=red face="sans-serif">
nxacl</font>
<br>
<br><font size=2 color=red face="sans-serif">so you can choose who gets
the benefit</font>
<br>
<br><font size=2 color=red face="sans-serif">*** BUT***</font>
<br>
<br><font size=2 color=red face="sans-serif">you still NEED to mod nxnode
to get it to send it to nxagent.</font>
<br>
<br>
<br><font size=2 color=red face="sans-serif">For your experimentation you
can just add</font>
<br>
<br><font size=2 color=red face="sans-serif">
shseg=0</font>
<br><font size=2 color=red face="sans-serif">after the getparam</font>
<br>
<br><font size=2 color=red face="sans-serif">Attached here is a .diff of
nxnode against some ubuntu .deb I found for you to try</font>
<br>
<br>
<br><font size=2 color=red face="sans-serif">Let us know how you get on
. . . . </font>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>