Skip to content

Instantly share code, notes, and snippets.

@utsavkesharwani
Forked from dloman/xvfb.service
Created April 17, 2018 13:47
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 utsavkesharwani/dbd40ddff1ffcf0d302c6aa1fadd6136 to your computer and use it in GitHub Desktop.
Save utsavkesharwani/dbd40ddff1ffcf0d302c6aa1fadd6136 to your computer and use it in GitHub Desktop.
sytemd xvfb
[Unit]
Description=X Virtual Frame Buffer Service
After=network.target
[Service]
ExecStart=/usr/bin/Xvfb :1 -screen 0 1024x768x24 -ac +extension GLX +render -noreset
[Install]
WantedBy=multi-user.target
@utsavkesharwani
Copy link
Author

copy this file into /etc/systemd/system/xvfb.service

then run

sudo systemctl enable /etc/systemd/system/xvfb.service

then to start xvfb run:

sudo systemctl start xvfb.service

and to stop xvfb run:

sudo systemctl stop xvfb.service

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