Re: Account Lease time / Content filtering
Quote:
Originally Posted by
crjackson
If I knew how to do a feature request to Ubuntu I ask for something like this to built in to the GUI where you set up new user accounts. It would be great if you could just include some time limits and time restrictions on the user accounts them selves when setting up the account.
I agree that would be a huge improvement on security (at home anyways). I also have 3 children underage so something like this is very much needed. :D
Re: Account Lease time / Content filtering
Ok, this thread is great! I looked over the script, and must admit, I'm not that script capable! I don't understand where you would configure the username and who is limited by this script. How do you set the limited users?
Shane
As for content filtering, I personally use opendns.com with ddclient. You do need to setup an account with opendns.com but it works excellent, and I have been very pleased with it.
PSS: Oh, I wrote a very simplistic script that limits user times to 45 minutes for KDE desktop (not quite as intense as this script) here it is if anyone can use it or, make it better:
Code:
#!/bin/sh
# This script will log out a user after 45 minutes on the computer, it requires kshutdown to be installed on the machine.
sleep 35m
kdialog --title "You have 10 minutes left" --passivepopup "10 minutes remaining" 5
sleep 8m
kdialog --title "You have 2 minutes left" --passivepopup "Please start closing all windows" 10
sleep 110
kdialog --title "You have 10 seconds left" --passivepopup "Close all Windows now." 5
sleep 10
kshutdown -l
exit 0
Account Lease time - Timekeeper Developement
Quote:
Originally Posted by
shane2peru
Ok, this thread is great! I looked over the script, and must admit, I'm not that script capable! I don't understand where you would configure the username and who is limited by this script. How do you set the limited users?
Shane
As for content filtering, I personally use opendns.com with ddclient. You do need to setup an account with opendns.com but it works excellent, and I have been very pleased with it.
PSS: Oh, I wrote a very simplistic script that limits user times to 45 minutes for KDE desktop (not quite as intense as this script) here it is if anyone can use it or, make it better:
Code:
#!/bin/sh
# This script will log out a user after 45 minutes on the computer, it requires kshutdown to be installed on the machine.
sleep 35m
kdialog --title "You have 10 minutes left" --passivepopup "10 minutes remaining" 5
sleep 8m
kdialog --title "You have 2 minutes left" --passivepopup "Please start closing all windows" 10
sleep 110
kdialog --title "You have 10 seconds left" --passivepopup "Close all Windows now." 5
sleep 10
kshutdown -l
exit 0
Here is the timekpr blog with some basic instructions. Read that first then the rest of this thread will make sense to you I think.
Re: Account Lease time / Content filtering
Quote:
Originally Posted by
crjackson
Here is a
link to my blog with some basic instructions. Read that first then the rest of this thread will make sense to you I think.
Ahhh, that was extremely helpfull! Thanks for that link and blog! Now I can setup accounts for my kids. :)
Shane
Account Lease time - Timekeeper Developement
Quote:
Originally Posted by
shane2peru
Ahhh, that was extremely helpfull! Thanks for that link and blog! Now I can setup accounts for my kids. :)
Shane
Glad it helped. Maybe if the concept becomes popular enough the devs will create a professional streamlined version built into the Accounts GUI some day.
Re: Account Lease time / Content filtering
Quote:
Originally Posted by
crjackson
Glad it helped. Maybe if the concept becomes popular enough the devs will create a professional streamlined version built into the Accounts GUI some day.
Yes, we are slipping behind M$ on this, because I heard that they already have this setup on Vista, or something of the nature that limits usage. I think it is called parental controls or something. I no longer have M$ on any of my computers, so I'm not sure, just heard about it.
Shane
Account Lease time - Timekeeper Developement
Quote:
Originally Posted by
shane2peru
Yes, we are slipping behind M$ on this, because I heard that they already have this setup on Vista, or something of the nature that limits usage. I think it is called parental controls or something. I no longer have M$ on any of my computers, so I'm not sure, just heard about it.
Shane
Well, if the devs have no interest, I'm sure someone here will eventually make a GUI version for dummies like me. I've seen many similar requests for something like this that dates back 3-4 years. It will happen some day I'm sure.
Re: Account Lease time / Content filtering
Is anyone familiar enough with Edubuntu (Educational Ubuntu) or Ubuntu CE (Christian Edition) to know if something similar is already set up?
Quickly scanning the home page; UbuntuCE "includes fully integrated web content parental controls powered by Dansguardian. A graphical tool to adjust the parental control settings has also been developed specifically for Ubuntu Christian Edition."
Edubuntu has been around a couple years, and their is also
K12 Linux Terminal Server Project
http://k12ltsp.org/contents.html
This is based on Read Hat and the LTSP
http://www.ltsp.org/
I'ms sure the school systems have grappled with this problem, perhaps they have a solutuion.
And MAJOR THANKS to .nedberg for his work.
I hope every parent who benefits from his work will consider "tossing him a fin"/ Isn't your child worth it?
Sorry I can't do more legwork, I'm off to the firehouse for my shift.
E Galvan, Lt BFD
Re: Account Lease time / Content filtering
Quote:
Originally Posted by
crjackson
.nedberg
I added the line /usr/local/bin/timekpr & to /etc/rc.local but it's not working.
What am I doing wrong here?
Is the script called /usr/local/bin/timekpr? Not /usr/local/bin/timekpr.sh? I will give it a go when I get home from work and the kids are in bed, to see if I can find the problem.
EDIT: I had a look at your blog and this seems to be the reason to your problem if that is exactly what you did!
@egalvan
I work at a school myself and this is not something we would use. Why limit the students log in time? dansguardian on the other hand would be interresting.
Re: Account Lease time / Content filtering
Quote:
Originally Posted by
shane2peru
Ok, this thread is great! I looked over the script, and must admit, I'm not that script capable! I don't understand where you would configure the username and who is limited by this script. How do you set the limited users?
If you look here you will se that you can create a file at /var/lib/timekpr/<username> to limit an account. In that file you put the total amount of seconds that user is allowed to be logged in each day. A user without a file like this will not be limited.