Install Xvfb on CentOS
-
yum install xorg-x11-server-Xvfb
-
Copy below to /etc/systemd/system/Xvfb.service
1 2 3 4 5 6 7 8 9
[Unit] Description=X Virtual Frame Buffer Service After=network.target [Service] ExecStart=/usr/bin/Xvfb :99 -screen 0 1024x768x24 [Install] WantedBy=multi-user.target
-
chmod +x /etc/systemd/system/Xvfb.service
-
systemctl enable Xvfb.service
-
systemctl start Xvfb.service