如何在Ubuntu/Fedora/Arch/Debian上安装Safeeyes

时间:2020-02-23 14:33:03  来源:igfitidea点击:

Safeeyes是Linux用户的自由和开源工具,以减少和防止重复应变损伤(RSI)。
它提醒我们避免在计算机上长时间工作。
我们可以在那里安装所有主要Linux发行版的Safeeyes,这包括但不限于Ubuntu,CentOS,Fedora,Solus,Arch 等。

在Ubuntu 16.04上安装Safeeyes

Safeeyes通过PPA可在Ubuntu上安装。
这适用于Ubuntu和Linux Mint。
要设置Safeeyes,请添加Slgobinath/Safeeyes PPA存储库,更新APT-Cache并从添加的PPA存储库安装Safeeyes包。

$sudo add-apt-repository ppa:slgobinath/safeeyes
$sudo apt update
$sudo apt install safeeyes

在Fedora上安装Safeeyes

在Fedora上,可以从默认上游存储库安装Safeeyes。
但首先,我们必须安装libappindicator-gtk3和python3-psutil依赖关系。

$sudo dnf install libappindicator-gtk3 python3-psutil
$sudo pip3 install safeeyes
$sudo gtk-update-icon-cache /usr/share/icons/hicolor

在Debian上安装Safeeyes

在Debian 9(伸展)上测试了此安装。
但它应该在Debian 9上工作。
要在Debian上安装Safeeyes,请运行:

sudo apt-get install gir1.2-appindicator3-0.1 gir1.2-notify-0.7 python3-psutil python3-xlib xprintidle
sudo pip3 install safeeyes
sudo update-icon-caches /usr/share/icons/hicolor

在Arch上安装Safeeyes

在Arch及其衍生工具上,可以使用yaourt或者类似的Aur客户来安装Safeeyes,如Pavaur。
要使用yaourt安装它,请运行:

$yaourt -S --noconfirm safeeyes

安装它使用PAPRAUR,运行:

$pacaur --needed --noconfirm --noedit -S safeeyes

从源头安装Safeeyes

要在从源代码中安装任何Linux发行版的Safeeyes,请使用以下命令:

$git clone https://github.com/slgobinath/SafeEyes.git
$cd SafeEyes
$python3 -m safeeyes

要启动Safeeyes应用程序,请使用终端上的命令SafeeEs或者在桌面启动器上搜索Safeeyes应用程序名称。
它将位于我们可以打开的托盘上。
它有三个配置选项。
第一个是常规设置:

其中我们可以设置断裂持续时间的一般设置,中断之间的时间间隔。
另一个窗口是用于休息建议,最后一个是用于插件设置。