Please feel free to email me with any questions at with "blog" as the subject.

Search my blog:

Loading...

Sunday, 29 August 2010

F.lux . Better lighting for your computer inside linux.

A friend pointed me towards F.Lux to change lighting on my screen depending on what time of day it is. When I had a look F.Lux comes as a tarball so I decided it would be nice to write some instructions on how to install it with a simple script.

Firstly open your editor and paste the following into it:
echo "Downloading F.lux . Please wait........" ;
wget -c https://secure.herf.org/flux/xflux.tgz ;
echo "Installing F.Lux ............." ;
tar -xvzf xflux.tgz ;
rm -rf xflux.tgz ;
sudo cp xflux /usr/bin/ ;
sudo chmod 755 /usr/bin/xflux ;
echo "F.lux installed" ;
echo "Please run 'xflux -l lat lon' replacing lat and lon with your latitude and longitude"

Save the file as "installflux.sh" with out quotes in your home folder.

Now open your shell, Applications>Accessories>Terminal for ubuntu users.

Type:
chmod +x installflux.sh
sh installflux.sh

You will be prompted to enter your 'sudo' password. This is generally the same as your login password. If you don't use sudo please run this script when logged in as root.

Once the script is finished you can remove the script and xflux from your home folder.

Now you can run flux with xflux command, you can also add it to your start up, But first you have to define your zipcode or latitude.Example :

xflux -l 33.55, 44.55

When i am posting this blog post, the f.lux does not support latitude over 60.

Or you can define zipcode -z instead of -l

Now add it to your startup :

System > Preferences > Sessions
(for ubuntu users)

for arch users edit your .xinitrc .

Name : Xflux
Command : xflux -l 33.55, 44.55 (DO NOT FORGET TO CHANGE the latitude or Zip!)
Comment : F.lux , Better lighting For Your Computer

Hope that helped.