nouvelle interface domotique

aucun lien, mais tant qu'a faire autant avoir un repeteur wifi pour etendre le reseaux :slight_smile:

gargoyle integre l'ARPNAT qui permet de faire un repeteur, et les IHM permettent en plus de le faire facilement.

pour te faire gagner du temps: voila la metodologie d'install: (c'est rude je sais mais c'est mon pense bete)

use gargoyle

telnet to 192.168.1.1
passwd to whatever
telnet to the server

add country code to wifi0 and set to 250 in /etc/config/wireless

prepare network
connect in http://192.168.1.1
go to administration
create a new network:
freebox/key/WPA-PSK client (STA)

configure the existing network
wifi-garage wpa-psk/key

change dns in /etc/config/network

don't mess with firewall

on the luci or gargoyle set ntp server to ntp1.proxad.net and ntp2.proxad.net

opkg remove gargoyle
opkg remove httpd-gargoyle
opkg remove bwmon-gargoyle (mess with crontab)

opkg update

opkg install libsqlite3 //dependencies for php en premier sinon ca plante
opkg install libpcre //dependencies en premier sinon ca plante
opkg install php5 //dependencies en premier sinon ......
opkg install php5-cgi
opkg install php5-cli
opkg install setserial
opkg install coreutils-stty
opkg install luci-ssl //don't do that on gargoyle
opkg install luci-app-ntpc (for setting time) //don't do that on gargoyle

/etc/init.d/lighttpd enable

create /www/test/test.php

<?php header("Content-Type: text/plain"); echo "Hello world"; ?>

no need for +x

add this to lighttpd

from this website:
http://www.cyberciti.biz/tips/lighttpd-php-fastcgi-configuration.html

fastcgi.server = (
".php" => (
"localhost" => (
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi",
"max-procs" => 1,
"idle-timeout" => 20,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "2",
"PHP_FCGI_MAX_REQUESTS" => "10000"
),
"bin-copy-environment" => (
"PATH", "SHELL", "USER"
),
"broken-scriptfilename" => "enable"
)
)
)

add ssl (comment line in conf file and create cert)

openssl req -new -x509 -keyout lighttpd.pem -out lighttpd.pem -days 365 -nodes

add

          • ping -c 1 192.168.2.254 > /dev/null
            to /etc/crontab/root

remove ttyS0 from inittab

remove local echo
stty 9600 raw -F /dev/ttyS0