Skip to content

Latest commit

 

History

History
87 lines (62 loc) · 2.5 KB

README.md

File metadata and controls

87 lines (62 loc) · 2.5 KB

NOTE:

Since my kids have grown up... I have not been keeping this software updated. Please goto https://github.com/JimDunphy/kidtimer for the latest code and new features. Great work Jim!!!

I have been looking for a solution to this for a long time. I have two kids and wish to restrict their time on the computers. Since nothing else seems to work out there, I decided to write my own. I call it kidtimer. Very original, I know. :)

Kidtimer should work on any recent version of Ubuntu, both 32 & 64 bit. Should also work on Debian too. It uses standard Linux utilities and notify-send (for user notification).

NOTE

  • The "at" utility is required for kidtimer to work properly.
  • Kidtimer will now check when run manually, letting you know what needs to be installed.

So this is how to install it and use it;

  1. Download the latest kidtimer deb file; https://github.com/grover66/kidtimer/raw/master/DEBS/kidtimer_latest.deb

  2. Install it using Software Center or use the following lines;

sudo dpkg -i kidtimer*.deb
sudo apt-get -f install
  1. Run it:
sudo kidtimer
  1. Setup a existing user account.

  2. Done.

For help:

sudo kidtimer help

Add time to a user's account (for that day only):

sudo kidtimer addtime user minutes

To check user's time:

sudo kidtimer gettime user

To update kidtimer to the latest version:

sudo kidtimer update

Features:

Allow your kid specific hours of the day to access the computer, both weekday and weekend.

Set maximum amount of time, both weekday and weekend.

Key files:

/etc/kidtimer/kid.list
/etc/cron.d/kidtimer
/usr/local/kidtimer/locale/de_DE.UTF-8 #German
/usr/local/kidtimer/locale/en_US.UTF-8 #English
/usr/local/kidtimer/locale/es_ES.UTF-8 #Spanish
/usr/local/kidtimer/locale/fr_FR.UTF-8 #French
/usr/local/kidtimer/locale/fr_BE.UTF-8 #French
/usr/local/kidtimer/locale/fr_CA.UTF-8 #French
/usr/local/kidtimer/locale/fr_CH.UTF-8 #French
/usr/local/kidtimer/locale/it_IT.UTF-8 #Italian
/usr/local/kidtimer/schedule/
/usr/local/kidtimer/time/.ttl
/usr/local/bin/kidtimer

Cronjobs:

Check every minute to see if user is logged in. If so, increment total time. If hit max time, disable account and start logoff sequence (5 mins total).

Check hourly to see if user is allowed to login. If so, enable account.

At midnight, reset time.

The application uses notify-send to alert user time is running out. When time runs out, all user processes are terminated, so please prepare user.

Enjoy!