Alright, let’s take a quick look at installing xvfb-run on CentOS. I’m currently doing all sorts of experiments and installing all sorts of utilities. With xvfb you can do a lot of cool stuff Xfvb will give you a X server on CentOS that you can run without a display. On a sidenote, there’s a bunch of cool stuff you can do without a display. A lot of programs can be automated. For example a headless browser can be used for web scraping purposes without actually opening the browser via a GUI – this saves a lot of resources and is a lot faster. Steps To Take Anyway, let’s take a quick look how to get this installed 1. Step Enter yum install xorg-x11-server-Xvfb if you’re logged in as root. Not logged in as root? Enter sudo yum install xorg-x11-server-Xvfb And then provide the root password 2. Step Confirm with a y and the installation will proceed 3. Step In a best-case scenario this will install all dependencies – if you get a dependency error, try to google the error message and fix the errors one by one 4. Step Enter whereis xvfb to check the path – it SHOULD be installed in /usr/bin/xvfb-run and Xvfb

分类: web

标签: