Saturday 25 July 2020

Save Your eyes! How to Install Flux on Ubuntu (DDe)

fluxgui

$sudo apt-get install python3-pexpect python3-distutils gir1.2-appindicator3-0.1 gir1.2-gtk-3.0
Reading package lists... Done
Building dependency tree      
Reading state information... Done
gir1.2-appindicator3-0.1 is already the newest version (12.10.1+20.04.20200408.1-0ubuntu1).
gir1.2-appindicator3-0.1 set to manually installed.
python3-pexpect is already the newest version (4.6.0-1build1).
python3-pexpect set to manually installed.
gir1.2-gtk-3.0 is already the newest version (3.24.20-0ubuntu1).
gir1.2-gtk-3.0 set to manually installed.
The following packages were automatically installed and are no longer required:
  libegl1-mesa libllvm9
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  python3-distutils
0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
Need to get 140 kB of archives.
After this operation, 717 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 python3-distutils all 3.8.2-1ubuntu1 [140 kB]
Fetched 140 kB in 3s (43,2 kB/s)           
Selecting previously unselected package python3-distutils.
(Reading database ... 300314 files and directories currently installed.)
Preparing to unpack .../python3-distutils_3.8.2-1ubuntu1_all.deb ...
Unpacking python3-distutils (3.8.2-1ubuntu1) ...
Setting up python3-distutils (3.8.2-1ubuntu1) ...

dhwan@dhwan-Aspire-A514-51K:~$ cd /tmp
dhwan@dhwan-Aspire-A514-51K:/tmp$ git clone "https://github.com/xflux-gui/fluxgui.git"

Command 'git' not found, but can be installed with:

sudo apt install git

dhwan@dhwan-Aspire-A514-51K:/tmp$ sudo apt install git
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libegl1-mesa libllvm9
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  git-man liberror-perl
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs
  git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 8 not upgraded.
Need to get 5.464 kB of archives.
After this operation, 38,4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 liberror-perl all 0.17029-1 [26,5 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 git-man all 1:2.25.1-1ubuntu3 [884 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/main amd64 git amd64 1:2.25.1-1ubuntu3 [4.554 kB]
Fetched 5.464 kB in 24s (232 kB/s)                                                         
Selecting previously unselected package liberror-perl.
(Reading database ... 300371 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17029-1_all.deb ...
Unpacking liberror-perl (0.17029-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.25.1-1ubuntu3_all.deb ...
Unpacking git-man (1:2.25.1-1ubuntu3) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.25.1-1ubuntu3_amd64.deb ...
Unpacking git (1:2.25.1-1ubuntu3) ...
Setting up liberror-perl (0.17029-1) ...
Setting up git-man (1:2.25.1-1ubuntu3) ...
Setting up git (1:2.25.1-1ubuntu3) ...
Processing triggers for man-db (2.9.1-1) ...

dhwan@dhwan-Aspire-A514-51K:/tmp$ git clone "https://github.com/xflux-gui/fluxgui.git"
Cloning into 'fluxgui'...
remote: Enumerating objects: 31, done.
remote: Counting objects: 100% (31/31), done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 1434 (delta 10), reused 14 (delta 4), pack-reused 1403
Receiving objects: 100% (1434/1434), 1.54 MiB | 364.00 KiB/s, done.
Resolving deltas: 100% (684/684), done.

dhwan@dhwan-Aspire-A514-51K:/tmp$ cd fluxgui
dhwan@dhwan-Aspire-A514-51K:/tmp/fluxgui$ ./download-xflux.py
Downloading 64-bit xflux ...
--2020-07-25 22:26:46--  https://justgetflux.com/linux/xflux64.tgz
Resolving justgetflux.com (justgetflux.com)... 216.176.200.22
Connecting to justgetflux.com (justgetflux.com)|216.176.200.22|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 339845 (332K) [application/octet-stream]
Saving to: ‘/tmp/xflux.tgz’

/tmp/xflux.tgz          100%[============================>] 331,88K  89,2KB/s    in 3,7s   

2020-07-25 22:26:54 (89,2 KB/s) - ‘/tmp/xflux.tgz’ saved [339845/339845]

xflux
--2020-07-25 22:26:54--  https://justgetflux.com/linux/xflux11.tgz
Resolving justgetflux.com (justgetflux.com)... 216.176.200.22
Connecting to justgetflux.com (justgetflux.com)|216.176.200.22|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 340420 (332K) [application/octet-stream]
Saving to: ‘/tmp/xflux.tgz’

/tmp/xflux.tgz          100%[============================>] 332,44K   341KB/s    in 1,0s   

2020-07-25 22:26:56 (341 KB/s) - ‘/tmp/xflux.tgz’ saved [340420/340420]

xflux11
--2020-07-25 22:26:56--  https://justgetflux.com/linux/xflux12.tgz
Resolving justgetflux.com (justgetflux.com)... 216.176.200.22
Connecting to justgetflux.com (justgetflux.com)|216.176.200.22|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 340461 (332K) [application/octet-stream]
Saving to: ‘/tmp/xflux.tgz’

/tmp/xflux.tgz          100%[============================>] 332,48K  41,6KB/s    in 8,0s   

2020-07-25 22:27:06 (41,6 KB/s) - ‘/tmp/xflux.tgz’ saved [340461/340461]

xflux12
dhwan@dhwan-Aspire-A514-51K:/tmp/fluxgui$ sudo ./setup.py install --record installed.txt
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/fluxgui
copying src/fluxgui/exceptions.py -> build/lib/fluxgui
copying src/fluxgui/fluxcontroller.py -> build/lib/fluxgui
copying src/fluxgui/settings.py -> build/lib/fluxgui
copying src/fluxgui/xfluxcontroller.py -> build/lib/fluxgui
copying src/fluxgui/fluxapp.py -> build/lib/fluxgui
copying src/fluxgui/__init__.py -> build/lib/fluxgui
copying src/fluxgui/preferences.glade -> build/lib/fluxgui
running build_scripts
creating build/scripts-3.8
copying and adjusting fluxgui -> build/scripts-3.8
changing mode of build/scripts-3.8/fluxgui from 644 to 755
running install_lib
creating /usr/local/lib/python3.8/dist-packages/fluxgui
copying build/lib/fluxgui/exceptions.py -> /usr/local/lib/python3.8/dist-packages/fluxgui
copying build/lib/fluxgui/fluxcontroller.py -> /usr/local/lib/python3.8/dist-packages/fluxgui
copying build/lib/fluxgui/preferences.glade -> /usr/local/lib/python3.8/dist-packages/fluxgui
copying build/lib/fluxgui/settings.py -> /usr/local/lib/python3.8/dist-packages/fluxgui
copying build/lib/fluxgui/xfluxcontroller.py -> /usr/local/lib/python3.8/dist-packages/fluxgui
copying build/lib/fluxgui/fluxapp.py -> /usr/local/lib/python3.8/dist-packages/fluxgui
copying build/lib/fluxgui/__init__.py -> /usr/local/lib/python3.8/dist-packages/fluxgui
byte-compiling /usr/local/lib/python3.8/dist-packages/fluxgui/exceptions.py to exceptions.cpython-38.pyc
byte-compiling /usr/local/lib/python3.8/dist-packages/fluxgui/fluxcontroller.py to fluxcontroller.cpython-38.pyc
byte-compiling /usr/local/lib/python3.8/dist-packages/fluxgui/settings.py to settings.cpython-38.pyc
byte-compiling /usr/local/lib/python3.8/dist-packages/fluxgui/xfluxcontroller.py to xfluxcontroller.cpython-38.pyc
byte-compiling /usr/local/lib/python3.8/dist-packages/fluxgui/fluxapp.py to fluxapp.cpython-38.pyc
byte-compiling /usr/local/lib/python3.8/dist-packages/fluxgui/__init__.py to __init__.cpython-38.pyc
running install_scripts
copying build/scripts-3.8/fluxgui -> /usr/local/bin
changing mode of /usr/local/bin/fluxgui to 755
running install_data
creating /usr/local/share/icons
creating /usr/local/share/icons/hicolor
creating /usr/local/share/icons/hicolor/16x16
creating /usr/local/share/icons/hicolor/16x16/apps
copying icons/hicolor/16x16/apps/fluxgui.svg -> /usr/local/share/icons/hicolor/16x16/apps
creating /usr/local/share/icons/hicolor/22x22
creating /usr/local/share/icons/hicolor/22x22/apps
copying icons/hicolor/22x22/apps/fluxgui.svg -> /usr/local/share/icons/hicolor/22x22/apps
creating /usr/local/share/icons/hicolor/24x24
creating /usr/local/share/icons/hicolor/24x24/apps
copying icons/hicolor/24x24/apps/fluxgui.svg -> /usr/local/share/icons/hicolor/24x24/apps
creating /usr/local/share/icons/hicolor/32x32
creating /usr/local/share/icons/hicolor/32x32/apps
copying icons/hicolor/32x32/apps/fluxgui.svg -> /usr/local/share/icons/hicolor/32x32/apps
creating /usr/local/share/icons/hicolor/48x48
creating /usr/local/share/icons/hicolor/48x48/apps
copying icons/hicolor/48x48/apps/fluxgui.svg -> /usr/local/share/icons/hicolor/48x48/apps
creating /usr/local/share/icons/hicolor/64x64
creating /usr/local/share/icons/hicolor/64x64/apps
copying icons/hicolor/64x64/apps/fluxgui.svg -> /usr/local/share/icons/hicolor/64x64/apps
creating /usr/local/share/icons/hicolor/96x96
creating /usr/local/share/icons/hicolor/96x96/apps
copying icons/hicolor/96x96/apps/fluxgui.svg -> /usr/local/share/icons/hicolor/96x96/apps
creating /usr/local/share/icons/ubuntu-mono-dark
creating /usr/local/share/icons/ubuntu-mono-dark/status
creating /usr/local/share/icons/ubuntu-mono-dark/status/16
copying icons/ubuntu-mono-dark/status/16/fluxgui-panel.svg -> /usr/local/share/icons/ubuntu-mono-dark/status/16
creating /usr/local/share/icons/ubuntu-mono-dark/status/22
copying icons/ubuntu-mono-dark/status/22/fluxgui-panel.svg -> /usr/local/share/icons/ubuntu-mono-dark/status/22
creating /usr/local/share/icons/ubuntu-mono-dark/status/24
copying icons/ubuntu-mono-dark/status/24/fluxgui-panel.svg -> /usr/local/share/icons/ubuntu-mono-dark/status/24
creating /usr/local/share/icons/ubuntu-mono-light
creating /usr/local/share/icons/ubuntu-mono-light/status
creating /usr/local/share/icons/ubuntu-mono-light/status/16
copying icons/ubuntu-mono-light/status/16/fluxgui-panel.svg -> /usr/local/share/icons/ubuntu-mono-light/status/16
creating /usr/local/share/icons/ubuntu-mono-light/status/22
copying icons/ubuntu-mono-light/status/22/fluxgui-panel.svg -> /usr/local/share/icons/ubuntu-mono-light/status/22
creating /usr/local/share/icons/ubuntu-mono-light/status/24
copying icons/ubuntu-mono-light/status/24/fluxgui-panel.svg -> /usr/local/share/icons/ubuntu-mono-light/status/24
creating /usr/local/share/icons/Adwaita
creating /usr/local/share/icons/Adwaita/16x16
creating /usr/local/share/icons/Adwaita/16x16/status
copying icons/Adwaita/16x16/status/fluxgui-panel.svg -> /usr/local/share/icons/Adwaita/16x16/status
creating /usr/local/share/icons/breeze
creating /usr/local/share/icons/breeze/status
creating /usr/local/share/icons/breeze/status/22
copying icons/breeze/status/22/fluxgui-panel.svg -> /usr/local/share/icons/breeze/status/22
creating /usr/local/share/icons/breeze-dark
creating /usr/local/share/icons/breeze-dark/status
creating /usr/local/share/icons/breeze-dark/status/22
copying icons/breeze-dark/status/22/fluxgui-panel.svg -> /usr/local/share/icons/breeze-dark/status/22
creating /usr/local/share/icons/elementary
creating /usr/local/share/icons/elementary/status
creating /usr/local/share/icons/elementary/status/24
copying icons/elementary/status/24/fluxgui-panel.svg -> /usr/local/share/icons/elementary/status/24
creating /usr/local/share/icons/elementary-xfce
creating /usr/local/share/icons/elementary-xfce/panel
creating /usr/local/share/icons/elementary-xfce/panel/22
copying icons/elementary-xfce/panel/22/fluxgui-panel.svg -> /usr/local/share/icons/elementary-xfce/panel/22
creating /usr/local/share/icons/elementary-xfce-dark
creating /usr/local/share/icons/elementary-xfce-dark/panel
creating /usr/local/share/icons/elementary-xfce-dark/panel/22
copying icons/elementary-xfce-dark/panel/22/fluxgui-panel.svg -> /usr/local/share/icons/elementary-xfce-dark/panel/22
creating /usr/local/share/applications
copying desktop/fluxgui.desktop -> /usr/local/share/applications
creating /usr/local/share/glib-2.0
creating /usr/local/share/glib-2.0/schemas
copying apps.fluxgui.gschema.xml -> /usr/local/share/glib-2.0/schemas
copying xflux -> /usr/local/bin
compiling gsettings schemas; set DISABLE_GSCHEMAS_COMPILED env var to disable
glib-compile-schemas /usr/local/share/glib-2.0/schemas
running install_egg_info
Writing /usr/local/lib/python3.8/dist-packages/f.lux_indicator_applet-1.2.1_pre.egg-info
writing list of installed files to 'installed.txt'
dhwan@dhwan-Aspire-A514-51K:/tmp/fluxgui$ fluxgui
/usr/local/lib/python3.8/dist-packages/fluxgui/fluxapp.py:3: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk as gtk
/usr/local/lib/python3.8/dist-packages/fluxgui/fluxapp.py:4: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.
  from gi.repository import AppIndicator3 as appindicator

akan muncul jendela fluxgui

fluxgui


Masukkan latitude daan longitude (opsional) tempat tinggal saya.

Zip Code dihilangkan saja.

Tersedia 6 Nightime color temperature:
  1. 200 K
  2. 2300 K
  3. 2700 K
  4. 3400 K
  5. 4200 K
  6. 5000 K
Berikut tampilan layar laptop saya setelah menjalankan fluxgui dengan warna suhu 2700K:

warna nightime tungsten







Share:

0 comments:

Post a Comment