Hottik
De MaliWiki.
Hot-tik - Gestion d'utilisateurs dans un cyber-café, interface HTML pour le hotspot d'un Mikrotik.
Hot-tik est développé en Python et utilise une connexion ssh pour envoyer les commandes et recevoir l'information du Mikrotik. Ce projet sera disponible sous la GNU General Public License.
[modifier] Buts
- Permettre aux gestionnaires d'un cyber-café
- de gérer leurs usagers (liste des usagers, ajout, modification, etc)
- de leur accorder du temps prépayé
- Ne pas utiliser un serveur radius pour limiter le nombre d'ordinateurs ouverts en permanence.
- Avoir une interface HTML en francais facile (ahahah RFI)
- Trouver une solution simple, légère, portable à ce problème.
[modifier] Dependencies
- paramiko for SSH connectivity
- python-crypto
[modifier] Problem with PHP-SSH
The first idea was to use PHP in combination with PHP-SSH, but some weird problems occured, with apparently no quick solutions, so we moved on to Python.
- Compiler PHP avec SSH support ou bien PHP5?
There's a problem with the SSH connection. On the commandline it's working fine, but from PHP I get:
Warning: ssh2_connect(): Error starting up SSH connection(-5): Unable to exchange encryption keys in /var/www/hottik/status.php on line 9
Programming.Has.No.Com has a solution to this, basically you need to create /dev/random and /dev/urandom in your web servers chroot
