Skip to content

Instantly share code, notes, and snippets.

@rn0
Forked from ypandit/Xvfb.service
Created October 16, 2019 08:52
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 rn0/508182d43238df3a254346aa20bcba3d to your computer and use it in GitHub Desktop.
Save rn0/508182d43238df3a254346aa20bcba3d to your computer and use it in GitHub Desktop.
Xvfb as a systemd service

To get Xvfb running on CentOS-7

  • yum install xorg-x11-server-Xvfb

  • Copy Xvfb.service file under /etc/systemd/system/

  • chmod +x /etc/systemd/system/Xvfb.service

  • systemctl enable Xvfb.service

  • systemctl start Xvfb.service

[Unit]
Description=X Virtual Frame Buffer Service
After=network.target
[Service]
ExecStart=/usr/bin/Xvfb :99 -screen 0 1024x768x24
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment