Installing F.lux on Debian Squeeze

In another feeble attempt to become a “morning person,” I’ve decided to follow the usual advice that I should not be looking at bright LCD screen at night to help myself going into the “sleep mode.”

Hence F.lux.

I want it to launch automatically at the start of a KDE session.

First of all, check the geographical coordinates of your location, perhaps using a search engine like this one.  In my case (Halifax, Canada), the latitude and longitude is 44.65 and -63.6 (in degrees).

Download the Linux binary (i.e., the command-line version) from here.  As of now, this is just a binary and no source codes.  So no compiling is necessary.  Do as:

$ wget
$ tar -xvzf xflux.tgz
$ sudo cp xflux /usr/local/bin
$ sudo chmod 755 /usr/local/bin/xflux

Now the command xflux is available system-wide.

To make it run at the KDE starup, create a shell script (called here like this one:

xflux -l 44.65 -g -63.6

Either place this script manually under ~/.kde/Autostart, or go to KDE menu -> Computer -> System Settings -> Advanced -> Autostart, and add the script there.

If for some reason you need to stop this program, do:

$ kill -9 `pgrep xflux`

Running F.lux on 64-bit Debian Squeeze

I may have problem getting xflux to run at all on a 64-bit machine, possibly seeing a “xflux: No such file or directory” error.  The xflux binary is built against 32-bit libraries:

$ file xflux
xflux: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped

so if I haven’t done so, I need to install 32-bit environment:

$ sudo aptitude install ia32-libs

After this, I should be able to run xflux without problems.

This entry was posted in Uncategorized and tagged , , , , , . Bookmark the permalink.

10 Responses to Installing F.lux on Debian Squeeze

  1. Pingback: Installing Debian Squeeze (AMD64) on Lenovo T410s « Biboroku

  2. John says:

    Ah-ha! I was wondering about the “No such file or directory” error. Thanks very much!

  3. Raghu says:

    Thanks a lot… works like a charm…… Thank you very much….

  4. Exca says:

    Excellent solution ! Thank you !
    Worked on Debian Wheezy 32 bits !

  5. Dom says:

    Thanks for posting this information. For the record, I was getting a SSL error when attempting wget. I had to change it to “https” as opposed to “http” for mine to work.

  6. louis says:

    There is now a 64 bit version :

    no need for ia32 any-more

  7. Marcus says:

    Thanks for the info, the installation works fine but when running it flickers like hell on my screen. Does anyone have the same problem?

    Also, how is the command for adjusting the night-time color?


    • Taro says:

      Marcus — I don’t have the issue myself, but a comment above mentioned that there is a new 64-bit version:

      I would try that first to see.

      I’m not sure about the color adjustment; the only thing you might be able to change is the global color temperature, which you can adjust by the -k switch:

      $ xflux -k 34000

Leave a Reply

Your email address will not be published. Required fields are marked *