<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		
		<title>bazzanella.org: Nouvelles récentes</title>
		<link>http://www.bazzanella.org/</link>
		<description>Les nouvelles informatiques de bazzanella.org</description>
		<language>fr</language>
		<image>
			<title>bazzanella.org: Nouvelles récentes</title>
			<url>http://www.bazzanella.org/typo3conf/ext/tt_news/ext_icon.gif</url>
			<link>http://www.bazzanella.org/</link>
			<width>18</width>
			<height>16</height>
			<description>Les nouvelles informatiques de bazzanella.org</description>
		</image>
		<generator>TYPO3 - get.content.right</generator>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		
		
		
		<lastBuildDate>Wed, 18 Jan 2012 19:54:00 +0100</lastBuildDate>
		
		
		<item>
			<title>votre ordinateur sous Linux</title>
			<link>http://www.bazzanella.org/nouvelles/details/article/votre-ordinateur-sous-linux.html</link>
			<description>Présentation d'un système Linux pour votre ordinateur ( poste de travail )</description>
			<content:encoded><![CDATA[Les systèmes d'exploitation GNU/Linux sont nombreux et gratuits. Vous devrez en essayer plusieurs et voir celui qui vous convient le mieux.
Utilisateur de Windows, en choisissant un système GNU/Linux, celui qui vous va bien, vos problèmes inhérents : 
<ul><li>de confort d'utilisation (ergonomie et vitesse d'execution), </li><li>de sécurité (Obligation d'un anti-virus ralentissant encore plus un Windows déjà très lent), </li><li>de configuration matériel (Avec Linux, vos pilotes sont installés de base), </li><li>de stabilité (GNU/Linux est un système stable contrairement à Windows.</li><li>de porte-monnaie (L'achat d'un ordinateur inclus toujours le prix du Windows, alors que GNU/Linux est gratuit). </li></ul>
disparaîtront comme par enchantement. Et croyez-moi, lorsque vous&nbsp;goûterez à GNU/Linux, pour rien au monde, vous ne&nbsp;reviendrez  sur Windows.
<br />Vous n'y connaissez rien en informatique ? Vous trouvez Windows un peu compliqué ? Alors GNU/Linux est fait pour vous.
Pour ma part, le système qui me va bien est une distribution Ubuntu 10.04 LTS Desktop.
Une présentation rapide sous forme d'un screencast :
]]></content:encoded>
			<category>UBUNTU</category>
			
			
			<pubDate>Wed, 18 Jan 2012 19:54:00 +0100</pubDate>
			
		</item>
		
		<item>
			<title>Optimisation du serveur de bases de données MySQL</title>
			<link>http://www.bazzanella.org/nouvelles/details/article/optimisation-du-serveur-de-bases-de-donnees-mysql.html</link>
			<description>L'optimisation est une tâche complexe car elle nécessite une parfaite compréhension du système en...</description>
			<content:encoded><![CDATA[Cette nouvelle va tenter d'expliquer et de donner un exemple simple et efficace afin d'optimiser votre serveur MySQL. Souvenez-vous, malgré tout, il existe toujours d'autres moyens (de plus en plus difficiles) de rendre le système plus véloce.
Les deux variables les plus importantes au moment du réglage         d'un serveur MySQL sont <strong>key_buffer</strong> et         <strong>table_cache</strong>. Vous devriez vous assurer que         celles-ci sont sont bien paramétrées avant de modifier les autres         variables.        
Dans cette nouvelle, nous allons voir comment régler de manière optimale la variable <strong>key_buffer</strong>
<strong></strong>Après une période de trafic sur votre serveur MySQL, loguez-vous en root sur le serveur mysql&nbsp;:<br /><div id="tx_codehighlight_pi1"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">mysql <span style="color: #660033;">-uroot</span> -p<span style="color: #000000; font-weight: bold;">&lt;</span>yourpasswordrootmysql<span style="color: #000000; font-weight: bold;">&gt;</span></div></li></ol></pre></div></div><br />effectuez un&nbsp;:<br /><div id="tx_codehighlight_pi1"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">show status like <span style="color: #ff0000;">'key%'</span> ;</div></li></ol></pre></div></div>
Vous obtenez la réponse du système :<br /><div id="tx_codehighlight_pi1"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">+--------------------+-----------+</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">|</span> Variable_name <span style="color: #000000; font-weight: bold;">|</span> Value <span style="color: #000000; font-weight: bold;">|</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">+--------------------+-----------+</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">|</span> Key_blocks_used <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">311642</span> <span style="color: #000000; font-weight: bold;">|</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">|</span> Key_read_requests <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">147513163</span> <span style="color: #000000; font-weight: bold;">|</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">|</span> Key_reads <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">470581</span> <span style="color: #000000; font-weight: bold;">|</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">|</span> Key_write_requests <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">4122525</span> <span style="color: #000000; font-weight: bold;">|</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">|</span> Key_writes <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">716390</span> <span style="color: #000000; font-weight: bold;">|</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">+--------------------+-----------+</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">5</span> rows <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span></div></li></ol></pre></div></div><br /><br />Divisez la valeur <strong>Key_reads</strong> par&nbsp; <strong>Key_read_request</strong> soit ici dans l'exemple&nbsp;: <br />470581 /&nbsp; 147513163 = 0,003190095<br /><br />si le résultat est supérieur à 0,01 augmenter la valeur de <strong>key_buffer</strong> dans le fichier de configuration MySQL se situant à <strong>/etc/mysql/my.cnf</strong><br /><br />Si votre tableau n'est pas encore rempli par manque de trafic, optez pour une première fois une valeur de <strong>key_buffer</strong> comprise entre <strong>25%</strong> et <strong>50%</strong> de la <strong>taille de mémoire physique</strong> du serveur.<br /><br />En ce qui concerne les logs concernant les requêtes longues de plus de 2 secondes, on les désactive sur la production, et on les active sur la machine de développement&nbsp;:<br /><br /><div id="tx_codehighlight_pi1"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">long_query_time = <span style="color: #000000;">2</span> </div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">log_slow_queries              = <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>mysql-slow.log </div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">log_queries_not_using_indexes = <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>mysql-slow.log</div></li></ol></pre></div></div>]]></content:encoded>
			<category>SERVEUR</category>
			
			
			<pubDate>Sat, 10 Sep 2011 14:33:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title>Fonctions Bash</title>
			<link>http://www.bazzanella.org/nouvelles/details/article/fonctions-bash.html</link>
			<description>Vous pouvez améliorer les différents scripts proposés sur ce site Internet en leur intégrant des...</description>
			<content:encoded><![CDATA[Une fonction bash vous permet de ne pas répéter un bout de code dans  votre programme. Vous pouvez également grouper vos fonctions dans des  fichiers de bibliothèques via la directive source  CheminDeVotreBibliotheque.<br /><br />Exemple :
<div id="tx_codehighlight_pi1"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #7a0874; font-weight: bold;">source</span> <span style="color: #000000; font-weight: bold;">/</span>scripts<span style="color: #000000; font-weight: bold;">/</span>mabiblio.sh</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">.........</div></li></ol></pre></div></div>
Une fonction bash peut retourner un code d'erreur numérique, ou une variable quelconque.<br /><br />Un exemple de script bash commenté, utilisant des fonctions, pour en comprendre le principe :
<div id="tx_codehighlight_pi1"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">function</span> OuiNon <span style="color: #7a0874; font-weight: bold;">&#123;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #7a0874; font-weight: bold;">local</span> qst def rep</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #007800;">qst</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">${1:-'Oui ou Non ? '}</span>&quot;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #007800;">def</span>=<span style="color: #ff0000;">&quot;$2&quot;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">while</span> :</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">do</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #c20cb9; font-weight: bold;">read</span> <span style="color: #660033;">-p</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$qst</span>&quot;</span> rep <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$(echo &quot;${rep:-$def}&quot; | tr '[a-z]' '[A-Z]')</span>&quot;</span> <span style="color: #000000; font-weight: bold;">in</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">O<span style="color: #000000; font-weight: bold;">|</span>OUI<span style="color: #000000; font-weight: bold;">|</span>Y<span style="color: #000000; font-weight: bold;">|</span>YES<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">;;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">N<span style="color: #000000; font-weight: bold;">|</span>NON<span style="color: #000000; font-weight: bold;">|</span>NO<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">;;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span> : <span style="color: #000000; font-weight: bold;">;;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Reponse invalide: <span style="color: #007800;">$rep</span>&quot;</span> <span style="color: #000000; font-weight: bold;">;;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">             <span style="color: #000000; font-weight: bold;">esac</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">done</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #7a0874; font-weight: bold;">&#125;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"># avec un parametre</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">function</span> tafonction <span style="color: #7a0874; font-weight: bold;">&#123;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;$1 Visiteur !&quot;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">7</span> <span style="color: #666666; font-style: italic;"># de 0 a 255 max</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #7a0874; font-weight: bold;">&#125;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"># Appel de ta fonction</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">tafonction <span style="color: #ff0000;">&quot;Coucou&quot;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">#Recuperation d'un code de retour de tafonction:</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"># doit etre declaree de suite apres l'appel de tafonction</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #007800;">CODERETOUR_TAFONCTION</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$?</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #007800;">VALEURRETOUR_TAFONCTION</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span> tafonction <span style="color: #ff0000;">&quot;et bien&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">#Recuperation de la valeur du parametre</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"># Retourne par tafonction</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"># dans ton programme principal:</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Une autre valeur de retour est : <span style="color: #007800;">$VALEURRETOUR_TAFONCTION</span>&quot;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Le code de retour est <span style="color: #007800;">$CODERETOUR_TAFONCTION</span>&quot;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"># Avec echo cequetuveux dans tafonction te permet de recuperer</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"># une valeur quelconque sur l'entree standard</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"># Par contre le return 7 te permet de recuperer un code de retour numerique</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"># tu peux donc avec ces elements faire une fonction OuiNon de ton code</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"># et declarer le code de cette fonction une seule fois au debut</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"># de ton programme et l'appeler autant de fois que necessaire.</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">if</span> OuiNon <span style="color: #ff0000;">&quot;Etes-vous favorable a l'utilisation des fonctions ? votre reponse =&gt; &quot;</span> Oui</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">then</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;OK, vous etes favorable. Vous gagnerez en efficacite&quot;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">else</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Ok, vous n'etes pas favorable. Bonjour la maintenance du code !&quot;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">fi</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">if</span> OuiNon <span style="color: #ff0000;">&quot;Etes-vous favorable a l'utilisation de GNU/Linux ? votre reponse =&gt; &quot;</span> Oui</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">then</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;OK, vous etes favorable. Vous gagnerez en efficacite&quot;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">else</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Ok, vous n'etes pas favorable. Vous preferez ce bon vieux CP/M !&quot;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">fi</span></div></li></ol></pre></div></div>
Copiez/Collez ce petit script et rendez-le executable en console :
<div id="tx_codehighlight_pi1"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> +x petitscript.sh</div></li></ol></pre></div></div>
Puis executez-le :
<div id="tx_codehighlight_pi1"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">.<span style="color: #000000; font-weight: bold;">/</span>petitscript.sh</div></li></ol></pre></div></div>
Il faut bien que vous travaillez un peu, hein ?]]></content:encoded>
			<category>SERVEUR</category>
			
			
			<pubDate>Fri, 09 Sep 2011 19:07:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title>Domaine avec ip dynamique</title>
			<link>http://www.bazzanella.org/nouvelles/details/article/domaine-avec-ip-dynamique.html</link>
			<description>S'héberger soi-même avec une IP dynamique et un nom de domaine</description>
			<content:encoded><![CDATA[<p class="align-justify">Vous avez un domaine en .org enregistré chez Gandi SAS et vous vous hébergez vous même derrière une machinbox configurée en routeur et hélas, vous n'êtes pas chez Free. Pas d'IP fixe donc coté WAN de votre machinbox. Comment faire pour que votre domaine pointe sur votre serveur auto-hébergé quelque soit l'IP WAN fournie à votre machinbox ?</p>
Du scriptage tu feras ! :-)
<img src="fileadmin/multimedia/nouvelles/ip_dynamique.jpg" height="288" width="460" alt="" />
&nbsp;C'est arrivé ! Vous êtes dans la mouise. Votre gentil FAI vous a  changé l'IP publique de votre machinbox et comme il est consciencieux,  il vous l'a changé plusieurs fois de suite dans la nuit ou la journée.  Votre site web est inaccessible. Vos visiteurs sont mécontents. Il faut  donc opérer de manière automatique. scriptez vous dis-je !
Installez et configurez ddclient sur votre serveur dns primaire en  désactivant son mode daemon. Ici bazzanella.dyndns-server.com. ddclient  mettra à jour votre ip publique au niveau de votre compte dyndns. Pour  l'ensemble de la planète, bazzanella.dyndns-server.com pointera bien au  final sur votre nouvelle ip publique.
Votre zone pour votre serveur dns primaire bazzanella.dyndns-server.com ressemblera à ceci :
Fichier bazzanella.dyndns-server.com.db :
<div id="tx_codehighlight_pi1"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #007800;">$TTL</span> 3h</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">bazzanella.dyndns-server.com. IN SOA bazzanella.dyndns-server.com.</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                                                root.bazzanella.dyndns-server.com. <span style="color: #7a0874; font-weight: bold;">&#40;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">2011111996</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">28800</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">3600</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">604800</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">38400</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #7a0874; font-weight: bold;">&#41;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">bazzanella.dyndns-server.com. IN NS bazzanella.dyndns-server.com.</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">bazzanella.dyndns-server.com. IN NS ns6.gandi.net.</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">bazzanella.dyndns-server.com. IN A   NOUVELLE_IP_PUBLIQUE</div></li></ol></pre></div></div>
Vos serveurs de nom dans votre interface d'administration chez Gandi sont :
Serveur DNS primaire : bazzanella.dyndns-server.com<br />Serveur DNS secondaire : ns6.gandi.net
Vous devrez donc dans votre zone bazzanella.dyndns-server.com.db  signaler à votre secondaire le changement de votre ip publique en  incrémentant de 1 votre Serial (201111199<span style="color: rgb(255, 0, 0); ">5 </span>passe à 201111199<span style="color: rgb(255, 0, 0); ">6</span>).  Votre secondaire ns6.gandi.net mettra à jour sa zone esclave et prendra  en compte la nouvelle ip publique de votre primaire  bazzanella.dyndns-server.com. ns6.gandi.net n'effectue pas cette  opération immédiatement, il lui faut un certain temps à cause de ses  caches. Chez moi, une petite heure. On vérifiera cette prise en compte  par des nslookup réguliers dans nos scripts cron.
Il nous faut également mettre à jour notre zone bazzanella.org.db de la même manière :
Fichier bazzanella.org.db :
<div id="tx_codehighlight_pi1"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #007800;">$TTL</span> 3h</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">bazzanella.org. IN SOA bazzanella.dyndns-server.com. root.bazzanella.org. <span style="color: #7a0874; font-weight: bold;">&#40;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">2011112016</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">28800</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">3600</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">604800</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">38400</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #7a0874; font-weight: bold;">&#41;</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">bazzanella.org.          IN NS bazzanella.dyndns-server.com.</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">bazzanella.org.          IN NS ns6.gandi.net.</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">bazzanella.org.          IN A   NOUVELLE_IP</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">mail.bazzanella.org.   IN A   NOUVELLE_IP</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">mail2.bazzanella.org. IN A   NOUVELLE_IP</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">smtp.bazzanella.org. IN A    NOUVELLE_IP</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">@</span> <span style="color: #000000;">10800</span>                   IN MX <span style="color: #000000;">10</span> mail.bazzanella.org.</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">@</span> <span style="color: #000000;">10800</span>                   IN MX <span style="color: #000000;">50</span> mail2.bazzanella.org.</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">www IN CNAME bazzanella.org.</div></li></ol></pre></div></div>
Je vous ferais grâce de votre zone inverse, vous y appliquerez le même principe.
Il ne vous reste plus qu'à scripter pour que le changement de votre ip publique soit prise en compte automatiquement.
Mon crontab :
<div id="tx_codehighlight_pi1"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"># m h dom mon dow command</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">*/</span><span style="color: #000000;">3</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">/</span>scripts<span style="color: #000000; font-weight: bold;">/</span>majipdns.sh <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">*/</span><span style="color: #000000;">59</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">/</span>scripts<span style="color: #000000; font-weight: bold;">/</span>verifdns.sh <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span></div></li></ol></pre></div></div>
Le script majipdns s'occupe des domaines. le script verifdns sonde le  secondaire ns6.gandi.net afin de bien prendre en compte le primaire. Le  premier sccipt commande le second. Chacun se base sur une liste de  domaine à traiter (Un par ligne) dans un fichier texte indiqué par la  variable READFILE.
Bientôt, tout ceci sera de l'histoire ancienne. A moi les joies d'une ip fixe avec Free.]]></content:encoded>
			<category>SERVEUR</category>
			
			
			<pubDate>Fri, 09 Sep 2011 18:44:00 +0200</pubDate>
			<enclosure url="http://www.bazzanella.org/uploads/media/majipdns_01.sh" length ="4792" type="text/x-sh" />
			<enclosure url="http://www.bazzanella.org/uploads/media/verifdns_01.sh" length ="3037" type="text/x-sh" />
		</item>
		
		<item>
			<title>sécurité serveur avec TYPO3</title>
			<link>http://www.bazzanella.org/nouvelles/details/article/securite-serveur-avec-typo3.html</link>
			<description>Avec cette extension TYPO3, il vous sera possible de fermer ou d'ouvrir l'accès à votre serveur sur...</description>
			<content:encoded><![CDATA[Pour l'exemple, vous trouverez le source authorize.txt d'un script cron écrit en BASH ci-dessous.
<p class="bodytext">Si vous souhaitez ne pas modifier certaines IPs dans votre /etc/hosts.allow ajoutez leur un masque :<br />93.122.4.2/255.255.255.255 </p>
<p class="bodytext">Le script ne traitera pas ces IPs. </p>
<h3>Scénario d'utilisation parmi d'autres</h3>
<p class="bodytext">Vous êtes en déplacement et votre client vous averti d'un problème sur l'un de ses serveurs au téléphone. </p>
<p class="bodytext">Vous vous connectez alors sur un hotspot à  proximité. Et malheureusement, vous ne pouvez vous rendre en SSH sur le  dit serveur. Le&nbsp;service SSH de ce dernier écoute sur un port particulier  autre que le standard (port 22).  Les hotspots interdisent ce type de  connexion. Vous ne pouvez donc pas répondre à la problématique système  de votre client. </p>
<p class="bodytext">Solution ? </p>
<p class="bodytext">Vous vous connectez à l'extranet (sous TYPO3) et  activez l'accès au serveur via le plugin tbipsave. Une petite minute  d'attente ... Vous pouvez alors vous connecter en console SSH sur le  serveur. Une fois vos sessions ouvertes sur le serveur, vous pouvez via  le plugin tbipsave désactiver l'accès au serveur, et travailler en toute  tranquillité. </p>
<p class="paragraphe-important"><strong>Avantage de cette solution :</strong> <em>Vous  pouvez accéder à vos serveurs de part le monde, sur n'importe quel  poste de travail connecté à Internet sans disposer d'un client VPN sur  celui-ci.</em></p>
<div class="csc-header csc-header-n2"><h4></h4></div>
 <br /> ]]></content:encoded>
			<category>TYPO3</category>
			
			
			<pubDate>Fri, 09 Sep 2011 17:32:00 +0200</pubDate>
			<enclosure url="http://www.bazzanella.org/uploads/media/authorize_01.txt" length ="6076" type="" />
			<enclosure url="http://www.bazzanella.org/uploads/media/T3X_tb_ipsave-1_2_4_0_01.t3x" length ="81105" type="" />
		</item>
		
		<item>
			<title>Synchronisation de Twitter avec tt_news sous TYPO3</title>
			<link>http://www.bazzanella.org/nouvelles/details/article/synchronisation-de-twitter-avec-tt-news-sous-typo3.html</link>
			<description>Vous publier une nouvelle avec l'extension tt_news de TYPO3. Cette nouvelle est automatiquement...</description>
			<content:encoded><![CDATA[C'est quoi un bit lien ou bit.ly ?
Quesque c’est <strong>bit.ly</strong> ?, bit.ly c’est un site web qui  offre un service gratuit très utile lors de notre travail sur internet  le principe de ce service consiste à faire des <em>redirections des liens</em> qui ont une <strong>taille longue</strong> et les rendre petits.
<strong>Raccourcir un lien</strong> vous permet de bénéficier de  beaucoup de choses, par exemple si vous avez un lien très long vous  pouvez le rendre très court et facile à apprendre et à écrire, ainsi que  si vous voulez partager une publication sur <strong>twitter</strong>.com,  et bien sur comme vous savez qu’une publication sur twitter ne dois pas  dépasser 140 caractères, ce qui est très utile d’utiliser cette astuce  dans le cas ou vous avez des liens à publier.
Installation des extensions nécessaires sous TYPO3 :
<ul><li><em>pmkttnewstwitter</em></li><li><em>pagepath</em></li><li><em>realurl</em></li><li>et vous avez déjà installé l'extension<em> tt_news</em></li></ul>
<h3>Configuration de tt_news</h3>
Dans votre <em>Setup</em> vous devez désactiver les caches de tt_news comme ceci :
<p class="paragraphe-bash"><span class="keyword2">plugin</span><span class="ts-operator">.</span><span class="other">tt_news</span><span class="ts-operator">.</span><span class="reserved">allowCaching</span><span class="whitespace"> </span><span class="ts-operator">=</span><span class="whitespace"> </span><span class="other ts-value">0</span></p>
<h3>Configuration de pmkttnewstwitter</h3>
Vous devriez lire avant le <link http://typo3.org/documentation/document-library/extension-manuals/pmkttnewstwitter/0.2.3/view/1/8/ _blank external-link-new-window "Manuel de pmkttnewstwitter"> manuel de cette extension</link>.
Dans le TSConfig de votre page vous devez avoir la configuration suivante :
<p class="paragraphe-bash">tx_pmkttnewstwitter {<br />&nbsp;&nbsp;&nbsp; # Username of Twitter account.<br />&nbsp;&nbsp;&nbsp; bitlyLogin = *************<br />&nbsp;&nbsp;&nbsp; bitlyApiKey = **************<br />&nbsp;&nbsp;&nbsp; CONSUMER_KEY = **************<br />&nbsp;&nbsp;&nbsp; CONSUMER_SECRET = ********************<br />&nbsp;&nbsp;&nbsp; twitterconsumerkey = ******************<br />&nbsp;&nbsp;&nbsp; twitterconsumersecret = ************************<br />&nbsp;&nbsp;&nbsp; twitteraccesstoken = ****************************<br />&nbsp;&nbsp;&nbsp; twitteraccesstokensecret = ******************************<br />&nbsp;&nbsp;&nbsp; cookiepath =<br />&nbsp;&nbsp;&nbsp; login = **************<br />&nbsp;&nbsp;&nbsp; passwd = ***************<br />&nbsp;&nbsp;&nbsp; # Password of Twitter account.<br />&nbsp;&nbsp;&nbsp; twitterUser = ************<br />&nbsp;&nbsp;&nbsp; twitterPassword = **********************<br />&nbsp;<br />&nbsp;&nbsp;&nbsp; #The field to post on Twitter<br />&nbsp;&nbsp;&nbsp; postField = title<br />&nbsp;<br />&nbsp;&nbsp;&nbsp; # Insert link back to singleView page on site.<br />&nbsp;&nbsp;&nbsp; linkBack = 1<br />&nbsp;<br />&nbsp;&nbsp;&nbsp; # If set, then the keywords field will be used as Hash tags when posting.<br />&nbsp;&nbsp;&nbsp; useKeywordsAsHashTags = 1<br />&nbsp;<br />&nbsp;&nbsp;&nbsp; # If PagePath extension is installed, and this is set,<br />&nbsp;&nbsp;&nbsp; # then PagePath WILL NOT be used for generating the links back to the site.<br />&nbsp;&nbsp;&nbsp; noPagePath = 1<br />}</p>
Rien de bien compliqué donc. Ce qui est important est de bien désactiver les caches de tt_news pour que la coopération entre tt_news et Twitter soit pleinement opérationnelle.]]></content:encoded>
			<category>TYPO3</category>
			
			
			<pubDate>Fri, 09 Sep 2011 11:30:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title>Un autocommutateur téléphonique sur bazzanella.org</title>
			<link>http://www.bazzanella.org/nouvelles/details/article/un-autocommutateur-telephonique-sur-bazzanellaorg.html</link>
			<description>Il est arrivé ! Vous pouvez me joindre dorénavant sur mon téléphone fixe (voir la rubrique...</description>
			<content:encoded><![CDATA[<p class="align-justify">Ce PABX est géré par le logiciel Asterisk. J'ai intégré asterisk en dur sans interface graphique ni addons, pour des raisons de stabilité, de perfomance et d'efficacité. Je met donc à disposition pour mes clients et mes appels personnels, appelant sur mon fixe, les fonctionnalités téléphoniques suivantes :</p>
<ul><li>La prise d'appel avec une musique d'attente personnalisé (en fonction du numéro appelant) pour les appels personnels.</li><li> un système de hotline géré par file d'attente avec musique de fond (un extrait de <em>Learning_to_Fly</em> de <em>Pink Floyd</em>). Si nous sommes plusieurs à pouvoir répondre pour une demande de support technique d'un client, nous nous inscrivons en interne par un code saisi au téléphone. Le système nous ajoute à la file d'attente <em>Hotline</em>. Lorsqu'un client appel, le premier d'entre nous de libre est automatiquement mis en relation avec le client. Si aucun de nous ne répond au bout de 30 secondes, le client peut laisser un message.</li><li>un répondeur téléphonique si je suis absent. A mon retour, je peux gérer mes messages directement sur mes combinés téléphoniques ou bien via ma messagerie électronique.</li></ul>
Ce système PABX personnel, me sert de plateforme de développement et de tests. D'autres fonctionnalités suivront ensuite. Le rappel automatique (callback), la possibilité de commander des appareils en téléphonant sur mon fixe avec un code. Comme exemple d'utilisation, l'ouverture automatique de mon portail.
Suivant les demandes fonctionnelles de mes clients, je développerai d'autres choses utiles, améliorant l'efficacité d'une PME/PMI, ou d'un groupe de Freelance ...]]></content:encoded>
			<category>SERVEUR</category>
			
			
			<pubDate>Thu, 08 Sep 2011 13:14:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title>Perturbations sur la boucle locale</title>
			<link>http://www.bazzanella.org/nouvelles/details/article/perturbations-sur-la-boucle-locale.html</link>
			<description>Des perturbations dues à la suspicion de la présence d'une capacité dans ma ligne d'une part et...</description>
			<content:encoded><![CDATA[Comme certain on pu le remarquer, bazzanella.org est auto-hébergé et possède son propre serveur de nom primaire. Raccordé à un NRA via une ligne téléphonique de 243 mètres avec un affaiblissement de 3dB, la bande passante théorique est de 15 Mbits/s. Mais hélas, le DSLAM est parfois surchargé et la bande passante est fortement variable de 1 à 10Mbits/s en moyenne. De plus, j'ai des problèmes d'identification PPP et de désynchronisation réguliers. Suspicion de la présence d'une capacité de 2uF sur ma ligne (Condensateur 3 pattes), propriété de France Telecom ou d'un problème électrique perturbant le modem ADSL, ou enfin modem défectueux. bazzanella.org est donc pour l'instant en ligne de façon intermittente. Ce problème sera normalement (on espère), réglé sous 15 jours. Affaire à suivre... 
<img alt="DSLAM" style="padding: 2px; float: right; " src="fileadmin/multimedia/nouvelles/dslam.jpg" height="225" width="200" />
<ul><li>Le 17/06/2011 ouverture d'un ticket d'incident chez Free.</li><li>Le 30/06/2011 demande de Free de vérification de ligne de l'opérateur historique.</li><li>Le 02/07/2011 Première correction d'une anomalie de ligne (code retour GAMOT : RET)</li></ul>
Soit un délai effectif d'intervention de 16 jours. Il semble que ce délai d'intervention est dépassé. Le délai d'intervention normal étant de 72 heures.
La connexion ADSL n'est toujours pas stable sur un débit moyen (<link https://www.bazzanella.org/typo3/%28http://www.speedzilla.net _blank external-link-new-window>http://www.speedzilla.net</link>) descendant de 2Mbits/s et de 700Kbits/s montant (Test matin, midi et soir).
<ul><li>Le 15/07/2011:&nbsp;Deuxième ticket GAMOT. Un technicien France Telecom a effectué des tests modem (mtt). Taux d'erreur CEF stable. Taux d'erreur CRC stable. Les désynchronisations de la trame ADSL persistent. Brusque montée du taux de CRC provoquant une erreur LOS.</li></ul>
<ul><li>Le 29/07/2011 : 3 ième ticket GAMOT. Changement prévu de modem Freebox.&nbsp; En attendant, j'ai branché la Freebox avec un transformateur 12V du commerce. Toujours le même problème de désynchronisation de la trame ADSL. Demande de changement du modem par Free en cours ...</li><li>Le 09/08/2011 : Echange de modem effectué. Filtre ADSL sur le DSLAM changé par France Telecom. Taux de CRC stable. Plus d'erreur LOS. Pour l'instant, tout va bien : Trame ADSL stable. téléphonie ip stable. Problème résolu.</li></ul>]]></content:encoded>
			<category>SERVEUR</category>
			
			
			<pubDate>Sat, 02 Jul 2011 21:00:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title>Services WEB séparés</title>
			<link>http://www.bazzanella.org/nouvelles/details/article/services-web-separes.html</link>
			<description>La virtualisation permet la séparation des services.</description>
			<content:encoded><![CDATA[L'hyperviseur contient désormais 
<ul><li>une machine virtuelle faisant office de serveur WEB frontal.</li><li>une machine virtuelle contenant le serveur DNS frontal. </li><li>une machine virtuelle contenant le serveur de base de donnée mySQL.</li><li>une machine virtuelle contenant le serveur de mail</li></ul>
<img clickenlarge="1" src="uploads/RTEmagicC_liste_VMs_01.png.png" height="87" width="460" alt="" /><br />&nbsp;
Le serveur de mail est à ce jour opérationnel. Il dispose d'un webmail.
<link fileadmin/multimedia/webmailbig.png _blank download "Cliquez pour agrandir"><img clickenlarge="1" src="uploads/RTEmagicC_webmailbig.png.png" height="219" width="460" alt="" /></link>
Fonctionnalités du serveur de mail :
<ul><li>comptes imaps</li><li>comptes pops</li><li>antispam</li><li>antivirus</li><li>multidomaine</li><li>Quotas utilisateur</li></ul>]]></content:encoded>
			<category>SERVEUR</category>
			
			
			<pubDate>Sat, 14 May 2011 14:29:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title>Virtualisation avec proxmox-ve</title>
			<link>http://www.bazzanella.org/nouvelles/details/article/virtualisation-avec-proxmox-ve.html</link>
			<description>Le site Internet bazzanella.org est virtualisé sous l'hyperviseur Proxmox-ve</description>
			<content:encoded><![CDATA[<p class="align-justify"><img style="float: right;" src="fileadmin/multimedia/nouvelles/diagramme_hyperviseur.png" height="171" width="250" alt="" />La virtualisation consiste à faire fonctionner sur un seul ordinateur plusieurs systèmes d'exploitation comme s'ils fonctionnaient sur des ordinateurs distincts. On appelle serveur privé virtuel (Virtual Private Server ou VPS) ou encore environnement virtuel (Virtual Environment ou VE) ces ordinateurs virtuels.</p>
&nbsp;<br />proxmox-VE est une distribution Linux qui permet grâce à des outils libres comme OpenVZ et KVM de mettre en place une plateforme de virtualisation clé en main. C’est à dire sans système d'exploitation à installer au préalable.<br /><br />Proxmox-VE permet deux modes de virtualisation :
Le premier mode est une technique de virtualisation de niveau <em>système d'exploitation</em> basée sur le noyau Linux, appelé également <em>isolateur</em> noyaux. Gérée par openVZ, elle permet au noyau de la machine physique de faire tourner plusieurs instances de systèmes d’exploitation isolées  (partitionnement de noyaux), appelées des environnements virtuels. Par contre il faut que le système hôte et le système invité soit de base Linux. La virtualisation au niveau noyau permet une meilleure gestion des ressources et des performances accrues par rapport à une virtualisation système.<br /><br />Le deuxième mode est la <em>virtualisation système</em>. C’est à dire que la machine invité est complètement virtuelle (carte réseau, processeur, ram ….). Avec ce mode, la machine est complètement indépendante du matériel physique et du système hôte, on peut donc virtualiser du Linux ou du Windows. Géré par KVM intégré dans le noyau Linux version 2.6.20 et supérieur, il faut s’assurer dans un premier temps que le processeur physique soit compatible avec les technologies Intel VT pour un processeur Intel et AMD-V pour un processeur AMD. Cela se vérifie dans le bios de l’ordinateur. Ou bien, si vous êtes sous un système Linux, en terminal vous pouvez tester si votre processeur gère la virtualisation matériel en exécutant :
<div id="tx_codehighlight_pi1"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #c20cb9; font-weight: bold;">egrep</span> <span style="color: #ff0000;">'^flags.*(vmx|svm)'</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>cpuinfo</div></li></ol></pre></div></div>
Pour utiliser proxmox-VE, nul besoin de système d’exploitation, tout est intégré. C’est ce que l'on appelle un hyperviseur. Il possède sont propre système d'exploitation. Pour proxmox-VE, c’est une Debian Lenny 64 bits qui fait tourner le tout, ce qui est un gage de stabilité.<br />Egalement, grâce à son interface web intégrée, l’administration des  machines virtuelles et celle de l'hyperviseur est très simple et peut se  faire de n’importe quel endroit sur le réseau, sur n’importe quel  système (Linux, Windows, Mac OS) puisqu’un simple navigateur Internet  suffit.
L’installation et la configuration en eux-mêmes ne prennent pas plus de 5 ou 6 minutes et elles sont simplicimes. La gestion des VMs (création, suppression, arrêt, démarrage) et leurs sauvegardes peuvent s'effectuer par des commandes en terminal. Vous pouvez ainsi implémenter vos fonctionnalités de gestion de machines virtuelles par des scripts, suivant vos besoins et contraintes, opérationnels.
L'hypervision de mes machines virtuelles est pleinement opérationnelle et sécurisée avec cette solution en mode <em>virtualisation système</em> (KVM) et dotée d'une sauvegarde automatique externalisée hebdomadaire.
Vous pouvez vous documenter, télécharger et installer l'hyperviseur Proxmox-VE à http://pve.proxmox.com/wiki/Downloads]]></content:encoded>
			<category>SERVEUR</category>
			
			
			<pubDate>Wed, 11 May 2011 13:54:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title>Windows XP en top position</title>
			<link>http://www.bazzanella.org/nouvelles/details/article/windows-xp-en-top-position.html</link>
			<description>Sur la planète, Windows XP reste malheureusement largement en tête (46,89 %), devant Windows 7...</description>
			<content:encoded><![CDATA[Sur le continent Africain, Windows XP détient 65% du parc des micro-ordinateurs. En Europe, Windows XP est le vainqueur incontestable avec près de 40% du parc des micro-ordinateurs.
Et pourtant, la <link http://ubuntu-fr.org/telechargement _blank external-link-new-window Téléchargement>distribution GNU/Linux Ubuntu</link> est la plus simple à installer, à paramétrer, à personnaliser.&nbsp;D'innombrables avancées technologiques au niveau de son coeur en font l'un des systèmes d'exploitation le plus puissant et rapide du moment. Avec plusieurs choix d'interfaces graphiques il reste&nbsp;simple et pratique à utiliser.

]]></content:encoded>
			<category>UBUNTU</category>
			
			
			<pubDate>Tue, 12 Apr 2011 09:22:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title>Liberté en danger, soutenez la quadrature du Net</title>
			<link>http://www.bazzanella.org/nouvelles/details/article/liberte-en-danger-soutenez-la-quadrature-du-net.html</link>
			<description>La neutralité du Net fait d'Internet un réseau multi-directionnel et décentralisé, dont la gestion...</description>
			<content:encoded><![CDATA[<span style="text-align: justify;"><strong></strong></span>C'est cette <strong>liberté de transmission d'un bout à l'autre de l'architecture communicationnelle</strong> qui met tous les utilisateurs d'Internet sur un pied d'<strong>égalité</strong>, leur permettant de <strong>recevoir et de distribuer l'information de leur choix</strong>, et ce quelque soit leurs ressources financières ou leur statut social. 
<p style="text-align: justify;"><link http://www.laquadrature.net/fr/ACTA><img class="l" src="uploads/RTEmagicC_ae75a91bb3.png.png" height="110" width="150" alt="" /></link></p>
Depuis  le printemps 2008, L'Union européenne, les États-Unis, le Japon, le  Canada, la Corée du Sud, l'Australie ainsi qu'un certain nombre d'autres  pays négocient secrètement un <strong>accord commercial destiné à lutter contre la contrefaçon</strong>  (Anti-Counterfeinting Trade Agreement). Suite à des fuites de documents  confidentiels, il apparaît clairement que l'un des buts principaux de  ce traité est de forcer les pays signataires à mettre en place des  mesures de répression de partage d'œuvre sur Internet sous la forme de  “riposte graduée” et de filtrage du Net.
Alors que d'importants débats ont lieu sur la nécessité d'adapter le droit d'auteur à l'ère numérique, ce traité cherche à <strong>contourner les processus démocratiques</strong>  afin d'imposer, par la généralisation de mesures répressives, un régime  juridique fondamentalement dépassé qui pourrait bien sonner le glas de  la neutralité du Net.
Visiter et aider la <link http://www.laquadrature.net/fr/ - external-link-new-window "La quadrature du Net">quadrature du Net</link>.]]></content:encoded>
			<category>WEB</category>
			
			
			<pubDate>Thu, 24 Mar 2011 22:05:00 +0100</pubDate>
			
		</item>
		
		<item>
			<title>Un hyperviseur Open Source</title>
			<link>http://www.bazzanella.org/nouvelles/details/article/un-hyperviseur-open-source.html</link>
			<description>Proxmox-ve est un hyperviseur open source permettant le clustering, la migration à chaud de VMs,...</description>
			<content:encoded><![CDATA[<img src="fileadmin/multimedia/nouvelles/proxmox_cluster.png" height="243" width="451" alt="" />
Proxmox Virtual Environment est un logiciel libre de virtualisation, plus précisément un hyperviseur de machine virtuelle. Il est développé et maintenu par Proxmox Server Solutions GmbH avec un support financier de l'Internet Foundation Austria (IPA).
Un vrai bonheur dans sa version 1.7 ! J'attends avec patience la v2.0:<br />Migration à chaud des VMs en fonction de la charge des noeuds du cluster. Possibilité de définir plusieurs maîtres ...
Suivez la <link http://pve.proxmox.com/wiki/Roadmap#Roadmap_for_2.x _blank external-link-new-window "Roadmap V2 proxmox">roadmap de la V2</link><br />Site officiel : http://pve.proxmox.com]]></content:encoded>
			<category>SERVEUR</category>
			
			
			<pubDate>Tue, 22 Feb 2011 21:21:00 +0100</pubDate>
			
		</item>
		
		<item>
			<title>Google Chrome 9</title>
			<link>http://www.bazzanella.org/nouvelles/details/article/google-chrome-9.html</link>
			<description>Plus rapide que son concurrent Mozilla Firefox, doté d'un débogueur plus puissant que Firebug.</description>
			<content:encoded><![CDATA[Je suis en train de tester cette bête de course qu'est Google Chrome. Bien plus stable que Firefox, qui commence à me décevoir de plus en plus. Google Chrome s'avère être le navigateur Internet par excellence. Affaire à suivre ...
<br />Vous pouvez le télécharger à cette adresse :
<link http://www.google.com/chrome?hl=fr>http://www.google.com/chrome?hl=fr</link>]]></content:encoded>
			<category>WEB</category>
			
			
			<pubDate>Wed, 09 Feb 2011 11:14:00 +0100</pubDate>
			
		</item>
		
		<item>
			<title>Nouveau domaine hébergé</title>
			<link>http://www.bazzanella.org/nouvelles/details/article/nouveau-domaine-heberge.html</link>
			<description>Un tout nouveau domaine hébergé sur ce serveur personnel</description>
			<content:encoded><![CDATA[<link http://www.angeliquebussy.org>http://www.angeliquebussy.org</link> est un domaine additionnel hébergé sur ce serveur personnel. Longue vie à ce nouveau site Internet ;-)
]]></content:encoded>
			<category>SERVEUR</category>
			
			
			<pubDate>Mon, 22 Nov 2010 21:33:00 +0100</pubDate>
			
		</item>
		
		<item>
			<title>Concevoir des animations flash complexes sous GNU/Linux</title>
			<link>http://www.bazzanella.org/nouvelles/details/article/concevoir-des-animations-flash-complexes-sous-gnulinux.html</link>
			<description>Le projet Ella (Elegant Light Linux Animator) est un logiciel libre et léger destiné à produire des...</description>
			<content:encoded><![CDATA[Son cycle de vie prévoit dans quelques mois l'intégration d'ActionScript.
Venez contribuer comme testeur ou développeur sur le site du projet à <link http://ella.tuxfamily.org/wiki/Main_Page>http://ella.tuxfamily.org/wiki/Main_Page</link>
Pour la distribution Ubuntu, vous pourrez avoir plus d'informations en visitant http://doc.ubuntu-fr.org/ella]]></content:encoded>
			<category>UBUNTU</category>
			
			
			<pubDate>Wed, 17 Nov 2010 19:39:00 +0100</pubDate>
			
		</item>
		
		<item>
			<title>Laboratoire TYPO3</title>
			<link>http://www.bazzanella.org/nouvelles/details/article/laboratoire-typo3.html</link>
			<description>Un espace de démonstration des extensions les plus populaires pour TYPO3. Visitez le laboratoire ...</description>
			<content:encoded><![CDATA[<link http://labotypo3.infoglobe.ca/ _blank - LaboTypo3>http://labotypo3.infoglobe.ca/</link>]]></content:encoded>
			<category>TYPO3</category>
			
			
			<pubDate>Tue, 26 Jan 2010 16:30:00 +0100</pubDate>
			
		</item>
		
	</channel>
</rss>
