Skip to content

Instantly share code, notes, and snippets.

@0atman
Created October 31, 2012 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0atman/3987567 to your computer and use it in GitHub Desktop.
Save 0atman/3987567 to your computer and use it in GitHub Desktop.
#!/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
@0atman
Copy link
Author

0atman commented Oct 31, 2012

This file is /etc/init.d/xvfb, chmod'd to 755
to start at startup: sudo update-rc.d xvfb defaults 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment