Last active
January 31, 2016 07:59
-
-
Save devopsmariocom/95ea913714e9dc6c8b81 to your computer and use it in GitHub Desktop.
Setup Centos 6 with Firefox using Xvfb for karma testing
This file contains hidden or 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
# Install necessary software | |
sudo yum install firefox xorg-x11-server-Xvfb dbus -y | |
# Set DISPLAY id, should go to /etc/profile.d/xvfb.sh | |
export DISPLAY=:99 | |
# Generate machine id if doesn't already generated in /var/lib/dbus/machine-id | |
sudo /bin/dbus-uuidgen --ensure | |
# Download xvfb to /etc/init.d/xvfb | |
sudo curl https://gist.githubusercontent.com/elmariofredo/6f55d65e5c5a5e9d995b/raw/6fb3104d3d9c5dec43a79be25fe4cb7ce7091b79/xvfb -o /etc/init.d/xvfb | |
# Make init script executable | |
sudo chmod +x /etc/init.d/xvfb | |
# Add to init | |
sudo /sbin/chkconfig --add xvfb | |
# Start xvfb service | |
service xvfb start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment