A PCRE internal error occured. This might be caused by a faulty plugin
====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tricks:xflux [2016/11/05 01:48] admin [Binary Installation] |
tricks:xflux [2016/11/05 02:26] admin [User Interface [Xflux]] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======f.lux / Xflux====== | + | ====== f.lux / Xflux ====== |
A [[http://www.pnas.org/content/112/4/1232.full.pdf+html|PNAS study]] demonstrates that the blue color emitted by most computer (and tablet's) screens is affecting sleep. | A [[http://www.pnas.org/content/112/4/1232.full.pdf+html|PNAS study]] demonstrates that the blue color emitted by most computer (and tablet's) screens is affecting sleep. | ||
To circumvent this negative effect, a small but efficient little software called f.lux is coming to the rescue. It is available here: [[https://justgetflux.com]]. | To circumvent this negative effect, a small but efficient little software called f.lux is coming to the rescue. It is available here: [[https://justgetflux.com]]. | ||
- | ---- | + | ===== f.lux Binary Installation===== |
- | =====Binary Installation===== | + | |
- | To get f.lux installed on Debian the information available on the site itself isn't sufficient, as you only get the information about how to install it on Ubuntu using a ppa. To get it working on Debian 7 (Jessie), here is what to do: | + | To get f.lux installed on Debian the information available on the site itself isn't sufficient, as you only get the information about how to install it on Ubuntu using a ppa. To get it working on Debian 7 [Wheezy] (or Debian 8 Jessie/LMDE 2 Betsie), here is what to do: |
- | * Download the 64 bit archive | + | * Download the 64 bit archive ([[https://justgetflux.com/linux/xflux64.tgz|download]] - or check the [[https://justgetflux.com/linux.html|official f.lux page]]) |
* Unpack it | * Unpack it | ||
* Put it in /usr/local/bin | * Put it in /usr/local/bin | ||
Line 16: | Line 15: | ||
> wget https://justgetflux.com/linux/xflux64.tgz | > wget https://justgetflux.com/linux/xflux64.tgz | ||
> tar -xvzf xflux64.tgz | > tar -xvzf xflux64.tgz | ||
- | > sudo mv xflux /usr/local/bin | + | > sudo mv xflux /usr/local/bin/ |
- | > /usr/local/bin/xflux -l 50.5 -g 23.5 | + | > /usr/local/bin/xflux -l 50.8 -g 4.4 |
</code> | </code> | ||
Your screen will now shift it's white point color temperature, colder (more blue) during the day and warmer (more red) at night. | Your screen will now shift it's white point color temperature, colder (more blue) during the day and warmer (more red) at night. | ||
- | To get your local coordinates, you could use "google maps" on your smartphone, locate your current position, pin it and then share it via sms. You'll have a "goo.gl/maps/....." type URL. Type this URL in a browser and, there you are, the latitude and longitude of your location will be displayed. | + | The coordinates in the example above are for Europe/Belgium/Brussels, to get your local coordinates, you could use [[https://www.google.com|google maps]], right click on your location and select "What's here?". A window will pop with the selected location's latitude and longitude. Only one decimal will be pertinent to f.Lux. |
+ | ===== User Interface [Xflux] ===== | ||
- | ---- | + | There is a Debian compatible GUI for f.lux, called Xflux, written in Python, that's available [[https://github.com/xflux-gui/xflux-gui|on GitHub]]. |
- | =====User Interface===== | + | |
- | There is a Debian compatible GUI for f.lux, written in Python, that's available on GitHub [[https://github.com/xflux-gui/xflux-gui|here]]. | + | You're invited to consult the full README.md file related to this project, but as a summary, here are the steps to install it: |
- | + | ||
- | You're invited to read the README.md file about this project, but as a summary, here are the steps to install it: | + | |
<Code> | <Code> | ||
- | > | + | # Install dependencies |
+ | > sudo apt-get install git python-appindicator python-xdg python-pexpect python-gconf python-gtk2 python-glade2 libxxf86vm1 | ||
+ | |||
+ | # Download xflux-gui | ||
+ | > cd /tmp | ||
+ | > git clone "https://github.com/xflux-gui/xflux-gui.git" | ||
+ | > cd xflux-gui | ||
+ | > python download-xflux.py | ||
+ | |||
+ | # EITHER install globally | ||
+ | > sudo python setup.py install | ||
+ | |||
+ | # OR, install in your home directory | ||
+ | > python setup.py install --user | ||
+ | |||
+ | # Run flux | ||
+ | > fluxgui | ||
+ | |||
+ | # To uninstall: | ||
+ | > sudo rm -rf /usr/local/lib/python2.7/dist-packages/{fluxgui/,f.lux_indicator*} | ||
+ | > sudo rm /usr/local/share/icons/hicolor/scalable/apps/fluxgui.* | ||
+ | > sudo rm /usr/local/share/applications/fluxgui.desktop | ||
+ | > sudo rm /usr/local/bin/{xflux,fluxgui} | ||
+ | > rm -rf ~/.gconf/apps/fluxgui/ | ||
</Code> | </Code> | ||