Skip to content

Instantly share code, notes, and snippets.

@marcelog
Last active July 9, 2017 15:58
Show Gist options
  • Save marcelog/2fdaa6b530b478c943e032a4025a8481 to your computer and use it in GitHub Desktop.
Save marcelog/2fdaa6b530b478c943e032a4025a8481 to your computer and use it in GitHub Desktop.
Preparing the daemontools service for running an android emulator instance
#!/bin/bash
mkdir /tmp/myemu
cd /tmp/myemu
mkdir log
mkdir env
echo "/home/myemuuser/android-sdk-linux" > env/ANDROID_SDK_ROOT
echo ":0" > env/DISPLAY
echo "/home/myemuuser" > env/HOME
echo "x86_64" > env/HOSTTYPE
echo "linux-gnu"> env/OSTYPE
echo "/bin:/usr/bin:/sbin:/usr/sbin" > env/PATH
echo "none" > env/QEMU_AUDIO_DRV
echo "/bin/bash" > env/SHELL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment