Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
projets:paslarbre [2017/06/19 13:15] – [Paslarbre] gepeto | projets:paslarbre [2024/02/09 16:56] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 33: | Ligne 33: | ||
echo " | echo " | ||
echo " | echo " | ||
- | 127.0.0.1i | + | 127.0.0.1 localhost www.paslarbre.local paslarbre.local paslarbre |
192.168.4.1 www.paslarbre.local paslarbre.local paslarbre | 192.168.4.1 www.paslarbre.local paslarbre.local paslarbre | ||
" > /etc/hosts | " > /etc/hosts | ||
Ligne 53: | Ligne 53: | ||
EOF | EOF | ||
- | apt-get install dnsmasq iptables | + | apt install dnsmasq iptables |
+ | apt remove network-manager | ||
apt-get install avahi-daemon | apt-get install avahi-daemon | ||
Ligne 59: | Ligne 60: | ||
domain=local" | domain=local" | ||
- | apt-get install npm | ||
- | apt-get install redis-server | ||
</ | </ | ||
+ | |||
+ | **Partie hostapd.conf** | ||
+ | < | ||
+ | sudo apt-get -y install iw dnsmasq hostapd | ||
+ | sed -i ' | ||
+ | |||
+ | cat <<EOF > / | ||
+ | # Interface wlan du Wifi | ||
+ | interface=wlan0 | ||
+ | # Driver à utiliser | ||
+ | # | ||
+ | # | ||
+ | # Nom de la Piratebox | ||
+ | # | ||
+ | ssid=PASLARBRE | ||
+ | # Mode Wifi (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g) | ||
+ | hw_mode=g | ||
+ | # Canal de fréquence Wifi (1-14) | ||
+ | channel=6 | ||
+ | # Wifi ouvert à tous, pas d' | ||
+ | auth_algs=1 | ||
+ | # Pour activer les fonctionnalités Wifi N | ||
+ | # | ||
+ | # | ||
+ | EOF | ||
+ | </ | ||
+ | |||
**Partie dnsmasq.conf** | **Partie dnsmasq.conf** | ||
< | < | ||
Ligne 86: | Ligne 112: | ||
sudo git clone https:// | sudo git clone https:// | ||
sudo chown scrumblr | sudo chown scrumblr | ||
- | cd /var/www/scrumblr | + | cd /var/www/scrumb |
+ | |||
+ | apt-get install npm | ||
+ | apt-get install redis-server lr | ||
npm install | npm install | ||
sudo su scrumblr -s /bin/bash | sudo su scrumblr -s /bin/bash | ||
Ligne 96: | Ligne 126: | ||
</ | </ | ||
< | < | ||
- | cat <<EOF | + | cat << |
[Unit] | [Unit] | ||
Description=Scrumblr service | Description=Scrumblr service | ||
Ligne 109: | Ligne 139: | ||
User=scrumblr | User=scrumblr | ||
WorkingDirectory=/ | WorkingDirectory=/ | ||
- | ExecStart=/ | + | ExecStart=/ |
[Install] | [Install] | ||
Ligne 135: | Ligne 165: | ||
iptables-save -c > / | iptables-save -c > / | ||
+ | systemctl daemon-reload | ||
systemctl enable hostapd | systemctl enable hostapd | ||
systemctl start hostapd | systemctl start hostapd | ||
Ligne 141: | Ligne 172: | ||
systemctl enable scrumblr | systemctl enable scrumblr | ||
systemctl start scrumblr | systemctl start scrumblr | ||
+ | #systemctl disable avahi # si jamais de connexion lan | ||
</ | </ | ||
Ligne 185: | Ligne 217: | ||
echo " | echo " | ||
<br> | <br> | ||
- | p.home!= '<a href=\" | + | |
rbre/ | rbre/ | ||
<br> " >> ./ | <br> " >> ./ | ||
Ligne 205: | Ligne 237: | ||
) | ) | ||
</ | </ | ||
- | Voici le paslarbre à décompresser en place /www/ :{{ :projets:scrumblr.tgz |}}, directement fonctionnel | + | Voici le paslarbre à décompresser en place /www/ :{{ :projets:scrumblr_paslarbre.tgz |}}, directement fonctionnel |
j'ai aussi un crontab -e avec | j'ai aussi un crontab -e avec |