[X2Go-User] x2go session control panel

Ulrich Sibiller uli42 at gmx.de
Thu Feb 7 19:28:08 CET 2019


On Thu, Feb 7, 2019 at 6:50 PM Ulrich Sibiller <uli42 at gmx.de> wrote:
>
> On Thu, Feb 7, 2019 at 1:54 PM Stroganov Roman
> <stroganov.roman at gmail.com> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: neatx_menu.png
Type: image/png
Size: 11104 bytes
Desc: not available
URL: <http://lists.x2go.org/pipermail/x2go-user/attachments/20190207/1b99aefd/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: neatx_dialog.png
Type: image/png
Size: 18491 bytes
Desc: not available
URL: <http://lists.x2go.org/pipermail/x2go-user/attachments/20190207/1b99aefd/attachment-0003.png>


More information about the x2go-user mailing list