LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 03-25-2003, 11:11 PM   #1
synfield
LQ Newbie
 
Registered: Mar 2003
Location: Auckland, New Zealand
Distribution: RH 7.3
Posts: 15

Rep: Reputation: 0
linux internet cafe solution


Need to implement a cybercafe monitoring solution for monitoring users session times log in/log out session expiry etc., on redhat 7.3 network.

I have heard of Linux Terminal Services Project (LTSP) which configures a thin client model network, but I would still need a centralized administration interface that can be maintained by anon-computer literate person.

What would be an efficient & viable way to implement this, i.e. what network files could I manipulate to do this without affecting the whole network?

I thought about systematically updating the dhcp.conf file, i.e. changing lease times on clients - is this viable?

Or could I use samba authentication?

Or systematically updating iptables?

Would welcome any thoughts or ideas as a starting point.
 
Old 03-25-2003, 11:38 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Gidday mate,

and the probably easiest to achieve method
would be to use a hardware device with a
timer (like a parking meter) that simply disconnects
the UTP-Cable :}

You'd want the boxes physically shielded,
anyway, put in some sort of closet, so it would
be safe from physical tampering, too.


Another possibility would be to set up PAM
and have a database of temporary user-id's
and passwords, and have some sort of demon
on the linux - surf - machine running that just shuts
ports that aren't needed for maintenance (all
but 5432 if it were a PostgreSQL solution)after
the time has expired.

Cheers,
Tink
 
Old 03-26-2003, 01:28 AM   #3
synfield
LQ Newbie
 
Registered: Mar 2003
Location: Auckland, New Zealand
Distribution: RH 7.3
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks mate, like the pam idea - what sort of daemon could be used for shuting down ports?

- good to know that there are other kiwis out there that also 'brake for penguines' :-)
 
Old 03-26-2003, 03:24 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Quote:
kiwis out there that also 'brake for penguines'
/me chuckles

Got that wrong mate, we accelerate with penguin-power ;)

Quote:
what sort of daemon could be used for shutting down ports?
Didn't spend too much time thinking about it ... the fastest
way I can think of (least effort) would be a shell-script
that is called by cron on a per-minute basis, does a
ps -A u, gather user's processes that match the naming
conventions of your temporary names, generate a tmp-file
with the users name (so it doesn't get triggered twice),
spawn a new process, set a sleep for the amount of time
that you setup in the database for that particular user,
after that ran out delete the user from the database, and
lock the screen :) or run another script that modifies iptables
so it only allows port 5432 queries ;)

The disadvantage of this solution is that user can't top-up
his time easily (could be changed easily enough, though,
just make the spawned job query the database in intervals
to see whether the time has changed)

Cheers,
Tink

p.s.: there's a bunch of solutions out there already ;)
http://freshmeat.net/search/?q=inter...ction=projects
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
is there a internet cafe software for linux montevince Linux - Software 2 09-19-2005 10:56 AM
Choose Linux stand in internet Cafe, is it good idea? and why? Khmer Linux - General 2 08-26-2005 04:12 AM
Linux Internet Cafe Elijah General 19 02-09-2005 07:06 PM
which Linux distro for an internet cafe machine vannet Linux - Distributions 7 02-20-2004 06:17 AM
How to start an internet cafe using linux mloring Linux - General 10 10-16-2002 02:59 AM


All times are GMT -5. The time now is 03:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration