Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
updated start.sh for joystick
Browse files Browse the repository at this point in the history
  • Loading branch information
droter committed Nov 30, 2018
1 parent df4aab9 commit e545cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/start.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is not the safest way however, as you then compromise the access control to X server on your host
xhost +local:root # for the lazy and reckless
docker run -it --env="DISPLAY" --network="host" --privileged -v /dev/bus/usb:/dev/bus/usb --env="QT_X11_NO_MITSHM=1" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" rosagriculture/tractor_sim
docker run -it --env="DISPLAY" --network="host" --privileged -v /dev:/dev --env="QT_X11_NO_MITSHM=1" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" rosagriculture/tractor_sim
export containerId=$(docker ps -l -q)
# Close security hole:
xhost -local:root

0 comments on commit e545cb3

Please sign in to comment.