有孩子吗？使用 Timekpr-nExt 限制 Linux 中每个账户的电脑使用
限制 孩子
![](/data/attachment/album/202011/18/004039svxva9wrvva2xias.jpg)



> 
> 本周的开源软件亮点是 Timekpr-nExt。它是一个 GUI 应用，用于限制 Linux 系统中某些账户的电脑使用。对于不想让孩子花太多时间在电脑上的父母来说，这是一个方便的工具。
> 
> 
> 


### 使用 Timekpr-nExt 在 Linux 上限制电脑使用


如果你家里有小孩，他们花太多时间在电脑上，你可能想对他们的使用进行一些限制。


可以让你根据一天的时间、一天、一周或者一月的小时数来限制某些账户的电脑使用。你也可以设置时间间隔来强制账户用户休息。


![](/data/attachment/album/202011/18/003800oruelenzxnn9lar0.png)


给定的时间超过后，用户会自动登出，直到满足限制条件才可以重新登录。


![](/data/attachment/album/202011/18/003813kpjprjj4fvpaccan.png)


当然，这意味着你需要为孩子们单独设置非管理员（无 `sudo` 权限）账户。如果孩子们的账户也有管理员权限，他们可以很容易地改变设置。孩子们很聪明，你知道的。


### Timekpr-nExt 的功能


除了一个令人讨厌的风格化的名字，Timekpr-nExt 有以下功能：


* 将系统使用限制设置为按日智能限制、每日、每周或每月限制
* 你还可以根据时间和小时设置访问限制
* 用户可以看到关于他们还剩多少时间的通知
* 设置锁定动作（终止会话、关闭、暂停或锁定屏幕）
* 追踪账户的时间使用情况


请注意以下事项：


* 仔细检查你正在配置的账户。**不要把自己锁定**
* 每次更改配置时，请点击应用或设置按钮，否则更改将不会被设置
* 儿童帐户不应该有管理员操作，否则他们会覆盖设置


这里阅读[关于使用 Timekpr-nExt 的更多信息的文档](https://mjasnik.gitlab.io/timekpr-next/)。


### 在 Linux 中安装 Timekpr-nExt


对于基于 Ubuntu 的 Linux 发行版（如 Mint、Linux Lite 等），有一个[官方 PPA 可用](https://launchpad.net/~mjasnik/+archive/ubuntu/ppa)。你可以通过以下命令逐步安装它：



```
sudo add-apt-repository ppa:mjasnik/ppa
sudo apt update
sudo apt install timekpr-next

```

Arch Linux 用户可以[在 AUR 中找到它](https://aur.archlinux.org/packages/timekpr-next/)。对于其他用户，请检查你的发行版仓库。如果没有这样的包，你可以尝试使用源码。


* [Timekpr-nExt 源码](https://launchpad.net/timekpr-next)


**再说一次，不要在主账户中使用 Timekpr-nExt。你可能会把自己锁在外面。**


你会看到两个应用的实例。使用开头有 （SU） 的那个。


![](/data/attachment/album/202011/18/003825szobd7zif1igbd1g.jpg)


#### 删除 Timekpr-nExt


我不能确定删除 Timekpr-nExt 是否也会删除你为用户设置的限制。手动恢复他们（间隔一天 24 小时）会是一个好主意。这里没有重置按钮。


要删除这个应用（如果你使用 PPA 安装它），使用以下命令：



```
sudo apt-get remove --purge timekpr-next

```

同时删除 PPA 仓库：



```
sudo add-apt-repository -r ppa:mjasnik/ppa

```

和[在 Linux 上屏蔽成人内容](https://itsfoss.com/how-to-block-porn-by-content-filtering-on-ubuntu/)一样，这个应用也是专门针对儿童的。并不是每个人都会觉得它有用，但家里有小孩的人如果觉得有必要的话，可以使用它。


你是否使用其他应用来监控/限制儿童访问计算机？




---


via: <https://itsfoss.com/timekpr-next/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
*Open source software highlight of this week is Timekpr-nExt. It is a GUI application to limit the computer usage for certain accounts on a Linux system. This is a handy utility for parents who do not want children to spend excessive time on the computer.*

## Use Timekpr-nExt to limit computer usage on Linux

If you have young children at home who spend too much time on computer, you may want to put some sort of restriction on the usage.

Timekpr-nExt enables you to limit computer usage for certain accounts based on the time of day, number of hours a day, week or month. You may also set time interval to force the account user to take break.

![Timekpr Next Ubuntu](https://itsfoss.com/content/images/wordpress/2020/10/timekpr-next-ubuntu-800x612.png)

After the given time expires, the user is automatically logged out and cannot log back in until the restriction conditions are satisfied.

![Timekpr Next Icon System Notification Area](https://itsfoss.com/content/images/wordpress/2020/10/timekpr-next-icon-system-notification-area.png)

Of course, this means that you need to have separate non-admin (no sudo access) accounts for the children. If the kids accounts also have admin access, they can change the settings easily. Kids are smart, you know.

## Features of Timekpr-nExt

Apart from an annoyingly stylized name, Timekpr-nExt has the following features:

- Limit system usage as day wise limit, daily limit, weekly or monthly limit
- You can also set access restrictions based on time and hour
- Users can be shown notification about how much time they have left
- Set the lockout action (terminate session, shutdown, suspend or lock screen)
- Track the time usage of the accounts

Keep the following things in mind:

- Check carefully which account you are configuring.
.*Do not lock yourself out* - Hit the apply or set button for each configuration changes otherwise the changes won’t be set.
- Children accounts should not have admin action otherwise they can overwrite the settings.

Read the [documents about more information on using Timekpr-nExt](https://mjasnik.gitlab.io/timekpr-next/).

## Installing Timekpr-nExt on Linux

For Ubuntu-based Linux distributions (like Mint, Linux Lite etc), there is an [official PPA available](https://launchpad.net/~mjasnik/+archive/ubuntu/ppa). You can install it by using the following commands one by one:

```
sudo add-apt-repository ppa:mjasnik/ppa
sudo apt update
sudo apt install timekpr-next
```


Arch Linux users can [find it in AUR](https://aur.archlinux.org/packages/timekpr-next/). For others, please check your distribution’s repository. If there is no such package, you may try using the source code.

*Again, do not use Timekpr-nExt for your own main account. You may lock yourself out.*

You’ll see two instances of the application. Use the one with (SU) at the beginning.

![Timekeeper Next](https://itsfoss.com/content/images/wordpress/2020/10/timekeeper-next.jpg)

### Removing Timekpr-nExt

I cannot say for certain if removing Timekpr-nExt will also remove the restrictions you put in place for the users. It will be a good idea to manually restore them (putting 24 hr interval a day). There is no reset button here.

To remove this application (if you used PPA to install it), use the following command:

`sudo apt-get remove --purge timekpr-next`


Delete the PPA repository as well:

`sudo add-apt-repository -r ppa:mjasnik/ppa`


Like [blocking adult content on Linux](https://itsfoss.com/how-to-block-porn-by-content-filtering-on-ubuntu/), this application is also children specific. Not everyone would find it useful but people with young children at home may use it if they feel the need.

Do you use some other application to monitor/restrict children from accessing computer?