-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.mv
56 lines (33 loc) · 1.49 KB
/
README.mv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//TODO
- split globalFunction.class en petit bout
- network loader, supprimer les netArrAttr[i] pour y mettre des champs humainement compréhensible (BSSID/SSID ...)
- nmcli, sortir les champs à récupérer
- log avec log4net
- login passwd pour accéder à la page wireless ?
- sortir les JS
- supprimer les .class et .vphp, et interdire la visu sur les fichiers php autre que la page d'index.
- voir du coté du cron pour le refresh du wifi
Installation instruction
Packages
# Install apache2 and php5 lib
apt-get install apache2 php5 libapache2-mod-php5
# Install network-manager and avahi-daemon
apt-get install network-manager avahi-daemon libnss-mdns
Sudo configuration
# Add the following line in /etc/sudoers
www-data ALL=(ALL) NOPASSWD: /usr/local/robot/websudoer/websudoer.sh
Apache configuration
# Modify /etc/apache2/sites-enabled/xxxxx
# Add the following lines in your favourite VirtualHost
<Directory /web/>
Order deny,allow
Allow from all
</Directory>
Copy files
# Copy websudoer.sh to /usr/local/robot/websudoer/ directory
# Copy web site files /var/www/web/ directory
Ends
# Reboot, avahi-daemon seems to need a reboot to work correctly
# Go to http://127.0.0.1/web/
Troubleshooting
# Ahah, linux is not for unlucky guys