Skip to content

Commit

Permalink
attempt to run blender gui from within docker
Browse files Browse the repository at this point in the history
  • Loading branch information
drewp committed Jul 25, 2023
1 parent 60c2687 commit d627b82
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions world_export/blender_gui.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
XSOCK=/tmp/.X11-unix
XAUTH=/tmp/.docker.xauth
touch $XAUTH
xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -

exec docker run --gpus all -it -v $XSOCK:$XSOCK:rw -v $XAUTH:$XAUTH:rw \
--device=/dev/dri/card0:/dev/dri/card0 -e DISPLAY=$DISPLAY -e XAUTHORITY=$XAUTH mega_blender blender

0 comments on commit d627b82

Please sign in to comment.