[X2Go-Dev] Bug#1134: Bug#1134: No environment variable available for testing in .bash_profile or .bashrc
Stefan Baur
X2Go-ML-1 at baur-itcs.de
Wed Jan 11 10:09:42 CET 2017
Am 11.01.2017 um 02:49 schrieb Ted Toal:
> First, I’m checking DISPLAY by these methods:
> env | grep DISPLAY
> echo $DISPLAY
[ -n "$DISPLAY" ] checks if DISPLAY is a non-zero string, and you can
perform actions depending on the outcome of that check, either with
if/then, or with && or ||.
e.g.
[ -n "$DISPLAY" ] && echo "DISPLAY variable is set."
or
[ -n "$DISPLAY" ] || echo "DISPLAY variable is missing."
> By xterm in single application mode, do you mean to start a terminal window from XQuartz? Or do you mean to start an application from x2go using published applications mode? Or?
X2Go has both a published application mode (which you can use just as
well) and a single application mode, amongst other modes.
In single application mode, you can (and must) specify which application
X2Go should launch on the server.
However, as you already found the published application mode setting and
it will work just as well for the purpose of these tests, just use that
and run an xterm from there.
> When I ssh into the machine from Mac Terminal or from a terminal window in XQuartz, DISPLAY does not have a value.
That is to be expected, as regular ssh does not have X forwarding set as
a default option.
You need to explicitly enable it by calling ssh -X user at host or by
adding the corresponding entry in ~/.ssh/config. If you decide to do
the latter, be sure to make it a per-host setting, as enabling X
forwarding by default is a serious security nightmare.
> I don’t know much about the different window environments for unix, but when I set TRINITY on x2go, I am unable to connect, I get the error “Unable to execute: start trinity”.
That, too, is to be expected if you don't have TRINITY installed on your
X2Go server - just like I don't have XFCE on mine.
> I’m new at x2go and haven’t read any manual yet, I’m just trying to go for it.
Ted, in all seriousness - we have numerous man pages and a wiki full of
information, and you just can't be bothered to read any of it and expect
us to solve your problems stemming from a non-standard setup, for free?
Wow. I'm sure that attitude will motivate our volunteers to 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20170111/5c3e10be/attachment.pgp>
More information about the x2go-dev
mailing list