Closed ftsig closed 10 years ago
Hello, Sorry it took so long to reply. We celebrated Thanksgiving in the US and I was disconnected from technology.
Anyway... Here is the answer to your question.
When kidtimer is run for the first time, it looks to see if it is installed. It if is not, it installs itself. I guess it would be better if I made a deb file installed, but here we are...
Simple instructions:
Let me know if that helps,
Mike :)
Sent from my iPad
On Nov 29, 2013, at 6:47 AM, ftsig notifications@github.com wrote:
Hello and many many thanks for writing this program , you may save a lot of children from spending endless hours in front of a pc. I don't know nothing about code , i tried to follow your instructions but can't manage to install , so sorry for my stupid questions
— Reply to this email directly or view it on GitHubhttps://github.com/grover66/kidtimer/issues/2 .
i tried but i get this many times
Choose: ./kidtimer: 251: read: Illegal option -e
1) Setup user limits. 2) Modify user limits. 3) Remove user limits. 4) List configured users. 5) Quit.
Choose: Segmentation fault (core dumped)
What version of Linux are you using?
Mike
Sent from my iPad
On Nov 30, 2013, at 9:48 AM, ftsig notifications@github.com wrote:
i tried but i get this many times
Choose: ./kidtimer: 251: read: Illegal option -e
1) Setup user limits. 2) Modify user limits. 3) Remove user limits. 4) List configured users. 5) Quit.
Choose: Segmentation fault (core dumped)
— Reply to this email directly or view it on GitHubhttps://github.com/grover66/kidtimer/issues/2#issuecomment-29553567 .
I just updated it, removing the "-e" from the script, which isn't needed. Try updating it; Sh ./kidtimer update
Mike
Sent from my iPad
On Nov 30, 2013, at 9:48 AM, ftsig notifications@github.com wrote:
i tried but i get this many times
Choose: ./kidtimer: 251: read: Illegal option -e
1) Setup user limits. 2) Modify user limits. 3) Remove user limits. 4) List configured users. 5) Quit.
Choose: Segmentation fault (core dumped)
— Reply to this email directly or view it on GitHubhttps://github.com/grover66/kidtimer/issues/2#issuecomment-29553567 .
Thanks for the reply...We have progress!!! I couldnt do the update , so i downloaded the zip file again and i managed to run it (i have ubuntu 12.4) but i get
graf@grafeio-PC:~/Desktop$ cd kidtimer-master
graf@grafeio-PC:~/Desktop/kidtimer-master$ sh ./kidtimer
./kidtimer: 13: [: 6: unexpected operator
./kidtimer: 14: [: 6: unexpected operator
/bin/mkdir: cannot create directory /usr/local/kidtimer': Permission denied /bin/mkdir: cannot create directory
/usr/local/kidtimer': Permission denied
/bin/cp: cannot create regular file /usr/local/bin/kidtimer': Permission denied ./kidtimer: 42: ./kidtimer: cannot create /etc/cron.d/kidtimer: Permission denied ./kidtimer: 43: ./kidtimer: cannot create /etc/cron.d/kidtimer: Permission denied ./kidtimer: 44: ./kidtimer: cannot create /etc/cron.d/kidtimer: Permission denied ./kidtimer: 45: ./kidtimer: cannot create /etc/cron.d/kidtimer: Permission denied ./kidtimer: 46: ./kidtimer: cannot create /etc/cron.d/kidtimer: Permission denied /bin/mkdir: cannot create directory
/etc/kidtimer': Permission denied
/usr/bin/touch: cannot touch /etc/kidtimer/kid.list': No such file or directory ./kidtimer: 55: ./kidtimer: cannot create /usr/local/kidtimer/send5.sh: Directory nonexistent chmod: cannot access
/usr/local/kidtimer/send5.sh': No such file or directory
./kidtimer: 63: ./kidtimer: cannot create /usr/local/kidtimer/send4.sh: Directory nonexistent
chmod: cannot access /usr/local/kidtimer/send4.sh': No such file or directory ./kidtimer: 71: ./kidtimer: cannot create /usr/local/kidtimer/send3.sh: Directory nonexistent chmod: cannot access
/usr/local/kidtimer/send3.sh': No such file or directory
./kidtimer: 79: ./kidtimer: cannot create /usr/local/kidtimer/send2.sh: Directory nonexistent
chmod: cannot access /usr/local/kidtimer/send2.sh': No such file or directory ./kidtimer: 87: ./kidtimer: cannot create /usr/local/kidtimer/send1.sh: Directory nonexistent chmod: cannot access
/usr/local/kidtimer/send1.sh': No such file or directory
./kidtimer: 95: ./kidtimer: cannot create /usr/local/kidtimer/logout.sh: Directory nonexistent
chmod: cannot access `/usr/local/kidtimer/logout.sh': No such file or directory
./kidtimer: 102: ./kidtimer: cannot create /usr/local/kidtimer/schedule/blank: Directory nonexistent
Kidtimer is now installed. Run /usr/local/bin/kidtimer to configure.
1) Setup user limits. 2) Modify user limits. 3) Remove user limits. 4) List configured users. 5) Quit.
Choose: 1
Username: ./kidtimer: 291: read: Illegal option -e /bin/cp: cannot stat `/usr/local/kidtimer/schedule/blank': No such file or directory ./kidtimer: 295: ./kidtimer: cannot create /usr/local/kidtimer/time/.ttl: Directory nonexistent ./kidtimer: 296: ./kidtimer: cannot create /etc/kidtimer/kid.list: Directory nonexistent Done.
Modify limits now ?(y/n): ./kidtimer: 299: read: Illegal option -e ./kidtimer: 300: [: unexpected operator
1) Setup user limits. 2) Modify user limits. 3) Remove user limits. 4) List configured users. 5) Quit.
Choose: 2
Username: graf2 grep: /etc/kidtimer/kid.list: No such file or directory Error. User not setup. Please setup user first.
1) Setup user limits. 2) Modify user limits. 3) Remove user limits. 4) List configured users. 5) Quit.
Choose:
You need to install it as root or at least with sudo Prius...
sudo sh ./kidtimer
Sent from my iPad
On Nov 30, 2013, at 10:37 AM, ftsig notifications@github.com wrote:
Thanks for the reply...We have progress!!! I couldnt do the update , so i downloaded the zip file again and i managed to run it (i have ubuntu 12.4) but i get
graf@grafeio-PC:~/Desktop$ cd kidtimer-master graf@grafeio-PC:~/Desktop/kidtimer-master$ sh ./kidtimer ./kidtimer: 13: [: 6: unexpected operator ./kidtimer: 14: [: 6: unexpected operator /bin/mkdir: cannot create directory /usr/local/kidtimer': Permission denied /bin/mkdir: cannot create directory/usr/local/kidtimer': Permission denied /bin/cp: cannot create regular file /usr/local/bin/kidtimer': Permission denied ./kidtimer: 42: ./kidtimer: cannot create /etc/cron.d/kidtimer: Permission denied ./kidtimer: 43: ./kidtimer: cannot create /etc/cron.d/kidtimer: Permission denied ./kidtimer: 44: ./kidtimer: cannot create /etc/cron.d/kidtimer: Permission denied ./kidtimer: 45: ./kidtimer: cannot create /etc/cron.d/kidtimer: Permission denied ./kidtimer: 46: ./kidtimer: cannot create /etc/cron.d/kidtimer: Permission denied /bin/mkdir: cannot create directory/etc/kidtimer': Permission denied /usr/bin/touch: cannot touch /etc/kidtimer/kid.list': No such file or directory ./kidtimer: 55: ./kidtimer: cannot create /usr/local/kidtimer/send5.sh: Directory nonexistent chmod: cannot access/usr/local/kidtimer/send5.sh': No such file or directory ./kidtimer: 63: ./kidtimer: cannot create /usr/local/kidtimer/send4.sh: Directory nonexistent chmod: cannot access /usr/local/kidtimer/send4.sh': No such file or directory ./kidtimer: 71: ./kidtimer: cannot create /usr/local/kidtimer/send3.sh: Directory nonexistent chmod: cannot access/usr/local/kidtimer/send3.sh': No such file or directory ./kidtimer: 79: ./kidtimer: cannot create /usr/local/kidtimer/send2.sh: Directory nonexistent chmod: cannot access /usr/local/kidtimer/send2.sh': No such file or directory ./kidtimer: 87: ./kidtimer: cannot create /usr/local/kidtimer/send1.sh: Directory nonexistent chmod: cannot access/usr/local/kidtimer/send1.sh': No such file or directory ./kidtimer: 95: ./kidtimer: cannot create /usr/local/kidtimer/logout.sh: Directory nonexistent chmod: cannot access `/usr/local/kidtimer/logout.sh': No such file or directory ./kidtimer: 102: ./kidtimer: cannot create /usr/local/kidtimer/schedule/blank: Directory nonexistent Kidtimer is now installed. Run /usr/local/bin/kidtimer to configure.
1) Setup user limits. 2) Modify user limits. 3) Remove user limits. 4) List configured users. 5) Quit.
Choose: 1
Username: ./kidtimer: 291: read: Illegal option -e /bin/cp: cannot stat `/usr/local/kidtimer/schedule/blank': No such file or directory ./kidtimer: 295: ./kidtimer: cannot create /usr/local/kidtimer/time/.ttl: Directory nonexistent ./kidtimer: 296: ./kidtimer: cannot create /etc/kidtimer/kid.list: Directory nonexistent Done.
Modify limits now ?(y/n): ./kidtimer: 299: read: Illegal option -e ./kidtimer: 300: [: unexpected operator
1) Setup user limits. 2) Modify user limits. 3) Remove user limits. 4) List configured users. 5) Quit.
Choose: 2
Username: graf2 grep: /etc/kidtimer/kid.list: No such file or directory Error. User not setup. Please setup user first.
1) Setup user limits. 2) Modify user limits. 3) Remove user limits. 4) List configured users. 5) Quit.
Choose:
— Reply to this email directly or view it on GitHubhttps://github.com/grover66/kidtimer/issues/2#issuecomment-29554433 .
You are my inspiration to build a deb package installer.
I just finished it and am testing it on a Virtual machine of ubuntu 13.10.
If it works, I will send it to you in just a few minutes.
Mike :)
Sent from my iPad
On Nov 30, 2013, at 10:37 AM, ftsig notifications@github.com wrote:
Thanks for the reply...We have progress!!! I couldnt do the update , so i downloaded the zip file again and i managed to run it (i have ubuntu 12.4) but i get
graf@grafeio-PC:~/Desktop$ cd kidtimer-master graf@grafeio-PC:~/Desktop/kidtimer-master$ sh ./kidtimer ./kidtimer: 13: [: 6: unexpected operator ./kidtimer: 14: [: 6: unexpected operator /bin/mkdir: cannot create directory /usr/local/kidtimer': Permission denied /bin/mkdir: cannot create directory/usr/local/kidtimer': Permission denied /bin/cp: cannot create regular file /usr/local/bin/kidtimer': Permission denied ./kidtimer: 42: ./kidtimer: cannot create /etc/cron.d/kidtimer: Permission denied ./kidtimer: 43: ./kidtimer: cannot create /etc/cron.d/kidtimer: Permission denied ./kidtimer: 44: ./kidtimer: cannot create /etc/cron.d/kidtimer: Permission denied ./kidtimer: 45: ./kidtimer: cannot create /etc/cron.d/kidtimer: Permission denied ./kidtimer: 46: ./kidtimer: cannot create /etc/cron.d/kidtimer: Permission denied /bin/mkdir: cannot create directory/etc/kidtimer': Permission denied /usr/bin/touch: cannot touch /etc/kidtimer/kid.list': No such file or directory ./kidtimer: 55: ./kidtimer: cannot create /usr/local/kidtimer/send5.sh: Directory nonexistent chmod: cannot access/usr/local/kidtimer/send5.sh': No such file or directory ./kidtimer: 63: ./kidtimer: cannot create /usr/local/kidtimer/send4.sh: Directory nonexistent chmod: cannot access /usr/local/kidtimer/send4.sh': No such file or directory ./kidtimer: 71: ./kidtimer: cannot create /usr/local/kidtimer/send3.sh: Directory nonexistent chmod: cannot access/usr/local/kidtimer/send3.sh': No such file or directory ./kidtimer: 79: ./kidtimer: cannot create /usr/local/kidtimer/send2.sh: Directory nonexistent chmod: cannot access /usr/local/kidtimer/send2.sh': No such file or directory ./kidtimer: 87: ./kidtimer: cannot create /usr/local/kidtimer/send1.sh: Directory nonexistent chmod: cannot access/usr/local/kidtimer/send1.sh': No such file or directory ./kidtimer: 95: ./kidtimer: cannot create /usr/local/kidtimer/logout.sh: Directory nonexistent chmod: cannot access `/usr/local/kidtimer/logout.sh': No such file or directory ./kidtimer: 102: ./kidtimer: cannot create /usr/local/kidtimer/schedule/blank: Directory nonexistent Kidtimer is now installed. Run /usr/local/bin/kidtimer to configure.
1) Setup user limits. 2) Modify user limits. 3) Remove user limits. 4) List configured users. 5) Quit.
Choose: 1
Username: ./kidtimer: 291: read: Illegal option -e /bin/cp: cannot stat `/usr/local/kidtimer/schedule/blank': No such file or directory ./kidtimer: 295: ./kidtimer: cannot create /usr/local/kidtimer/time/.ttl: Directory nonexistent ./kidtimer: 296: ./kidtimer: cannot create /etc/kidtimer/kid.list: Directory nonexistent Done.
Modify limits now ?(y/n): ./kidtimer: 299: read: Illegal option -e ./kidtimer: 300: [: unexpected operator
1) Setup user limits. 2) Modify user limits. 3) Remove user limits. 4) List configured users. 5) Quit.
Choose: 2
Username: graf2 grep: /etc/kidtimer/kid.list: No such file or directory Error. User not setup. Please setup user first.
1) Setup user limits. 2) Modify user limits. 3) Remove user limits. 4) List configured users. 5) Quit.
Choose:
— Reply to this email directly or view it on GitHubhttps://github.com/grover66/kidtimer/issues/2#issuecomment-29554433 .
graf@grafeio-PC:~$ cd Desktop graf@grafeio-PC:~/Desktop$ cd kidtimer-master graf@grafeio-PC:~/Desktop/kidtimer-master$ sudo sh ./kidtimer [sudo] password for graf: ./kidtimer: 13: [: 6: unexpected operator ./kidtimer: 14: [: 6: unexpected operator Kidtimer is now installed. Run /usr/local/bin/kidtimer to configure.
1) Setup user limits. 2) Modify user limits. 3) Remove user limits. 4) List configured users. 5) Quit.
Choose: 1
Username: ./kidtimer: 291: read: Illegal option -e
/bin/cp: /usr/local/kidtimer/schedule/blank' and
/usr/local/kidtimer/schedule/blank' are the same file
Done.
Modify limits now ?(y/n): ./kidtimer: 299: read: Illegal option -e ./kidtimer: 300: [: unexpected operator
1) Setup user limits. 2) Modify user limits. 3) Remove user limits. 4) List configured users. 5) Quit.
Choose:
Try using "sudo bash ./kidtimer.install
Sent from my iPad
On Nov 30, 2013, at 10:47 AM, ftsig notifications@github.com wrote:
graf@grafeio-PC:~$ cd Desktop graf@grafeio-PC:~/Desktop$ cd kidtimer-master graf@grafeio-PC:~/Desktop/kidtimer-master$ sudo sh ./kidtimer [sudo] password for graf: ./kidtimer: 13: [: 6: unexpected operator ./kidtimer: 14: [: 6: unexpected operator Kidtimer is now installed. Run /usr/local/bin/kidtimer to configure.
1) Setup user limits. 2) Modify user limits. 3) Remove user limits. 4) List configured users. 5) Quit.
Choose: 1
Username: ./kidtimer: 291: read: Illegal option -e /bin/cp: /usr/local/kidtimer/schedule/blank' and/usr/local/kidtimer/schedule/blank' are the same file Done.
Modify limits now ?(y/n): ./kidtimer: 299: read: Illegal option -e ./kidtimer: 300: [: unexpected operator
1) Setup user limits. 2) Modify user limits. 3) Remove user limits. 4) List configured users. 5) Quit.
Choose:
— Reply to this email directly or view it on GitHubhttps://github.com/grover66/kidtimer/issues/2#issuecomment-29554610 .
lol @ inspiration! you mean you just realised ignorant people like me are going to be breaking your b@@@s
Lol!
Sent from my iPad
On Nov 30, 2013, at 10:49 AM, ftsig notifications@github.com wrote:
lol @ inspiration! you mean you just realised ignorant people like me are going to be breaking your b@@@s https://github.com/s
— Reply to this email directly or view it on GitHubhttps://github.com/grover66/kidtimer/issues/2#issuecomment-29554648 .
graf@grafeio-PC:~$ cd Desktop graf@grafeio-PC:~/Desktop$ cd kidtimer-master graf@grafeio-PC:~/Desktop/kidtimer-master$ sudo bash ./kidtimer.install [sudo] password for graf: bash: ./kidtimer.install: No such file or directory graf@grafeio-PC:~/Desktop/kidtimer-master$
Replace with the name of the file you downloaded, kidtimer instead of kidtimer.install
Sent from my iPad
On Nov 30, 2013, at 10:50 AM, ftsig notifications@github.com wrote:
graf@grafeio-PC:~$ cd Desktop graf@grafeio-PC:~/Desktop$ cd kidtimer-master graf@grafeio-PC:~/Desktop/kidtimer-master$ sudo bash ./kidtimer.install [sudo] password for graf: bash: ./kidtimer.install: No such file or directory graf@grafeio-PC:~/Desktop/kidtimer-master$
— Reply to this email directly or view it on GitHubhttps://github.com/grover66/kidtimer/issues/2#issuecomment-29554677 .
its working , thanks , i am trying it out! i let you know if all ok thanks again
Great!!!
Happy holidays!
Mike
Sent from my iPad
On Nov 30, 2013, at 10:53 AM, ftsig notifications@github.com wrote:
its working , thanks , i am trying it out! i let you know if all ok thanks again
— Reply to this email directly or view it on GitHubhttps://github.com/grover66/kidtimer/issues/2#issuecomment-29554728 .
Great!!! it works however i have two problems first time it forced me logoff i was able to login again . Then i logoff by my self and then i couldn't log on. I removed time limits but the password wasn't enabled. So i made a new pass word and tried it again. This time it worked fine. wile using it i will see if this happens again. Second problem is when you use it with a second user. First user logsoff fine , then i log in with second user with 2 min limit and i wait 10 minutes. Nothing happens. I tried it many times nothing. The strange thing is that with the second user , no warning messages show up and it wont force logoff , but if i logoff by my self , then the password is disabled , like it worked till the point of disabling the password but it doesn't force logoff. I tried this one also 2 or 3 times and every time the same happens.
got it. thanks. Working on the deb file with a few bug fixes. will point you to it when I am done. My initial script counted up... then I changed it to count down (easier to understand). The check looks for = 0, but if it starts at zero, which is the value of the newly created user, fixing now, it will set the time to -1 before the check, causing nothing to happen.
working on it instead of raking the leaves in the yard :)
Mike
On Sat, Nov 30, 2013 at 12:12 PM, ftsig notifications@github.com wrote:
Great!!! it works however i have two problems first time it forced me logoff i was able to login again . Then i logoff by my self and then i couldn't log on. I removed time limits but the password wasn't enabled. So i made a new pass word and tried it again. This time it worked fine. wile using it i will see if this happens again. Second problem is when you use it with a second user. First user logsoff fine , then i log in with second user with 2 min limit and i wait 10 minutes. Nothing happens. I tried it many times nothing. The strange thing is that with the second user , no warning messages show up and it wont force logoff , but if i logoff by my self , then the password is disabled , like it worked till the point of disabling the password but it doesn't force logoff. I tried this one also 2 or 3 times and every time the same happens.
— Reply to this email directly or view it on GitHubhttps://github.com/grover66/kidtimer/issues/2#issuecomment-29556419 .
Here is the rpm... fixed a log of bugs.
Thanks for the dev support!
Mike :)
On Sat, Nov 30, 2013 at 12:12 PM, ftsig notifications@github.com wrote:
Great!!! it works however i have two problems first time it forced me logoff i was able to login again . Then i logoff by my self and then i couldn't log on. I removed time limits but the password wasn't enabled. So i made a new pass word and tried it again. This time it worked fine. wile using it i will see if this happens again. Second problem is when you use it with a second user. First user logsoff fine , then i log in with second user with 2 min limit and i wait 10 minutes. Nothing happens. I tried it many times nothing. The strange thing is that with the second user , no warning messages show up and it wont force logoff , but if i logoff by my self , then the password is disabled , like it worked till the point of disabling the password but it doesn't force logoff. I tried this one also 2 or 3 times and every time the same happens.
— Reply to this email directly or view it on GitHubhttps://github.com/grover66/kidtimer/issues/2#issuecomment-29556419 .
just double click on to install.
Mike
On Sat, Nov 30, 2013 at 12:12 PM, ftsig notifications@github.com wrote:
Great!!! it works however i have two problems first time it forced me logoff i was able to login again . Then i logoff by my self and then i couldn't log on. I removed time limits but the password wasn't enabled. So i made a new pass word and tried it again. This time it worked fine. wile using it i will see if this happens again. Second problem is when you use it with a second user. First user logsoff fine , then i log in with second user with 2 min limit and i wait 10 minutes. Nothing happens. I tried it many times nothing. The strange thing is that with the second user , no warning messages show up and it wont force logoff , but if i logoff by my self , then the password is disabled , like it worked till the point of disabling the password but it doesn't force logoff. I tried this one also 2 or 3 times and every time the same happens.
— Reply to this email directly or view it on GitHubhttps://github.com/grover66/kidtimer/issues/2#issuecomment-29556419 .
Hey,
Thanks for all your help today... You gave me the motivation to package it up. I also fixed a number of bugs that were remnants of a older code base. I have uploaded it to my github location ( https://github.com/grover66/kidtimer). If you haven't already installed the one I sent you earlier, please move on to this version. I fixed an issue where the /etc/kidtimer/kid.list was replaced in the deb install, losing any entries you put in. That is now fixed in kidtimer_2.1.deb. Let me know if you run into any additional bugs.
Cheers!
Mike
On Sat, Nov 30, 2013 at 12:12 PM, ftsig notifications@github.com wrote:
Great!!! it works however i have two problems first time it forced me logoff i was able to login again . Then i logoff by my self and then i couldn't log on. I removed time limits but the password wasn't enabled. So i made a new pass word and tried it again. This time it worked fine. wile using it i will see if this happens again. Second problem is when you use it with a second user. First user logsoff fine , then i log in with second user with 2 min limit and i wait 10 minutes. Nothing happens. I tried it many times nothing. The strange thing is that with the second user , no warning messages show up and it wont force logoff , but if i logoff by my self , then the password is disabled , like it worked till the point of disabling the password but it doesn't force logoff. I tried this one also 2 or 3 times and every time the same happens.
— Reply to this email directly or view it on GitHubhttps://github.com/grover66/kidtimer/issues/2#issuecomment-29556419 .
fantastic , installed easely i ll use a few days and i ll report any bugs i find thank very very very my son hates you...
On Sun, Dec 1, 2013 at 2:00 AM, grover66 notifications@github.com wrote:
Closed #2 https://github.com/grover66/kidtimer/issues/2.
— Reply to this email directly or view it on GitHubhttps://github.com/grover66/kidtimer/issues/2 .
Lol!!!
No worries... My kids can't stand me either... They are constantly begging for more time.
Happy holidays!
Mike
Sent from my iPad
On Dec 1, 2013, at 8:49 AM, ftsig notifications@github.com wrote:
fantastic , installed easely i ll use a few days and i ll report any bugs i find thank very very very my son hates you...
On Sun, Dec 1, 2013 at 2:00 AM, grover66 notifications@github.com wrote:
Closed #2 https://github.com/grover66/kidtimer/issues/2.
— Reply to this email directly or view it on GitHub< https://github.com/grover66/kidtimer/issues/2> .
— Reply to this email directly or view it on GitHubhttps://github.com/grover66/kidtimer/issues/2#issuecomment-29574001 .
Hello and many many thanks for writing this program , you may save a lot of children from spending endless hours in front of a pc. I don't know nothing about code , i tried to follow your instructions but can't manage to install , so sorry for my stupid questions