Re: [X2Go-User] x2go session control panel
Update: - I have made a standalone version of neatx's nxdialog.py, see https://github.com/ArcticaProject/nx-libs/pull/767 - all this stuff I have been talking about in the previous posts refers to the menu being displayed in _rootless_ (or application) mode only. It does offer a menu bar for fullscreen mode Uli On Thu, Feb 7, 2019 at 7:35 PM Ulrich Sibiller wrote: > > > 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 "$@" > > > > There's a "exec" missing, should look like this: > > > > #!/bin/bash > > PREFIX=/tmp/neatx# adapt to the same value you used above! > > PYTHONPATH=${PREFIX}/lib/python2.7/site-packages > > exec /tmp/neatx/lib/neatx/nxdialog "$@" > > > > Uli ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] x2go session control panel
> 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 "$@" > There's a "exec" missing, should look like this: > > #!/bin/bash > PREFIX=/tmp/neatx# adapt to the same value you used above! > PYTHONPATH=${PREFIX}/lib/python2.7/site-packages > exec /tmp/neatx/lib/neatx/nxdialog "$@" > Uli ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] x2go session control panel
On Thu, Feb 7, 2019 at 6:50 PM Ulrich Sibiller wrote: > > On Thu, Feb 7, 2019 at 1:54 PM Stroganov Roman > 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="" > > > > 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 x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] x2go session control panel
On Thu, Feb 7, 2019 at 1:54 PM Stroganov Roman 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="" > > 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 Uli ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] x2go session control panel
You can suspend the session from the inside by sending SIGHUP to the nxagent process. Maybe we should provide a control interface to add further possibilities. Uli Am Do., 7. Feb. 2019, 15:07 hat Stefan Baur geschrieben: > Am 07.02.19 um 14:20 schrieb Stroganov Roman: > > If I understand correctly, can I make a session minimization button in a > > session? If it can be done this will be very convenient. This should be > > enough. I'm sorry if you did not understand your letter correctly. My > > English is bad > > That was indeed my plan, but the tool I had in mind for this doesn't > work properly inside an X2Go session. :( I just tried it out, but it > seems the Ctrl+Alt+F sequence needs to be sent on the client itself, not > inside the session window, so having the tool send it doesn't work. :( > > Sorry. > > -Stefan > > -- > BAUR-ITCS UG (haftungsbeschränkt) > Geschäftsführer: Stefan Baur > Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 > Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243 > ___ > x2go-user mailing list > x2go-user@lists.x2go.org > https://lists.x2go.org/listinfo/x2go-user ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] x2go session control panel
Am 07.02.19 um 14:20 schrieb Stroganov Roman: > If I understand correctly, can I make a session minimization button in a > session? If it can be done this will be very convenient. This should be > enough. I'm sorry if you did not understand your letter correctly. My > English is bad That was indeed my plan, but the tool I had in mind for this doesn't work properly inside an X2Go session. :( I just tried it out, but it seems the Ctrl+Alt+F sequence needs to be sent on the client itself, not inside the session window, so having the tool send it doesn't work. :( Sorry. -Stefan -- BAUR-ITCS UG (haftungsbeschränkt) Geschäftsführer: Stefan Baur Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243 ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
[X2Go-User] x2go session control panel
If I understand correctly, can I make a session minimization button in a session? If it can be done this will be very convenient. This should be enough. I'm sorry if you did not understand your letter correctly. My English is bad -- С Уважением Строганов Роман ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] x2go session control panel
Am 07.02.19 um 13:45 schrieb Stroganov Roman: > While I use the "magic pixel" I do not know if users will get used to > it or not ... :( Would a Desktop icon/Menu entry (inside the session window) to toggle between fullscreen and windowed mode be sufficient? I think there might be a tool for that, and could spend a few minutes trying out if it works or not, if that would help you. -Stefan -- BAUR-ITCS UG (haftungsbeschränkt) Geschäftsführer: Stefan Baur Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243 ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user
[X2Go-User] x2go session control panel
>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="" 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. While I use the "magic pixel" I do not know if users will get used to it or not ... :( -- С Уважением Строганов Роман ___ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user