I have a need to run my backup jobs as a cron job on a machine that does not run XWindows regularly. It took a bit of doing, but I did get it to work. This is all on a pretty bare bones CentOS 6 machine.
First I needed to install enough of X to get the program to run on a remote X server. That took these packages:
yum install gtk2 xorg-x11-xauth xorg-x11-drivers xorg-x11-server-Xorg xorg-x11-xinit iberation-sans-fonts liberation-serif-fonts mesa-dri-drivers
Then the xvfb package:
rpm -ivh ftp://ftp.pbone.net/mirror/ftp.scientif ... 6.i686.rpm
Next I edited the /usr/bin/xvfb-run file to change line 152 that sets AUTHFILE from using tempfile to this:
AUTHFILE=$(mktemp -p "$XVFB_RUN_TMPDIR" Xauthority.XXXXXXXX)
Lastly I needed to put some links into place for libraries that SuperFlexibleSynchronizer needs:
cd /usr/lib
ln -s libcrypto.so.1.0.0 libcrypto.so
ln -s libssl.so.1.0.0 libssl.so
From there you set up your job normally using the GUI. When you are done you can run it from the command line or from cron like this:
/usr/bin/xvfb-run /usr/local/bin/SuperFlexibleSynchronizer /RUNX="JOBNAME" /U /S >/dev/null 2>&1
*Note that you may not have SuperFlexibleSynchronizer in /usr/local/bin, so adjust the path accordingly.
Hope this helps someone,
Warren