Created
July 8, 2015 17:07
-
-
Save jzfgo/91006178753df6f503c1 to your computer and use it in GitHub Desktop.
Manage Xvfb (Virtual Framebuffer X Server) as a service for systemd based distros (CentOS 7, Ubuntu 15...)
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
[Unit] | |
Description=Virtual Frame Buffer X Server | |
After=network.target | |
[Service] | |
ExecStart=/usr/bin/Xvfb :42 -screen 0 1x1x24 -ac +extension GLX +render -noreset | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/etc/systemd/system/xvfb.service
sudo systemctl enable xvfb.service
sudo systemctl start xvfb.service
sudo systemctl status xvfb.service
. You should see something like:More info on Xvfb options:
Based on:
http://askubuntu.com/a/621256
Advanced version (for multiple instances):
http://superuser.com/a/912648