Skip to content

Instantly share code, notes, and snippets.

@sirn
Created June 9, 2014 16:14
Show Gist options
  • Save sirn/03fe4ab2135146853848 to your computer and use it in GitHub Desktop.
Save sirn/03fe4ab2135146853848 to your computer and use it in GitHub Desktop.
Xvfb Scripts
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
DISPLAY=:99
#!/bin/bash
if [ -z "$1" ]; then
echo "`basename $0` {start|stop}"
exit
fi
case "$1" in
start)
/usr/bin/Xvfb :99 -ac -screen 0 1024x768x8 &
;;
stop)
killall Xvfb
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment