Skip to content

Instantly share code, notes, and snippets.

@zerob13
Forked from netgusto/README.md
Created May 10, 2016 02:37
Show Gist options
  • Select an option

  • Save zerob13/987426d3e4a414a5eaba3e8fd49c8444 to your computer and use it in GitHub Desktop.

Select an option

Save zerob13/987426d3e4a414a5eaba3e8fd49c8444 to your computer and use it in GitHub Desktop.

Revisions

  1. Net Gusto revised this gist May 7, 2016. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,9 @@ ubuntu $ apt-get update && apt-get install -y firefox
    ubuntu $ firefox
    ```

    If socat is not installed on your machine, install it with brew: `brew install socat`.
    If socat is not installed on your mac, install it with brew: `brew install socat`.

    If XQuartz is not installed on your mac : https://www.xquartz.org/

    If you get *"Couldn't open libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory"* while running the program (here, firefox) : `apt-get install -y libglu1-mesa`

  2. Net Gusto revised this gist May 7, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    ## Run a graphical app in docker on OSX

    **Replace `192.168.0.5` below by your interface ip**
    **Note: Replace `192.168.0.5` below by your own interface ip**

    ```bash
    mac $ socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
  3. Net Gusto revised this gist May 7, 2016. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,9 @@ ubuntu $ firefox
    ```

    If socat is not installed on your machine, install it with brew: `brew install socat`.

    If you get *"Couldn't open libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory"* while running the program (here, firefox) : `apt-get install -y libglu1-mesa`

    Solution is not secure (publishes a TCP port linking to your X11 display socket).

    Extracted from: https://github.com/docker/docker/issues/8710
  4. Net Gusto revised this gist May 7, 2016. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -7,4 +7,9 @@ mac $ socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
    mac $ docker run --device=/dev/tty0 -e DISPLAY=192.168.0.5:0 -i -t ubuntu /bin/bash
    ubuntu $ apt-get update && apt-get install -y firefox
    ubuntu $ firefox
    ```
    ```

    If socat is not installed on your machine, install it with brew: `brew install socat`.
    Solution is not secure (publishes a TCP port linking to your X11 display socket).

    Extracted from: https://github.com/docker/docker/issues/8710
  5. Net Gusto created this gist May 7, 2016.
    10 changes: 10 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    ## Run a graphical app in docker on OSX

    **Replace `192.168.0.5` below by your interface ip**

    ```bash
    mac $ socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
    mac $ docker run --device=/dev/tty0 -e DISPLAY=192.168.0.5:0 -i -t ubuntu /bin/bash
    ubuntu $ apt-get update && apt-get install -y firefox
    ubuntu $ firefox
    ```