I'm following this tutorial, and I want to know the equivalent centos-version of this ubuntu-specific step:

You may receive a few warnings regarding fonts and such, but it’ll still work despite these. If you want the framebuffer to start automatically on system startup you can do:
sudo update-rc.d xvfb defaults 10

What's the proper way to start xvfb on startup on centos?

link|improve this question

feedback

1 Answer

up vote 4 down vote accepted

I use the following init script to add and start xvfb on boot just blat that in /etc/init.d/ and run chkconfig xvfb on

   #!/bin/bash
   #chkconfig: 345 95 50
   #description: Starts xvfb on display 99
   if [ -z "$1" ]; then
   echo "`basename $0` {start|stop}"
       exit
   fi

   case "$1" in
   start)
       /usr/bin/Xvfb :99 -screen 0 1280x1024x24 &
   ;;

   stop)
       killall Xvfb
   ;;
   esac
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.