Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step-by-step description of how to run the observer on OS X #41

Open
futtetennista opened this issue Apr 10, 2017 · 7 comments
Open

Step-by-step description of how to run the observer on OS X #41

futtetennista opened this issue Apr 10, 2017 · 7 comments

Comments

@futtetennista
Copy link

futtetennista commented Apr 10, 2017

The steps described here didn't work for me and it took me quite a bit of fiddling and duckduckgoing around to make the observer work on my machine - I'm running OS X v10.12.3 (16D32). Here's a step-by-step description - mostly take from here - that can be added to the README if you feel it'll help people:

  • Make sure the version of the docker image of erlang is >= 19.2
  • Install XQuartz if not already installed: brew install xquartz (at the time of writing the latest version I installed is 2.7.11)
  • Run XQuartz
  • Update preferences 'Security' tab - turn on 'Allow connection from network clients'
  • Restart XQuartz and then check to see that it is listening on port 6000: lsof -i :6000
  • Get your local machine's IP: ip=$(ipconfig getifaddr en0) && echo "My IP is: " + $ip
  • In the XQuartz terminal run: xhost + xxx.xxx.xxx.xxx. The output should be something like: xxx.\ xxx.xxx.xxx being added to access control list
  • Run the docker container: docker run -it --rm -e DISPLAY=${ip}:0 -v /tmp/.X11-unix:/tmp/.X11-unix erlang
@c0b
Copy link
Collaborator

c0b commented Apr 14, 2017

possibly this need special attention; sorry, since I have re-installed Linux on the Mac hardware running natively, I no longer have the osx; will probably find another osx environment soon

@sdwolfz
Copy link

sdwolfz commented Apr 14, 2017

👍 for duckduckgoing 😄 .
Just curious, does DISPLAY work for you with localhost:0 instead of the ip?

@futtetennista
Copy link
Author

futtetennista commented Apr 14, 2017 via email

@marnen
Copy link

marnen commented Mar 4, 2018

According to https://docs.docker.com/docker-for-mac/networking/, it looks like docker.for.mac.host.internal should always resolve to the host's IP address, but I haven't had a chance to try it yet.

@marnen
Copy link

marnen commented Mar 4, 2018

docker.for.mac.host.internal isn't working for me, but the special address 192.168.65.1 appears to be (and I don't need to add anything with xhost). Unfortunately, I'm having a (presumably unrelated) issue where the WX observer app ran once, but has hung every time since.

@drozzy
Copy link

drozzy commented Mar 9, 2018

@futtetennista It should be brew cask install xquartz (you missed cask)

@ghost
Copy link

ghost commented Jun 8, 2019

Never run observer on the Erlang VM which you are running work on - observer crashes all the time and frequently takes down the VM. What's safer is to start a distributed Erlang node, run observer on it, and connect to the VM you want to observe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants