无法在OS X上使用docker连接到X服务器-第二部分 [英] Cannot connect to X server using docker on OS X - Part II

查看:148
本文介绍了无法在OS X上使用docker连接到X服务器-第二部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到的困难与这里表达的困难相同:

2)您建议像运行其他Mac应用程序一样运行paraview(我的是最新的).所以,基本上,要在Applications文件夹中双击paraview?但是,当通过打开"菜单打开foo.foam时,我们只是打开foo.foam并按应用"按钮(会出现错误),还是按照上面的说明实际输入"paraview foo.foam"?如果是后者,则什么也没有发生.我什么都打开不了!

3)如果只打开foo.foam,那之后该怎么办?码头工人甚至怎么意识到这一切?无论如何,当我从docker中键入paraview时(在打开foo.foam之后),我得到了相同的X服务器错误.我没想到会这样!

希望您可以提供更多分步说明?

预先感谢

解决方案

使用OpenFoam的第一步

您已成功遵循有关运行型腔问题的说明,但是您运行最终命令paraview,并吐出有关x服务器不可用的错误.

这是您的工作:

paraview 下载到您的Mac.然后打开一个终端窗口,并cd进入您在其中运行空腔问题的目录.

进入空腔目录后,创建一个新的.foam文件并使用paraview打开它.

$ touch foam.foam
$ open -a paraview foam.foam 

单击该Apply按钮-左侧屏幕的中间.然后,在顶部屏幕上,可以选择诸如压力p和图类型surface之类的内容,并逐步浏览右上方的时间转储(最初,我的网格无法正确渲染,因此我必须取消选择internalMesh,应用,然后选择它并再次应用.)

不是很确定您在看什么吗?这是该问题的教程:
http://www.openfoam.com/documentation/user-guide/cavity.php#x5-40002.1

I'm having the same difficulty as the one expressed here: Cannot connect to X server using docker on OSX

I'm very confused about the recommended instructions in the above link (I'm a novice on docker), and I'm hoping to get clarification about the following:

1) Do we "touch foo.foam" in a regular OS X terminal or do we touch it in the docker terminal; in my case, following "docker run -ti openfoamplus/of_v30plus_rhel66 /bin/bash"

2) You suggest running paraview (mine is the most recent) just like any other Mac app. So, basically, to double-click on paraview in the Applications folder? But when opening foo.foam via the Open Menu do we just open foo.foam and press the Apply button (it gives errors), or do we actually enter "paraview foo.foam" as per your instruction above? If the latter, then nothing really happens; I can't open anything!

3) If we're supposed to just open foo.foam, what do we do after that? How is docker even aware about any of this? Anyway, when I type paraview from within docker (after foo.foam is opened) I get the same X server error. I wouldn't expect otherwise!

Hopefully, you can provide a more step-by-step set of instructions?

Thanks in advance

解决方案

First steps with OpenFoam

You've successfully followed the instructions to run the cavity problem, but you run the final command paraview and the spits back an error about x server being unavailable.

here's what you do:

Download paraview nativly to your mac. Then open up a terminal window and cd into the directory that you ran the cavity problem in. (note sure what directory? jump back to your docker shell and run echo $FOAM_RUN)

Once you're inside the cavity directory, make a new .foam file and open it with paraview.

$ touch foam.foam
$ open -a paraview foam.foam 

Click on that Apply button - middle of the screen on the left. At the top screen you can then select things like pressure p and plot type surface, and step through the time dumps in the upper right (initially my mesh didn't render correctly, so I had to deselect internalMesh, apply, and then select it and apply again).

Not really sure what you're looking at? Here's the tutorial for the problem:
http://www.openfoam.com/documentation/user-guide/cavity.php#x5-40002.1

这篇关于无法在OS X上使用docker连接到X服务器-第二部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆