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.shYou 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.55When 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.