<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>B3nZ3n.be &#187; debian</title>
	<atom:link href="http://www.B3nZ3n.be/tag/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.B3nZ3n.be</link>
	<description>Just another geek</description>
	<lastBuildDate>Wed, 23 Nov 2011 16:40:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Rsync</title>
		<link>http://www.B3nZ3n.be/rsync/</link>
		<comments>http://www.B3nZ3n.be/rsync/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 15:22:45 +0000</pubDate>
		<dc:creator>B3nZ3n</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Geek's stuff]]></category>
		<category><![CDATA[Oldies]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[partage de fichiers]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[synchronisation]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://www.B3nZ3n.be/?p=834</guid>
		<description><![CDATA[Petit recyclage d&#8217;un article que j&#8217;avais écrit il y de ça quelques temps sur mon ancienne plateforme de blog.. Quand on en a marre de bosser, on fait des petits scripts ;D En voilà qui sera peut-être utile à quelqu&#8217;un un jour. C&#8217;est un petit script sh qui permet de faire un backup incrémental (pas [...]]]></description>
			<content:encoded><![CDATA[<p><em>Petit recyclage d&#8217;un article que j&#8217;avais écrit il y de ça quelques temps sur mon ancienne plateforme de blog..</em></p>
<blockquote><p>Quand on en a marre de bosser, on fait des petits scripts ;D<br />
En voilà qui sera peut-être utile à quelqu&#8217;un un jour. C&#8217;est un petit script sh qui permet de faire un <strong>backup incrémental</strong> (pas de copie complète, seuls les fichiers modifiés sont sauvegardés) et les les fichiers originaux (avant backup) sont copiés dans sur un autre disque faisant office <strong>d&#8217;archive</strong>. Le script supprime également toutes les archives de plus de 30 jours.<br />
Le tout utilise <strong>rsync</strong>. c&#8217;est vraiment rapide et efficace, le raid du pauvre en quelques sorte.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
<span style="color: #007800;">JOUR</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>Y-<span style="color: #000000; font-weight: bold;">%</span>m-<span style="color: #000000; font-weight: bold;">%</span>d<span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Sauvegarde lancée&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">date</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>rsync <span style="color: #660033;">--progress</span> <span style="color: #660033;">--force</span> <span style="color: #660033;">--stats</span>  <span style="color: #660033;">-h</span> <span style="color: #660033;">--ignore-errors</span> <span style="color: #660033;">--delete</span> <span style="color: #660033;">--backup</span> <span style="color: #660033;">--backup-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>archive<span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$JOUR</span><span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-av</span> <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>rsync <span style="color: #660033;">--progress</span> <span style="color: #660033;">--force</span> <span style="color: #660033;">-h</span> <span style="color: #660033;">--stats</span> <span style="color: #660033;">--ignore-errors</span> <span style="color: #660033;">--delete</span> <span style="color: #660033;">--backup</span> <span style="color: #660033;">--backup-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>archive<span style="color: #000000; font-weight: bold;">/</span>b3nz3n<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$JOUR</span><span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-av</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>b3nz3n<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span>b3nz3n<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>rsync <span style="color: #660033;">--progress</span> <span style="color: #660033;">--force</span> <span style="color: #660033;">-h</span> <span style="color: #660033;">--stats</span> <span style="color: #660033;">--ignore-errors</span> <span style="color: #660033;">--delete</span> <span style="color: #660033;">--backup</span> <span style="color: #660033;">--backup-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>archive<span style="color: #000000; font-weight: bold;">/</span>Audio<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$JOUR</span><span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-av</span> <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>ntfs<span style="color: #000000; font-weight: bold;">/</span>Audio<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span>Audio<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## On detruit les fichiers vieux de plus de 30 jours</span>
<span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>archive<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-atime</span> +<span style="color: #000000;">30</span> <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> ;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Sauvegarde terminée&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">date</span></pre></div></div>

<p>Il vous suffit de l&#8217;adapter à vos besoins: &#8211;backup-dir=/media/archive/xx/$JOUR/ est le répertoire dans lequel les fichiers seront archivés, /media/ntfs/xx/ le répertoire à sauvegarder et /media/backup/xx/ le répertoire de destination.</p></blockquote>
<p>Il est à noter que rsync synchronise dans les deux sens, c&#8217;est à dire que si un fichier est modifié dans le répertoire de destination, celui ci le sera dans le répertoire d&#8217;origine. Il est donc possible d&#8217;étendre l&#8217;utilisation de rsync pour par exemple, synchroniser deux pcs (un sous Windows 7 et l&#8217;autre sous debian) très facilement. A titre d’exemple voici le petit script qui me permet de synchroniser mon répertoire de travail entre mes deux pcs. Le répertoire sous windows étant partagé via le partage de fichier windows.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Sync lance&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">date</span>
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-t</span> cifs <span style="color: #000000; font-weight: bold;">//</span>192.168.0.2<span style="color: #000000; font-weight: bold;">/</span>Work <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>KAREN<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-o</span> <span style="color: #007800;">user</span>=B3nZ3n,<span style="color: #007800;">password</span>=password,<span style="color: #007800;">workgroup</span>=WORKGROUP,<span style="color: #007800;">ip</span>=192.168.0.2
rsync <span style="color: #660033;">--progress</span> <span style="color: #660033;">--force</span> <span style="color: #660033;">--stats</span> <span style="color: #660033;">-h</span> <span style="color: #660033;">--ignore-errors</span> <span style="color: #660033;">--delete</span> <span style="color: #660033;">-av</span> ~<span style="color: #000000; font-weight: bold;">/</span>Work<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>KAREN<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Sync termine&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">date</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.B3nZ3n.be/rsync/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Partage de connexion wifi sous Debian</title>
		<link>http://www.B3nZ3n.be/partage-de-connexion-wifi-sous-debian/</link>
		<comments>http://www.B3nZ3n.be/partage-de-connexion-wifi-sous-debian/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 17:57:41 +0000</pubDate>
		<dc:creator>B3nZ3n</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Geek's stuff]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[LAN]]></category>
		<category><![CDATA[partage de connexion]]></category>
		<category><![CDATA[réseau]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://B3nZ3n.info/B3nZ3n/?p=190</guid>
		<description><![CDATA[Ayant récemment des problèmes de stabilité de réseau wifi au kot j&#8217;ai trouvé une solution pour améliorer mon ping ingame Beaucoup de solutions existent pour mieux capter un signal wifi, mais j&#8217;ai remarqué que mon pc portable captait bien mieux le signal que mon fixe.. N&#8217;ayant pas à ma disposition d&#8217;antenne wifi performante j&#8217;ai tenté [...]]]></description>
			<content:encoded><![CDATA[<p>Ayant récemment des problèmes de stabilité de réseau wifi au kot j&#8217;ai trouvé une solution pour améliorer mon ping ingame <img src='http://www.B3nZ3n.be/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Beaucoup de solutions existent pour mieux capter un signal wifi, mais j&#8217;ai remarqué que mon pc portable captait bien mieux le signal que mon fixe.. N&#8217;ayant pas à ma disposition d&#8217;antenne wifi performante j&#8217;ai tenté d&#8217;utiliser mon pc portable sous debian comme antenne wifi. J&#8217;ai donc partagé la connexion wifi de mon pc portable pour que celle-ci soit accessible via l&#8217;interface ethernet. Mon pc fixe est donc relié à mon pc portable par un cable ethernet et se connecte à Internet en l&#8217;utilisant comme passerelle.</p>
<p><span style="text-decoration: underline;">Sur le PC fixe</span>: Il suffit de désactiver l&#8217;interface wifi et de configurer l&#8217;interface câblée avec une IP fixe (ex: 192.168.0.2) et de mettre l&#8217;IP du PC portable comme passerelle (ex: 192.168.0.1).</p>
<p><span style="text-decoration: underline;">Sur le PC portable:</span><br />
Interface cablée (eth0): mettre une la même IP que celle configurée comme passerelle sur le fixe (ici 192.168.0.1) à l&#8217;aide de ifconfig par ex:
<pre lang="**bash**" line="1">sudo ifconfig eth0 192.168.0.1</pre>
<p>Interface wifi (wlan0): se connecter simplement au wifi (chez moi en dhcp).</p>
<p>Il suffit ensuite de configurer les iptables avec la commande suivante: 
<pre lang="**bash**" line="1">sudo iptables -A POSTROUTING -t nat -o wlan0 -j MASQUERADE</pre>
<p>Et c&#8217;est tout, internet devrait être disponible sur le PC fixe <img src='http://www.B3nZ3n.be/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div id="attachment_192" class="wp-caption aligncenter" style="width: 310px"><a href="http://B3nZ3n.info/B3nZ3n/wp-content/uploads/2010/02/ping.jpg"><img class="size-medium wp-image-192 " title="ping" src="http://B3nZ3n.info/B3nZ3n/wp-content/uploads/2010/02/ping-300x226.jpg" alt="" width="300" height="226" /></a><p class="wp-caption-text">C&#39;est le router wifi qui est ici pingé, à gauche directement de mon pc fixe via une carte wifi, à droite en utilisant le pc portable comme passerelle.</p></div>
<p style="text-align: center;">Comme on peut le voir sur l&#8217;image ci-dessous, la différence est flagrante.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.B3nZ3n.be/partage-de-connexion-wifi-sous-debian/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PrintScreen</title>
		<link>http://www.B3nZ3n.be/printscreen/</link>
		<comments>http://www.B3nZ3n.be/printscreen/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 23:46:57 +0000</pubDate>
		<dc:creator>B3nZ3n</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Pictures]]></category>
		<category><![CDATA[counter strike source]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[e17]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[picture]]></category>
		<category><![CDATA[screenshot]]></category>
		<category><![CDATA[steam]]></category>

		<guid isPermaLink="false">http://b3nz3n.info/B3nZ3n/wordpress/?p=70</guid>
		<description><![CDATA[Et en passant quelques ss de mon ancien bureau (lorsque j&#8217;étais sous ubuntu) pour ceux qui ne visitent pas régulièrement la partie galerie. Tout ces screens on étés pris sous ubuntu, gnome ou e17 + beryl, steam, mplayer, counter strike source.]]></description>
			<content:encoded><![CDATA[<p>Et en passant quelques ss de mon ancien bureau (lorsque j&#8217;étais sous ubuntu) pour ceux qui ne visitent pas régulièrement la partie galerie.</p>
<p><a href="http://www.b3nz3n.info/b3nz3n/gallerie/picture.php?cat=1&amp;image_id=328"><img src="http://www.b3nz3n.info/b3nz3n/gallerie/galleries/gallerie1/thumbnail/TN-e17mplayer.jpg" alt="image" /></a><a href="http://www.b3nz3n.info/b3nz3n/gallerie/picture.php?cat=1&amp;image_id=327"><img src="http://www.b3nz3n.info/b3nz3n/gallerie/galleries/gallerie1/thumbnail/TN-vista2.jpg" alt="image" /></a><a href="http://www.b3nz3n.info/b3nz3n/gallerie/picture.php?cat=1&amp;image_id=325"><img src="http://www.b3nz3n.info/b3nz3n/gallerie/galleries/gallerie1/thumbnail/TN-e172.jpg" alt="image" /></a><a href="http://www.b3nz3n.info/b3nz3n/gallerie/picture.php?cat=1&amp;image_id=324"><img src="http://www.b3nz3n.info/b3nz3n/gallerie/galleries/gallerie1/thumbnail/TN-csskaamelott.jpg" alt="image" /></a><a href="http://www.b3nz3n.info/b3nz3n/gallerie/picture.php?cat=1&amp;image_id=323"><img src="http://www.b3nz3n.info/b3nz3n/gallerie/galleries/gallerie1/thumbnail/TN-csskaamelott2.jpg" alt="image" /></a><a href="http://www.b3nz3n.info/b3nz3n/gallerie/picture.php?cat=1&amp;image_id=321"><img src="http://www.b3nz3n.info/b3nz3n/gallerie/galleries/gallerie1/thumbnail/TN-cssBeryl.jpg" alt="image" /></a><a href="http://www.b3nz3n.info/b3nz3n/gallerie/picture.php?cat=1&amp;image_id=322"><img src="http://www.b3nz3n.info/b3nz3n/gallerie/galleries/gallerie1/thumbnail/TN-csse17.jpg" alt="image" /></a><a href="http://www.b3nz3n.info/b3nz3n/gallerie/picture.php?cat=1&amp;image_id=320"><img src="http://www.b3nz3n.info/b3nz3n/gallerie/galleries/gallerie1/thumbnail/TN-cssstart.jpg" alt="image" /></a><a href="http://www.b3nz3n.info/b3nz3n/gallerie/picture.php?cat=1&amp;image_id=319"><img src="http://www.b3nz3n.info/b3nz3n/gallerie/galleries/gallerie1/thumbnail/TN-E17cs.jpg" alt="image" /></a></p>
<p>Tout ces screens on étés pris sous ubuntu, gnome ou e17 + beryl, steam, mplayer, counter strike source.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.B3nZ3n.be/printscreen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

