Kidtimer
Script to manage computer usage by time and schedule.
Install / Use
/learn @grover66/KidtimerREADME
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;
-
Download the latest kidtimer deb file; https://github.com/grover66/kidtimer/raw/master/DEBS/kidtimer_latest.deb
-
Install it using Software Center or use the following lines;
- Run it:
-
Setup a existing user account.
-
Done.
For help:
<pre> sudo kidtimer help </pre>Add time to a user's account (for that day only):
<pre> sudo kidtimer addtime user minutes </pre>To check user's time:
<pre> sudo kidtimer gettime user </pre>To update kidtimer to the latest version:
<pre> sudo kidtimer update </pre>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:
<pre> /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/<user> /usr/local/kidtimer/time/<user>.ttl /usr/local/bin/kidtimer </pre>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!
Related Skills
node-connect
345.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
104.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
