Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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

Description=X Virtual Frame Buffer Service
ExecStart=/usr/bin/Xvfb :99 -screen 0 1024x768x24
Copy link

sdiepend commented Sep 24, 2020

Why do you make the Xvfb.service file executable?

Copy link

danielmwai commented Jan 15, 2021

It's unnecessary to make it executable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment