When working late at night, I enjoy using the excellent f.lux app. Unfortunately, setting it up on CentOS wasn’t as easy as I’d hoped. Below are the steps I took to get it working.

Step 1 - install dependencies

sudo pip install pexpect
sudo yum install gnome-python2-gconf pyxdg python-appindicator

Step 2 - install f.lux

git clone https://github.com/Kilian/f.lux-indicator-applet.git
cd f.lux-indicator-applet
sudo python setup.py install

Didn’t work for you? Post an issue on this blog’s repo with the steps you had to follow and I’ll add them to this guide.