Skip to content

Instantly share code, notes, and snippets.

@robertmarsal
Created December 17, 2014 21:09
Show Gist options
  • Star 21 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save robertmarsal/9feaa9150926efa4175a to your computer and use it in GitHub Desktop.
Save robertmarsal/9feaa9150926efa4175a to your computer and use it in GitHub Desktop.
Install f.lux on Ubuntu 14.10
sudo apt-get install python-glade2 python-appindicator
git clone https://github.com/Kilian/f.lux-indicator-applet.git
cd f.lux-indicator-applet
chmod +x setup.py
sudo ./setup.py install
fluxgui
@fracasula
Copy link

Just tested on Ubuntu 15.04 and it worked like a charm 👍

@sanchomuzax
Copy link

On Ubuntu 15.04:

$ fluxgui
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 3, in
from fluxgui import fluxcontroller, settings
File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxcontroller.py", line 1, in
from fluxgui import xfluxcontroller
File "/usr/local/lib/python2.7/dist-packages/fluxgui/xfluxcontroller.py", line 1, in
import pexpect
ImportError: No module named pexpect

@kodeine
Copy link

kodeine commented May 17, 2015

I got the same error as @sanchomuzax on ubuntu 15.04

@ShirajG
Copy link

ShirajG commented May 18, 2015

@kodeine You need to install python-pexpect to resolve the issue @sanchomuzax had

sudo apt-get install python-pexpect

@Frozenfire92
Copy link

Didn't work for me on ubuntu gnome 15.04, said I was missing gconf

@lucnat
Copy link

lucnat commented Jun 11, 2015

@Frozenfire92 you need to install python-gconf as well. Had the same two errors and it's working now.

sudo apt-get install python-gconf

@Frozenfire92
Copy link

Thanks :)

@efstratios
Copy link

Works like a charm on Kubuntu 14.04 [need to install python-gconf as well as @LucNaterop mentioned above] !! thanks a lot 👍

@seliver
Copy link

seliver commented Oct 30, 2015

worked here aswell. Thanks a lot 👍

@worace
Copy link

worace commented Nov 18, 2015

Awesome! Worked for me with the 2 additional in packages mentioned by @lucnaterop and @ShirajG

This was the full process that I used:

sudo apt-get install python-glade2 python-appindicator python-pexpect python-gconf
cd ~/Downloads
git clone https://github.com/Kilian/f.lux-indicator-applet.git
cd f.lux-indicator-applet
chmod +x setup.py
sudo ./setup.py install
fluxgui

@Frozenfire92
Copy link

Anyone upgraded from 15.04 to 15.10 and have this break? Any workarounds?

@Lesterpaintstheworld
Copy link

I'm on 14.04 and I have the same problem even after reinstalling python-pexpect and python-gconf

I think it has to do with the fact that I have both python 2.6 and 2.7 installed.
Would you have any suggestions?

@arvindhmani
Copy link

THANK YOU! Been trying to get f.lux working on my Xubuntu 14.04 setup for a week now, and this one finally worked. You, sir, deserve a few cookies.

@ferstar
Copy link

ferstar commented Jan 23, 2016

THANK YOU! But I met this strage error message on my ThinkPad X220 laptop which runs Ubuntu 14.04 x64 on it:

...
 gtk.gdk.screen_get_default().get_setting('gtk-icon-theme-name')

Error: Please install xflux in the PATH 

Critical error. Exiting.
...

I checked the xflux path use which xflux command and got this message: xflux not found

Then I type ls -l /usr/local/bin/xflux found the xflux program does not got the right privilege.

So I tried this sudo chmod +x /usr/local/bin/xflux and everything is OK.

@kaustavbhattacharjee
Copy link

/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py:100: GtkWarning: Cannot transform xsetting Net/IconThemeName of type gchararray to type GdkColor

  gtk.gdk.screen_get_default().get_setting('gtk-icon-theme-name')
/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py:100: Warning: g_value_unset: assertion 'G_IS_VALUE (value)' failed
  gtk.gdk.screen_get_default().get_setting('gtk-icon-theme-name')
/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py:100: GtkWarning: Cannot transform xsetting Net/IconThemeName of type gchararray to type gint

  gtk.gdk.screen_get_default().get_setting('gtk-icon-theme-name')

Error: Please install xflux in the PATH 

Critical error. Exiting.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 270, in <module>
    app = FluxGUI()
  File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 30, in __init__
    self.exit(1)
  File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 49, in exit
    gtk.main_quit()
RuntimeError: called outside of a mainloop

I was installing on Ubuntu 14.04 LTS and got this error. ANy idea how to resolve this?

@DmitrySandalov
Copy link

I was installing on Ubuntu 14.04 LTS and got this error. ANy idea how to resolve this?

sudo chmod 755 /usr/local/bin/xflux

@mbrav
Copy link

mbrav commented May 1, 2016

@DmitrySandalov Thank you, started working! 👍

@lmiguelvargasf
Copy link

@DmitrySandalov thank you your answer worked for me.

@cehatu
Copy link

cehatu commented May 23, 2016

I have tried to install f.lux on Ubuntu 16.04 LTS and received this error:

fluxgui
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 3, in <module>
    from fluxgui import fluxcontroller, settings
  File "/usr/local/lib/python2.7/dist-packages/fluxgui/settings.py", line 3, in <module>
    from xdg.DesktopEntry import DesktopEntry
ImportError: No module named xdg.DesktopEntry

I am quite new to Ubuntu and have no idea what to make of this. I have already tried the additional packages and fixes mentioned above.

Thanks in advance for your support.

@duyphut
Copy link

duyphut commented May 27, 2016

I have tried to install f.lux on Ubuntu 16.04 LTS and received this error:

fluxgui
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 3, in
from fluxgui import fluxcontroller, settings
File "/usr/local/lib/python2.7/dist-packages/fluxgui/settings.py", line 3, in
from xdg.DesktopEntry import DesktopEntry
ImportError: No module named xdg.DesktopEntry

I am quite new to Ubuntu and have no idea what to make of this. I have already tried the additional packages and fixes mentioned above.

Thanks in advance for your support.
sudo apt-get install python-xdg

@ingadi
Copy link

ingadi commented Jun 26, 2016

Thanks @ferstar works on Ubuntu 16.04 LTS. With mine it was the permissions issues

@asanchezgomez
Copy link

On Ubuntu 16.04 LTS I get this error:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/fluxgui/fluxapp.py", line 3, in <module>
    from fluxgui import fluxcontroller, settings
  File "/usr/local/lib/python2.7/site-packages/fluxgui/fluxcontroller.py", line 1, in <module>
    from fluxgui import xfluxcontroller
  File "/usr/local/lib/python2.7/site-packages/fluxgui/xfluxcontroller.py", line 1, in <module>
    import pexpect
ImportError: No module named pexpect

I've tried with the different solutions postes in this post but it is still not working...

@Xuij
Copy link

Xuij commented Aug 19, 2016

@ferstar recommendation worked perfectly:
sudo chmod +x /usr/local/bin/xflux

@BIgRunner
Copy link

I installed f.lux in Ubuntu14.04, using:
$ sudo add-apt-repository ppa:nathan-renniewaldock/flux
$ sudo apt-get update
$suod apt-get install fluxgui
and then, I started it by
$ fluxgui.
error came up as
"Traceback (most recent call last):
File "/usr/bin/fluxgui", line 17, in
from fluxgui.fluxapp import main
ImportError: cannot import name main"
Any advice to deal with it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment