当前位置: 首页>>技术问答>>正文


ubuntu 14.04的流量 – 可能吗?

, ,

问题描述

是否有可能使Flux在ubuntu 14.04中运行?如果是这样,也许您可​​以分享您的知识或指向我指导? (Flux是根据一天中的时间调整显示器温度的软件)

最佳解决办法

这是我刚发现的另一种方式。我不得不这样做,因为无论我尝试什么,公司防火墙都不会让我添加apt存储库。

  1. 从作者的github下载源代码

    git clone https://github.com/xflux-gui/xflux-gui.git
    
  2. 安装

    cd xflux-gui
    sudo python setup.py install
    
  3. 从命令行运行

    fluxgui
    

[更新截至2017年2月23日]回购已更改

次佳解决办法

我可以建议RedShift吗?

它比flu.x更保持,它有更多的选项,它与Ubuntu 14.10 x64和Ubuntu 15.04 x64完美配合。

它可以从存储库(12.04,14.04和更新版本)安装:

sudo apt-get install redshift gtk-redshift

您可以选择为RedShift创建配置文件。它不是自动创建的,因此您必须使用gedit ~/.config/redshift.conf创建它。

这是我的redshift.conf文件的样子:

; Global settings for redshift
[redshift]
; Set the day and night screen temperatures
temp-day=4500
temp-night=3500

; Enable/Disable a smooth transition between day and night
; 0 will cause a direct change from day to night screen temperature.
; 1 will gradually increase or decrease the screen temperature
transition=1

; Set the screen brightness. Default is 1.0
;brightness=0.8
; It is also possible to use different settings for day and night since version 1.8.
brightness-day=0.9
brightness-night=0.7
; Set the screen gamma (for all colors, or each color channel individually)
gamma=0.8
;gamma=0.8:0.7:0.8

; Set the location-provider: 'geoclue', 'gnome-clock', 'manual'
; type 'redshift -l list' to see possible values
; The location provider settings are in a different section.
location-provider=geoclue

; Set the adjustment-method: 'randr', 'vidmode'
; type 'redshift -m list' to see all possible values
; 'randr' is the preferred method, 'vidmode' is an older API
; but works in some cases when 'randr' does not.
; The adjustment method settings are in a different section.
adjustment-method=randr

; Configuration of the location-provider:
; type 'redshift -l PROVIDER:help' to see the settings
; ex: 'redshift -l manual:help'
[manual]
; set these values if you've set the location-provider to manual instead of geoclue
;lat=51.522698
;lon=-0.085358

; Configuration of the adjustment-method
; type 'redshift -m METHOD:help' to see the settings
; ex: 'redshift -m randr:help'

[randr]
screen=0

如果需要,手动编译也很容易。这是官方存储库:https://github.com/jonls/redshift

在运行引导程序可执行文件之前,请确保已安装travis.yml文件中指定的所有依赖项。

说明:https://github.com/jonls/redshift/blob/master/HACKING.md

对于Ubuntu 15.04用户:可能因为某些缺少依赖项而无法使用redshift。尝试通过直接从github获取代码来编译它。

sudo apt-get install build-essential libxcb-randr0-dev
./bootstrap
./configure --enable-randr
make
sudo checkinstall

…如果您不想使用checkinstall,请选择installlibxcb-randr0-dev包应该满足使用randr作为调整方法的依赖性。否则尝试通过执行以下操作启用vidmode:

./configure --enable-vidmode

第三种解决办法

Ubuntu 12.04-14.04

在Ubuntu 12.04中安装f.lux,并且通过添加用于f.lux的PPA可以轻松完成14.04。只需在终端中键入以下内容:

sudo add-apt-repository ppa:kilian/f.lux
sudo apt-get update
sudo apt-get install fluxgui  

Ubuntu 12.04-18.04

sudo add-apt-repository ppa:nathan-renniewaldock/flux
sudo apt-get update
sudo apt-get install fluxgui   

从官方f.lux网站安装xflux守护程序终端程序

64位

wget -c https://justgetflux.com/linux/xflux64.tgz
tar -xvzf xflux64.tgz
rm -rf xflux64.tgz
sudo cp xflux /usr/bin/
sudo chmod 755 /usr/bin/xflux

32位

wget -c https://justgetflux.com/linux/xflux-pre.tgz
tar -xvzf xflux-pre.tgz
rm -rf xflux-pre.tgz
sudo cp xflux /usr/bin/
sudo chmod 755 /usr/bin/xflux

f.lux GUI可以使用命令fluxgui从Dash或终端启动。当它运行时,面板的通知区域中有一个f.lux图标。

⠀Xubuntu14.04中的f.lux指示器小程序首选项

display,color-management,ubuntu


从2017年3月22日发布的GNOME桌面环境3.24开始,新的夜灯功能可以自动减少屏幕在一天中的某些时段发出的蓝光量。可以从显示设置启用新功能。屏幕颜色遵循您所在位置的日出/日落时间,但也可以设置为自定义计划。夜灯面板指示灯显示功能何时处于活动状态,系统菜单允许暂时禁用该功能。

在Ubuntu 17.10中,Ubuntu附带GNOME桌面环境,而不是Unity,默认情况下包含夜灯功能。夜灯适用于X11和Wayland。要在Ubuntu 17.10中启用夜灯,请转到系统设置 – >设备 – >显示 – >夜灯并将夜灯滑块从OFF滑动到ON。然后配置计划设置。

Ubuntu 17.10中的夜灯设置

display,color-management,ubuntu

第四种办法

适用于Ubuntu 15.04+的新Flux应用程序

display,color-management,ubuntu

Flux的Kilian Valkhof’s存储库不再更新,但您可以使用Nathan Rennie-Waldock’s PPA。

运行以下命令以安装Flux

$ sudo add-apt-repository ppa:nathan-renniewaldock/flux
$ sudo apt-get update
$ sudo apt-get install fluxgui

去除:

$ sudo apt-get remove fluxgui

途经:Ubuntu Handbook

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/1101.html,未经允许,请勿转载。