Skip to content

Instantly share code, notes, and snippets.

@marcelog
Last active July 9, 2017 15:27
Show Gist options
  • Save marcelog/a3de65c6e1d7f0f3ad8e7180dd6b0f3b to your computer and use it in GitHub Desktop.
Save marcelog/a3de65c6e1d7f0f3ad8e7180dd6b0f3b to your computer and use it in GitHub Desktop.
run file for running an android emulator instance with daemontools
#!/bin/bash
exec 2>&1
# These might be needed for your regular user when running it in a remote system
chmod a+rw /dev/dri/*
chmod a+rw /dev/kvm
chmod a+rw /dev/video0
exec setuidgid myemuuser envdir /etc/service/myemu/env /home/myemuuser/android-sdk-linux/tools/emulator -avd myemu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment