On Thu, Feb 7, 2019 at 6:50 PM Ulrich Sibiller <[email protected]> wrote:
>
> On Thu, Feb 7, 2019 at 1:54 PM Stroganov Roman
> <[email protected]> wrote:
> >
> > >You need to find an archive of the original nxclient binary by
> > >nomachine in version 3.5. Then install it. Look up where it installs
> > >the nxclient binary and change the following line in
> > >/usr/bin/x2gostartagent:
> > >
> > >export NX_CLIENT="${X2GO_LIB_PATH}/x2gosuspend-agent"
> > >
> > >to
> > >
> > >export NX_CLIENT="<path to you nxclient binary>"
> >
> > I found the file / usr / bin / x2gostartagent only on the x2go server. Need 
> > to change on the server?
> > I found nomachine version 3.5.0-7 and installed it.
> > In the file / usr / bin / x2gostartagent I changed
> >
> > export NX_CLIENT = "$ {X2GO_LIB_PATH} / x2gosuspend-agent"
> >
> > on
> >
> > export NX_CLIENT = "/ usr / NX / bin / nxclient"
> >
> > After that, I restarted the server.
> >
> > Clients connect to the server as before. I did not find any session control 
> > panel.
>
> Alright, I forgot one thing: you must change /etc/x2go/x2gooptions to
> contain this line: X2GO_NXOPTIONS="menu=1" This will only work for
> session opened after adding this configuration change.
>
> Please perform a few tests:
> 1. run /usr/NX/bin/nxclient  It should print some help text. You must
> ensure that this binary is working on your system.
> 2. press ctrl-alt-t in a test session. Do you see a request window
> asking if you really want to terminate the session?
> 3. move the mouse to the middle of the nx window title bar (this would
> trigger the menu bar appearing). Then have a look into the server side
> log in ~/.x2go/C-something/session.log. You should see some hint about
> nxclient, e.g. /usr/NX/bin/nxclient: error while loading shared
> libraries: libpng12.so.0: cannot open shared object file: No such file
> or directory

OK, I have tested all this now. It is tricky because the old nxclient
requires some more stuff like ~/.x2go/config/nxclient.cfg. I have not
bothered fiddling with this and came up with a different/nicer
solution instead: neatx. It is working nicely here. This is what I
have done (in addition to the steps mentioned before):
1. download and extract
https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/neatx/neatx-0.3.1.tar.gz
2. cd neatx-0.3.1
3. apt install python-docutils, maybe you need to install some more,
see INSTALL file
4. ./configure --prefix=/tmp/neatx (you can choose another path if you want to)
5. make && make install
6. create a small wrapper (/tmp/nxclient in my case) with this content:
--------------------------------
#!/bin/bash
PREFIX=/tmp/neatx    # adapt to the same value you used above!
PYTHONPATH=${PREFIX}/lib/python2.7/site-packages
/tmp/neatx/lib/neatx/nxdialog "$@"
--------------------------------
7. chmod a+rx /tmp/nxclient
8. adapt NX_CLIENT in x2gostartagent to point to the wrapper
9. run a new session -> menu working, keystrokes open request windows
(see attached screenshots)

@Stefan: maybe we should include this component from neatx into the
x2go distribution. What do you think?

Uli
_______________________________________________
x2go-user mailing list
[email protected]
https://lists.x2go.org/listinfo/x2go-user

Reply via email to