Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have an small cyber cafe with 6 machines using debian sarge. I use a software call cybermin to control de access to the computers. This software is no that good and I want something more automatic.
My idea is that I can create several users on the network and I would use nis or openldap to centralize this information. So my clients would be available to login from any computer with the same username and password.
After I do this I want to control the time of the users. I was thinkin tu use the .login and .logout scripts of the shell (just guessing the names of the scripts). So when the user logins a timer would start and while this timer is diferente than 0 the user can still login. If the timer is equal to 0 no more credit he would have to buy another card or rechard the one he is using.
I would also would like to have a timer on the screem, I would preffer to have it on a panel.
This are just ideas that I have to automatize my cyber cafe. The idea is that it can work with out me, and there would be someone selling the pre pay cards so my clients can use the computers.
Any recomendation, I would start playing with nis tomarrow. Hope to hear from you.
Either NIS or LDAP will work fine for this, I think. With LDAP you *might* be able to store the time amounts in the same database as well. Otherwise, a tiny MySQL database can store this information, but that might make things a tiny bit more complex. This actually sounds like a really interesting project (though, to you, I'm sure it's "just business"). Centralized authentication definitely makes sense.
Feel free to get in touch with me (and, of course, anyone on this forum) if you run into problems, but I'd love to see how this turns out. System administration issues are my favorite, lol.
So I have setup nis now on my debian sarge network and I have centralize the login.
Now I would like to do the time control.
1) I want to save the time that the user has left. (can be mysql)
2) I want to have a timer in a panel of the gui. (I am using gnome)
3) I would like to pop-up windows when there is a small amount of time left.
4) Logout when the left time is 0
Would you recommend any programing language?
How can I make the gui? (pretty simple)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.