Re: [Ltsp-discuss] Ltsp time counter

2007-07-02 Thread Michael Collins

there used to be a proggie called "meter maid"

look here   http://ltsp.sourceforge.net/contrib/index.php

On 6/30/07, Rudolf Rittmann <[EMAIL PROTECTED]> wrote:


 Hi Frank,

Thanks for your suggestion. I just need a few pointers, like I said my
scripting leaves a lot to desire.
Please, please help me with a few lines for starting the script.
I know I need to look at:
1. is the user logged on
2. how long is the user logged on for, how much time is left
3. if the user is idle for ten(10) minitues, logoff
4. When time is up logoff

Thanks again
Rudolf

Frank Cox wrote:

On Thu, 28 Jun 2007 12:42:41 +0200
Rudolf Rittmann <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote:

   Which means that we need to limit the time these guys spend on a
workstation to maximum 1 hour per day, they should not be able to login
again for that day, inactivity logout, say after 10 min, etc

 As you say, I don't think there is an off-the-shelf solution for this, but it
sounds like a nifty little project.

As a start, I think something like "sleep 60m && logout" inserted in one of
the login scripts would give you the big boot-out-the-door after an hour online.

You would have to log and total the time online and use something to re-write
the 60 to less as the day went by.

As it's a school you will have to go out of your way to make it especially
bulletproof, but I don't see any reason why it can't be done.



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
 https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net





--
--
Michael H. Collins

It's us against them.  Ride like you stole it.

If you love some code, set it free.

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net


Re: [Ltsp-discuss] Ltsp time counter

2007-07-02 Thread Rudolf Rittmann

Hi Frank,

Thanks for your suggestion. I just need a few pointers, like I said my 
scripting leaves a lot to desire.

Please, please help me with a few lines for starting the script.
I know I need to look at:
1. is the user logged on
2. how long is the user logged on for, how much time is left
3. if the user is idle for ten(10) minitues, logoff
4. When time is up logoff

Thanks again
Rudolf

Frank Cox wrote:

On Thu, 28 Jun 2007 12:42:41 +0200
Rudolf Rittmann <[EMAIL PROTECTED]> wrote:

  
Which means that we need to limit the time these guys spend on a 
workstation to maximum 1 hour per day, they should not be able to login 
again for that day, inactivity logout, say after 10 min, etc



As you say, I don't think there is an off-the-shelf solution for this, but it
sounds like a nifty little project.

As a start, I think something like "sleep 60m && logout" inserted in one of
the login scripts would give you the big boot-out-the-door after an hour online.

You would have to log and total the time online and use something to re-write
the 60 to less as the day went by.

As it's a school you will have to go out of your way to make it especially
bulletproof, but I don't see any reason why it can't be done.

  


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net


Re: [Ltsp-discuss] Ltsp time counter

2007-06-29 Thread jam
On Saturday 30 June 2007 03:06, [EMAIL PROTECTED] 
wrote:
> I'm looking for help regarding time controlled logins to ltsp
> workstations. I have ltsp 4.2 with Fedora Core 6 installed,
> authentication is done through LDAP.
> This is for a proposed public access solution at one of our educational
> institutions, with about 8000 students. The plan is to start off with a
> 30 station solution and than expand at a later stage.
>
> What remains a big issue is that with these limited resources available,
> we would like to give as many students as possible access to a
> workstation per day.
> Which means that we need to limit the time these guys spend on a
> workstation to maximum 1 hour per day, they should not be able to login
> again for that day, inactivity logout, say after 10 min, etc
>
> I know there is no easy solution nor off the self solution to this, but
> could be done with some scripts. Now this is where the problem comes in.
> My scripting is not great, not even at entry level, but I know
> somethings could be done with linux through "last", finger, etc.
>
> I need you help, any suggestion would be much appreciated.

Guys
I'm neither a PAM fan or guru but without doubt this is comprehensivley 
handled by PAM. 
I also have no doubt that you would need to write your own module.

But a suitable module, using a database would work well and all the time and 
effort channeled into scripting hacks would be available for ltsp for all 
future needs of a similar nature (whereas the hacks stay as inconvenient 
hacks)

James

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net


Re: [Ltsp-discuss] Ltsp time counter

2007-06-28 Thread Kevin Squire
On Thu, 28 Jun 2007 16:27:31 -0600
Frank Cox <[EMAIL PROTECTED]> wrote:

> On Thu, 28 Jun 2007 12:42:41 +0200
> Rudolf Rittmann <[EMAIL PROTECTED]> wrote:
> 
> > Which means that we need to limit the time these guys spend on a 
> > workstation to maximum 1 hour per day, they should not be able to
> > login again for that day, inactivity logout, say after 10 min, etc
> 
> As you say, I don't think there is an off-the-shelf solution for this,
> but it sounds like a nifty little project.
> 
> As a start, I think something like "sleep 60m && logout" inserted in
> one of the login scripts would give you the big boot-out-the-door
> after an hour online.
> 
> You would have to log and total the time online and use something to
> re-write the 60 to less as the day went by.
> 
> As it's a school you will have to go out of your way to make it
> especially bulletproof, but I don't see any reason why it can't 
> be done.
> 

Not that I can help you any with the scripting, but this post gave me
some ideas about the flow.  Maybe this will help others out.

Basic Idea: User is give XX hours "allowance" for the month. (say with
your request earlier, 30 days x 1 hour each = 30 hours).  Using the idea
above, user can get on for 60min at a time, then kicked off. BUT they
can then get back on. (that is where my idea kind of breaks down from
your original post)

1) When USER_X logs in, time gets recorded in /tmp/USER_X-on (make sure
user does not have write access to this file)

2) At log off, total time is calculated.  If user waited to be kicked,
then of course this time would be 60 min.  So part of the "sleep" line above 
you can just have it assume 60 mins, without doing the math.

3) Total time used recorded in /root/USER_X-used (or some other secure
place)

4) At the beginning of the script, you could have an IF/THEN that checks
the /root/USER_X-used file.  If it is less then the allowance, then X is
started with the default .xsession  If it is greater-then or equal to,
then X is started with your own special .xsession file that posts a
message about time used up already. (xsession is assuming X only logins,
you may want/need to use a different startup script)

I know this is not exactly what you wanted, but I think it should be a
bit easier to script up.  The idea of including a limit of 1 hour PER
day I think would add a large bit of complexity to the script(s).


-- 
http://gentgeen.homelinux.org

#
 Associate yourself with men of good quality if you esteem
 your own reputation; for 'tis better to be alone then in bad 
 company.- George Washington, Rules of Civility

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net


Re: [Ltsp-discuss] Ltsp time counter

2007-06-28 Thread Frank Cox
On Thu, 28 Jun 2007 12:42:41 +0200
Rudolf Rittmann <[EMAIL PROTECTED]> wrote:

> Which means that we need to limit the time these guys spend on a 
> workstation to maximum 1 hour per day, they should not be able to login 
> again for that day, inactivity logout, say after 10 min, etc

As you say, I don't think there is an off-the-shelf solution for this, but it
sounds like a nifty little project.

As a start, I think something like "sleep 60m && logout" inserted in one of
the login scripts would give you the big boot-out-the-door after an hour online.

You would have to log and total the time online and use something to re-write
the 60 to less as the day went by.

As it's a school you will have to go out of your way to make it especially
bulletproof, but I don't see any reason why it can't be done.

-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net


[Ltsp-discuss] Ltsp time counter

2007-06-28 Thread Rudolf Rittmann
Dear All,

I'm looking for help regarding time controlled logins to ltsp
workstations. I have ltsp 4.2 with Fedora Core 6 installed,
authentication is done through LDAP.
This is for a proposed public access solution at one of our educational
institutions, with about 8000 students. The plan is to start off with a
30 station solution and than expand at a later stage.

What remains a big issue is that with these limited resources available,
we would like to give as many students as possible access to a
workstation per day.
Which means that we need to limit the time these guys spend on a
workstation to maximum 1 hour per day, they should not be able to login
again for that day, inactivity logout, say after 10 min, etc

I know there is no easy solution nor off the self solution to this, but
could be done with some scripts. Now this is where the problem comes in.
My scripting is not great, not even at entry level, but I know
somethings could be done with linux through "last", finger, etc.

I need you help, any suggestion would be much appreciated.

Thnks,

Rudolf


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net


Re: [Ltsp-discuss] Ltsp time counter

2007-06-28 Thread Peter Billson
Rudolf,
   I have set up timed LTSP systems in a number of public libraries for 
4 or 5 years now.

   The system uses a mysql back end to track the time, number of 
sessions per day, etc. and xscreensaver as the locking mechanism, with a 
bunch of scripts that do the heavy lifting such as warnings, time 
renewals, etc.

   Some problems:
  This isn't exactly what you are looking for. You probably want a 
new session for each user whereas in the libraries, the same session is 
used all day. Some modifications would be needed to log the student out 
instead of just locking the session.

There is also the problem of a student losing their work if they 
ignore the warning messages, don't save their work and the system logs 
them out.

Everything is GPL'd but the documentation is virtually non-existent.

If you are interested I can post everything on the Web and you can 
have a whack at it. I'd be glad to help where I can.


Pete Billson
--
http://www.elbnet.com
ELB Internet Service, Inc.
Reliable Tech Support for New Jersey's Public Libraries

Rudolf Rittmann wrote:
> Dear All,
> 
> I'm looking for help regarding time controlled logins to ltsp 
> workstations. I have ltsp 4.2 with Fedora Core 6 installed, 
> authentication is done through LDAP.
> This is for a proposed public access solution at one of our educational 
> institutions, with about 8000 students. The plan is to start off with a 
> 30 station solution and than expand at a later stage.
> 
> What remains a big issue is that with these limited resources available, 
> we would like to give as many students as possible access to a 
> workstation per day.
> Which means that we need to limit the time these guys spend on a 
> workstation to maximum 1 hour per day, they should not be able to login 
> again for that day, inactivity logout, say after 10 min, etc
> 
> I know there is no easy solution nor off the self solution to this, but 
> could be done with some scripts. Now this is where the problem comes in. 
> My scripting is not great, not even at entry level, but I know 
> somethings could be done with linux through "last", finger, etc.
> 
> I need you help, any suggestion would be much appreciated.
> 
> Thnks,
> 
> Rudolf
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>   https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.freenode.net
> 


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net


[Ltsp-discuss] Ltsp time counter

2007-06-28 Thread Rudolf Rittmann
Dear All,

I'm looking for help regarding time controlled logins to ltsp 
workstations. I have ltsp 4.2 with Fedora Core 6 installed, 
authentication is done through LDAP.
This is for a proposed public access solution at one of our educational 
institutions, with about 8000 students. The plan is to start off with a 
30 station solution and than expand at a later stage.

What remains a big issue is that with these limited resources available, 
we would like to give as many students as possible access to a 
workstation per day.
Which means that we need to limit the time these guys spend on a 
workstation to maximum 1 hour per day, they should not be able to login 
again for that day, inactivity logout, say after 10 min, etc

I know there is no easy solution nor off the self solution to this, but 
could be done with some scripts. Now this is where the problem comes in. 
My scripting is not great, not even at entry level, but I know 
somethings could be done with linux through "last", finger, etc.

I need you help, any suggestion would be much appreciated.

Thnks,

Rudolf

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net