Re: [fluka-discuss]: Re: FLUKA/FLAIR question : Error: couldn't connect to display "docker.for.mac.localhost:0.0”

From: Andrea Fontana <andrea.fontana_at_pv.infn.it>
Date: Mon, 28 Jan 2019 20:35:37 +0100 (CET)

Dead Charlotte,
     I have found something new on the X11 display issue for Docker on MacOS.
You could try to export the DISPLAY to host.docker.internal:

export DISPLAY=host.docker.internal:0.0

I have not a MAC to test it... but this should work with the most recent
releases of Docker. Let us know! If it works, we will update the
documentation.

Further info at:

https://docs.docker.com/docker-for-mac/networking/

Best,
Andrea

>
>
> Thank you - I will give that a go and keep the fluka-discuss mailing list
> informed.
>
> With best wishes,
>
> Charlotte
>
>> On 28 Jan 2019, at 14:48, Horváth Dávid <David.Horvath_at_eli-beams.eu>
>> wrote:
>>
>> Dear Charlotte,
>>
>> it seems you have tried everything I can think of to solve this problem.
>>
>> But, you could try to install gfortran and FLUKA natively in you Mac.
>> you can find the download links for gfortran here:
>> http://hpc.sourceforge.net/index.php
>> The gfortran 7.3 should work with the corresponding FLUKA release, but
>> I'm not able to test it by myself.
>>
>> Kind regards,
>> Dávid Horváth
>>
>> PS.: It's always good to sent the questions to the fluka-discuss mailing
>> list as well (in cc), so other people can help with/learn from it.
>>
>> Junior Researcher
>> Radiation Protection
>> ELI Beamlines
>>
>> E: david.horvath_at_eli-beams.eu
>> T: +420 266 051 283
>> M: Za Radnicí 835, 25241 Dolní Břežany, Czech Republic
>>
>>
>> ________________________________________
>> From: Charlotte Palmer <charlotte.palmer_at_physics.ox.ac.uk>
>> Sent: 28 January 2019 15:28
>> To: Horváth Dávid; Andrea Fontana
>> Subject: FLUKA/FLAIR question : Error: couldn't connect to display
>> "docker.for.mac.localhost:0.0”
>>
>> Hello,
>>
>> I’m a new FLUKA user and I’m not sure if this is how ‘asking
>> questions’ works - apologies if I should instead send this to the
>> fluke_discuss mailing list?
>>
>> I have installed FLUKA using Docker in Mac OSX but am having the same
>> difficulty with flair that was reported by other users in the summer
>> (I’ve attached a link to the email thread in which you were both
>> involved:
>> http://www.fluka.org/web_archive/earchive/new-fluka-discuss/12439.html).
>>
>> When the command flair is executed in the docker container the error is
>> : Error: couldn't connect to display "docker.for.mac.localhost:0.0”
>>
>> As suggested in the email thread I have made sure that XQuartz
>> preferences are set to 'Allow connections from network clients' (and
>> restarted the machine), and that XQuartz is started before Docker.
>>
>> I also ran the commands
>> - export DISPLAY=docker.for.mac.localhost:0.0
>> - xhost +
>> before starting Docker.
>>
>> I’ve also checked that I do not have my firewall on.
>>
>> Unfortunately so far nothing has changed so I wanted to ask whether the
>> above steps solved the problem in the previous case or whether there are
>> some additional things that I could try?
>>
>> Many thanks for your assistance and apologies if this is the wrong
>> contact method. I am happy to resend the question via FLUKA discuss if
>> that is more appropriate.
>>
>> With best wishes,
>>
>> Charlotte
>
>
> __________________________________________________________________________
> You can manage unsubscription from this mailing list at
> https://www.fluka.org/fluka.php?id=acc_info
>
>


-- 
========================================================================
Dr. Andrea Fontana                    tel: +39 0382 987991
Istituto Nazionale                    fax: +39 0382 423241
di Fisica Nucleare
Sezione di Pavia                      e-mail: andrea.fontana_at_pv.infn.it
Via Bassi 6                           web   : www.pv.infn.it/~fontana
27100 PAVIA, Italy
========================================================================
__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Mon Jan 28 2019 - 22:08:08 CET

This archive was generated by hypermail 2.3.0 : Mon Jan 28 2019 - 22:08:16 CET