|
[Sponsors] |
[OpenFOAM.com] starting problem on mac: "xhost: command not found" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 6, 2016, 10:51 |
|
#21 |
New Member
Evan
Join Date: May 2016
Posts: 23
Rep Power: 10 |
[root@eba8e7f5a175 cavity]# echo $FOAM_RUN
/root/OpenFOAM/ofuser-v3.0+/run [ofuser@eba8e7f5a175 cavity]$ echo $FOAM_RUN /home/ofuser/OpenFOAM/ofuser-v3.0+/run ...It worked? I'm sorry for the confusion I literally don't know why its working all of a sudden. |
|
May 6, 2016, 10:54 |
|
#22 |
New Member
Evan
Join Date: May 2016
Posts: 23
Rep Power: 10 |
It seems to have happened when I downloaded the new version of virtual box
|
|
May 6, 2016, 11:08 |
|
#23 |
Senior Member
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11 |
Launch docker terminal box i)delete old container by running following command "docker rm -f of_v3.0_plus"
ii) run this command "docker ps -a " to see there is no container now iii) unzip the latest script that i have provided and put in /C/Users and use this command docker-machine ssh default $HOME/installOpenFOAM_MAC_pgh $HOME You will be login as docker (There is no ofuser involved in it) then follow rest of instruction |
|
May 6, 2016, 11:41 |
|
#24 |
New Member
Evan
Join Date: May 2016
Posts: 23
Rep Power: 10 |
Here's what happened when I followed your last comment.
taylor:~ myusername$ ./startOpenFoam+_MAC of_v3.0_plus bash-4.1$ whoami whoami: cannot find name for user ID 1000 bash-4.1$ mkdir -p $FOAM_RUN bash-4.1$ run //so it was able to make the directory bash-4.1$ export DISPLAY=my.ip bash-4.1$ export LIBGL_ALWAYS_INDIRECT=y bash-4.1$ paraFoam Created temporary 'cavity.OpenFOAM' paraview: cannot connect to X server my.ip But it couldn't open the graphical interface like before for some reason |
|
May 6, 2016, 11:49 |
|
#25 |
Senior Member
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11 |
I am not using paraFOAM from docker container. I will suggest to download paraview seprately for MAC and then work on it .
http://www.paraview.org/download/ Also did you add display variable as suggested earlier in your command i.e in script (Note just need to add -e DISPLAY=${displayVar} in script . and rerun it after deleting old container docker run -ti .... -e DISPLAY=${displayVar} --workdir |
|
May 6, 2016, 12:14 |
|
#26 |
New Member
Evan
Join Date: May 2016
Posts: 23
Rep Power: 10 |
I've now installed paraview and made the change to the script. My script reads:
docker run -it -d --name ${containerName} --user=${user} -e USER=${username} -e DISPLAY=${displayVar} --workdir -e QT_X11_NO_MITSHM=1 -e HOME=/home/docker/Users --workdir="/home/docker/Users" --volume="${home}:/home/docker/Users" -v=/tmp/.X11-unix:/tmp/.X11-unix ${imageName} /bin/bash --rcfile /opt/OpenFOAM/OpenFOAM-v3.0+/etc/bashrc However now I can't even run the container: taylor:~ myusername$ ./startOpenFOAM+_MAC Error response from daemon: No such container: of_v3.0_plus Error: failed to start containers: of_v3.0_plus Error: No such container: of_v3.0_plus |
|
May 6, 2016, 12:31 |
|
#27 |
Senior Member
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11 |
docker run -it -d --name ${containerName} --user=${user} -e USER=${username} -e DISPLAY=${displayVar} --workdir -e QT_X11_NO_MITSHM=1 -e HOME=/home/docker/Users --workdir="/home/docker/Users" --volume="${home}:/home/docker/Users" -v=/tmp/.X11-unix:/tmp/.X11-unix ${imageName} /bin/bash --rcfile /opt/OpenFOAM/OpenFOAM-v3.0+/etc/bashrc
remove --workDir that is highlightred above |
|
May 6, 2016, 13:01 |
|
#28 |
New Member
Evan
Join Date: May 2016
Posts: 23
Rep Power: 10 |
Andd we have lift off! Thank you my friend, I am now running programs as user1000 and not as root
|
|
May 7, 2016, 15:58 |
|
#29 |
New Member
Florida
Join Date: Jun 2015
Posts: 10
Rep Power: 11 |
Dear ugh,
I am back again, I used your latest script but I get the password incorrect. See below: Merons-MacBook-Pro:~ ban$ ./startOpenFOAM+ of_v3.0_plus bash-4.1$ su user su: user user does not exist bash-4.1$ su ofuser Password: su: incorrect password bash-4.1$ I used the password ofuser2015 and Ofuser2015. Both did not work. When I used the latest attached script I do not need to change users "Name". any clue? thanks, Azaria |
|
May 7, 2016, 16:39 |
|
#30 |
Senior Member
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11 |
Hi Azaria
1)Before launching script, make sure to run command docker rm -f of_v3.0_plus to make sure you have deleted old container. 2. )please note that with latest script you do not need to login as ofuser.. 3) command "echo $USER", will throw user name as docker.. check this please 4) run this command "mkdir -p $FOAM_RUN" and see whether there is permission issue . 5)Login as root ie su root and use password 0fuser2015 ... |
|
May 8, 2016, 12:13 |
|
#31 |
New Member
Florida
Join Date: Jun 2015
Posts: 10
Rep Power: 11 |
Dear pgh,
I have run the cavity tutorial successfully. Thank you so much. Azaria |
|
May 13, 2017, 19:26 |
|
#32 |
Member
Join Date: May 2017
Posts: 44
Rep Power: 9 |
Hi Pawan,
I am new to OpenFoam. I installed OPENFOAM for windows-v1612+. I am trying to run the first tutorial. I am in workingDir but when I enter" cp -ar $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity ." I receive the error of permission denied. Please advise. Thanks |
|
May 14, 2017, 23:32 |
|
#33 |
Member
Join Date: May 2017
Posts: 44
Rep Power: 9 |
I finally solved the issue. uninstall the whole thing, activate windows module installer, check for updates for windows and reinstall the openFoam and the problem resolved.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
big difference between clockTime and executionTime | LM4112 | OpenFOAM Running, Solving & CFD | 21 | February 15, 2019 04:05 |
Gmsh installation on terminal help | spitfire | Main CFD Forum | 4 | July 27, 2017 16:11 |
[Other] How to create an MRF zone ? | aminem | OpenFOAM Meshing & Mesh Conversion | 2 | December 8, 2014 11:45 |
injection problem | Mark New | FLUENT | 0 | August 4, 2013 02:30 |
8x icoFoam speed up with Cufflink CUDA solver library | kmooney | OpenFOAM Running, Solving & CFD | 42 | November 6, 2012 12:37 |