[X2Go-Dev] Bug#1222: Timeout of about 30s to start the x2go session

2017-10-04 Thread Bruno CAPELETO
Package: 
Version: <4.1.0.0-0x2go1.2~git20170806.1410+9.heuler.1>

# uname -a
Linux mtcie1 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u1 (2017-06-18)
x86_64 GNU/Linux
# cat /etc/issue
Debian GNU/Linux 9 \n \l


When connecting to this x2go server - linux client and/or Windows client, I
tested both - the session takes about 30s to start.

I checked the /var/log/auth.log : the ssh connexion is pretty fast (1-2s)
I checked the x2go session.log : it is finished about 30s later

What happens during these 30s I do not understand. I have other
installations on Debian 8, this does not take so long.
___
x2go-dev mailing list
x2go-dev@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-dev

[X2Go-Dev] Bug#1200: Bug#1200: Bug#1200: Environment variables not set

2017-09-05 Thread Bruno CAPELETO
Found : in sshd_config, one must use the "UsePAM yes" directive

I do not really see the link with the locales, and on top of that that open
some security holes I guess.
For example, adding this instruction I had to add additional instructions
to forbid the password authentication.

Conclusions for the reported bugs :
1. locales are set properly
2. I do not have the LXDE error "no session for pid..." anylonger
3. single app mode seems to work for my software (no crash so far)
4. I could not test right now ; I guess that one is related to something
else...


2017-09-05 9:28 GMT+02:00 Bruno CAPELETO <bruno.capel...@abcreseau.com>:

> The issue came from my home-made sshd_config file.
>
> I still work it up and will give here the solution in a few minutes.
>
>
> 2017-09-05 9:07 GMT+02:00 Bruno CAPELETO <bruno.capel...@abcreseau.com>:
>
>> I did dpkg-reconfigure locales as root.
>>
>> Then I get :
>>
>> ~# locale
>> LANG=fr_FR.UTF-8
>> LANGUAGE=
>> LC_CTYPE="fr_FR.UTF-8"
>> LC_NUMERIC="fr_FR.UTF-8"
>> LC_TIME="fr_FR.UTF-8"
>> LC_COLLATE="fr_FR.UTF-8"
>> LC_MONETARY="fr_FR.UTF-8"
>> LC_MESSAGES="fr_FR.UTF-8"
>> LC_PAPER="fr_FR.UTF-8"
>> LC_NAME="fr_FR.UTF-8"
>> LC_ADDRESS="fr_FR.UTF-8"
>> LC_TELEPHONE="fr_FR.UTF-8"
>> LC_MEASUREMENT="fr_FR.UTF-8"
>> LC_IDENTIFICATION="fr_FR.UTF-8"
>> LC_ALL=
>>
>>
>> But when I ssh with my user login (my x2go user), I get :
>>
>> ~#locale
>> LANG=
>> LANGUAGE=
>> LC_CTYPE="POSIX"
>> LC_NUMERIC="POSIX"
>> LC_TIME="POSIX"
>> LC_COLLATE="POSIX"
>> LC_MONETARY="POSIX"
>> LC_MESSAGES="POSIX"
>> LC_PAPER="POSIX"
>> LC_NAME="POSIX"
>> LC_ADDRESS="POSIX"
>> LC_TELEPHONE="POSIX"
>> LC_MEASUREMENT="POSIX"
>> LC_IDENTIFICATION="POSIX"
>> LC_ALL=
>>
>>
>> Obviously the dpkg-reconfigure locales did not set the locales
>> system-wide.
>> I am working in this direction, still any help is appreciated (even if it
>> now looks like a ssh/locales-related issue...)
>>
>>
>> 2017-09-05 8:35 GMT+02:00 Ulrich Sibiller <ulrich.sibil...@gmail.com>:
>>
>>> Maybe you could provide a VM with the non-working Installation so we can
>>> have a look at it.
>>>
>>> Uli
>>> --
>>> Von: Bruno CAPELETO <bruno.capel...@abcreseau.com>
>>> Gesendet: ‎05.‎09.‎2017 08:10
>>> An: Mihai Moldovan <io...@ionic.de>
>>> Cc: 1...@bugs.x2go.org
>>> Betreff: [X2Go-Dev] Bug#1200: Environment variables not set
>>>
>>> Dear Mihai,
>>>
>>> What good piece of news to start the day with !!!
>>>
>>> So you do not see that "bug" on a fresh install. Unfortunately I see it,
>>> and also on a fresh install. It is even worse : I see it on 3 fresh server
>>> installs :
>>> - Ubuntu 14.04.4 LTS (old installation)
>>> - Debian GNU/Linux 8
>>> - Debian GNU/Linux 9
>>>
>>> So it seems that I do not install the same way as the others. Let me
>>> give the details :
>>> - installation in text mode (as these are remote servers)
>>> - installation of LXDE *only* (tasksel : LXDE and ssh)
>>> - installation of X2Go
>>>
>>> On the 2 systems I could test locally (Debian 8 and Debian 9), the
>>> French locales are set properly when the user starts a local X session (the
>>> menu is in French).
>>> However, on a remote X2Go session, the menu always appears in English
>>> (no need to start the software).
>>>
>>> Thanks for your help,
>>> Bruno
>>>
>>> 2017-09-05 5:34 GMT+02:00 Mihai Moldovan <io...@ionic.de>:
>>>
>>>> On 09/04/2017 05:44 PM, Bruno CAPELETO wrote:
>>>> > People in Laurux's forum have reported this software works in single
>>>> app mode
>>>> > but on an Ubuntu server.
>>>>
>>>> Okay, I have just tried to reproduce your issues in a new, fresh Debian
>>>> Stretch
>>>> VM. Only installed the core system, x2goserver, x2goserver-xsession,
>>>> lxde and
>>>> gambas3.
>>>>
>>>> Then (since I installed the system using the en_US.utf8 locale), ran
>>>> dpkg-reconfigure locales, selected fr_FR.* to

[X2Go-Dev] Bug#1200: Bug#1200: Bug#1200: Environment variables not set

2017-09-05 Thread Bruno CAPELETO
The issue came from my home-made sshd_config file.

I still work it up and will give here the solution in a few minutes.


2017-09-05 9:07 GMT+02:00 Bruno CAPELETO <bruno.capel...@abcreseau.com>:

> I did dpkg-reconfigure locales as root.
>
> Then I get :
>
> ~# locale
> LANG=fr_FR.UTF-8
> LANGUAGE=
> LC_CTYPE="fr_FR.UTF-8"
> LC_NUMERIC="fr_FR.UTF-8"
> LC_TIME="fr_FR.UTF-8"
> LC_COLLATE="fr_FR.UTF-8"
> LC_MONETARY="fr_FR.UTF-8"
> LC_MESSAGES="fr_FR.UTF-8"
> LC_PAPER="fr_FR.UTF-8"
> LC_NAME="fr_FR.UTF-8"
> LC_ADDRESS="fr_FR.UTF-8"
> LC_TELEPHONE="fr_FR.UTF-8"
> LC_MEASUREMENT="fr_FR.UTF-8"
> LC_IDENTIFICATION="fr_FR.UTF-8"
> LC_ALL=
>
>
> But when I ssh with my user login (my x2go user), I get :
>
> ~#locale
> LANG=
> LANGUAGE=
> LC_CTYPE="POSIX"
> LC_NUMERIC="POSIX"
> LC_TIME="POSIX"
> LC_COLLATE="POSIX"
> LC_MONETARY="POSIX"
> LC_MESSAGES="POSIX"
> LC_PAPER="POSIX"
> LC_NAME="POSIX"
> LC_ADDRESS="POSIX"
> LC_TELEPHONE="POSIX"
> LC_MEASUREMENT="POSIX"
> LC_IDENTIFICATION="POSIX"
> LC_ALL=
>
>
> Obviously the dpkg-reconfigure locales did not set the locales system-wide.
> I am working in this direction, still any help is appreciated (even if it
> now looks like a ssh/locales-related issue...)
>
>
> 2017-09-05 8:35 GMT+02:00 Ulrich Sibiller <ulrich.sibil...@gmail.com>:
>
>> Maybe you could provide a VM with the non-working Installation so we can
>> have a look at it.
>>
>> Uli
>> --
>> Von: Bruno CAPELETO <bruno.capel...@abcreseau.com>
>> Gesendet: ‎05.‎09.‎2017 08:10
>> An: Mihai Moldovan <io...@ionic.de>
>> Cc: 1...@bugs.x2go.org
>> Betreff: [X2Go-Dev] Bug#1200: Environment variables not set
>>
>> Dear Mihai,
>>
>> What good piece of news to start the day with !!!
>>
>> So you do not see that "bug" on a fresh install. Unfortunately I see it,
>> and also on a fresh install. It is even worse : I see it on 3 fresh server
>> installs :
>> - Ubuntu 14.04.4 LTS (old installation)
>> - Debian GNU/Linux 8
>> - Debian GNU/Linux 9
>>
>> So it seems that I do not install the same way as the others. Let me give
>> the details :
>> - installation in text mode (as these are remote servers)
>> - installation of LXDE *only* (tasksel : LXDE and ssh)
>> - installation of X2Go
>>
>> On the 2 systems I could test locally (Debian 8 and Debian 9), the French
>> locales are set properly when the user starts a local X session (the menu
>> is in French).
>> However, on a remote X2Go session, the menu always appears in English (no
>> need to start the software).
>>
>> Thanks for your help,
>> Bruno
>>
>> 2017-09-05 5:34 GMT+02:00 Mihai Moldovan <io...@ionic.de>:
>>
>>> On 09/04/2017 05:44 PM, Bruno CAPELETO wrote:
>>> > People in Laurux's forum have reported this software works in single
>>> app mode
>>> > but on an Ubuntu server.
>>>
>>> Okay, I have just tried to reproduce your issues in a new, fresh Debian
>>> Stretch
>>> VM. Only installed the core system, x2goserver, x2goserver-xsession,
>>> lxde and
>>> gambas3.
>>>
>>> Then (since I installed the system using the en_US.utf8 locale), ran
>>> dpkg-reconfigure locales, selected fr_FR.* to be generated and set the
>>> default
>>> locale to fr_FR.utf8.
>>>
>>> Started up a new X2Go session (desktop session, LXDE) and was greeted by
>>> a
>>> French-speaking LXDE instance (with some English text from the clipboard
>>> manager, that does not seem to have a French localization. No problem.)
>>>
>>> Afterwards, started gambas3 in the LXDE desktop session. Worked fine.
>>> And showed
>>> up in French.
>>>
>>>
>>> Next up: started gambas3 in single application mode. Came up fine and in
>>> French.
>>>
>>>
>>> And just for fun, I then went on, downloaded Laurux3.tar.gz from the
>>> website
>>> (since this software doesn't seem to be packaged within Debian
>>> directly...),
>>> installed gambas3-gb-qt4 and gambas3-gb-qt4-ext (since it looked like
>>> these
>>> modules were missing) and started Laurux3.gambas in the LXDE instance. It
>>> greeted me in French with a dial

[X2Go-Dev] Bug#1200: Environment variables not set

2017-09-05 Thread Bruno CAPELETO
Dear Mihai,

What good piece of news to start the day with !!!

So you do not see that "bug" on a fresh install. Unfortunately I see it,
and also on a fresh install. It is even worse : I see it on 3 fresh server
installs :
- Ubuntu 14.04.4 LTS (old installation)
- Debian GNU/Linux 8
- Debian GNU/Linux 9

So it seems that I do not install the same way as the others. Let me give
the details :
- installation in text mode (as these are remote servers)
- installation of LXDE *only* (tasksel : LXDE and ssh)
- installation of X2Go

On the 2 systems I could test locally (Debian 8 and Debian 9), the French
locales are set properly when the user starts a local X session (the menu
is in French).
However, on a remote X2Go session, the menu always appears in English (no
need to start the software).

Thanks for your help,
Bruno

2017-09-05 5:34 GMT+02:00 Mihai Moldovan <io...@ionic.de>:

> On 09/04/2017 05:44 PM, Bruno CAPELETO wrote:
> > People in Laurux's forum have reported this software works in single app
> mode
> > but on an Ubuntu server.
>
> Okay, I have just tried to reproduce your issues in a new, fresh Debian
> Stretch
> VM. Only installed the core system, x2goserver, x2goserver-xsession, lxde
> and
> gambas3.
>
> Then (since I installed the system using the en_US.utf8 locale), ran
> dpkg-reconfigure locales, selected fr_FR.* to be generated and set the
> default
> locale to fr_FR.utf8.
>
> Started up a new X2Go session (desktop session, LXDE) and was greeted by a
> French-speaking LXDE instance (with some English text from the clipboard
> manager, that does not seem to have a French localization. No problem.)
>
> Afterwards, started gambas3 in the LXDE desktop session. Worked fine. And
> showed
> up in French.
>
>
> Next up: started gambas3 in single application mode. Came up fine and in
> French.
>
>
> And just for fun, I then went on, downloaded Laurux3.tar.gz from the
> website
> (since this software doesn't seem to be packaged within Debian
> directly...),
> installed gambas3-gb-qt4 and gambas3-gb-qt4-ext (since it looked like these
> modules were missing) and started Laurux3.gambas in the LXDE instance. It
> greeted me in French with a dialog to setup MySQL. I skipped this and
> Gambas3-Laurux started up. Again, everything was in French.
>
> Last thing: started /home/ionic/applications/Laurux3/Laurux3.gambas
> (obviously
> the path I extracted it to) in a single application session. Again, I was
> greeted by the dialog to create a MySQL database. Skipped this, and
> Laurux-Gambas came up. All in French. It looked weird, but that's because
> in
> single application mode, we don't yet have an XSETTINGS daemon running that
> would enable Qt4 to look up its theme settings, so a ugly fallback theme is
> being used by default.
>
>
> So far, I'm unable to reproduce any issue (and curiously, the Laurux
> version
> from their homepage seems to be using Qt4 instead of Qt5 as well, so I
> wonder
> how you came up with Qt4 before.)
>
> I wasn't able to test the double-clicking issue, since all tests were
> carried
> out using X2Go Client on Linux.
>
>
> I'd like to understand why your env variables are not being set correctly,
> but
> it doesn't seem to be systematic X2Go bug. With a cleanly installed
> system, this
> does not seem to happen.
>
>
>
> Mihai
>
>
___
x2go-dev mailing list
x2go-dev@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-dev

[X2Go-Dev] Bug#1200: Bug#1200: Environment variables not set

2017-09-04 Thread Bruno CAPELETO
People in Laurux's forum have reported this software works in single app
mode but on an Ubuntu server.

So it looks like this crash issue is related to the non-proper setting of
the locale on Debian server...


2017-08-16 11:17 GMT+02:00 Bruno CAPELETO <bruno.capel...@abcreseau.com>:

>
> 2017-08-11 5:29 GMT+02:00 Mihai Moldovan <io...@ionic.de>:
>
>> Control: reassign -1 x2goserver 4.0.1.20
>>
>> First of all, x2goserver 4.0.1.20 actually is the correct stable release.
>> 4.1.0.0 are the current nightly releases.
>>
>> I personally don't care much about what version is tested, but knowing
>> whether
>> there's a difference in behavior between the stable and nightly versions
>> is
>> certainly helpful.
>>
>
> Same issues with both versions.
>
>
>>
>>
>> On 08/10/2017 12:24 PM, Bruno CAPELETO wrote:
>> > Package:  Version: <4.0.1.20-0x2go1+git20170412.1
>> 125+9.main.1>
>> >
>> > # uname -a Linux mtcie1 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u1
>> > (2017-06-18) x86_64 GNU/Linux
>> >
>> >
>> >
>> > The below bugs are most probably related to each other, that's why I
>> open
>> > one case for all of them.
>> >
>> > The issues are the following : I want to use the French software Laurux,
>> > which is based on Gambas interpreter, via a x2go session running on a
>> Debian
>> > 9 server running LXDE (same issues seen on an Ubuntu server, x2goserver
>> > version = 4.0.1.20-0~1125~ubuntu14.04.1)..
>> >
>> > As a prerequisite, the software is installed on the server and runs
>> well on
>> > a local session.
>> >
>> > 1. Whatever the client (Windows or Linux 4.0.3.1-4), the local
>> environment
>> > variables are not set properly and the software - which needs French
>> > localization - crashes. That could be "solved" the following way :
>> > /etc/x2go/Xsession :
>> >
>> > ... LANG=fr LC_ALL=fr_FR.UTF-8 export LANG export LC_ALL ...
>> >
>> > That seems to be a revival of older bugs, but it is definitely still
>> here.
>>
>> How exactly did you set the locale?
>>
>> The "Debian way" would be to run dpkg-reconfigure locales as root and
>> select the
>> desired locale(s) to generate and then select the default one.
>>
>
> That is exactly the way  I set the locales.
>
>>
>> /etc/environment should not contain any locale settings.
>>
>
> /etc/environmnent is empty
>
>
>>
>> LANGUAGES and especially LC_ALL should normally not be set. LANGUAGES is a
>> GNU-only list of fallback locales. LANG is the preferred way to set the
>> locale,
>> since it's being used if all of the LC_* env variables are empty.
>> "dpkg-reconfigure locales" will do the right thing™.
>>
>
> I confirm $LANGUAGES and $LC_ALL are not set on a local session.
>
>
>>
>>
>> > 2. At the start of a new session, one gets a windows with an error
>> message
>> > "No session for pid ..." ; that bug has already been reported several
>> times
>> > in x2go bug tracking and marked as solved. Actually it is not on my
>> brand new
>> > system.
>>
>> What session are you starting exactly? I cannot find the string "No
>> session for
>> pid" in x2goserver's source code. Not sure what to do with this.
>>
>
> I found out it is a reported bug related to LXDE : cf
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864402
>
>
>>
>>
>> > 3. The single application mode does not work with some of the
>> applications,
>> > including that Laurux / Gambas. For example it works with
>> /usr/bin/leafpad,
>> > but /usr/bin/libreoffice makes the x2go session crash.
>>
>> That's certainly possible. The most likely cause, as Uli explained, is
>> that the
>> command daemonizes itself right after launching it. This leads to the X2Go
>> scripts assuming that the program exited and subsequently also
>> terminating the
>> session. We've seen such behavior every now and then and worked around it.
>>
>> However, it looks like x2goagent is crashing when you start libreoffice
>> in your
>> case. That shouldn't happen. My gut feeling is that this might be another
>> GTK3
>> incompatibility.
>>
>> I could try to reproduce this in a clean stretch VM.
>>
>
> Perfectly reproducible in my case on 2 installations.
>
>
>>
>>
>> > 4. The mouse

[X2Go-Dev] Bug#1200: Environment variables not set

2017-08-16 Thread Bruno CAPELETO
2017-08-11 5:29 GMT+02:00 Mihai Moldovan <io...@ionic.de>:

> Control: reassign -1 x2goserver 4.0.1.20
>
> First of all, x2goserver 4.0.1.20 actually is the correct stable release.
> 4.1.0.0 are the current nightly releases.
>
> I personally don't care much about what version is tested, but knowing
> whether
> there's a difference in behavior between the stable and nightly versions is
> certainly helpful.
>

Same issues with both versions.


>
>
> On 08/10/2017 12:24 PM, Bruno CAPELETO wrote:
> > Package:  Version: <4.0.1.20-0x2go1+git20170412.
> 1125+9.main.1>
> >
> > # uname -a Linux mtcie1 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u1
> > (2017-06-18) x86_64 GNU/Linux
> >
> >
> >
> > The below bugs are most probably related to each other, that's why I open
> > one case for all of them.
> >
> > The issues are the following : I want to use the French software Laurux,
> > which is based on Gambas interpreter, via a x2go session running on a
> Debian
> > 9 server running LXDE (same issues seen on an Ubuntu server, x2goserver
> > version = 4.0.1.20-0~1125~ubuntu14.04.1)..
> >
> > As a prerequisite, the software is installed on the server and runs well
> on
> > a local session.
> >
> > 1. Whatever the client (Windows or Linux 4.0.3.1-4), the local
> environment
> > variables are not set properly and the software - which needs French
> > localization - crashes. That could be "solved" the following way :
> > /etc/x2go/Xsession :
> >
> > ... LANG=fr LC_ALL=fr_FR.UTF-8 export LANG export LC_ALL ...
> >
> > That seems to be a revival of older bugs, but it is definitely still
> here.
>
> How exactly did you set the locale?
>
> The "Debian way" would be to run dpkg-reconfigure locales as root and
> select the
> desired locale(s) to generate and then select the default one.
>

That is exactly the way  I set the locales.

>
> /etc/environment should not contain any locale settings.
>

/etc/environmnent is empty


>
> LANGUAGES and especially LC_ALL should normally not be set. LANGUAGES is a
> GNU-only list of fallback locales. LANG is the preferred way to set the
> locale,
> since it's being used if all of the LC_* env variables are empty.
> "dpkg-reconfigure locales" will do the right thing™.
>

I confirm $LANGUAGES and $LC_ALL are not set on a local session.


>
>
> > 2. At the start of a new session, one gets a windows with an error
> message
> > "No session for pid ..." ; that bug has already been reported several
> times
> > in x2go bug tracking and marked as solved. Actually it is not on my
> brand new
> > system.
>
> What session are you starting exactly? I cannot find the string "No
> session for
> pid" in x2goserver's source code. Not sure what to do with this.
>

I found out it is a reported bug related to LXDE : cf
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864402


>
>
> > 3. The single application mode does not work with some of the
> applications,
> > including that Laurux / Gambas. For example it works with
> /usr/bin/leafpad,
> > but /usr/bin/libreoffice makes the x2go session crash.
>
> That's certainly possible. The most likely cause, as Uli explained, is
> that the
> command daemonizes itself right after launching it. This leads to the X2Go
> scripts assuming that the program exited and subsequently also terminating
> the
> session. We've seen such behavior every now and then and worked around it.
>
> However, it looks like x2goagent is crashing when you start libreoffice in
> your
> case. That shouldn't happen. My gut feeling is that this might be another
> GTK3
> incompatibility.
>
> I could try to reproduce this in a clean stretch VM.
>

Perfectly reproducible in my case on 2 installations.


>
>
> > 4. The mouse double clic does not work in a x2go session, but only -
> within
> > the Gambas software (works well for example when launching an
> application)
> > and only - when the x2go client is running in a Windows environment (no
> > problem when client in a Linux environment)
>
> That sounds like Gambas is doing something funny, though. As far as I was
> able
> to gather, Gambas seems to be using Qt5 as its drawing toolkit.
>
> The package qtbase5-examples should contain a binary at
> /usr/lib/x86_64-linux-gnu/qt5/examples/widgets/widgets/
> mousebuttons/mousebuttons
> which spits out received mouse events.
>
> Can you try that - especially with double clicking - and see what it
> outputs?
>

$
/usr/lib/x86_64-linux-gnu/qt5/examples/widgets/widgets/mousebuttons/mo

[X2Go-Dev] Bug#1198: Bug#1198: X2Go issue (in src:x2goserver) has been marked as pending for release

2017-08-11 Thread Bruno CAPELETO
That "fix" did not change anything to my issues.

The issues are coming even on a new session.


2017-08-11 9:47 GMT+02:00 Mihai Moldovan :

> tag #1198 pending
> fixed #1198 4.0.1.21
> thanks
>
> Hello,
>
> X2Go issue #1198 (src:x2goserver) reported by you has been
> fixed in X2Go Git. You can see the changelog below, and you can
> check the diff of the fix at:
>
> http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=d0d592b
>
> The issue will most likely be fixed in src:x2goserver (4.0.1.21).
>
> light+love
> X2Go Git Admin (on behalf of the sender of this mail)
>
> ---
> commit d0d592b577a410ac8827dc4a620916348a0ab348
> Author: Mihai Moldovan 
> Date:   Fri Aug 11 09:45:51 2017 +0200
>
> x2goserver/bin/x2gostartagent: try to enable lingering via systemd's
> loginctl utility before calling x2goagent. Fixes: #1198.
>
> diff --git a/debian/changelog b/debian/changelog
> index dc3ed6b..eddaaec 100644
> --- a/debian/changelog
> +++ b/debian/changelog
> @@ -25,6 +25,8 @@ x2goserver (4.0.1.21-0x2go1) UNRELEASED; urgency=medium
>  - x2goserver/bin/x2gosetkeyboard: only match up the first ending
> quote
>character in a non-greedy way. This will not support nested quotes
>within values, but we probably don't need this feature anyway.
> +- x2goserver/bin/x2gostartagent: try to enable lingering via systemd's
> +  loginctl utility before calling x2goagent. Fixes: #1198.
>* x2goserver.spec:
>  - Add mandatory perl-generators Build-Requires as per
>https://fedoraproject.org/wiki/Changes/Build_Root_Without_Perl
> ___
> x2go-dev mailing list
> x2go-dev@lists.x2go.org
> https://lists.x2go.org/listinfo/x2go-dev
___
x2go-dev mailing list
x2go-dev@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-dev

[X2Go-Dev] Bug#1200: Bug#1200: Bug#1200: Bug#1200: Environment variables not set

2017-08-10 Thread Bruno CAPELETO
Ok bug no 2 (no session for pid) is identified :
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864402

Concerning bug 3. and single app mode : when launching xterm and doing
"echo $LANG" there is nothing.
So the variable is not set, even with my workaround for bug no 1.
What is the difference between the full LXDE session et single app mode :
is there an explanation somewhere ?



2017-08-10 21:52 GMT+02:00 Bruno CAPELETO <bruno.capel...@abcreseau.com>:

> >> > 1. Whatever the client (Windows or Linux 4.0.3.1-4), the local
>> >> > environment
>> >> > variables are not set properly and the software - which needs French
>> >> > localization - crashes. That could be "solved" the following way :
>> >> > /etc/x2go/Xsession :
>> >>
>> >> Hmm, the environment is usually set by the system. Is a local session
>> >> working properly?
>> >>
>> > Yes, local sessions are working properly.
>> >
>> >>
>> >> An application that crashes because of missing locale vars is 100%
>> buggy.
>> >
>> >
>> > Let's say 80% buggy :-)
>>
>>
>> No, that's for sure a bug. No application may crash because of missign
>> env variables. Never!
>>
>
> The issue is coma : "." in English and "," in French. So the MySQL
> requests fail and crash the software. But that is not the issue we should
> focus on in this mailing list.
> The issue is that the environment variables are not set correctly : in a
> local session it starts in French (as it should), but in the x2go session
> in starts in English.
>
>
>>
>> >> > 2. At the start of a new session, one gets a windows with an error
>> >> > message
>> >> > "No session for pid ..." ; that bug has already been reported several
>> >> > times
>> >> > in x2go bug tracking and marked as solved. Actually it is not on my
>> >> > brand
>> >> > new system.
>> >>
>> >> I have no idea about this, except: Maybe there are some relicts of a
>> >> previous version of x2go. It could help to manually remove all nx and
>> >> x2go related packages completely, clean the filesystem for remains and
>> >> retry,
>> >
>> >
>> > I mixed it out : it was reported in LXDE mailing list. In my case it
>> happens
>> > only in combination with x2go (fresh install, without any nx mixup).
>>
>> So this happens only when starting an LXDE session?
>>
>
> Yes, this is related to LXDE. But once more, only in combination with x2go
> : on the local station I do not have this error when I start a LXDE session.
> Because LXDE is so light, it is very well adapted for remote desktop ; so
> it is definitely a first choice for a combination with x2go.
>
>
>> >> > 3. The single application mode does not work with some of the
>> >> > applications,
>> >> > including that Laurux / Gambas. For example it works with
>> >> > /usr/bin/leafpad,
>> >> > but /usr/bin/libreoffice makes the x2go session crash.
>> >>
>> >> There are applications that fork themselves and return immediately,
>> >> which in turn causes the session to close down because there's no
>> >> client left. Please check if running xterm in single application mode
>> >> and starting those applications from there is working.
>> >
>> >
>> > x2go full session : xterm then /usr/bin/libreoffice -> works
>> > x2go single application mode /usr/bin/xterm -> got the xterm, but typing
>> > /usr/bin/libreoffice closes the session
>>
>> Really during typing, before pressing enter? That's very weird.
>>
>
> Sorry I should have said "after typing" : when I press enter, libreoffice
> starts loading, and suddenly I am ejected from the x2go session.
>
> Bruno
>
>
___
x2go-dev mailing list
x2go-dev@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-dev

[X2Go-Dev] Bug#1200: Bug#1200: Bug#1200: Bug#1200: Environment variables not set

2017-08-10 Thread Bruno CAPELETO
>
> >> > 1. Whatever the client (Windows or Linux 4.0.3.1-4), the local
> >> > environment
> >> > variables are not set properly and the software - which needs French
> >> > localization - crashes. That could be "solved" the following way :
> >> > /etc/x2go/Xsession :
> >>
> >> Hmm, the environment is usually set by the system. Is a local session
> >> working properly?
> >>
> > Yes, local sessions are working properly.
> >
> >>
> >> An application that crashes because of missing locale vars is 100%
> buggy.
> >
> >
> > Let's say 80% buggy :-)
>
>
> No, that's for sure a bug. No application may crash because of missign
> env variables. Never!
>

The issue is coma : "." in English and "," in French. So the MySQL requests
fail and crash the software. But that is not the issue we should focus on
in this mailing list.
The issue is that the environment variables are not set correctly : in a
local session it starts in French (as it should), but in the x2go session
in starts in English.


>
> >> > 2. At the start of a new session, one gets a windows with an error
> >> > message
> >> > "No session for pid ..." ; that bug has already been reported several
> >> > times
> >> > in x2go bug tracking and marked as solved. Actually it is not on my
> >> > brand
> >> > new system.
> >>
> >> I have no idea about this, except: Maybe there are some relicts of a
> >> previous version of x2go. It could help to manually remove all nx and
> >> x2go related packages completely, clean the filesystem for remains and
> >> retry,
> >
> >
> > I mixed it out : it was reported in LXDE mailing list. In my case it
> happens
> > only in combination with x2go (fresh install, without any nx mixup).
>
> So this happens only when starting an LXDE session?
>

Yes, this is related to LXDE. But once more, only in combination with x2go
: on the local station I do not have this error when I start a LXDE session.
Because LXDE is so light, it is very well adapted for remote desktop ; so
it is definitely a first choice for a combination with x2go.


> >> > 3. The single application mode does not work with some of the
> >> > applications,
> >> > including that Laurux / Gambas. For example it works with
> >> > /usr/bin/leafpad,
> >> > but /usr/bin/libreoffice makes the x2go session crash.
> >>
> >> There are applications that fork themselves and return immediately,
> >> which in turn causes the session to close down because there's no
> >> client left. Please check if running xterm in single application mode
> >> and starting those applications from there is working.
> >
> >
> > x2go full session : xterm then /usr/bin/libreoffice -> works
> > x2go single application mode /usr/bin/xterm -> got the xterm, but typing
> > /usr/bin/libreoffice closes the session
>
> Really during typing, before pressing enter? That's very weird.
>

Sorry I should have said "after typing" : when I press enter, libreoffice
starts loading, and suddenly I am ejected from the x2go session.

Bruno
___
x2go-dev mailing list
x2go-dev@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-dev

[X2Go-Dev] Bug#1200: Bug#1200: Bug#1200: Environment variables not set

2017-08-10 Thread Bruno CAPELETO
>
> > 1. Whatever the client (Windows or Linux 4.0.3.1-4), the local
> environment
> > variables are not set properly and the software - which needs French
> > localization - crashes. That could be "solved" the following way :
> > /etc/x2go/Xsession :
>
> Hmm, the environment is usually set by the system. Is a local session
> working properly?
>
> Yes, local sessions are working properly.


> An application that crashes because of missing locale vars is 100% buggy.
>

Let's say 80% buggy :-)


>
> > 2. At the start of a new session, one gets a windows with an error
> message
> > "No session for pid ..." ; that bug has already been reported several
> times
> > in x2go bug tracking and marked as solved. Actually it is not on my brand
> > new system.
>
> I have no idea about this, except: Maybe there are some relicts of a
> previous version of x2go. It could help to manually remove all nx and
> x2go related packages completely, clean the filesystem for remains and
> retry,
>

I mixed it out : it was reported in LXDE mailing list. In my case it
happens only in combination with x2go (fresh install, without any nx mixup).


>
> > 3. The single application mode does not work with some of the
> applications,
> > including that Laurux / Gambas. For example it works with
> /usr/bin/leafpad,
> > but /usr/bin/libreoffice makes the x2go session crash.
>
> There are applications that fork themselves and return immediately,
> which in turn causes the session to close down because there's no
> client left. Please check if running xterm in single application mode
> and starting those applications from there is working.
>

x2go full session : xterm then /usr/bin/libreoffice -> works
x2go single application mode /usr/bin/xterm -> got the xterm, but typing
/usr/bin/libreoffice closes the session


>
> Uli
>
>
___
x2go-dev mailing list
x2go-dev@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-dev

[X2Go-Dev] Bug#1200: Bug#1200: Environment variables not set

2017-08-10 Thread Bruno CAPELETO
Yes I am sure my system is set up properly. By the way, keeping x2go apart,
everything is running well, including the software I would like to use via
x2go.

Now I updated with the x2go heuler section as you suggested :
4.1.0.0-0x2go1.2~git20170806.1410+9.heuler.1

The bugs 1,2,3 are all still there (I can not test the bug 4 as I have no
Windows environment next to me at the moment).



2017-08-10 14:00 GMT+02:00 Ulrich Sibiller <ul...@gmx.de>:

> Hallo Bruno,
>
> AFAIK the current version of x2go is 4.1.something. Please try that one.
>
> Besides, your list contains an unusual number of problems at once. Are
> you sure your system is setup properly?
>
> Uli
>
> On Thu, Aug 10, 2017 at 12:24 PM, Bruno CAPELETO
> <bruno.capel...@abcreseau.com> wrote:
> > Package: 
> > Version: <4.0.1.20-0x2go1+git20170412.1125+9.main.1>
> >
> > # uname -a
> > Linux mtcie1 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u1 (2017-06-18)
> x86_64
> > GNU/Linux
> >
> >
> >
> > The below bugs are most probably related to each other, that's why I open
> > one case for all of them.
> >
> > The issues are the following : I want to use the French software Laurux,
> > which is based on Gambas interpreter, via a x2go session running on a
> Debian
> > 9 server running LXDE (same issues seen on an Ubuntu server, x2goserver
> > version = 4.0.1.20-0~1125~ubuntu14.04.1)..
> >
> > As a prerequisite, the software is installed on the server and runs well
> on
> > a local session.
> >
> > 1. Whatever the client (Windows or Linux 4.0.3.1-4), the local
> environment
> > variables are not set properly and the software - which needs French
> > localization - crashes. That could be "solved" the following way :
> > /etc/x2go/Xsession :
> >
> > ...
> > LANG=fr
> > LC_ALL=fr_FR.UTF-8
> > export LANG
> > export LC_ALL
> > ...
> >
> > That seems to be a revival of older bugs, but it is definitely still
> here.
> >
> > 2. At the start of a new session, one gets a windows with an error
> message
> > "No session for pid ..." ; that bug has already been reported several
> times
> > in x2go bug tracking and marked as solved. Actually it is not on my brand
> > new system.
> >
> > 3. The single application mode does not work with some of the
> applications,
> > including that Laurux / Gambas. For example it works with
> /usr/bin/leafpad,
> > but /usr/bin/libreoffice makes the x2go session crash.
> >
> > 4. The mouse double clic does not work in a x2go session, but only
> > - within the Gambas software (works well for example when launching an
> > application) and only
> > - when the x2go client is running in a Windows environment (no problem
> when
> > client in a Linux environment)
> >
> > Many thanks in advance for any support,
> > Bruno
> >
> >
> >
> > ___
> > x2go-dev mailing list
> > x2go-dev@lists.x2go.org
> > https://lists.x2go.org/listinfo/x2go-dev
>
___
x2go-dev mailing list
x2go-dev@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-dev

[X2Go-Dev] Bug#1200: Environment variables not set

2017-08-10 Thread Bruno CAPELETO
Package: 
Version: <4.0.1.20-0x2go1+git20170412.1125+9.main.1>

# uname -a
Linux mtcie1 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u1 (2017-06-18)
x86_64 GNU/Linux



The below bugs are most probably related to each other, that's why I open
one case for all of them.

The issues are the following : I want to use the French software Laurux,
which is based on Gambas interpreter, via a x2go session running on a
Debian 9 server running LXDE (same issues seen on an Ubuntu server,
x2goserver version = 4.0.1.20-0~1125~ubuntu14.04.1)..

As a prerequisite, the software is installed on the server and runs well on
a local session.

1. Whatever the client (Windows or Linux 4.0.3.1-4), the local environment
variables are not set properly and the software - which needs French
localization - crashes. That could be "solved" the following way :
/etc/x2go/Xsession :

...
LANG=fr
LC_ALL=fr_FR.UTF-8
export LANG
export LC_ALL
...

That seems to be a revival of older bugs, but it is definitely still here.

2. At the start of a new session, one gets a windows with an error message
"No session for pid ..." ; that bug has already been reported several times
in x2go bug tracking and marked as solved. Actually it is not on my brand
new system.

3. The single application mode does not work with some of the applications,
including that Laurux / Gambas. For example it works with /usr/bin/leafpad,
but /usr/bin/libreoffice makes the x2go session crash.

4. The mouse double clic does not work in a x2go session, but only
- within the Gambas software (works well for example when launching an
application) and only
- when the x2go client is running in a Windows environment (no problem when
client in a Linux environment)

Many thanks in advance for any support,
Bruno
___
x2go-dev mailing list
x2go-dev@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-dev