ubuntu安装护眼RedShift

举报
孙中明 发表于 2022/01/22 23:47:41 2022/01/22
【摘要】   原本打算使用flux的 但是在多次尝试无果下 退而求次    但是 好在这个可以正常运行就是启动的时候稍微麻烦了   进入正题     sudo apt-get install redshift 正在读取软件包列表... 完成正在分析软件包的依赖关系树 ...

 

原本打算使用flux的 但是在多次尝试无果下 退而求次 

 

但是 好在这个可以正常运行就是启动的时候稍微麻烦了

 

进入正题

 

 

sudo apt-get install redshift


  
  1. 正在读取软件包列表... 完成
  2. 正在分析软件包的依赖关系树
  3. 正在读取状态信息... 完成
  4. redshift 已经是最新版 (1.10-5ubuntu1)。
  5. 下列软件包是自动安装的并且现在不需要了:
  6. 0ad-data 0ad-data-common fonts-sil-gentium fonts-sil-gentium-basic
  7. fonts-texgyre frozen-bubble-data gtk2-engines-pixbuf ioquake3
  8. ioquake3-server libalien-sdl-perl libcapture-tiny-perl
  9. libclass-inspector-perl libcompress-bzip2-perl libenet7
  10. libfile-sharedir-perl libfile-which-perl libgloox13v5 libgtkhotkey1
  11. libmikmod3 libnvtt2 libopusfile0 libqupzilla1 libsdl-gfx1.2-5
  12. libsdl-mixer1.2 libsdl-pango1 libsdl-perl libsdl-ttf2.0-0 libtie-simple-perl
  13. linux-headers-4.10.0-28 linux-headers-4.10.0-28-generic
  14. linux-headers-4.13.0-26 linux-headers-4.13.0-26-generic
  15. linux-image-4.10.0-28-generic linux-image-4.13.0-26-generic
  16. linux-image-extra-4.10.0-28-generic linux-image-extra-4.13.0-26-generic
  17. openarena-081-maps openarena-081-misc openarena-081-players
  18. openarena-081-players-mature openarena-081-textures openarena-085-data
  19. openarena-088-data openarena-data openarena-oacmp1
  20. 使用'sudo apt autoremove'来卸载它(它们)。
  21. 升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 215 个软件包未被升级。

 

sudo apt-get install redshift-gtk


  
  1. 正在读取软件包列表... 完成
  2. 正在分析软件包的依赖关系树
  3. 正在读取状态信息... 完成
  4. 下列软件包是自动安装的并且现在不需要了:
  5. 0ad-data 0ad-data-common fonts-sil-gentium fonts-sil-gentium-basic
  6. fonts-texgyre frozen-bubble-data gtk2-engines-pixbuf ioquake3
  7. ioquake3-server libalien-sdl-perl libcapture-tiny-perl
  8. libclass-inspector-perl libcompress-bzip2-perl libenet7
  9. libfile-sharedir-perl libfile-which-perl libgloox13v5 libgtkhotkey1
  10. libmikmod3 libnvtt2 libopusfile0 libqupzilla1 libsdl-gfx1.2-5
  11. libsdl-mixer1.2 libsdl-pango1 libsdl-perl libsdl-ttf2.0-0 libtie-simple-perl
  12. linux-headers-4.10.0-28 linux-headers-4.10.0-28-generic
  13. linux-headers-4.13.0-26 linux-headers-4.13.0-26-generic
  14. linux-image-4.10.0-28-generic linux-image-4.13.0-26-generic
  15. linux-image-extra-4.10.0-28-generic linux-image-extra-4.13.0-26-generic
  16. openarena-081-maps openarena-081-misc openarena-081-players
  17. openarena-081-players-mature openarena-081-textures openarena-085-data
  18. openarena-088-data openarena-data openarena-oacmp1
  19. 使用'sudo apt autoremove'来卸载它(它们)。
  20. 下列【新】软件包将被安装:
  21. redshift-gtk
  22. 升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 215 个软件包未被升级。
  23. 需要下载 30.3 kB 的归档。
  24. 解压缩后会消耗 454 kB 的额外空间。
  25. 获取:1 http://cn.archive.ubuntu.com/ubuntu xenial/universe amd64 redshift-gtk all 1.10-5ubuntu1 [30.3 kB]
  26. 已下载 30.3 kB,耗时 1秒 (29.6 kB/s)
  27. 正在选中未选择的软件包 redshift-gtk。
  28. (正在读取数据库 ... 系统当前共安装有 315341 个文件和目录。)
  29. 正准备解包 .../redshift-gtk_1.10-5ubuntu1_all.deb ...
  30. 正在解包 redshift-gtk (1.10-5ubuntu1) ...
  31. 正在处理用于 hicolor-icon-theme (0.15-0ubuntu1) 的触发器 ...
  32. 正在处理用于 man-db (2.7.5-1) 的触发器 ...
  33. 正在处理用于 gnome-menus (3.13.3-6ubuntu3.1) 的触发器 ...
  34. 正在处理用于 desktop-file-utils (0.22-1ubuntu5.1) 的触发器 ...
  35. 正在处理用于 bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) 的触发器 ...
  36. Rebuilding /usr/share/applications/bamf-2.index...
  37. 正在处理用于 mime-support (3.59ubuntu1) 的触发器 ...
  38. 正在设置 redshift-gtk (1.10-5ubuntu1) ...

 

redshift-gtk -l 39.92:116.46 -t 5500:2500


  
  1. /usr/lib/python3/dist-packages/redshift_gtk/statusicon.py:32: 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.
  2. from gi.repository import Gtk, GLib, GObject
  3. /usr/lib/python3/dist-packages/redshift_gtk/statusicon.py:35: 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.
  4. from gi.repository import AppIndicator3 as appindicator
  5. Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

 

 

 

注意事项:

 

redshift-gtk -l 39.92:116.46 -t 5500:2500

这条命令的意思是手动将经纬度设定在’39.92:116.46’(北京)

并且调整白天色温为 5500K,夜晚 2500K。

终端最好不要关闭 即使在命令后面加个"&" 也没法使软件在后台运行

我试了一下 ctrl + C  取消后 护眼色还在 


  
  1. ➜ ~ redshift-gtk -l 39.92:116.46 -t 3500:2500
  2. /usr/lib/python3/dist-packages/redshift_gtk/statusicon.py:32: 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.
  3. from gi.repository import Gtk, GLib, GObject
  4. /usr/lib/python3/dist-packages/redshift_gtk/statusicon.py:35: 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.
  5. from gi.repository import AppIndicator3 as appindicator
  6. ^C%
/usr/lib/python3/dist-packages/redshift_gtk/statusicon.py:32: 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, GLib, GObject /usr/lib/python3/dist-packages/redshift_gtk/statusicon.py:35: 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 ^C%

 

 

 

 

文章来源: hiszm.blog.csdn.net,作者:孙中明,版权归原作者所有,如需转载,请联系作者。

原文链接:hiszm.blog.csdn.net/article/details/80457562

【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。