To get Xvfb running on CentOS-7
-
yum install xorg-x11-server-Xvfb -
Copy
Xvfb.servicefile 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 |
It's unnecessary to make it executable
Why do you make the Xvfb.service file executable?