Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
technique:archives:brix-stg2 [2016/05/06 23:34] admin créée |
technique:archives:brix-stg2 [2017/11/10 22:04] (Version actuelle) admin [A wikifier :] |
||
---|---|---|---|
Ligne 14: | Ligne 14: | ||
==== Config réseau ==== | ==== Config réseau ==== | ||
- | * Le NUC n'a qu'une interface réseau, donc tout part sur la base de VLANs \\ (confère /etc/network/interfaces) | + | * Le NUC n'a qu'une interface réseau, donc tout part sur la base de VLANs (confère /etc/network/interfaces) |
* Changer le /etc/hostname : stg2 | * Changer le /etc/hostname : stg2 | ||
* Utiliser /etc/debian_chroot pour éviter les confusions des machines | * Utiliser /etc/debian_chroot pour éviter les confusions des machines | ||
- | <code>echo NUC > /etc/debian_chroot | + | <code> |
+ | echo NUC> /etc/debian_chroot | ||
source ~/.bashrc | source ~/.bashrc | ||
- | |||
</code> | </code> | ||
+ | |||
* Mettre l'IP publique dans /etc/hosts (car sinon résolution de stg pourrie chez les adhérents) | * Mettre l'IP publique dans /etc/hosts (car sinon résolution de stg pourrie chez les adhérents) | ||
- | <code>91.224.148.6 stg2.tetaneutral.net stg2 | + | <code> |
+ | 91.224.148.6 stg2.tetaneutral.net stg2 | ||
</code> | </code> | ||
+ | |||
* Vérifier que le FQDN fonctionne | * Vérifier que le FQDN fonctionne | ||
- | <code>(NUC)root@stg2:~# hostname | + | <code> |
+ | (NUC)root@stg2:~# hostname | ||
stg | stg | ||
(NUC)root@stg:~# hostname --fqdn | (NUC)root@stg:~# hostname --fqdn | ||
stg.tetaneutral.net | stg.tetaneutral.net | ||
- | |||
</code> | </code> | ||
==== A wikifier : ==== | ==== A wikifier : ==== | ||
- | <code>=== Apache Server === | + | === Apache Server === |
+ | |||
+ | <code> | ||
apt-get install apache2-mpm-prefork libapache2-mod-php5 php5-cli | apt-get install apache2-mpm-prefork libapache2-mod-php5 php5-cli | ||
- | * TODO : reprendre /var/www... + conf apache htpasswd... | + | </code> |
+ | |||
+ | * TODO : reprendre /var/www… + conf apache htpasswd… | ||
+ | |||
+ | === Munin Server === | ||
+ | <code> | ||
+ | apt-get install munin libapache2-mod-fcgid a2enmod rewrite | ||
</code> | </code> | ||
- | === Munin Server === \\ ''apt-get install munin libapache2-mod-fcgid a2enmod rewrite '' * confère fichiers de conf de /etc/munin/ : apache.conf munin.conf munin-htpasswd munin-conf.d/hosts.conf | + | * confère fichiers de conf de /etc/munin/ : apache.conf munin.conf munin-htpasswd munin-conf.d/hosts.conf |
=== Air Control === | === Air Control === | ||
- | ''mkdir /opt/aircontrol cd /opt/aircontrol wget http://www.ubnt.com/downloads/aircontrol/aircontrol_1.4.2-beta_all.deb dpkg -i aircontrol_1.4.2-beta_all.deb apt-get install -f # -> Port par defaut : 9080 service aircontrol stop ln -s java-1.6.0-openjdk-amd64 /usr/lib/jvm/java-6-sun mkdir /var/log/aircontrol mv /usr/share/aircontrol/logs/ /var/log/aircontrol ln -s /var/log/aircontrol/logs/ /usr/share/aircontrol service aircontrol start tail -f /var/log/aircontrol/logs/* & wget -O - localhost:9080/home.seam '' * Lire [[http://wiki.ubnt.com/AirControl#Installation|http://wiki.ubnt.com/AirControl#Installation]] | + | <code> |
+ | mkdir /opt/aircontrol | ||
+ | cd /opt/aircontrol | ||
+ | wget http://www.ubnt.com/downloads/aircontrol/aircontrol_1.4.2-beta_all.deb| | ||
+ | dpkg -i aircontrol_1.4.2-beta_all.deb | ||
+ | apt-get install -f | ||
+ | # Port par defaut : 9080 | ||
+ | service aircontrol stop | ||
+ | ln -s java-1.6.0-openjdk-amd64 /usr/lib/jvm/java-6-sun | ||
+ | mkdir /var/log/aircontrol | ||
+ | mv /usr/share/aircontrol/logs/ /var/log/aircontrol | ||
+ | ln -s /var/log/aircontrol/logs/ /usr/share/aircontrol | ||
+ | service aircontrol start | ||
+ | tail -f /var/log/aircontrol/logs/* & | ||
+ | wget -O - localhost:9080/home.seam | ||
+ | </code> | ||
+ | === === | ||
+ | |||
+ | === **Test de debit sur sérveur** === | ||
+ | |||
+ | <code> | ||
+ | wget -O /dev/null http://pouzenc.fr/test100M | ||
+ | </code> | ||
+ | * Lance un test de debit avec 100M sur serveur pouzenc.fr | ||
+ | |||
+ | **Iperf3** | ||
+ | |||
+ | <code> | ||
+ | iperf3 -d -c pouzenc.fr | ||
+ | </code> | ||
+ | |||
+ | * Lire [[http://wiki.ubnt.com/AirControl#Installation|http://wiki.ubnt.com/AirControl#Installation]] | ||