<?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>Sebtof&#039;s Blog</title>
	<atom:link href="http://blog.sebtof13.fr/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sebtof13.fr</link>
	<description>Pense-bête en ligne &#124; Optimisé IPhone-ITouch</description>
	<lastBuildDate>Wed, 23 Mar 2011 07:58:53 +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>Démo Utilisation de FOG</title>
		<link>http://blog.sebtof13.fr/2009/12/20/demo-utilisation-de-fog/</link>
		<comments>http://blog.sebtof13.fr/2009/12/20/demo-utilisation-de-fog/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 21:49:01 +0000</pubDate>
		<dc:creator>Sebtof</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[démonstration]]></category>
		<category><![CDATA[deploy]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[enregistrement]]></category>
		<category><![CDATA[fog]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[registration]]></category>
		<category><![CDATA[serveur]]></category>
		<category><![CDATA[tuto]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[upload]]></category>
		<category><![CDATA[utilisation]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[XP]]></category>

		<guid isPermaLink="false">http://blog.sebtof13.fr/?p=387</guid>
		<description><![CDATA[Dans l&#8217;ordre : Démarrage du serveur FOG Utilisation de l&#8217;interface Web de FOG Ajout d&#8217;une tache d&#8217;upload sur un Hote déja présent dans la base Remontée de l&#8217;image d&#8217;un Windows XP existant Création d&#8217;une nouvelle machine virtuelle qui sera un clone de notre XP Enregistrement de la nouvelle machine dans la base de donnée de [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;">Dans l&#8217;ordre :</span></p>
<ul>
<li><span style="color: #ff0000;">Démarrage du serveur FOG</span></li>
<li><span style="color: #ff0000;">Utilisation de l&#8217;interface Web de FOG</span></li>
<li><span style="color: #ff0000;">Ajout d&#8217;une tache d&#8217;upload sur un Hote déja présent dans la base</span></li>
<li><span style="color: #ff0000;">Remontée de l&#8217;image d&#8217;un Windows XP existant</span></li>
<li><span style="color: #ff0000;">Création d&#8217;une nouvelle machine virtuelle qui sera un clone de notre XP</span></li>
<li><span style="color: #ff0000;">Enregistrement de la nouvelle machine dans la base de donnée de FOG</span></li>
<li><span style="color: #ff0000;">Ajout d&#8217;une tache de deploy sur la nouvelle machine</span></li>
<li><span style="color: #ff0000;">Descente de l&#8217;image sur la machine Clone</span></li>
</ul>
<p><br class="spacer_" /></p>
<!-- ProPlayer by Isa Goksu --><div name="mediaspace" id="mediaspace"><div class="pro-player-container" width="500px" height="400px"><div id="pro-player-387pp-single-4f455427ecdd8"></div></div></div><script type="text/javascript" charset="utf-8">var flashvars = {width: "500",height: "400",autostart: "false",repeat: "false",backcolor: "111111",frontcolor: "cccccc",lightcolor: "66cc00",stretching: "fill",enablejs: "true",mute: "false",skin: "http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/skins/nacht.swf",logo: "http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/watermark.png",image: "http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/preview.png",plugins: "rateit-1",javascriptid: "387pp-single-4f455427ecdd8",image: "http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/preview.png",file: 'http://blog.sebtof13.fr/wp-content/plugins/proplayer/playlist-controller.php?pp_playlist_id=387pp-single-4f455427ecdd8&sid=1329943592'};var params = {wmode: "transparent",allowfullscreen: "true",allowscriptaccess: "always",allownetworking: "all"};var attributes = {id: "obj-pro-player-387pp-single-4f455427ecdd8",name: "obj-pro-player-387pp-single-4f455427ecdd8"};swfobject.embedSWF("http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/player.swf", "pro-player-387pp-single-4f455427ecdd8", "500", "400", "9.0.0", false, flashvars, params, attributes);</script>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<!-- ProPlayer by Isa Goksu --><div name="mediaspace" id="mediaspace"><div class="pro-player-container" width="500px" height="400px"><div id="pro-player-387pp-single-4f455428170c6"></div></div></div><script type="text/javascript" charset="utf-8">var flashvars = {width: "500",height: "400",autostart: "false",repeat: "false",backcolor: "111111",frontcolor: "cccccc",lightcolor: "66cc00",stretching: "fill",enablejs: "true",mute: "false",skin: "http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/skins/nacht.swf",logo: "http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/watermark.png",image: "http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/preview.png",plugins: "rateit-1",javascriptid: "387pp-single-4f455428170c6",image: "http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/preview.png",file: 'http://blog.sebtof13.fr/wp-content/plugins/proplayer/playlist-controller.php?pp_playlist_id=387pp-single-4f455428170c6&sid=1329943592'};var params = {wmode: "transparent",allowfullscreen: "true",allowscriptaccess: "always",allownetworking: "all"};var attributes = {id: "obj-pro-player-387pp-single-4f455428170c6",name: "obj-pro-player-387pp-single-4f455428170c6"};swfobject.embedSWF("http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/player.swf", "pro-player-387pp-single-4f455428170c6", "500", "400", "9.0.0", false, flashvars, params, attributes);</script>
]]></content:encoded>
			<wfw:commentRss>http://blog.sebtof13.fr/2009/12/20/demo-utilisation-de-fog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Créer sa Framakey Ubuntu-Remix</title>
		<link>http://blog.sebtof13.fr/2009/12/12/creer-sa-framakey-ubuntu-remix/</link>
		<comments>http://blog.sebtof13.fr/2009/12/12/creer-sa-framakey-ubuntu-remix/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 13:00:31 +0000</pubDate>
		<dc:creator>Sebtof</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[bootable]]></category>
		<category><![CDATA[clé]]></category>
		<category><![CDATA[disque]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[framaboot]]></category>
		<category><![CDATA[framakey]]></category>
		<category><![CDATA[framakiosk]]></category>
		<category><![CDATA[live]]></category>
		<category><![CDATA[logiciels libre]]></category>
		<category><![CDATA[macos]]></category>
		<category><![CDATA[makeboot.bat]]></category>
		<category><![CDATA[mkfs.ext2.exe]]></category>
		<category><![CDATA[mkfs.ext3.exe]]></category>
		<category><![CDATA[persistant]]></category>
		<category><![CDATA[personnaliser]]></category>
		<category><![CDATA[portable]]></category>
		<category><![CDATA[remix]]></category>
		<category><![CDATA[syslinux]]></category>
		<category><![CDATA[thunderbird]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://blog.sebtof13.fr/?p=356</guid>
		<description><![CDATA[Une Framakey Ubuntu Remix C&#8217;est quoi ? Sous la forme d’une clé USB de 4Go, elle contient : Ubuntu-fr Live USB : le système d’exploitation Ubuntu Linux 9.04, adapté et francisé par la communauté Ubuntu-FR ; La Framakey 1.10 : le célèbre pack de logiciels libres portables pour Windows, fonctionnant directement sans installation depuis votre [...]]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;"><span style="font-size: medium;"><strong>Une Framakey Ubuntu Remix C&#8217;est quoi ?</strong></span></span></p>
<div class="wp-caption aligncenter" style="width: 367px"><img title="framakey" src="http://lefremen.files.wordpress.com/2009/11/framakey_ubuntu-fr_remix.jpg" alt="framakey Ubuntu remix" width="357" height="268" /><p class="wp-caption-text">framakey Ubuntu remix</p></div>
<p>Sous la forme d’une clé USB de <strong>4Go</strong>, elle contient :</p>
<ul>
<li><strong>Ubuntu-fr Live USB</strong> : le système d’exploitation Ubuntu Linux 9.04, adapté et francisé par la communauté Ubuntu-FR ; </li>
<li>La <strong>Framakey 1.10</strong> : le célèbre pack de logiciels libres portables pour Windows, fonctionnant directement sans installation depuis votre clé USB ; </li>
<li>plusieurs <strong>logiciels libres portables pour Mac OS X</strong> (le navigateur Firefox, le client mail Thunderbird, la messagerie multi-protocole Adium, etc) ; </li>
<li>des <strong>contenus et des ressources</strong> libres (musiques, textes, etc). </li>
</ul>
<p>Avec la Framakey Ubuntu-fr Remix, vous pourrez toujours retrouver vos logiciels et documents favoris, quel que soit l’ordinateur sur lequel vous utiliserez la clé. <br />
 Les profils Firefox et Thnuderbird sont communs aux trois systèmes, ainsi :</p>
<ul>
<li>si vous ajoutez des extensions ou des marque-pages en utilisant portable Firefox Windows, vous les retrouverez sur la partie Mac ou Ubuntu Linux ; </li>
<li>si vous relevez vos mails avec Ubuntu-fr Live USB, vous y aurez aussi accès immédiatement en utilisant portable Thunderbird (Windows ou Mac). </li>
</ul>
<p>De plus, Framakey Ubuntu-fr Remix est une solution “discrète” : son utilisation ne perturbe en rien l’ordinateur hôte sur lequel vous l’utilisez. Rien n’est installé, tout fonctionne directement depuis la clé, et aucune trace personnelle n’est laissée derrière vous une fois la clé retirée.</p>
<p>Ce n’est pas tout ! La partie Ubuntu Live dispose d’un <strong>disque persistant</strong>. Cela signifie qu’une fois sous Ubuntu Linux, vous pourrez installer de nouveaux logiciels, créer des documents, mettre à jour votre système, etc. <br />
 Exactement comme si vous l’utilisiez depuis un disque dur, vous retrouverez toutes vos modifications à la prochaine utilisation.</p>
<p>Enfin, pour les personnes qui souhaiteraient utiliser Ubuntu sans avoir à redémarrer l’ordinateur, une solution de virtualisation (et optionnelle) peut être installée d’un simple clic et vous permettra d’accéder à Ubuntu sans quitter Windows.</p>
<p><a href="http://www.framakey.org/Pack/Framakey-Ubuntu" target="_blank">Source : framakey.org</a></p>
<p><span id="more-356"></span></p>
<hr style="width: 300px;" />
<p><span style="text-decoration: underline;"><span style="font-size: medium;"><strong>Tuto d&#8217;installation</strong></span></span></p>
<ul>
<li>Se munir d&#8217;une clé USB de 4Go minimum, de préférence rapide en lecture / écriture étant donné que nous allons booter dessus.</li>
<li>Télécharger l&#8217;archive pour la clé par 2 méthodes :
<ul>
<li> <a href="http://framakey.org/Pack.Framakey-Ubuntu?count=http%3A%2F%2Fdownload.framakey.org%2Fpackages%2Fframakey_ubuntu-fr_remix%2F20090619%2FFramakey_Ubuntu-fr_Remix.torrent" target="_blank">Torrent</a></li>
<li><a href="http://framakey.org/Pack.Framakey-Ubuntu?count=http%3A%2F%2Fframadvd.org%2Fmirrors.php%3Ffile%3DFKUR20090619.zip" target="_blank">Http</a></li>
</ul>
</li>
<li>Décompresser l&#8217;archive sur la clé (30 minutes pour les clé très rapide)</li>
<li>Rendre sa clé bootable pour la distro Ubuntu embarqué
<ul>
<li>Si vous êtes sur Windows 2 solutions s&#8217;offrent à vous
<ul>
<li>Exécutez le fichier <strong>/syslinux/win32/makeboot.bat</strong> sur votre clé <strong><span style="color: #ff0000;">(Attention ne surtout pas lancer ce script depuis votre DD car il modifie le MBR)<br />
 </span></strong><span style="color: #ff0000;"><span style="color: #000000;">pour les utilisateurs sur Vista n&#8217;oubliez pas d&#8217;exécuter en tant qu&#8217;administrateur</p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p></span></span></li>
</ul>
<ul>
<li><span style="color: #ff0000;"><span style="color: #000000;">Framasoft a prévu un utilitaire pour rendre votre clé bootable :<strong> <a href="http://framakey.org/Utils/Framaboot" target="_blank">Framaboot</a></strong> que vous pouvez télécharger <a href="http://framakey.org/Utils.Framaboot?count=http%3A%2F%2Fdownload.framakey.org%2Fpackages%2Fframakey_ubuntu-fr_remix%2F20090619%2Fframaboot.exe" target="_blank">==&gt; ici &lt;==</a><br />
 Une fois téléchargé il faut le placer à la racine de votre clé USB <br />
 Attention pour moi framaboot ne fonctionne qu&#8217;une fois le fichier </span></span><strong>\syslinux\win32\dd\<span style="color: #ff0000;">mkfs.ext3.exe</span></strong> renomé en <span style="color: #ff0000;"><strong>mkfs.ext2.exe</strong><br />
 <span style="color: #000000;">L&#8217;utilitaire vous propose de rendre la clé bootable et de créer/recréer le disque dur persistant de votre framakey<br />
 à savoir qu&#8217;il s&#8217;agit de l&#8217;espace dans lequel les modifications sur votre ubuntu seront sauvegardés</p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p></span></span></li>
</ul>
</li>
<li>Si vous êtes sur Linux
<ul>
<li><em><strong>apt-get install <code>syslinux<br />
 </code><code>syslinux -sf /dev/sdb0</code></strong></em> (remplacez sdb0 par le pointeur de votre clé !</p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>Voila votre Framakey comporte les applications portables habituelles, est bootable sur ubuntu 9.04 et comporte un disque persistant qui sauvegardera les modifications que vous ferez.</p>
<hr />
<p><span style="text-decoration: underline;"><span style="font-size: medium;"><strong>Pour Aller plus loin</strong></span></span></p>
<ul>
<li>Installer VirtualBoxPortable pour une auto-virtualisation de votre cléSur la racine de votre clé exécutez <strong>VirtualBox-installation.exe</strong>, il se chargera d&#8217;installer ce qu&#8217;il faut pour vous<br />
 Si après le boot sur VirtualBox votre session live s&#8217;ouvre avec un fond d&#8217;écran vert et sans les applet gnome cela vient de la machine virtuelle qui n&#8217;a pas assez de ressources<br />
 Pour résoudre le problème il faudra lancer <strong>\VirtualBox\VirtualBox.exe</strong> et augmenter la ram et la memoire vidéo de la machine virtuelle</li>
<li>Modifier le Framakiosk
<ul>
<li>Pour Ajouter des icônes dans le Framakiosk<br />
 Il faut commencer par placer son application portable dans le dossier <strong>Apps</strong><br />
 il faut ensuite modifier les fichiers html dans <strong>\Framakey\FramaKiosk\FramaKioskPages</strong><br />
 Par exemple <strong>outils.html </strong><br />
 Rajouter avant le dernier <em>&lt;/div&gt;</em></p>
<p><br class="spacer_" /></p>
<p><strong><em>&lt;div&gt;<br />
 &lt;div&gt;&lt;a href=&nbsp;&raquo;lch/Apps/monfichier.lch&nbsp;&raquo; title=&nbsp;&raquo;Description du programme&nbsp;&raquo;&gt;&lt;img alt=&nbsp;&raquo;monprogramme&nbsp;&raquo; src=&nbsp;&raquo;img\Apps\monprogramme.jpg&nbsp;&raquo; /&gt;&lt;/a&gt;&lt;/div&gt;<br />
 &lt;div&gt;Nom de mon programme&lt;/div&gt;<br />
 &lt;/div&gt;</em></strong></p>
</li>
<li>Créer le fichier .lch associé à notre programme, ils se trouvent dans <strong>\Framakey\FramaKiosk\FramaKioskPages\lch\apps</strong><br />
 Et son de la forme :<br />
 <strong><em>[Launch] <br />
 ExecuteFile=${cwd}\..\..\..\Apps\Dossier de mon application\monprogramme.exe<br />
 ExecuteDirectory=${cwd}\..\..\..\Apps\Dossier de mon application\<br />
 ExecuteParameters=<br />
 </em></strong></p>
<p><br class="spacer_" /></p>
</li>
<li>Et ne pas oublier de rajouter l&#8217;icone pour son programme dans <strong>\Framakey\FramaKiosk\FramaKioskPages\img\apps</strong> </li>
</ul>
</li>
<li>Modifier le menu Framalauncher
<ul>
<li>Pour ajouter des programme dans le menu framalaucher il faut comme pour le framakiosk placer son application portable dans le dossier Apps<br />
 Dans le menu de la Framakey <em>=&gt;Compléments</em></p>
<p><br class="spacer_" /></p>
<ul>
<li><em>Ouvrir Config avec SciTE</em></li>
</ul>
</li>
<li>Les catégories et sous menu apparaissent, il suffit de se rendre dans la bonne partie du fichier par exemple dans la section <strong><em>[Outils]</em></strong><br />
 Rajouter une ligne de la même forme que les autres :</p>
<p><br class="spacer_" /></p>
<p><strong>Type: item; Caption: Nomdemonappli; Action: run; FileName: %Apps%\Dossier de mon appli\monappli.exe; Glyph: 85</strong></p>
<p>la commande run indique qu&#8217;il s&#8217;agit d&#8217;un programme a lancer, ensuite on spécifie le dossier et le nom de l&#8217;appli, le glyph indique l&#8217;icone qui va être utilisé<br />
 Les icônes du menu sont enregistré dans un fichier <strong>.bmp</strong> elles sont en <strong>16*16</strong> les unes a la suite des autres (glyph 0,1,2,3&#8230;. 85&#8230;)<br />
 Pour rajouter une icone il faut modifier le fichier \Framakey\FramaLauncher\FramaLauncher.bmp, rajouter 16 pixels de large et insérer son icone à la fin<br />
 Elle prendra le nombre suivant si l&#8217;on veut l&#8217;utiliser avec le paramètre glyph (largeurBMP/16  &#8211; 1)<br />
 Il faut ensuite réactualiser le menu (<em>Compléments =&gt;Réactualiser ce menu</em>)</p>
</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.sebtof13.fr/2009/12/12/creer-sa-framakey-ubuntu-remix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ajouter Gparted et System Rescue CD à FOG</title>
		<link>http://blog.sebtof13.fr/2009/09/18/ajouter-gparted-et-system-rescue-cd-a-fog/</link>
		<comments>http://blog.sebtof13.fr/2009/09/18/ajouter-gparted-et-system-rescue-cd-a-fog/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 14:49:37 +0000</pubDate>
		<dc:creator>Sebtof</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[gparted boot pxe fog menu system rescue cd]]></category>

		<guid isPermaLink="false">http://blog.sebtof13.fr/?p=328</guid>
		<description><![CDATA[Suite à mon précédent post sur FOG certains d&#8217;entres vous l&#8217;auront peut être testé, Aujourd&#8217;hui nous allons voir comment ajouter d&#8217;autres options très sympas au menu de boot PXE de FOG. J&#8217;ai déja présenter les avantages de FOG qui peut cloner / reveiller memtester des machines à distance grace a son menu PXE, nous allons [...]]]></description>
			<content:encoded><![CDATA[<p>Suite à <a href="http://blog.sebtof13.fr/?p=288">mon précédent post sur FOG</a> certains d&#8217;entres vous l&#8217;auront peut être testé,</p>
<p>Aujourd&#8217;hui nous allons voir comment ajouter d&#8217;autres options très sympas au menu de boot PXE de FOG.  <img src='http://blog.sebtof13.fr/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' /> </p>
<p>J&#8217;ai déja présenter les avantages de FOG qui peut cloner / reveiller memtester des machines à distance grace a son menu PXE, nous allons combiner FOG à Gparted (éditeur de partition) et SystemRescueCD pour en faire un outil très puissant de maintenance et d&#8217;entretien de parc informatique.</p>
<p>Vous pourrez comme moi abandonner votre vieille pochette à live CD poussiereuse qui vous a mainte fois sauver la vie <img src='http://blog.sebtof13.fr/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<div id="attachment_332" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.sebtof13.fr/wp-content/uploads/2009/09/rcd1.jpg"><img class="size-medium wp-image-332" title="rcd1" src="http://blog.sebtof13.fr/wp-content/uploads/2009/09/rcd1-300x225.jpg" alt="rescue cd pxe" width="300" height="225" /></a><p class="wp-caption-text">Gparted Rescue CD PXE</p></div>
<p><span id="more-328"></span></p>
<p><span style="font-size: large;"><span style="text-decoration: underline;"><strong>I Gparted</strong></span></span></p>
<p>Pas la peine de le présenter, ceux qui ont installé une distro linux récement l&#8217;auront utilisé au moins une fois, il s&#8217;agit évidement d&#8217;un outil de partitionnement graphique.</p>
<p>On va donc commencer par télécharger la dernière version <em>(version zip)</em> <a href="http://sourceforge.net/projects/gparted/files/" target="_blank"><strong>==&gt; ici &lt;==<br />
 </strong></a></p>
<p>Ensuite le dezziper biensur,</p>
<p>Créer le répertoire Gparted pour FOG</p>
<p><code><br />
 </code></p>
<pre style="padding-left: 30px;">mkdir /tftpboot/fog/gparted
</pre>
<p><code><br />
 </code></p>
<p>Copier les fichier <span style="color: #ff0000;"><strong>vmlinuz1</strong></span> et <span style="color: #ff0000;"><strong>initrd1.img</strong></span> qui se trouve dans le répertoire &laquo;&nbsp;<strong><span style="color: #008000;">/live/</span></strong>&nbsp;&raquo; dans le dossier que l&#8217;on vien de créer <strong>(<span style="color: #008000;">/tftpboot/fog/gparted/</span>)</strong></p>
<p>Copier le fichier<strong> <span style="color: #ff0000;">filesystem.squashfs</span> </strong>qui se trouve également dans &laquo;&nbsp;<span style="color: #008000;">/live/</span>&laquo;&nbsp;<strong> </strong>dans le dossier <strong>(<span style="color: #008000;">/var/www/fog/</span>)</strong></p>
<p>Il ne reste plus qu&#8217;a éditier le fichier de config du menu pxe de FOG</p>
<p><code><br />
 </code></p>
<pre style="padding-left: 30px;">nano /tftpboot/pxelinux.cfg/default
</pre>
<p><code><br />
 </code></p>
<p>Et y rajouter à la fin</p>
<p><br class="spacer_" /></p>
<p><code><br />
 </code></p>
<p style="padding-left: 30px;"><code><span style="font-size: x-small;">LABEL GParted kernel fog/gparted/vmlinuz1<br />
 append initrd=fog/gparted/initrd1.img boot=live union=aufs noswap noprompt vga=788 fetch=<span style="color: #ff0000;"><strong>&lt;http://adresse_ip/&gt;</strong></span>1/fog/filesystem.squashfs<br />
 MENU LABEL GParted Live CD PXE<br />
 TEXT HELP<br />
 Gparted est un Editeur de partition pour creer, reorganiser et supprimer des partitions. </span></code></p>
<p style="padding-left: 30px;"><span style="font-size: x-small;">ENDTEXT</span></p>
<p><code><br />
 </code></p>
<p><strong>Important </strong><span style="color: #ff0000;"><strong>&lt;http://adresse_ip/&gt;</strong></span> est à remplacer par l&#8217;adresse ip du serveur Web de FOG ! (ex : 192.168.1.1)</p>
<p>Voila notre option PXE est prete démonstration en images :</p>
<p><br class="spacer_" /></p>
<div id="attachment_329" class="wp-caption aligncenter" style="width: 810px"><a href="http://blog.sebtof13.fr/wp-content/uploads/2009/09/gparted1.jpg"><img class="size-full wp-image-329" title="gparted1" src="http://blog.sebtof13.fr/wp-content/uploads/2009/09/gparted1.jpg" alt="gparted boot pxe" width="800" height="600" /></a><p class="wp-caption-text">gparted boot pxe</p></div>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<div id="attachment_330" class="wp-caption aligncenter" style="width: 810px"><a href="http://blog.sebtof13.fr/wp-content/uploads/2009/09/gparted2.jpg"><img class="size-full wp-image-330" title="gparted2" src="http://blog.sebtof13.fr/wp-content/uploads/2009/09/gparted2.jpg" alt="gparted boot pxe" width="800" height="600" /></a><p class="wp-caption-text">gparted boot pxe</p></div>
<div id="attachment_331" class="wp-caption aligncenter" style="width: 810px"><a href="http://blog.sebtof13.fr/wp-content/uploads/2009/09/gparted3.jpg"><img class="size-full wp-image-331" title="gparted3" src="http://blog.sebtof13.fr/wp-content/uploads/2009/09/gparted3.jpg" alt="gparted boot pxe" width="800" height="600" /></a><p class="wp-caption-text">gparted boot pxe</p></div>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><span style="font-size: medium;"><span style="text-decoration: underline;"><strong>II System Rescue CD</strong></span></span></p>
<p>Second gros morceau de ce tuto, la manip est presque la même</p>
<p>Comme tout a l&#8217;heure on commence par se procurer System Rescue CD <a href="http://www.sysresccd.org/Download" target="_blank">==&gt; ici &lt;==</a></p>
<p>On décompresse le fichier .iso , et on obtient un dossier que l&#8217;on va nommer <span style="color: #008000;"><em><strong>RescueCD</strong></em></span> contenant plusieurs sous dossier &#8230;. jusque la tout va bien <img src='http://blog.sebtof13.fr/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Comme tout a l&#8217;heure il va falloir copier certains fichiers à differents endroits.</p>
<p>on va donc commencer par creer notre répertoire comme pour Gparted :</p>
<p><br class="spacer_" /></p>
<p><code><br />
 </code></p>
<pre style="padding-left: 30px;">mkdir /tftpboot/fog/systemrcd
</pre>
<p style="padding-left: 30px;"><code><br />
 </code></p>
<p>On commence par placer les fichiers <span style="color: #ff0000;"><em><strong>rescuecd</strong></em></span> et <span style="color: #ff0000;"><em><strong>initram.igz</strong></em></span> qui se trouve dans le dossier <strong><span style="color: #339966;">/isolinux/</span> </strong>vers le dossier <span style="color: #339966;"><strong>/tftpboot/fog/systemrcd/</strong></span></p>
<p>Ensuite on déplace les fichiers <span style="color: #ff0000;"><em><strong>sysrcd.dat</strong></em></span> et <span style="color: #ff0000;"><em><strong>sysrdc.md5</strong></em></span> qui se trouve a la racine de notre premier dossier <span style="color: #339966;"><strong>/RescueCD/</strong></span> vers le dossier <span style="color: #339966;"><strong>/var/www/fog/</strong></span> (sisi cela me rapelle quelque chose à moi aussi)</p>
<p>Le md5 est indispensable,  sinon vous obtiendrez une erreur 404 HTTP 1.1 &#8230;..</p>
<p>Comme vous l&#8217;aurez deviné on fini de la même facon que pour Gparted ie en éditant le fichier config du PXE de FOG.</p>
<p><code></code></p>
<pre style="padding-left: 30px;"> LABEL System Rescue CD
 kernel fog/systemrcd/rescuecd
 append scandelay=5 initrd=fog/systemrcd/initram.igz boot=live union=aufs noswap noprompt ramdisk_size=400000 vga=791 netboot=<strong><span style="color: #ff0000;">&lt;http://adresse_ip/&gt;</span></strong>/fog/sysrcd.dat setkey$
 MENU LABEL System Rescue CD
 TEXT HELP
 System Rescue CD</pre>
<p style="padding-left: 30px;"><code><br />
 </code></p>
<p>Je me répète</p>
<p><strong>Important </strong><span style="color: #ff0000;"><strong>&lt;http://adresse_ip/&gt;</strong></span> est à remplacer par l&#8217;adresse ip du serveur Web de FOG ! (ex : 192.168.1.1)</p>
<p>à noter pour les antiquité avec très très peu de ram il faudra peu être customiser votre rescueCD pour en faire un plus léger (chez moi cela fonctionne avec du 512 M, les 256M reste trop juste pour System rescue CD, d&#8217;où l&#8217;intéret de conserver Gparted en version seule qui fonctionne très bien sur les 256M)</p>
<p>Et pour finir la preuve en image :</p>
<p><br class="spacer_" /></p>
<div id="attachment_332" class="wp-caption aligncenter" style="width: 810px"><a href="http://blog.sebtof13.fr/wp-content/uploads/2009/09/rcd1.jpg"><img class="size-full wp-image-332" title="rcd1" src="http://blog.sebtof13.fr/wp-content/uploads/2009/09/rcd1.jpg" alt="rescue cd pxe" width="800" height="600" /></a><p class="wp-caption-text">rescue cd pxe</p></div>
<div id="attachment_333" class="wp-caption aligncenter" style="width: 810px"><a href="http://blog.sebtof13.fr/wp-content/uploads/2009/09/rcd2.jpg"><img class="size-full wp-image-333" title="rcd2" src="http://blog.sebtof13.fr/wp-content/uploads/2009/09/rcd2.jpg" alt="rescue cd pxe" width="800" height="600" /></a><p class="wp-caption-text">rescue cd pxe</p></div>
<div id="attachment_334" class="wp-caption aligncenter" style="width: 810px"><a href="http://blog.sebtof13.fr/wp-content/uploads/2009/09/rcd3.jpg"><img class="size-full wp-image-334" title="rcd3" src="http://blog.sebtof13.fr/wp-content/uploads/2009/09/rcd3.jpg" alt="rescue cd pxe" width="800" height="600" /></a><p class="wp-caption-text">rescue cd pxe</p></div>
<p><br class="spacer_" /></p>
<p>C&#8217;est fini pour ce tuto, bien que ce ne soit pas très dur en cherchant un peu j&#8217;espère avoir fait gagné du temps à quelques uns d&#8217;entre vous <img src='http://blog.sebtof13.fr/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sebtof13.fr/2009/09/18/ajouter-gparted-et-system-rescue-cd-a-fog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FOG &#8211; a free computer imaging solution</title>
		<link>http://blog.sebtof13.fr/2009/06/12/fog-a-free-computer-imaging-solution/</link>
		<comments>http://blog.sebtof13.fr/2009/06/12/fog-a-free-computer-imaging-solution/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 08:01:31 +0000</pubDate>
		<dc:creator>Sebtof</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[cloning]]></category>
		<category><![CDATA[fog]]></category>
		<category><![CDATA[ghost]]></category>
		<category><![CDATA[gratuis]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[interface web]]></category>
		<category><![CDATA[pxe]]></category>
		<category><![CDATA[wol]]></category>

		<guid isPermaLink="false">http://blog.sebtof13.fr/?p=288</guid>
		<description><![CDATA[FOG est une solution complète de création d'images et de déploiement basé sur linux.

Organisé et géré entièrement à partir d'une interface Web , il permet de cloner des images de windows XP et Vista (comme le fait déja Northon GHOST) à la difference près que celui-ci va permettre beaucoup plus de taches et de facilité pour mettre en oeuvre un déploiement, en effet FOG integre une multitude d'options avancées de gestion de groupes, d'hotes, d'images, il va permettre le WOL (wake on lan),  analyse et restauration de disque, analyse anti virus, memtest ... d'un ou plusieurs hotes voire d'un ou plusieurs groupes d'hotes.]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><img class="aligncenter" src="http://www.fogproject.org/templates/waterandstone/images/logo.gif" alt="Logo Fog" /></p>
<p style="text-align: left;">FOG est une solution complète de création d&#8217;images et de déploiement basé sur linux.</p>
<p style="text-align: left;">Organisé et géré entièrement à partir d&#8217;une interface Web , il permet de cloner des images de windows XP et Vista (comme le fait déja Northon GHOST) à la difference près que celui-ci va permettre beaucoup plus de taches et de facilité pour mettre en oeuvre un déploiement, en effet FOG integre une multitude d&#8217;options avancées de gestion de groupes, d&#8217;hotes, d&#8217;images, il va permettre le WOL (wake on lan),  analyse et restauration de disque, analyse anti virus, memtest &#8230; d&#8217;un ou plusieurs hotes voire d&#8217;un ou plusieurs groupes d&#8217;hotes.</p>
<p style="text-align: center;"><img class="aligncenter" style="vertical-align: middle;" src="http://www.fogproject.org/images/stories//dash.jpg" alt="Fog main screen" width="500" height="376" /></p>
<p style="text-align: left;"><span id="more-288"></span></p>
<p style="text-align: left;">On notera également le fait que les drivers réseaux parfois (/souvent) difficile à trouver et à mettre en place sous GHOST sont directement intégré dans le noyau de FOG,</p>
<p style="text-align: left;">De plus le menu PXE graphique de FOG entièrement configurable permet la mise en place de mot de passe pour telle ou telle option du menu (évite le bidouillage non désirable).</p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.fogproject.org/images/stories//pxeboot.png" alt="fog menu pxe" width="500" height="390" /></p>
<p style="text-align: left;">Un petit service est fournit pour windows, celui ci va permettre la mise a jour des données materielles et ordonner des taches programmables quand les postes concernés sont allumés (reboot, logoff&#8230;)</p>
<p style="text-align: center;"><img class="aligncenter" style="vertical-align: middle;" src="http://www.fogproject.org/images/stories/fogservice.jpg" alt="service windows" width="500" height="368" /></p>
<p>Et enfin pour les amateurs de gadgets l&#8217;administration FOG se fait aussi sur PDA &#8211; Iphone grace à une interface mobile</p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.fogproject.org/images/stories//ipod_active.jpg" alt="fog interface mobile" width="320" height="480" /></p>
<p style="text-align: left;">Problèmes rencontré pour moi :</p>
<p style="text-align: left;">Quelques freezes au niveau du menu PXE pour certains type de materiels, résolu grace à une mise a jour du bios et ou du kernel de FOG</p>
<p><a href="http://www.fogproject.org/" target="_blank">Site officiel</a></p>
<p><a href="http://sourceforge.net/project/showfiles.php?group_id=201099" target="_blank">Téléchargements</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sebtof13.fr/2009/06/12/fog-a-free-computer-imaging-solution/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Qmotion détection de mouvements par Webcam sous linux</title>
		<link>http://blog.sebtof13.fr/2009/04/08/qmotion-detection-de-mouvements-par-webcam-sous-linux/</link>
		<comments>http://blog.sebtof13.fr/2009/04/08/qmotion-detection-de-mouvements-par-webcam-sous-linux/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 20:28:49 +0000</pubDate>
		<dc:creator>Sebtof</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[camera]]></category>
		<category><![CDATA[detection]]></category>
		<category><![CDATA[mouvement]]></category>
		<category><![CDATA[qmotion]]></category>
		<category><![CDATA[securité]]></category>
		<category><![CDATA[surveillance]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.sebtof13.fr/?p=281</guid>
		<description><![CDATA[Qmotion détection de mouvements par Webcam sous linux]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" src="http://www.clickbox.com.ar/internet/foto/groot-webcam-logitech-quickcam-messenger.jpg" alt="" width="207" height="168" /></p>
<p>QMotion  est disponible gratuitement en téléchargement pour <span class="spip_surligne">Linux</span>.   La solution permet de surveiller n’importe quelle pièce d’une maison ou d’un bureau, à l’aide de votre <span class="spip_surligne">webcam</span>.</p>
<p>QMotion est est publié sous GPLv3. La détection de <span class="spip_surligne">mouvement</span> est basée sur la technologie OpenCV développée <span class="spip_surligne">par</span> Intel.  Le logiciel se compose d’une interface graphique très simple.  L’application est <span class="spip_surligne">paramétrable</span> : vous choisissez le seuil à <span class="spip_surligne">partir</span> duquel vous souhaitez que la détection de <span class="spip_surligne">mouvement</span> soit <span class="spip_surligne">active</span> et vous informe de l’activité de la pièce.</p>
<p><strong>Téléchargement :</strong></p>
<p><a href="http://slist.lilotux.net/linux/qmotion/qmotion-2.0.tgz">qmotion-2.0.tgz</a></p>
<p><strong>Paquets Ubuntu :</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">g++</span> libcv-dev libcv1 libcvaux-dev libcvaux1 libhighgui-dev libhighgui1 opencv-doc</pre></div></div>

<p><strong>Installation de QT :</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libqt4-gui libqt4-dev</pre></div></div>

<p><strong>Compilation :</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf qmotion-<span style="color: #000000;">2.0</span>.tgz
<span style="color: #7a0874; font-weight: bold;">cd</span> qmotion-<span style="color: #000000;">2.0</span><span style="color: #000000; font-weight: bold;">/</span>
qmake
<span style="color: #c20cb9; font-weight: bold;">make</span>
.<span style="color: #000000; font-weight: bold;">/</span>qmotion</pre></div></div>

<p>Le paramétrage du logiciel est très simple, il faut seulement choisir le répertoire de sauvegarde des images et si besoin est, configurer le serveur FTP pour l&#8217;upload automatique d&#8217;image.</p>
<p>Il suffit ensuite de choisir si l&#8217;on veut ou non enregistrer les images quand un mouvement est détecté, et de régler la sensibilité de la détection.</p>
<p><a href="http://slist.lilotux.net/linux/qmotion/qmotion-2.0.tgz"><br />
 </a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sebtof13.fr/2009/04/08/qmotion-detection-de-mouvements-par-webcam-sous-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash player 10 Firefox &amp; Opera</title>
		<link>http://blog.sebtof13.fr/2009/04/06/flash-player-10-firefox-opera-2/</link>
		<comments>http://blog.sebtof13.fr/2009/04/06/flash-player-10-firefox-opera-2/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 18:42:19 +0000</pubDate>
		<dc:creator>Sebtof</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.sebtof13.fr/?p=262</guid>
		<description><![CDATA[Voici 2 scripts pour installer flash player 10 sur Ubuntu 8.10 64 bit]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter" src="http://www.geektips.net/wp-content/uploads/2008/05/adobe-flash-logo.jpg" alt="" width="174" height="174" /></p>
<p>Voici 2 scripts pour installer flash player 10 sur Ubuntu 8.10 64 bit respectivement sur <strong>Firefox</strong> et <strong>Opera</strong></p>
<p>On commence par Firefox <img src='http://blog.sebtof13.fr/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> <em><strong><br />
 </strong></em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Fermeture de Firefox&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">killall</span> <span style="color: #660033;">-9</span> firefox
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> remove <span style="color: #660033;">-y</span> <span style="color: #660033;">--purge</span> flashplugin-nonfree
gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>mozilla<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/*</span>flash<span style="color: #000000; font-weight: bold;">*</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> ~<span style="color: #000000; font-weight: bold;">/</span>.mozilla<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/*</span>flash<span style="color: #000000; font-weight: bold;">*</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>firefox<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/*</span>flash<span style="color: #000000; font-weight: bold;">*</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>firefox-addons<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/*</span>flash<span style="color: #000000; font-weight: bold;">*</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rfd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>nspluginwrapper
<span style="color: #7a0874; font-weight: bold;">cd</span> ~
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>download.macromedia.com<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>labs<span style="color: #000000; font-weight: bold;">/</span>flashplayer10<span style="color: #000000; font-weight: bold;">/</span>libflashplayer-10.0.22.87.linux-x86_64.so.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf libflashplayer-10.0.22.87.linux-x86_64.so.tar.gz
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> libflashplayer.so <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>mozilla<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> libflashplayer.so <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>firefox-addons<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> libflashplayer.so
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> libflashplayer-10.0.22.87.linux-x86_64.so.tar.gz
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;-----------------------------------------------------------------------&quot;</span></pre></div></div>

<pre class="code"><em><span id="more-262"></span></em></pre>
<p>Et enfin pour Opera :</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;Fermeture d'Opera&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">killall</span> <span style="color: #660033;">-9</span> opera
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Suppression des plugins Flash déjà installé:&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> remove <span style="color: #660033;">-y</span> <span style="color: #660033;">--purge</span> flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>opera<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/*</span>flash<span style="color: #000000; font-weight: bold;">*</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rfd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>nspluginwrapper
<span style="color: #7a0874; font-weight: bold;">cd</span> ~
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>download.macromedia.com<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>labs<span style="color: #000000; font-weight: bold;">/</span>flashplayer10<span style="color: #000000; font-weight: bold;">/</span>libflashplayer-10.0.22.87.linux-x86_64.so.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf libflashplayer-10.0.22.87.linux-x86_64.so.tar.gz
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> libflashplayer.so <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>opera<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> libflashplayer.so
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> libflashplayer-10.0.22.87.linux-x86_64.so.tar.gz
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;-----------------------------------------------------------------------&quot;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.sebtof13.fr/2009/04/06/flash-player-10-firefox-opera-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Créer un applet Gnome partie 1/2</title>
		<link>http://blog.sebtof13.fr/2009/04/06/creer-un-applet-gnome-partie-12/</link>
		<comments>http://blog.sebtof13.fr/2009/04/06/creer-un-applet-gnome-partie-12/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 07:13:38 +0000</pubDate>
		<dc:creator>Sebtof</dc:creator>
				<category><![CDATA[C / C++]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[applet]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[GTK]]></category>

		<guid isPermaLink="false">http://blog.sebtof13.fr/?p=198</guid>
		<description><![CDATA[Dans Gnome, un applet est une petite application destinée à s'intégrer au tableau de bord de Gnome]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" src="http://www.geeks.com/techtips/2007/Images/mhp2_gnome_logo-01.gif" alt="" width="132" height="132" /></p>
<h2 class="title" style="clear: both;"><span style="color: #003366;">Qu&#8217;est-ce qu&#8217;un Applet?</span></h2>
<p>Dans Gnome, un applet est une petite application destinée à s&#8217;intégrer au tableau de bord de Gnome, donnant un accès rapide et facile sur un contrôle, comme un contrôleur de volume, un indicateur d&#8217;activité réseau, ou encore une information météorologique.</p>
<p><img class="alignnone size-full wp-image-199" title="capture" src="http://blog.sebtof13.fr/wp-content/uploads/2009/04/capture.png" alt="capture" width="227" height="74" /></p>
<p>Les applets nécessitent la bibliothèque &laquo;&nbsp;libpanel-applet&nbsp;&raquo; pour s&#8217;exécuter et si vous souhaitez en développer un, vous aurez besoin d&#8217;installer le paquet de développement</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libpanelappletmm-<span style="color: #000000;">2.6</span>-dev</pre></div></div>

<h2 class="title" style="clear: both;"><span style="color: #003366;">Construire l&#8217;infrastructure</span></h2>
<p lang="fr-FR">Sur un plan technique, Les applets sont des contrôles &laquo;&nbsp;Bonobo&nbsp;&raquo; intégrés au tableau de bord de Gnome. Cela signifie qu&#8217;il y a plusieurs différences avec un programme Gnome classique. La première différence est que chaque applet nécessite un fichier avec l&#8217;extension &#8216;.server&#8217;, qui contient la description pour le rendre compréhensible par &laquo;&nbsp;Bonobo&nbsp;&raquo;. Si vous ne comprenez pas très bien ceci ne vous inquiétez pas. La seule chose que le développeur a à faire est d&#8217;éditer le fichier, et remplacer certains champs par les spécificités de son applet.</p>
<p lang="fr-FR"><span id="more-198"></span></p>
<p>Voici un exemple d&#8217;un fichier &laquo;&nbsp;.server&nbsp;&raquo; appellé &laquo;&nbsp;my_applet.server&nbsp;&raquo;.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #ddbb00;">&amp;lt;</span> ?xml version=&quot;1.0&quot;?<span style="color: #ddbb00;">&amp;gt;</span></pre></div></div>

<p><span lang="fr-FR">Il y a quelques trucs à noter:</span></p>
<p><span lang="fr-FR"> Les lignes importantes sont mises en évidence,  l&#8217;attribut<strong> &laquo;&nbsp;location&nbsp;&raquo;</strong> de <span style="text-decoration: underline;">oaf_server</span> définira l&#8217;emplacement de notre executable, N&#8217;oublier pas d&#8217;indiquer le type en &nbsp;&raquo;exe&nbsp;&raquo;. Dans cet exemple, notre fichier exécutable s&#8217;appelle <strong>appletsebtof</strong> et est placé dans</span> <strong><code class="filename">/usr/lib/gnome-panel/</code></strong> <span lang="fr-FR"> , nous définissons le nom de notre &#8216;applet Factory&#8217; , </span><span style="color: #000000;"><strong>MonAppletSebtof</strong></span><span lang="fr-FR">. Nommer votre .<em>server</em> et placer le dans</span> <strong><code class="filename">/usr/lib/bonobo/servers/, </code></strong><code class="filename">l'icone qui representera notre applet dans la liste sera </code><span style="color: #000000;"><strong>tux-matrix.png </strong>Veuillez à placer votre image dans <strong>/usr/share/pixmaps/.</strong></span></p>
<p>Après avoir ajouter le .server dans le dossier, nous pouvons commencer à écrire le code source de notre applet.</p>
<p>Nous devrons utiliser GTK pour coder notre applet.</p>
<p>Pour plus d&#8217;informations</p>
<p><a href="http://library.gnome.org/devel/gtk/stable/" target="_blank">Consulter la Doc Gtk ici</a></p>
<p>Exemple :</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #339933;">#include </span>
<span style="color: #339933;">#include</span>
&nbsp;
<span style="color: #339933;">#include </span>
<span style="color: #993333;">static</span> gboolean
myexample_applet_fill <span style="color: #009900;">&#40;</span>PanelApplet <span style="color: #339933;">*</span>applet<span style="color: #339933;">,</span>
<span style="color: #993333;">const</span> gchar <span style="color: #339933;">*</span>iid<span style="color: #339933;">,</span>
gpointer data<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
GtkWidget <span style="color: #339933;">*</span>label<span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>strcmp <span style="color: #009900;">&#40;</span>iid<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;OAFIID:MonApplet&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #0000dd;">0</span><span style="color: #009900;">&#41;</span>
<span style="color: #b1b100;">return</span> FALSE<span style="color: #339933;">;</span>
label <span style="color: #339933;">=</span> gtk_label_new <span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Hello World&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
gtk_container_add <span style="color: #009900;">&#40;</span>GTK_CONTAINER <span style="color: #009900;">&#40;</span>applet<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> label<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
gtk_widget_show_all <span style="color: #009900;">&#40;</span>GTK_WIDGET <span style="color: #009900;">&#40;</span>applet<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">return</span> TRUE<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
PANEL_APPLET_BONOBO_FACTORY <span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;OAFIID:MonAppletSebtof&quot;</span><span style="color: #339933;">,</span>
PANEL_TYPE_APPLET<span style="color: #339933;">,</span>
<span style="color: #ff0000;">&quot;The Hello World Applet&quot;</span><span style="color: #339933;">,</span>
<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #339933;">,</span>
myexample_applet_fill<span style="color: #339933;">,</span>
NULL<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>La compilation ce fait avec cette commande:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span>~$ <span style="color: #c20cb9; font-weight: bold;">gcc</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span>pkg-config <span style="color: #660033;">--cflags</span> <span style="color: #660033;">--libs</span> libpanelapplet-<span style="color: #000000;">2.0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #660033;">-o</span> myexample my_applet.c</pre></div></div>

<p>Noter que la variable d&#8217;environnement <strong>PKG_CONFIG_PATH</strong><br />
 doit contenir le chemin vers <strong><code class="filename">libpanelapplet-2.0.pc</code></strong>.<br />
 Si vous obtenez l&#8217;erreur suivante:</p>
<p class="screen"><span style="color: #888888;font-size:12px;"><em>Package libpanelapplet-2.0 was not found in the pkg-config search path.<br />
 Perhaps you should add the directory containing `libpanelapplet-2.0.pc&#8217;<br />
 to the PKG_CONFIG_PATH environment variable<br />
 No package &#8216;libpanelapplet-2.0&#8242; found</em></span></p>
<p>Vous avez besoin d&#8217;exécuter les commandes suivantes:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span>$ <span style="color: #007800;">PKG_CONFIG_PATH</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>pkgconfig
<span style="color: #c20cb9; font-weight: bold;">bash</span>$ <span style="color: #7a0874; font-weight: bold;">export</span> PKG_CONFIG_PATH</pre></div></div>

<p>Placer l&#8217;exécutable dans le répertoire <strong><code class="filename">/usr/lib/gnome-panel/</code></strong> .</p>
<p>Nous ajoutons notre applet au tableau de bord Gnome par un clique droit sur la barre de Gnome, et choisissez &laquo;&nbsp;ajouter au tableau de bord&#8230;&nbsp;&raquo;</p>
<p>Comment Gnome fait pour lier le code C et le fichier .server?<br />
 Le lien se fait grâce a l&#8217;appel de la fonction<span style="color: #3366ff;"><em> PANEL_APPLET_BONOBO_FACTORY</em></span>.<br />
 Cet appel utilise un nombre important de paramètres, et le prototype de la fonction est:</p>
<p class="code" style="padding-left: 30px;"><span style="color: #888888;"><em>PANEL_APPLET_BONOBO_FACTORY (iid, type, name, version, callback, data)</em></span></p>
<p>Le premier paramètre spécifie le<strong> OAFIID</strong>,<br />
 c&#8217;est l&#8217;identifiant pour Bonobo, et il devrait être le nom que vous avez défini dans le fichier .server, <strong><br />
 &laquo;&nbsp;MonAppletSebtof&nbsp;&raquo;</strong>.<br />
 Le deuxième paramètre définit le type; pour un applet donc<strong> PANEL_TYPE_APPLET</strong>.<br />
 Le troisième paramètre est le nom qui s&#8217;affichera lorsque vous exécuterez l&#8217;interface Bonobo.<br />
 Le quatrième est le version.<br />
 Nous devons aussi donner la fonction à exécuter,<br />
 La fonction d&#8217;entrée dans notre code source est <strong><code class="function">myexample_applet_fill()</code></strong>.<br />
 Pour le dernier paramètre, nous spécifions l&#8217;envoi à la méthode d&#8217;entrée n&#8217;importe quel type de données.<br />
 Dans notre exemple,nous ne passons rien ainsi nous mettons <strong>&laquo;&nbsp;NULL&nbsp;&raquo;</strong> comme valeur de paramètre.</p>
<p>Dans notre code, la définition de la méthode pour<strong> myexample_applet_fill ()</strong> est:</p>
<pre class="code" style="padding-left: 30px;"><span style="color: #3366ff;"><em>myexample_applet_fill (applet, iid, data)</em></span></pre>
<p>Noter que le nom de cette méthode doit être présent dans la définition de la &laquo;&nbsp;factory&nbsp;&raquo;.</p>
<p>Premièrement, nous testons que l&#8217;iid corresponde avec l&#8217;iid passé en paramètre.<br />
 Si ce n&#8217;est pas le cas, nous annulons la création de l&#8217;applet, dans les autres cas, nous continuons avec le reste de la méthode.</p>
<pre class="code" style="padding-left: 30px;"><span style="color: #3366ff;">if (strcmp (iid, "OAFIID:MonApplet") != 0)
return FALSE;
</span></pre>
<p>Il est préférable pour la fonction &laquo;&nbsp;main&nbsp;&raquo; qu&#8217;elle n&#8217;aie pas beaucoup de fonctionnalités.<br />
 Assurez-vous que le <strong>OAFIID</strong> corresponde avec l&#8217;identifiant de Bonobo.<br />
 Dessiner un &#8216;label&#8217; dans l&#8217;applet, et afficher le. Facile mais pas vraiment utile.<br />
 Après avoir fait tout cela, notre applet existe. Si vous faites un clique droit dessus, vous avez trois possibilités :<br />
 Enlever l&#8217;applet, le déplacer et le fixer.</p>
<p>Rendre Notre Applet plus interessant</p>
<p>Tout d&#8217;abord changer le &laquo;&nbsp;Hello word&nbsp;&raquo; en image</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #993333;">static</span> gboolean myexample_applet_fill <span style="color: #009900;">&#40;</span>PanelApplet <span style="color: #339933;">*</span>applet<span style="color: #339933;">,</span><span style="color: #993333;">const</span> gchar <span style="color: #339933;">*</span>iid<span style="color: #339933;">,</span>gpointer data<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
GtkWidget <span style="color: #339933;">*</span>image<span style="color: #339933;">;</span>
GtkEventBox <span style="color: #339933;">*</span>event_box<span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>strcmp <span style="color: #009900;">&#40;</span>iid<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;OAFIID:MonApplet&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #0000dd;">0</span><span style="color: #009900;">&#41;</span>
<span style="color: #b1b100;">return</span> FALSE<span style="color: #339933;">;</span>
image <span style="color: #339933;">=</span> gtk_image_new_from_file <span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;/usr/share/pixmaps/tux-matrix.png&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
event_box <span style="color: #339933;">=</span> gtk_event_box_new <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
gtk_container_add <span style="color: #009900;">&#40;</span>GTK_CONTAINER <span style="color: #009900;">&#40;</span>event_box<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> image<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//g_signal_connect (G_OBJECT (event_box), &quot;button_press_event&quot;,G_CALLBACK (on_button_press),NULL);</span>
gtk_container_add <span style="color: #009900;">&#40;</span>GTK_CONTAINER <span style="color: #009900;">&#40;</span>applet<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> event_box<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
gtk_widget_show_all <span style="color: #009900;">&#40;</span>GTK_WIDGET <span style="color: #009900;">&#40;</span>applet<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">return</span> TRUE<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
PANEL_APPLET_BONOBO_FACTORY <span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;OAFIID:MonAppletSebtof&quot;</span><span style="color: #339933;">,</span>PANEL_TYPE_APPLET<span style="color: #339933;">,</span><span style="color: #ff0000;">&quot;The Hello World Applet&quot;</span><span style="color: #339933;">,</span><span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #339933;">,</span>myexample_applet_fill<span style="color: #339933;">,</span>NULL<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>L&#8217;utilisation d&#8217;une GtkImage et d&#8217;une GtkEventBox vont permettre à la fois de rendre notre applet plus joli avec son icone, et également de le rendre interactif à la souris.</p>
<p>ici la ligne qui permet de traiter le clique de la souris est commenté</p>
<p style="padding-left: 30px;"><strong><span style="color: #3366ff;font-size:10px;">//g_signal_connect (G_OBJECT (event_box), &laquo;&nbsp;button_press_event&nbsp;&raquo;,G_CALLBACK (on_button_press),NULL);</span></strong></p>
<p style="padding-left: 30px;"><span style="color: #000000;">&laquo;&nbsp;Quand la box recoit un clic, on lance la fonction <strong>on_button_press()</strong>&laquo;&nbsp;</span></p>
<p style="padding-left: 30px;"> </p>
<p><span style="color: #000000;">Etudions le code de la fonction </span><strong><span style="color: #000000;">on_button_press()</span></strong></p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #993333;">static</span> gboolean
on_button_press <span style="color: #009900;">&#40;</span>GtkWidget <span style="color: #339933;">*</span>event_box<span style="color: #339933;">,</span> GdkEventButton <span style="color: #339933;">*</span>event<span style="color: #339933;">,</span>
gpointer data<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #993333;">static</span> <span style="color: #993333;">int</span> window_shown<span style="color: #339933;">;</span>
<span style="color: #993333;">static</span> GtkWidget <span style="color: #339933;">*</span>window<span style="color: #339933;">,</span> <span style="color: #339933;">*</span>box<span style="color: #339933;">,</span> <span style="color: #339933;">*</span>image<span style="color: #339933;">,</span> <span style="color: #339933;">*</span>label<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>event<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>button <span style="color: #339933;">!=</span> <span style="color: #0000dd;">1</span><span style="color: #009900;">&#41;</span>
<span style="color: #b1b100;">return</span> FALSE<span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>window_shown<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
window <span style="color: #339933;">=</span> gtk_window_new <span style="color: #009900;">&#40;</span>GTK_WINDOW_TOPLEVEL<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
box <span style="color: #339933;">=</span> GTK_BOX <span style="color: #009900;">&#40;</span>gtk_vbox_new <span style="color: #009900;">&#40;</span>TRUE<span style="color: #339933;">,</span> <span style="color: #0000dd;">12</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
gtk_container_add <span style="color: #009900;">&#40;</span>GTK_CONTAINER <span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> box<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
image <span style="color: #339933;">=</span> GTK_IMAGE <span style="color: #009900;">&#40;</span>gtk_image_new_from_file <span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;/usr/share/pixmaps/tux-matrix.png&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
gtk_box_pack_start <span style="color: #009900;">&#40;</span>GTK_BOX <span style="color: #009900;">&#40;</span>box<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> image<span style="color: #339933;">,</span> TRUE<span style="color: #339933;">,</span> TRUE<span style="color: #339933;">,</span> <span style="color: #0000dd;">12</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
label <span style="color: #339933;">=</span> gtk_label_new <span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Hello World&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
gtk_box_pack_start <span style="color: #009900;">&#40;</span>GTK_BOX <span style="color: #009900;">&#40;</span>box<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> label<span style="color: #339933;">,</span> TRUE<span style="color: #339933;">,</span> TRUE<span style="color: #339933;">,</span> <span style="color: #0000dd;">12</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
gtk_widget_show_all <span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span>
gtk_widget_hide <span style="color: #009900;">&#40;</span>GTK_WIDGET <span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
window_shown <span style="color: #339933;">=</span> <span style="color: #339933;">!</span>window_shown<span style="color: #339933;">;</span>
<span style="color: #b1b100;">return</span> TRUE<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><span style="color: #000000;">Il suffira de décommenter la ligne qui créer le signal pour que la fonction soit liée à la box qui contiendra notre icône.</span></p>
<p><span style="color: #000000;">La fenêtre va donc passer en hide ou en shown à chaque clic.</span></p>
<p><span style="color: #000000;"><br />
 </span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sebtof13.fr/2009/04/06/creer-un-applet-gnome-partie-12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VNC via tunnel ssh</title>
		<link>http://blog.sebtof13.fr/2009/03/20/vnc-via-tunnel-ssh/</link>
		<comments>http://blog.sebtof13.fr/2009/03/20/vnc-via-tunnel-ssh/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 08:08:44 +0000</pubDate>
		<dc:creator>Sebtof</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tunnel]]></category>
		<category><![CDATA[vnc]]></category>
		<category><![CDATA[vncviewer]]></category>

		<guid isPermaLink="false">http://blog.sebtof13.fr/?p=164</guid>
		<description><![CDATA[Petit rappel des commande à utiliser pour se connecter à un serveur vnc en passant par un tunnel ssh.]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="alignnone" src="http://www.freesmug.org/review/img/review/vncOSXvnc.jpg" alt="" width="145" height="144" /></p>
<p>Petit rappel des commande à utiliser pour se connecter à un serveur vnc en passant par un tunnel ssh.</p>
<p>Cette solution offre plusieurs avantages dont les plus importants pour moi :</p>
<ul>
<li>Le port utilisé n&#8217;est plus celui de vnc donc (plus de problèmes de blocage proxy et pas besoin de modifier la configuration du serveur)</li>
<li>cela ajoute le cryptage du ssh à votre connexion VNC</li>
</ul>
<p>Ouvrez deux sessions de terminal :</p>
<ul>
<li class="level1">
<div class="li">1er terminal (à laisser ouvert le temps de la session VNC) :</p>
<p><br class="spacer_" /></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-L</span> <span style="color: #000000;">5901</span>:localhost:<span style="color: #000000;">5900</span> <span style="color: #660033;">-C</span> user<span style="color: #000000; font-weight: bold;">@</span>adresse_ip</pre></div></div>

</div>
</li>
<li class="level1">
<div class="li">2e terminal :</p>
<p><br class="spacer_" /></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">vncviewer localhost:<span style="color: #000000;">1</span></pre></div></div>

</div>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.sebtof13.fr/2009/03/20/vnc-via-tunnel-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EncFs système de chiffrement</title>
		<link>http://blog.sebtof13.fr/2009/03/20/encfs-systeme-de-chiffrement/</link>
		<comments>http://blog.sebtof13.fr/2009/03/20/encfs-systeme-de-chiffrement/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 07:50:34 +0000</pubDate>
		<dc:creator>Sebtof</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Cryptage]]></category>
		<category><![CDATA[encrypt]]></category>
		<category><![CDATA[fichier]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[fuse]]></category>

		<guid isPermaLink="false">http://blog.sebtof13.fr/?p=159</guid>
		<description><![CDATA[Vous souhaitez conserver des données sensibles et/ou privées, mais sans chiffrer tout votre disque dur.]]></description>
			<content:encoded><![CDATA[<h1 style="text-align: center;"><img class="alignnone" src="http://www.tux-planet.fr/public/images/icons/encfs.png" alt="" width="48" height="48" /> EncFs</h1>
<h2><a id="introduction" name="introduction">Introduction</a></h2>
<div class="level2">
<p>Vous souhaitez conserver des données sensibles et/ou privées, mais sans chiffrer tout votre disque dur. Idéalement, vous voudriez pouvoir restreindre l&#8217;accès à certains répertoires seulement, par mot de passe. Les données stockées dans ce ou ces répertoire(s) seraient chiffrées et accessibles <em>uniquement</em> après authentification.</p>
<p><span class="urlextern"><span class="search_hit">EncFS</span></span> permet de réaliser cela très simplement. Pour ce faire, vous allez utiliser deux répertoires :</p>
<ol>
<li class="level1">
<div class="li">un premier répertoire dans lequel seront <em>stockées</em> les données <em>chiffrées</em> (&laquo;&nbsp;<em>source directory</em>&laquo;&nbsp;) ;</div>
</li>
<li class="level1">
<div class="li">un second répertoire dans lequel vous pourrez créer des données <em>en clair</em>, après authentification (&laquo;&nbsp;<em>mount directory</em>&laquo;&nbsp;).</div>
</li>
</ol>
<p><span id="more-159"></span></p>
<p>L&#8217;idée est la suivante : vous donnez temporairement accès au second répertoire en fournissant un mot de passe (initialement choisi par vous), et créez vos données en clair dans ce répertoire. Ensuite, vous refermez l&#8217;accès à ce répertoire. <span class="search_hit">EncFS</span> s&#8217;occupe de &laquo;&nbsp;copier&nbsp;&raquo; les données du second répertoire (accès temporaire) vers le premier (stockage permanent), tout en les chiffrant. Après avoir fermé l&#8217;accès au second répertoire, ce dernier apparaît vide, tandis que le premier répertoire contient les fichiers chiffrés, donc inaccessibles. Pour pouvoir de nouveau modifier les données conservées dans le répertoire de stockage, il faut redonner accès par mot de passe au second répertoire, qui sert donc de répertoire de travail.</p>
<p>Note technique : <span class="search_hit">EncFS</span> gère donc des couples de fichiers « en clair / chiffré ». Dans le répertoire de stockage, les noms de fichiers sont par ailleurs chiffrés. Les avantages d&#8217;<span class="search_hit">EncFS</span> par rapport aux autres programmes de chiffrement de données sont principalement sa simplicité et sa souplesse d&#8217;utilisation. Voyez en fin de page les avantages/défauts courants.</p>
<h3><a id="paquets_module_fuse" name="paquets_module_fuse">Paquets   module &nbsp;&raquo;fuse&nbsp;&raquo;</a></h3>
<div class="level3">
<p>Installez, par <code>apt-get install</code> ou <em>via</em> <span class="wikilink1">Synaptic</span>, les deux paquets suivants : <strong>fuse-utils</strong> et <strong><span class="search_hit">encfs</span></strong></p>
<p>Les dépendances nécessaires seront installées automatiquement.</p>
<p>Installation de fuse-utils :</p>
<pre class="code">  <em>:~$ sudo apt-get install fuse-utils</em></pre>
<p>Installation de <span class="search_hit">encfs</span> ( ceci installera aussi librlog1c2a )</p>
<pre class="code">  <em>:~$ sudo apt-get install <span class="search_hit">encfs</span></em></pre>
<p>Ajout du module fuse dans /etc/modules afin qu&#8217;il soit actif au démarrage du système :</p>
<pre class="code">  <em>:~$  sudo sh -c "echo fuse &gt;&gt; /etc/modules"</em></pre>
<p>Vous pouvez vérifier, en ouvrant le fichier /etc/modules par gksudo gedit /etc/modules que le mot fuse a bien été rajouté à ce fichier.</p>
<p>Prise en charge du module :</p>
<pre class="code"> <em> :~$ sudo modprobe fuse</em></pre>
<p>On ajoute son nom d&#8217;utilisateur au groupe fuse (utilisateur VotreNom dans mon exemple)</p>
<pre class="code"> <em> :~$ sudo adduser VotreNom fuse</em></pre>
<p>On vérife ensuite que l&#8217;utilisateur VotreNom fait bien partie du groupe fuse. Le numéro (ici 118) peut varier.</p>
<pre class="code"> <em> :~$ grep "fuse" "/etc/group"</em>
  fuse:x:118:VotreNom</pre>
<p>Puis on réouvre une session</p>
<pre class="code"> <em>  su - VotreNom</em></pre>
<p>Vous pouvez vérifier que vous êtes bien dans le groupe <code>fuse</code> en tapant :</p>
<pre class="code">groups</pre>
</div>
<h3><a id="creation_des_repertoires" name="creation_des_repertoires">Création des répertoires</a></h3>
<div class="level3">
<p>Dans notre exemple, le répertoire de stockage des données chiffrées sera <code>~/.coffre</code> et le répertoire « de travail » (pour manipuler les données en clair après authentification) sera <code>~/coffre_open</code>. Tapez donc :</p>
<pre class="code"><em><span class="search_hit">encfs</span> /home/VotreNom/.coffre/ /home/VotreNom/coffre_open/</em></pre>
<p>Attention, la commande <code><span class="search_hit">encfs</span></code> attend des chemins complets : écrivez donc <code>/home/VotreNom/</code> et pas le raccourci <code>~/</code> !</p>
<p>La première fois qu&#8217;elle est écrite, cette commande permet de créer et paramétrer les répertoires utilisés pour stocker et manipuler les données chiffrées par <span class="search_hit">EncFS</span>.</p>
<p>À la question « Veuillez choisir au moins une des options suivantes », vous pouvez choisir le mode « paranoïaque » en tapant <code>p</code> puis <code>[Entrée]</code>. Ce mode est le plus sécurisé.</p>
<p><strong>Vérifiez le montage du répertoire chiffré :</strong></p>
<pre class="code">   <em>cat /proc/mounts</em></pre>
<p>vous donnera, entre autres, une entrée de ce type :</p>
<pre class="code">  <strong> <span class="search_hit">encfs</span> /home/VotreNom/coffre_open fuse rw,nosuid,nodev,user_id=1000,group_id=1000,default_permissions 0 0</strong></pre>
<p><strong>Note</strong> : si vous chiffrez des fichiers en utilisant ce mode « paranoïaque », certaines applications pourront ne pas fonctionner normalement en utilisant ces fichiers chiffrés. Cela vient du fait que les liens (<em>hard</em>) ne peuvent être recopiés dans le dossier de stockage. Si vous rencontrez des problèmes de ce type, recréez un couple de répertoires et changez de mode.</p>
<p><strong>Note2</strong> : le répertoire des données en clair (ici &laquo;&nbsp;coffre&nbsp;&raquo;) peut être changé à volonté. Il n&#8217;y a pas de lien définitif entre les deux répertoires. Veillez toutefois dans ce cas à ce que :</p>
<ul>
<li class="level1">
<div class="li">le nouveau répertoire ait bien été créé et soit vide</div>
</li>
<li class="level1">
<div class="li">il y ait concordance entre le chemin de montage et celui de démontage.<img class="middle" src="http://doc.ubuntu-fr.org/lib/images/smileys/icon_wink.gif" alt=";-)" /></div>
</li>
</ul>
</div>
<div class="secedit">
<form class="button btn_secedit" action="/encfs" method="post">
<div class="no">
<input name="do" type="hidden" value="edit" />
<input name="lines" type="hidden" value="3577-7388" />
<input name="rev" type="hidden" value="1234189573" /></div>
</form>
</div>
<h2><a id="utilisation" name="utilisation">Utilisation</a></h2>
<div class="level2">
<p>Elle est basique puisqu&#8217;il vous suffit de deux commandes du type ON/OFF</p>
<p>1. <strong>ON</strong> Pour <em>accéder</em> aux données en clair, il suffit de réutiliser la même commande qu&#8217;au début, à savoir, dans notre exemple :</p>
<pre class="code"><em><span class="search_hit">encfs</span> /home/VotreNom/.coffre/ /home/VotreNom/coffre_open/</em></pre>
<p>Contrairement à la première fois, <span class="search_hit">EncFS</span> détecte qu&#8217;une initialisation a déja été faite sur ces deux répertoires et se contente de demander le mot de passe pour débloquer l&#8217;accès au répertoire « de travail » (qu&#8217;il montera pour vous avec la commande <code>fusermount</code>).</p>
<p><strong>Toute donnée crée/copiée/déplacée en clair dans le répertoire de travail (ici, <code>~/coffre_open</code>) sera <em>automatiquement</em> stockée sous forme chiffrée dans le répertoire de stockage (ici, <code>~/.coffre</code>).</strong></p>
<p>2. <strong>OFF</strong> Pour ne <em>plus pouvoir accéder</em> aux données en clair, il suffit de démonter le répertoire « de travail », soit dans notre exemple :</p>
<pre class="code"><em>fusermount -u /home/VotreNom/coffre_open</em>

Automatisation</pre>
<h3><a id="avec_des_commandes" name="avec_des_commandes"></a>Automatisation</h3>
<div class="level3">
<p>Vous pouvez créer deux commandes pour ouvrir et fermer rapidement l&#8217;accès au répertoire de travail :</p>
<pre class="code">gksudo gedit /usr/bin/decrypt</pre>
<p>Copiez-y le texte suivant :</p>
<pre class="code"><em>#!/bin/sh
<span class="search_hit">encfs</span> /home/VotreNom/.coffre/ /home/VotreNom/coffre_open/</em></pre>
<pre class="code"><em>gksudo gedit /usr/bin/encrypt</em></pre>
<p>Copiez-y le texte suivant :</p>
<pre class="code"><em>#!/bin/sh
fusermount -u /home/votreNom/coffre_open</em></pre>
<p>Vérifiez que vous utilisez bien les noms de répertoires que vous avez choisis ! Ensuite, donnez les droits nécessaires à ces deux commandes :</p>
<pre class="code"><em>sudo chown VotreNom /usr/bin/decrypt /usr/bin/encrypt</em></pre>
<pre class="code"><em>chmod 700 /usr/bin/decrypt /usr/bin/encrypt</em></pre>
<p>Désormais, vous pouvez taper <em><code>decrypt</code></em> pour libérer l&#8217;accès au répertoire de travail et manipuler vos données chiffrées, puis <em><code>encrypt</code></em> pour refermer l&#8217;accès. Vous pouvez aussi utiliser ces commandes pour créer des lanceurs/raccourcis.</p>
</div>
</div>
</div>
<p><a href="http://doc.ubuntu-fr.org/encfs" target="_blank">source : Doc Ubuntu-fr</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sebtof13.fr/2009/03/20/encfs-systeme-de-chiffrement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video pentest The Ethical Hacker Network</title>
		<link>http://blog.sebtof13.fr/2009/03/12/video-pentest-the-ethical-hacker-network/</link>
		<comments>http://blog.sebtof13.fr/2009/03/12/video-pentest-the-ethical-hacker-network/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 19:52:46 +0000</pubDate>
		<dc:creator>Sebtof</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[autoscan]]></category>
		<category><![CDATA[cmd]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[meteerpreter]]></category>
		<category><![CDATA[nmap]]></category>
		<category><![CDATA[ophcrack]]></category>
		<category><![CDATA[pentest]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://sebtof13.free.fr/?p=92</guid>
		<description><![CDATA[Ces vidéo pentest montrent l'utilisation en details de plusieurs outils tels que nmap, metasploit etc ..]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ethicalhacker.net/images/banners/ehnet_banner1.jpg" target="_blank"><img class="alignnone" src="http://www.ethicalhacker.net/images/banners/ehnet_banner1.jpg" alt="" width="468" height="60" /></a></p>
<p><a href="http://www.ethicalhacker.net/content/view/238/24/" target="_blank">Source : The Ethical Hacker Network</a></p>
<p>Ces vidéo pentest montrent l&#8217;utilisation en details de plusieurs outils tels que <a href="http://nmap.org/" target="_blank">nmap</a>, <a href="http://www.metasploit.com/" target="_blank">metasploit</a> etc ..</p>
<p>On y retrouve le processus chronologique de pénétration réseau à savoir :</p>
<ul>
<li>Découverte d&#8217;hôtes</li>
<li>Détection de vulnérabilitée</li>
<li>Exploitation de faille grâce à Métasploit</li>
<li>Crack de mot de passe windows</li>
<li>Création de compte administrateur</li>
</ul>
<!-- ProPlayer by Isa Goksu --><div name="mediaspace" id="mediaspace"><div class="pro-player-container" width="500px" height="400px"><div id="pro-player-92pp-single-4f45542896c20"></div></div></div><script type="text/javascript" charset="utf-8">var flashvars = {width: "500",height: "400",autostart: "false",repeat: "false",backcolor: "111111",frontcolor: "cccccc",lightcolor: "66cc00",stretching: "fill",enablejs: "true",mute: "false",skin: "http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/skins/nacht.swf",logo: "http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/watermark.png",image: "http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/preview.png",plugins: "rateit-1",javascriptid: "92pp-single-4f45542896c20",image: "http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/preview.png",file: 'http://blog.sebtof13.fr/wp-content/plugins/proplayer/playlist-controller.php?pp_playlist_id=92pp-single-4f45542896c20&sid=1329943592'};var params = {wmode: "transparent",allowfullscreen: "true",allowscriptaccess: "always",allownetworking: "all"};var attributes = {id: "obj-pro-player-92pp-single-4f45542896c20",name: "obj-pro-player-92pp-single-4f45542896c20"};swfobject.embedSWF("http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/player.swf", "pro-player-92pp-single-4f45542896c20", "500", "400", "9.0.0", false, flashvars, params, attributes);</script><br />
 <!-- ProPlayer by Isa Goksu --><div name="mediaspace" id="mediaspace"><div class="pro-player-container" width="500px" height="400px"><div id="pro-player-92pp-single-4f455428ae330"></div></div></div><script type="text/javascript" charset="utf-8">var flashvars = {width: "500",height: "400",autostart: "false",repeat: "false",backcolor: "111111",frontcolor: "cccccc",lightcolor: "66cc00",stretching: "fill",enablejs: "true",mute: "false",skin: "http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/skins/nacht.swf",logo: "http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/watermark.png",image: "http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/preview.png",plugins: "rateit-1",javascriptid: "92pp-single-4f455428ae330",image: "http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/preview.png",file: 'http://blog.sebtof13.fr/wp-content/plugins/proplayer/playlist-controller.php?pp_playlist_id=92pp-single-4f455428ae330&sid=1329943592'};var params = {wmode: "transparent",allowfullscreen: "true",allowscriptaccess: "always",allownetworking: "all"};var attributes = {id: "obj-pro-player-92pp-single-4f455428ae330",name: "obj-pro-player-92pp-single-4f455428ae330"};swfobject.embedSWF("http://blog.sebtof13.fr/wp-content/plugins/proplayer/players/player.swf", "pro-player-92pp-single-4f455428ae330", "500", "400", "9.0.0", false, flashvars, params, attributes);</script>
]]></content:encoded>
			<wfw:commentRss>http://blog.sebtof13.fr/2009/03/12/video-pentest-the-ethical-hacker-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

