<?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>GeeK`s Garage</title>
	<atom:link href="http://blog.cannibalz.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cannibalz.net</link>
	<description>GeeK`s Garage</description>
	<lastBuildDate>Tue, 08 May 2012 17:26:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Desactiver le mot de passe d&#8217;un compte utilisateur</title>
		<link>http://blog.cannibalz.net/2012/03/12/desactiver-le-mot-de-passe-dun-compte-utilisateur/</link>
		<comments>http://blog.cannibalz.net/2012/03/12/desactiver-le-mot-de-passe-dun-compte-utilisateur/#comments</comments>
		<pubDate>Mon, 12 Mar 2012 08:24:00 +0000</pubDate>
		<dc:creator>JaCe</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.cannibalz.net/?p=276</guid>
		<description><![CDATA[Si vous avez besoin de desactiver le mot de passe d&#8217;un compte utilisateur simplement cela est possible. Exemple avec l&#8217;utilisateur &#8220;paul&#8221;: root@test:~/# passwd -l paul Cette commande permets d&#8217;assigner a l&#8217;utilisateur paul un mot de passe non imprimable et impossible a taper sur un clavier.]]></description>
			<content:encoded><![CDATA[<p>Si vous avez besoin de desactiver le mot de passe d&#8217;un compte utilisateur simplement cela est possible.</p>
<p><span id="more-276"></span></p>
<p>Exemple avec l&#8217;utilisateur &#8220;paul&#8221;:</p>
<blockquote><p>root@test:~/# <span style="color: #008080;">passwd -l paul</span></p></blockquote>
<p>Cette commande permets d&#8217;assigner a l&#8217;utilisateur paul un mot de passe non imprimable et impossible a taper sur un clavier.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cannibalz.net/2012/03/12/desactiver-le-mot-de-passe-dun-compte-utilisateur/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Debian Postfix Opendkim &#8211; Multiple domain</title>
		<link>http://blog.cannibalz.net/2012/03/10/debian-postfix-opendkim-multiple-domain/</link>
		<comments>http://blog.cannibalz.net/2012/03/10/debian-postfix-opendkim-multiple-domain/#comments</comments>
		<pubDate>Sat, 10 Mar 2012 18:50:20 +0000</pubDate>
		<dc:creator>JaCe</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Opendkim]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://blog.cannibalz.net/?p=212</guid>
		<description><![CDATA[DKIM : (DomainKeys Identified Mail) est une norme d&#8217;authentification fiable du nom de domaine de l&#8217;expéditeur d&#8217;un email. Le principe est de renseigner dans son serveur DNS un clef RSA qui matchera celle ajouter par le serveur SMTP lors de l&#8217;envoie de l&#8217;email. DKIM est la norme retenu par Yahoo! pour ne pas etre considere comme du [...]]]></description>
			<content:encoded><![CDATA[<p>DKIM : (DomainKeys Identified Mail) est une norme d&#8217;authentification fiable du nom de domaine de l&#8217;expéditeur d&#8217;un email.</p>
<p>Le principe est de renseigner dans son serveur DNS un clef RSA qui matchera celle ajouter par le serveur SMTP lors de l&#8217;envoie de l&#8217;email.</p>
<p>DKIM est la norme retenu par Yahoo! pour ne pas etre considere comme du spam lors de l&#8217;envoie d&#8217;un email a un utilisateur yahoo.</p>
<p><span id="more-212"></span></p>
<p>Commencons par install DKIM:</p>
<blockquote><p>apt-get install opendkim</p></blockquote>
<p>Par defaut la configuration se trouve a l&#8217;emplacement /etc/opendkim.conf.</p>
<p>Nous allons prendre le cas de deux noms de domaines (2, 3, 4, 1000 domaines.. la logique reste la même):</p>
<ul>
<li>undomaine.com</li>
<li>deuxdomaine.com</li>
</ul>
<p>Nous travaillerons dans le repertoire suivant: /tmp/opendkim</p>
<p>Commencons par generer nos certificats:</p>
<blockquote><p>root@kenny:/tmp/opendkim# openssl genrsa -out private-undomaine.com.key 1024<br />
Generating RSA private key, 1024 bit long modulus<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;++++++<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..++++++<br />
e is 65537 (0&#215;10001)<br />
root@kenny:/tmp/opendkim# openssl rsa -in private-undomaine.com.key -out public-undomaine.com.key -pubout -outform PEM<br />
writing RSA key<br />
root@kenny:/tmp/opendkim#</p></blockquote>
<p>Meme chose pour le deuxieme domaine:</p>
<blockquote><p>root@kenny:/tmp/opendkim# openssl genrsa -out private-deuxdomaine.com.key 1024<br />
Generating RSA private key, 1024 bit long modulus<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;++++++<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..++++++<br />
e is 65537 (0&#215;10001)<br />
root@kenny:/tmp/opendkim# openssl rsa -in private-deuxdomaine.com.key -out public-deuxdomaine.com.key -pubout -outform PEM<br />
writing RSA key<br />
root@kenny:/tmp/opendkim#</p></blockquote>
<p>Copions ces clefs dans un emplacements dedié:</p>
<blockquote><p>root@kenny:/tmp/opendkim# mkdir /etc/opendkim<br />
root@kenny:/tmp/opendkim# chmod 755 /etc/opendkim<br />
root@kenny:/tmp/opendkim# cp private-undomaine.com.key /etc/opendkim<br />
root@kenny:/tmp/opendkim# cp private-deuxdomaine.com.key /etc/opendkim</p></blockquote>
<p>Passons a present a la configuration de opendkim.</p>
<p>Voici le contenu du fichier /etc/opendkim.conf:</p>
<blockquote><p>Syslog yes<br />
UMask 002<br />
InternalHosts refile:/etc/opendkim/trusted-hosts<br />
KeyTable refile:/etc/opendkim/KeyTable<br />
SigningTable refile:/etc/opendkim/SigningTable<br />
LogWhy yes<br />
SyslogFacility mail</p></blockquote>
<p>Les 3 lignes les plus importantes sont les suivantes:</p>
<blockquote><p>InternalHosts refile:/etc/opendkim/trusted-hosts<br />
KeyTable refile:/etc/opendkim/KeyTable<br />
SigningTable refile:/etc/opendkim/SigningTable</p></blockquote>
<p>InternalHosts: Liste d&#8217;ips authoriser a etre signé par DKIM</p>
<p>KeyTable: Indique la correspondance selector -&gt; clef</p>
<p>SigningTable: Fait la liaison domaine -&gt; Selector</p>
<p>Voici leur contenu:</p>
<blockquote><p>root@kenny:/tmp/opendkim# cat <em>/etc/opendkim/SigningTable</em><br />
*@undomaine.com mail._domainkey.undomaine.com<br />
*@deuxdomaine.com mail._domainkey.deuxdomaine.com<br />
root@kenny:/tmp/opendkim# cat <em>/etc/opendkim/KeyTable</em><br />
<strong>mail._domainkey.undomaine.com</strong> undomaine.com:default:/etc/opendkim/private-undomaine.com.key<br />
<strong>mail._domainkey.deuxdomaine.com</strong> deuxdomaine.com:default:/etc/opendkim/private-deuxdomaine.com.key<br />
root@kenny:/tmp/opendkim# cat <em>/etc/opendkim/trusted-hosts</em><br />
127.0.0.1<br />
localhost<br />
0.0.0.0/0<br />
root@kenny:/tmp/opendkim#</p></blockquote>
<p>A present il faut renseigner les clefs public dans vos serveurs DNS, par exemple voici le contenu d&#8217;une de mes clefs publics:</p>
<blockquote><p>root@kenny:/tmp/opendkim# cat public-undomaine.com.key<br />
&#8212;&#8211;BEGIN PUBLIC KEY&#8212;&#8211;<br />
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCbbHf7RyMB5j7Md4oxQFjINe5B<br />
xsgxyZvn8DK8anE3pYe9DfLTZr2aFYQ2NRUxWq441n83jpaszd/NJdQW+gc8JZav<br />
595xfygpnLtP5QL5RD9Xi9xsyKidOPfpEks30BsP/8LncL7C3W3EFqXpLeHOT0Zl<br />
U2fhhAdNpR0zjo4yXwIDAQAB<br />
&#8212;&#8211;END PUBLIC KEY&#8212;&#8211;<br />
root@kenny:/tmp/opendkim#</p></blockquote>
<p>Ajoutez l&#8217;entrez suivante dans votre configuration DNS pour undomaine.com:</p>
<blockquote><p><strong>_domainkey.undomaine.com.</strong> IN TXT &#8220;t=y; o=-;&#8221;<br />
<strong>mail._domainkey.undomaine.com.</strong> IN TXT &#8220;k=rsa; t=y; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCbbHf7RyMB5j7Md4oxQFjINe5B<br />
xsgxyZvn8DK8anE3pYe9DfLTZr2aFYQ2NRUxWq441n83jpaszd/NJdQW+gc8JZav<br />
595xfygpnLtP5QL5RD9Xi9xsyKidOPfpEks30BsP/8LncL7C3W3EFqXpLeHOT0Zl<br />
U2fhhAdNpR0zjo4yXwIDAQAB&#8221;</p></blockquote>
<p>Attention mail._domainkey.undomaine.com doit etre sur une seule ligne !</p>
<p>Faites la meme chose pour deuxdomaine.com</p>
<p>Ajoutez ceci a votre /etc/postfix/main.cf:</p>
<blockquote><p>milter_default_action = accept<br />
milter_protocol = 6<br />
smtpd_milters = inet:localhost:<strong>12345</strong><br />
non_smtpd_milters = inet:localhost:<strong>12345</strong></p></blockquote>
<p>Activer opendkim:</p>
<blockquote><p>root@kenny:/tmp/opendkim# cat /etc/default/opendkim<br />
# Command-line options specified here will override the contents of<br />
# /etc/opendkim.conf. See opendkim(8) for a complete list of options.<br />
#DAEMON_OPTS=&#8221;"<br />
#<br />
# Uncomment to specify an alternate socket<br />
# Note that setting this will override any Socket value in opendkim.conf<br />
#SOCKET=&#8221;local:/var/run/opendkim/opendkim.sock&#8221; # default<br />
#SOCKET=&#8221;inet:54321&#8243; # listen on all interfaces on port 54321<br />
SOCKET=&#8221;inet:<strong>12345</strong>@localhost&#8221; # listen on loopback on port 12345<br />
#SOCKET=&#8221;inet:12345@192.0.2.1&#8243; # listen on 192.0.2.1 on port 12345<br />
root@kenny:/tmp/opendkim#</p></blockquote>
<p>Il ne vous reste plus qu&#8217;a redemarrer postfix et opendkim puis a faire des tests en telnet, dans le mail vous devriez voir le header DKIM:</p>
<blockquote><p>root@kenny:/tmp/opendkim# /etc/init.d/postfix restart &amp;&amp; /etc/init.d/opendkim restart<br />
Stopping Postfix Mail Transport Agent: postfix.<br />
Starting Postfix Mail Transport Agent: postfix.<br />
Restarting OpenDKIM: opendkim.<br />
root@kenny:/tmp/opendkim#</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.cannibalz.net/2012/03/10/debian-postfix-opendkim-multiple-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HP Procurve &#8211; Configure NTP</title>
		<link>http://blog.cannibalz.net/2012/01/16/hp-procurve-configure-ntp/</link>
		<comments>http://blog.cannibalz.net/2012/01/16/hp-procurve-configure-ntp/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 21:00:04 +0000</pubDate>
		<dc:creator>JaCe</dc:creator>
				<category><![CDATA[Procurve]]></category>

		<guid isPermaLink="false">http://blog.cannibalz.net/?p=201</guid>
		<description><![CDATA[Un petit post rapide sous forme de mémo&#8230; Procurve#show time Mon Jan 1 00:04:21 1990 Procurve#configure Procurve#sntp unicast Procurve#sntp server &#60;ip server NTP&#62; Procurve#timesync sntp Procurve#show time Mon Jan 16 10:35:27 2012 Personnellement j&#8217;adore les procurve &#8230;]]></description>
			<content:encoded><![CDATA[<p>Un petit post rapide sous forme de mémo&#8230;</p>
<p><span id="more-201"></span></p>
<blockquote><p>Procurve#show time</p>
<p>Mon Jan 1 00:04:21 1990</p>
<p>Procurve#configure</p>
<p>Procurve#sntp unicast</p>
<p>Procurve#sntp server &lt;ip server NTP&gt;</p>
<p>Procurve#timesync sntp</p>
<p>Procurve#show time</p>
<p>Mon Jan 16 10:35:27 2012</p></blockquote>
<p>Personnellement j&#8217;adore les procurve &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cannibalz.net/2012/01/16/hp-procurve-configure-ntp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Serveur VPN PPTP linux pour clients windows, iPhone, Android</title>
		<link>http://blog.cannibalz.net/2012/01/02/serveur-vpn-pptp-linux-pour-clients-windows-iphone-android/</link>
		<comments>http://blog.cannibalz.net/2012/01/02/serveur-vpn-pptp-linux-pour-clients-windows-iphone-android/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 21:23:16 +0000</pubDate>
		<dc:creator>JaCe</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[PPTP]]></category>

		<guid isPermaLink="false">http://blog.cannibalz.net/?p=188</guid>
		<description><![CDATA[Cédons a la mode du VPN ! Ces derniers temps avec la crise Hadopi &#38; co, la mode est au VPN&#8230; et pour cause quoi de plus beau que l&#8217;anonymat sur le nain ternet ? Je vais vous expliquer comment mettre en place votre propre VPN pour au choix, être géolocalisé dans un pays différents du votre ? (Streaming?) ou [...]]]></description>
			<content:encoded><![CDATA[<p>Cédons a la mode du VPN !</p>
<p>Ces derniers temps avec la crise Hadopi &amp; co, la mode est au VPN&#8230; et pour cause quoi de plus beau que l&#8217;anonymat sur le nain ternet ?</p>
<p>Je vais vous expliquer comment mettre en place votre propre VPN pour au choix, être géolocalisé dans un pays différents du votre ? (Streaming?) ou tout simplement pour salir l&#8217;ip de votre dédié préféré !</p>
<p><span id="more-188"></span></p>
<p>Dans cet exemple nous aurons donc un serveur dedié nommé &#8220;serveur&#8221; et une machine cliente nommé cliente ! (Cet exemple permet aussi d&#8217;utiliser le VPN sur un device de type iPhone ou Android)</p>
<p>Commençons par installer le serveur pptp sur notre serveur debian:</p>
<blockquote><p>serveur#apt-get install pptpd</p></blockquote>
<p>Dans mon cas, je sais que je n&#8217;aurai jamais plus d&#8217;un client connecté a mon VPN à la fois et je décide de dédier a ce VPN le sous réseau suivant: 10.13.13.0/24</p>
<p>Voici donc le contenu de mon fichier /etc/pptpd.conf:</p>
<blockquote><p>serveur# cat /etc/pptpd.conf | grep -v &#8216;^$&#8217; |grep -v &#8216;^#&#8217;<br />
option /etc/ppp/pptpd-options<br />
logwtmp<br />
localip 10.13.13.1<br />
remoteip 10.13.13.2-3</p></blockquote>
<p>Voici le contenu de mon fichier /etc/ppp/pptpd-options:</p>
<blockquote><p>serveur# cat /etc/ppp/pptpd-options | grep -v &#8216;^$&#8217; |grep -v &#8216;^#&#8217;<br />
name <strong>NomdeVotre.VPN</strong><br />
refuse-pap<br />
refuse-chap<br />
refuse-mschap<br />
require-mschap-v2<br />
require-mppe-128<br />
ms-dns <strong>8.8.8.8</strong><br />
proxyarp<br />
lock<br />
nobsdcomp<br />
mtu 1490<br />
mru 1490</p></blockquote>
<p>On note le nom de votre VPN ainsi que les DNS publics de google qui seront utilisés par le client VPN</p>
<p>Je souhaite également pouvoir m&#8217;authentifier par login / password, pour cela il faut renseigner le fichier /etc/ppp/chap-secrets</p>
<blockquote><p>serveur# cat /etc/ppp/chap-secrets<br />
monlogin <strong>NomdeVotre.VPN</strong>  monpassword *</p></blockquote>
<p>Le quatrième champs peut être utilisé pour faire un restriction par adresse IP cliente.</p>
<p>Coté serveur il ne reste plus qu&#8217;a redemarrer le service pptpd:</p>
<blockquote><p># /etc/init.d/pptpd restart</p></blockquote>
<p>Vérifions à l&#8217;aide d&#8217;un ifconfig -a que le service est bien lancé que l&#8217;ip local est bien assignée:</p>
<blockquote><p>server# ifconfig -a ppp0</p>
<p>ppp0 Link encap:Point-to-Point Protocol<br />
inet addr:<strong>10.13.13.1</strong> P-t-P:10.13.13.2 Mask:255.255.255.255<br />
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1396 Metric:1<br />
RX packets:6628 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:11701 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:3<br />
RX bytes:1123537 (1.0 MiB) TX bytes:8077239 (7.7 MiB)</p></blockquote>
<p>Coté client, il ne reste plus qu&#8217;à configurer votre client pptp sous windows, iPhone, ou Android !</p>
<p>Un petit coup de MASQUERADE vous sera tres utile:</p>
<blockquote><p>IPTABLES -t nat -A POSTROUTING -o eth0 -s <strong>10.13.13.1/30</strong>-j MASQUERADE</p></blockquote>
<p>Puis enfin activer le forward :</p>
<blockquote><p>echo 1 &gt; /proc/sys/net/ipv4/ip_forward</p></blockquote>
<p>Verifier votre <a title="ifconfig.me" href="http://ifconfig.me" target="_blank" onclick="pageTracker._trackPageview('/outgoing/ifconfig.me?referer=');">ip de sortie</a></p>
<p>Sur votre dedié vous pouvez faireu ne ping sur la machine cliente:</p>
<p>serveur</p>
<blockquote><p>serveur# ping 10.13.13.2<br />
PING 10.13.13.2 (10.13.13.2) 56(84) bytes of data.<br />
64 bytes from 10.13.13.2: icmp_req=1 ttl=64 time=97.9 ms<br />
64 bytes from 10.13.13.2: icmp_req=2 ttl=64 time=224 ms<br />
64 bytes from 10.13.13.2: icmp_req=3 ttl=64 time=148 ms</p></blockquote>
<p>P.S: on ne s&#8217;affole pas il s&#8217;agit du fabuleux réseaux 3g d&#8217;orange &#8230;</p>
<p>That&#8217;s done !!</p>
<div id="attachment_194" class="wp-caption aligncenter" style="width: 210px"><a href="http://blog.cannibalz.net/wp-content/uploads/2012/01/photo.png"><img class="size-medium wp-image-194" title="iPhone VPN" src="http://blog.cannibalz.net/wp-content/uploads/2012/01/photo-200x300.png" alt="iPhone VPN" width="200" height="300" /></a><p class="wp-caption-text">iPhone VPN</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.cannibalz.net/2012/01/02/serveur-vpn-pptp-linux-pour-clients-windows-iphone-android/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>hubiC &#8211; OVH</title>
		<link>http://blog.cannibalz.net/2011/12/29/hubic-ovh-cloud-nas/</link>
		<comments>http://blog.cannibalz.net/2011/12/29/hubic-ovh-cloud-nas/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 09:55:29 +0000</pubDate>
		<dc:creator>JaCe</dc:creator>
				<category><![CDATA[hubic]]></category>
		<category><![CDATA[OVH]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hier, le 28 Decembre, OVH a lancé son offre &#8220;hubiC&#8221; de Cloud NAS. D&#8217;ordinaire je ne suis que peu interressé par les offre de beta testing, et pourtant cette fois-ci, les 25 Go gratuits m&#8217;ont plutôt motivé! Pour creer un compte rien de plus simple il suffit de télécharger l&#8217;applicatif adéquat (disponible a l&#8217;heure d&#8217;aujourd&#8217;hui: Android, iPhone, Windows), de le lancer [...]]]></description>
			<content:encoded><![CDATA[<p>Hier, le 28 Decembre, OVH a lancé son offre &#8220;<a title="hubiC" href="http://www.ovh.fr/hubiC/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.ovh.fr/hubiC/?referer=');">hubiC</a>&#8221; de Cloud NAS.</p>
<p>D&#8217;ordinaire je ne suis que peu interressé par les offre de beta testing, et pourtant cette fois-ci, les 25 Go gratuits m&#8217;ont plutôt motivé!</p>
<p><span id="more-182"></span></p>
<p>Pour creer un compte rien de plus simple il suffit de télécharger l&#8217;applicatif adéquat (disponible a l&#8217;heure d&#8217;aujourd&#8217;hui: Android, iPhone, Windows), de le lancer pour s&#8217;inscrire:</p>
<div id="attachment_172" class="wp-caption aligncenter" style="width: 218px"><a href="http://blog.cannibalz.net/wp-content/uploads/2011/12/hubic1.jpg"><img class="size-medium wp-image-172" title="hubic1" src="http://blog.cannibalz.net/wp-content/uploads/2011/12/hubic1-208x300.jpg" alt="hubic1" width="208" height="300" /></a><p class="wp-caption-text">hubic1</p></div>
<p>Lors de la face d&#8217;inscription un tcpdump montre que nous sommes bien sur du sécurisé avec du httpps a gogo, sur un windows on decouvre une interface QT assez sympa.</p>
<p>Pour le moment je n&#8217;ai pas encore prit le temps de lire les CGV, parce que bon, si je dois déposer toutes mes photos sur un compte gratuit pour commencer je réagirai assez mal à sa suppression arbitraire ou autre.</p>
<p>L&#8217;interface iPhone est simple mais au moins on s&#8217;y retrouve:</p>
<div id="attachment_173" class="wp-caption aligncenter" style="width: 210px"><a href="http://blog.cannibalz.net/wp-content/uploads/2011/12/hubic-iphone.png"><img class="size-medium wp-image-173" title="hubic-iphone" src="http://blog.cannibalz.net/wp-content/uploads/2011/12/hubic-iphone-200x300.png" alt="hubic-iphone" width="200" height="300" /></a><p class="wp-caption-text">hubic-iphone</p></div>
<p>&nbsp;</p>
<p>Bref, vivement le client Linux et/ou BSD ? :)</p>
<p>OVH continue de surfer sur la vague du cloud et ils ont bien raisons !</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cannibalz.net/2011/12/29/hubic-ovh-cloud-nas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extract files from tar archive</title>
		<link>http://blog.cannibalz.net/2011/01/15/extract-files-from-tar-archive/</link>
		<comments>http://blog.cannibalz.net/2011/01/15/extract-files-from-tar-archive/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 15:06:42 +0000</pubDate>
		<dc:creator>JaCe</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.cannibalz.net/?p=130</guid>
		<description><![CDATA[Just a quick post to indicate how to extract some files from tar.gz archive: For example if you need to extract file/directory named blog from archive arch.tar.gz you can use the following command: tar -zxvf arch.tar.gz directory/where/is/blog You can extract files by using extensions too: tar -xf arch.tar.gz &#8211;wildcards &#8211;no-anchored &#8216;*.php&#8217; I hope these commands [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick post to indicate how to extract some files from tar.gz archive:</p>
<p><span id="more-130"></span></p>
<p>For example if you need to extract file/directory named blog from archive arch.tar.gz you can use the following command:</p>
<blockquote><p>tar -zxvf arch.tar.gz directory/where/is/blog</p></blockquote>
<p>You can extract files by using extensions too:</p>
<blockquote><p>tar -xf arch.tar.gz &#8211;wildcards &#8211;no-anchored &#8216;*.php&#8217;</p></blockquote>
<p>I hope these commands could help us.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cannibalz.net/2011/01/15/extract-files-from-tar-archive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reportage censuré de M6 sur Mc Donald</title>
		<link>http://blog.cannibalz.net/2010/10/03/reportage-censure-de-m6-sur-mc-donald/</link>
		<comments>http://blog.cannibalz.net/2010/10/03/reportage-censure-de-m6-sur-mc-donald/#comments</comments>
		<pubDate>Sun, 03 Oct 2010 20:40:56 +0000</pubDate>
		<dc:creator>JaCe</dc:creator>
				<category><![CDATA[Mc Donald]]></category>

		<guid isPermaLink="false">http://blog.cannibalz.net/?p=113</guid>
		<description><![CDATA[Comme quoi parfois on trouve des videos sympas sur l&#8217;hygiene de certains Mc Donald Ci-dessous un reportage tourné par M6 sur le sujet en question (reportage supprimé sur dailymotion a la demande de M6)]]></description>
			<content:encoded><![CDATA[<p>Comme quoi parfois on trouve des videos sympas sur l&#8217;hygiene de certains Mc Donald</p>
<p><span id="more-113"></span></p>
<p>Ci-dessous un reportage tourné par M6 sur le sujet en question (reportage supprimé sur dailymotion a la demande de M6)</p>
<p><img src="http://blog.cannibalz.net/wp-content/plugins/flash-video-player/default_video_player.gif" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cannibalz.net/2010/10/03/reportage-censure-de-m6-sur-mc-donald/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to know the size of Mysql&#8217;s databases</title>
		<link>http://blog.cannibalz.net/2010/10/02/how-to-know-the-size-of-mysqls-databases/</link>
		<comments>http://blog.cannibalz.net/2010/10/02/how-to-know-the-size-of-mysqls-databases/#comments</comments>
		<pubDate>Sat, 02 Oct 2010 16:23:26 +0000</pubDate>
		<dc:creator>JaCe</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blog.cannibalz.net/?p=104</guid>
		<description><![CDATA[This is a little command which permit to know the size of all your mysql&#8217;s databases. First connect you to your mysql server as root: # mysql &#8211; u root -p Then use the following request: mysql&#62; select table_schema as BDD,round(sum(data_length+index_length)/1024/1024,2) as &#8216;Size(MB)&#8217; from information_schema.tables group by table_schema; +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+ &#124; BDD         [...]]]></description>
			<content:encoded><![CDATA[<p>This is a little command which permit to know the size of all your mysql&#8217;s databases.</p>
<p><span id="more-104"></span></p>
<p>First connect you to your mysql server as root:</p>
<blockquote><p># mysql &#8211; u root -p</p></blockquote>
<p>Then use the following request:</p>
<blockquote>
<div id="_mcePaste">mysql&gt; select table_schema as BDD,round(sum(data_length+index_length)/1024/1024,2) as &#8216;Size(MB)&#8217; from information_schema.tables group by table_schema;</div>
<div id="_mcePaste">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+</div>
<div id="_mcePaste">| BDD                 | Size(MB) |</div>
<div id="_mcePaste">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+</div>
<div id="_mcePaste">| database1  |    24.88 |</div>
<div id="_mcePaste">| information_schema  |     0.00 |</div>
<div id="_mcePaste">| mysql               |     0.51 |</div>
<div id="_mcePaste">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+</div>
<div id="_mcePaste">3 rows in set (0.30 sec)</div>
</blockquote>
<div>This command could be usefull when you want to prevent mysql&#8217;s backup size.</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.cannibalz.net/2010/10/02/how-to-know-the-size-of-mysqls-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Centreon script for Juniper SSG5</title>
		<link>http://blog.cannibalz.net/2010/09/27/centreon-script-for-juniper-ssg5/</link>
		<comments>http://blog.cannibalz.net/2010/09/27/centreon-script-for-juniper-ssg5/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 20:57:19 +0000</pubDate>
		<dc:creator>JaCe</dc:creator>
				<category><![CDATA[Centreon]]></category>
		<category><![CDATA[Juniper]]></category>

		<guid isPermaLink="false">http://blog.cannibalz.net/?p=94</guid>
		<description><![CDATA[A few times ago i had to realized a centreon script which goal was to draw graph related to VPN use on Juniper SSG5. This script display only traffic on VPN, you can&#8217;t get state like OK, WARNING, CRITICAL, this script will only print,performance data related to traffic on vpn (like bandwith consumption) You can [...]]]></description>
			<content:encoded><![CDATA[<p>A few times ago i had to realized a centreon script which goal was to draw graph related to VPN use on Juniper SSG5.</p>
<p><span id="more-94"></span></p>
<p>This script display only traffic on VPN, you can&#8217;t get state like OK, WARNING, CRITICAL, this script will only print,performance data related to traffic on vpn (like bandwith consumption)</p>
<p>You can download this script <a href="http://blog.cannibalz.net/wp-content/uploads/2010/09/check_juniper.txt" target="_blank">there</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cannibalz.net/2010/09/27/centreon-script-for-juniper-ssg5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create your own Tinyproxy FreeBSD&#8217;s package</title>
		<link>http://blog.cannibalz.net/2010/06/08/create-your-own-tinyproxy-freebsds-package/</link>
		<comments>http://blog.cannibalz.net/2010/06/08/create-your-own-tinyproxy-freebsds-package/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 13:27:22 +0000</pubDate>
		<dc:creator>JaCe</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Package]]></category>
		<category><![CDATA[Tinyproxy]]></category>

		<guid isPermaLink="false">http://blog.cannibalz.net/?p=84</guid>
		<description><![CDATA[In FreeBSD  8.0, tinyproxy&#8217;s package in stable repository isn&#8217;t compil with the &#8211;enable-transparent-proxy option. This is the reason why, i&#8217;ll explain how to create a tinyproxy&#8217;s package including this compilation option. First, edit your /usr/ports/www/tinyproxy/Makefile like the following: # New ports collection makefile for:    tinyproxy # Date created:         01 Jul 1999 # Whom:                 Mitsuru Yoshida [...]]]></description>
			<content:encoded><![CDATA[<p>In FreeBSD  8.0, tinyproxy&#8217;s package in stable repository isn&#8217;t compil with the &#8211;enable-transparent-proxy option.</p>
<p>This is the reason why, i&#8217;ll explain how to create a tinyproxy&#8217;s package including this compilation option.</p>
<p><span id="more-84"></span></p>
<p>First, edit your /usr/ports/www/tinyproxy/Makefile like the following:</p>
<blockquote><p># New ports collection makefile for:    tinyproxy<br />
# Date created:         01 Jul 1999<br />
# Whom:                 Mitsuru Yoshida &lt;mitsuru@riken.go.jp&gt;<br />
#<br />
# $FreeBSD: ports/www/tinyproxy/Makefile,v 1.30 2009/10/19 18:41:40 wxs Exp $<br />
#</p>
<p>PORTNAME=       tinyproxy<br />
PORTVERSION=    1.6.5<br />
PORTEPOCH=      1<br />
CATEGORIES=     www<br />
MASTER_SITES=   https://www.banu.com/pub/tinyproxy/1.6/</p>
<p>MAINTAINER=     wxs@FreeBSD.org<br />
COMMENT=        A small, efficient HTTP proxy server</p>
<p>USE_RC_SUBR=    tinyproxy.sh<br />
GNU_CONFIGURE=  yes<br />
USE_GMAKE=      yes<br />
CONFIGURE_ARGS= &#8211;bindir=${PREFIX}/sbin \<br />
&#8211;with-config=${PREFIX}/etc/tinyproxy.conf \<br />
&#8211;program-transform-name=&#8221;"<br />
MAKE_JOBS_SAFE= yes</p>
<p>MAN8=           tinyproxy.8</p>
<p>OPTIONS=        REVERSE &#8220;Enable reverse proxy support&#8221; Off \<br />
TRANSPARENT &#8220;Enable transparent proxy&#8221; Off</p>
<p>.include &lt;bsd.port.pre.mk&gt;</p>
<p>.if defined(WITH_REVERSE)<br />
CONFIGURE_ARGS+=        &#8211;enable-reverse<br />
.endif</p>
<p>.if defined(WITH_TRANSPARENT)<br />
CONFIGURE_ARGS+=        &#8211;enable-transparent-proxy<br />
.endif</p>
<p>post-patch:<br />
@${REINPLACE_CMD} -e &#8216;s|-O2||&#8217; ${WRKSRC}/configure<br />
@${REINPLACE_CMD} -e &#8216;s|/etc/tinyproxy/tinyproxy.conf|${PREFIX}/etc/tinyproxy.conf|&#8217; \<br />
${WRKSRC}/doc/tinyproxy.8<br />
@${REINPLACE_CMD} -e &#8216;s|/usr/share/tinyproxy|${DATADIR}|&#8217; \<br />
${WRKSRC}/doc/tinyproxy.conf</p>
<p>post-install:<br />
@if [ ! -f ${PREFIX}/etc/tinyproxy.conf ]; then \<br />
${CP} -p ${PREFIX}/etc/tinyproxy.conf-dist \<br />
${PREFIX}/etc/tinyproxy.conf ; \<br />
fi</p>
<p>.include &lt;bsd.port.post.mk&gt;</p></blockquote>
<p>Be carefull, note that indentation is really important in Makefile!</p>
<p>Now just create the package by using:</p>
<blockquote><p>make package</p></blockquote>
<p>After a few seconds you&#8217;ll have a pakage store in this path:</p>
<blockquote><p>/usr/ports/packages/All/tinyproxy-1.6.5,1.tbz</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.cannibalz.net/2010/06/08/create-your-own-tinyproxy-freebsds-package/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

