Outils pour utilisateurs

Outils du site


maison2:configuration_open_wrt:installed

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
maison2:configuration_open_wrt:installed [04/2012] fredmaison2:configuration_open_wrt:installed [07/2013] (Version actuelle) – [Mettre à jour dynhost (ovh) en php] fred
Ligne 190: Ligne 190:
 done done
 </code> </code>
 +ce script plante de temps en temps en restant planté sur le wget
 +
 __lien de support :__ __lien de support :__
   * http://kubuntu.free.fr/wiki/?page=OpenWrt_backfire  a regarder pour WOL et updatedd   * http://kubuntu.free.fr/wiki/?page=OpenWrt_backfire  a regarder pour WOL et updatedd
   * http://lermit-informatique.blogspot.fr/2009/08/ovh-le-dynhost-de-ovh-et-updatedd.html   * http://lermit-informatique.blogspot.fr/2009/08/ovh-le-dynhost-de-ovh-et-updatedd.html
 +===== Mettre à jour dynhost (ovh) en php =====
 +<code php>
 +
 +$credentials = "identifiantdynhost:motdepasseovh";
 +$url = "http://www.ovh.com/nic/update?system=dyndns&hostname=nomdedomaine&myip=ip";
 +$headers = array( "User-Agent: ipcheck/0.67", "Authorization: Basic " . base64_encode($credentials));
 +$ch = curl_init();
 +curl_setopt($ch, CURLOPT_URL,$url);
 +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
 +curl_setopt($ch, CURLOPT_TIMEOUT, 60);
 +curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
 +
 +$data = curl_exec($ch);
 +  if (curl_errno($ch)) print "Error: " . curl_error($ch);
 +
 +echo $data; 
 +
 +//variante dans un genre de shell
 +#     Update DynDNS with the new IP
 +    :set DynDNSUrl ("http://".$DynDNSUsername.":".$DynDNSPassword."@".$DynDNSServiceProvider."
 +/nic/update?system=dyndns&hostname=".$DynDNSHostname."&myip=".$CurrentPublicIP."&wildcard=no");
 +    /tool fetch url=$DynDNSUrl dst-path="/dyndns.txt";
 +
 +</code>
 +
 +[[http://sourceforge.net/projects/gnuwin32/files/wget/1.11.4-1/wget-1.11.4-1-setup.exe/download?use_mirror=heanet|wget pour windows]] solution pour papa
  
 ====== configuer le bouton pour le wifi sur le WL500GP (non utilisé) ====== ====== configuer le bouton pour le wifi sur le WL500GP (non utilisé) ======
maison2/configuration_open_wrt/installed.1333836495.txt.gz · Dernière modification : 04/2012 de fred