Home Linux User Management Timekpr – Control The Computer Usage Of User Accounts

Timekpr – Control The Computer Usage Of User Accounts

By sk
Published: Updated: 3.9K views

Nowadays, especially in this quarantine time, the kids are probably spending more time using Computers than the text books. As a parent and a teacher, you must keep an eye on them to know how much time they are spending on Computers, and you should limit their excessive computer usage. There are plenty of parental control applications available to get this job done. The one today we are going to discuss is Timekpr-nExT. In this guide we will see, how to control the computer usage of user accounts using Timekpr.

What is Timekpr?

For those who don't know, Timekpr is a parental control application that can be used to control the Computer usage. If you think your kid is spending too much time on computers, you can set time limit for the kid's user account, and prevent them to use the computer for a very long time. We can set time duration, and at what time the kid can able to login to the computer. In layman terms, we can easily limit their daily usage based on a timed access duration and configure periods of day when they can or cannot log in. It is formerly known as Timekpr-revived and it is originally known as Timekpr when it was first released. I don't know why the developer is keep renaming it. Instead of renaming the project often, the developer should consider to use a version number for each release.

Install Timekpr in Linux

I tested this application in Ubuntu 18.04 LTS version. It worked well as expected.

To install the latest version, add the following PPA:

$ sudo add-apt-repository ppa:mjasnik/ppa

Update the repository lists:

$ sudo apt-get update

Finally, install it using the following command:

$ sudo apt-get install timekpr-next

If you want to try the development version, run:

$ sudo apt-get install timekpr-next-beta

Alternatively, you can download the .deb file from here depending upon your system's architecture, and manually install it as shown below.

$ sudo apt-get install gdebi

32 bit TimeKpr on Ubuntu 16.04:

$ sudo gdebi timekpr_0.3.7~ppa1~ubuntu1~ubuntu16.04.1_i386.deb

64 bit TimeKpr on Ubuntu 16.04:

$ sudo gdebi timekpr_0.3.7~ppa1~ubuntu1~ubuntu16.04.1_amd64.deb

32 bit TimeKpr on Ubuntu 18.04:

$ sudo gdebi timekpr_0.3.7~ppa1~ubuntu11~ubuntu18.04.1_i386.deb

64 bit TimeKpr on Ubuntu 18.04:

$ sudo gdebi timekpr_0.3.7~ppa1~ubuntu11~ubuntu18.04.1_amd64.deb

I use Arch, btw

TImekpr is available in AUR. So you can install it using any AUR helper programs on Arch Linux and its variants like Manjaro Linux.

$ yay -S timekpr-next

Control the computer usage of user accounts using Timekpr

Launch Timekpr administration interface from the Menu or Application launcher. TImekpr has two entries.

  • Timekpr administration
  • Timekpr control panel
Launch Timekpr

Launch Timekpr

If you want to set time intervals, launch Timekpr administration interface launcher that has [su] in front of it. If you want to view the time interval configuration only, launch the Timekpr control panel application.

The default interface of Timekpr-nExT will look like below.

Timekpr administration interface

Timekpr administration interface

As you can see in the above window, there are two main tabs namely:

  1. User Configuration
  2. Tiekpr-nExT Configuration

1. User Configuration tab

This is the important section where we configure user restrictions. Choose the user account that you want to control from "Username" drop-down box in "User Configuration" tab. Please choose the correct user account from the list and configure carefully. Do not lock yourself out!

Timekpr user configuration window

Timekpr user configuration window

Below the "User configuration" tab, you will see three sub-tabs namely Info & Today, Daily limits, and Weekly & Monthly limits.

Info & Today

The Info & Today tab displays the information about time spent by the selected user in the system.

Daily limits

The Daily limits tab lets you to configure time limits for week days. In this tab, you can specify day's limit for the user by configuring the hours and minutes value.

The  time can be configured in time intervals. It's possible to have more than one time interval a day, say for example we can set time interval from 6:00 - 10:00 and 21:00 - 24:00. Press plus or minus to configure the day limits and press Set button to apply.

We can also configure the time interval by minutes. For example, it is possible to set minute configuration from 6:15 - 9:45. However, it's not possible to have more than one interval per hour. For example, it is NOT POSSIBLE to intervals from 6:00 - 7:15 and 16:45 - 18:00 at the same time. After configuring the time intervals, simply press Apply daily limits button at the bottom.

Timekpr daily limits configuration

Timekpr daily limits configuration

In the Weekly & Monthly limits section, you set,

  • how many days in a week you want to allow the user to computer,
  • how many hours and minutes the user can use the computer (E.g. 1.30).

Similarly, you can set time intervals by month-wise.

Good thing is Timekpr will not take inactive sessions into account. If the user put the system in lock mode, then the time is not counted.

2. Timekpr-nExT Configuration

In the next main tab "Timekpr-nExT configuration", you will see the user related configuration details, such as;

  • Warning time,
  • Poll Interval,
  • Save time,
  • Terminal time,
  • Log level.

Under the Tracked Sessions box, you will see the Session types such as x11, wayland, and mir. All users that comes under these Sessions will be controlled. Under the Excluded Sessions box, you will find the list of excluded sessions from controlling, such as tty. In Excluded Users box, you will find all list of users who are excluded from controlling. All system accounts such as gdm, kdm, testtimekpr, mdm, lightkdm will be listed here. It is better to leave these settings untouched.

Timekpr commandline options

TImekpr can be launched using the following three command programs.

  • timekpra - Run Timekpr main interface from CLI.
  • timekprc - Start Timekpr tray icon.
  • timekprd - Run timekpr daemon.

To start Timekpr administration window, run:

$ sudo timekpra

To start Timekpr system tray icon:

$ timekprc

You will see the Timekpr systray icon in your system tray.

Timekpr systray icon

Timekpr systray icon

From the Timekpr tray icon, the user can;

  • find the total time left,
  • view the daily limits,
  • And the information about Timekpr.

To get help:

$ sudo timekpra --help

Conclusion

Timekpr is a must have application for Home computers. Please be mindful that Timekpr isn't a Firewall or any sort of Website or application blocker. It will simply limit the Computer usage. Nothing more, nothing less.

It is not just for Kids, you can also use it in your office, or college to limit any user's computer usage. Give it a try, you won't be disappointed.

Resource:

You May Also Like

4 comments

Zeeshan Hasan April 6, 2018 - 4:14 am

I hope it gets updated for ubuntu 18.04 which will be released in a few days. As far as I recall it only worked with unity UI before. Ubuntu 18.04 will run Gnome instead.

Reply
Graham April 5, 2020 - 11:20 am

It would seem that the developer has updated the name of the package to install.

Reply
sk April 5, 2020 - 12:12 pm

Yes, he is keep renaming the app. It was first known as Timekpr, and then Timekpr-revived. Now it is Timekpr-nExT. Don’t know why the developer is renaming the project.

Reply
Developer April 15, 2020 - 3:45 am

The developer is NOT renaming the project, it’s simple – Timekpr revived was extension of Timekpr (different author), because developer just made it work for newer versions of Ubuntu, no access to original project.

nExT is completely different beast, based on different tech and not supported on Ubuntu less than 16.04.

Those who like, can use revived, for more stuff use nExT.
After all, it has more features and completely written from scratch. They are not comparable.
Hope it clears the understanding.

Reply

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website uses cookies to improve your experience. By using this site, we will assume that you're OK with it. Accept Read More