Skip to content

Instantly share code, notes, and snippets.

@stomita
Created March 6, 2012 05:53
Show Gist options
  • Save stomita/1983913 to your computer and use it in GitHub Desktop.
Save stomita/1983913 to your computer and use it in GitHub Desktop.
#!/bin/sh
if ! [ -e $HOME/.root/tmp/.X1-lock ]; then
echo "X server not started. Starting..."
fakesu -c "Xvfb :1 -screen 0 1024x768x24 -nolisten tcp -shmem" &
fi
fakesu -c "phantomexec.sh $PWD $@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment