-
-
Save 0atman/3987567 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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
This file is /etc/init.d/xvfb, chmod'd to 755
to start at startup: sudo update-rc.d xvfb defaults 10