<?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>Vincent Mazenod, aka mazenovi, aka voisin de gennetines &#187; windows</title>
	<atom:link href="http://blog.mazenod.fr/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mazenod.fr</link>
	<description>#ispcp #php #symfony #social_networking #cornemuse</description>
	<lastBuildDate>Wed, 23 Nov 2011 09:46:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>capifony sous windows pour déploiement automatisé sous ispcp</title>
		<link>http://blog.mazenod.fr/2011/04/capifony-sous-windows-pour-deploiement-automatise-sous-ispcp/</link>
		<comments>http://blog.mazenod.fr/2011/04/capifony-sous-windows-pour-deploiement-automatise-sous-ispcp/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 11:35:57 +0000</pubDate>
		<dc:creator>mazenovi</dc:creator>
				<category><![CDATA[bricolage]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[libre]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.mazenod.fr/?p=1828</guid>
		<description><![CDATA[<p><a href="http://blog.mazenod.fr/wp-content/uploads/2011/04/gem.jpg"><img class="alignleft" style="margin-left: 20px; margin-right: 20px;" title="gem" src="http://blog.mazenod.fr/wp-content/uploads/2011/04/gem.jpg" alt="" width="104" height="104" /></a>Capifony est un petit outil qui permet d'automatiser le déploiement et le versioning des déploiements de vos application symfony. Basé sur capistrano, lui même écrit en ruby je vous propose de l'installer via les gems ruby dans cygwin</p>
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.mazenod.fr%2F2011%2F04%2Fcapifony-sous-windows-pour-deploiement-automatise-sous-ispcp%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.mazenod.fr%2F2011%2F04%2Fcapifony-sous-windows-pour-deploiement-automatise-sous-ispcp%2F&amp;style=normal&amp;b=2" height="61" width="50" title="capifony sous windows pour déploiement automatisé sous ispcp" alt=" capifony sous windows pour déploiement automatisé sous ispcp" /><br />
			</a>
		</div>
<p><a href="http://blog.mazenod.fr/wp-content/uploads/2011/04/gem.jpg" rel="lightbox[1828]"><br />
</a>En premier lieu il vous faudra disposer d&#8217;un <a href="http://www.cygwin.com/">cygwin</a> (<a href="http://blog.mazenod.fr/2011/03/activer-la-couleur-pour-la-commande-symfony-dans-un-bash-cygwin-portable">éventuellement portable <img src='http://blog.mazenod.fr/wp-includes/images/smilies/icon_wink.gif' alt="icon wink capifony sous windows pour déploiement automatisé sous ispcp" class='wp-smiley' title="capifony sous windows pour déploiement automatisé sous ispcp" /> </a>) sur votre machine, avec le package ruby (1.8) installé.</p>
<p><a href="http://stevenharman.net/blog/archive/2008/11/12/installing-rubygems-in-cygwin.aspx">installer rubyGem</a> est assez simple</p>
<ol>
<li>télécharger le tarball RubyGems  à partir <a href="http://rubyforge.org/projects/rubygems/">Ruby Forge<br />
</a></p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #000000; font-weight: bold;">&lt;</span>a <span style="color: #007800;">href</span>=<span style="color: #ff0000;">&quot;http://rubyforge.org/projects/rubygems/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>http:<span style="color: #000000; font-weight: bold;">//</span>rubyforge.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">74445</span><span style="color: #000000; font-weight: bold;">/</span>rubygems-1.6.2.tgz <span style="color: #000000; font-weight: bold;">&lt;/</span>a<span style="color: #000000; font-weight: bold;">&gt;</span></div></div>
<p>à remplacer par le numéro de la version courant bien entendu</li>
<li>décompresser le tarball
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;<span style="color: #c20cb9; font-weight: bold;">tar</span> -xvf rubygems-1.6.2.tgz</div></div>
</li>
<li>naviguer jusqu&#8217;à l&#8217;archive décompressée
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;<span style="color: #7a0874; font-weight: bold;">cd</span> rubygems-<span style="color: #000000; font-weight: bold;">*</span></div></div>
</li>
<li>exécuter cette commande pour installer RubyGem
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ruby setup.rb <span style="color: #c20cb9; font-weight: bold;">install</span></div></div>
</li>
<li>Et celle ci pour mettre à jour
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">gem update <span style="color: #660033;">--system</span></div></div>
</li>
</ol>
<p><a href="https://github.com/everzet/capifony">Capifony</a> s&#8217;installe donc maintenant simplement via la commande gem qui va gérer les dépendances et donc installer automatiquement <a href="https://github.com/capistrano/capistrano">Capistrano</a>. Il suffit d&#8217;exécuter la commande</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> capifony</div></div>
<p>il est tant de configurer la capifonycation de notre projet, donc après avoir navigué jusqu&#8217;à la racine du projet exécuter la commande:</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">capifony .</div></div>
<p>qui crée un fichier Capfile à la racine du projet et un fichier deploy.rb dans le répertoire config du projet. voici le mien agrémenté de quelques commentaires</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">set</span> :application, <span style="color: #ff0000;">&quot;myapp.org&quot;</span><br />
<span style="color: #000000; font-weight: bold;">set</span> :domain,      <span style="color: #ff0000;">&quot;mygit.org&quot;</span><br />
<span style="color: #000000; font-weight: bold;">set</span> :deploy_to,   <span style="color: #ff0000;">&quot;/var/www/virtual/myapp.org&quot;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">set</span> :shared_children,   <span style="color: #000000; font-weight: bold;">%</span><span style="color: #c20cb9; font-weight: bold;">w</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>log htdocs<span style="color: #000000; font-weight: bold;">/</span>uploads<span style="color: #7a0874; font-weight: bold;">&#41;</span>   <span style="color: #666666; font-style: italic;">#par défaut ispcp alias le répertoire htdocs (et non web)</span><br />
<span style="color: #000000; font-weight: bold;">set</span> :use_sudo, <span style="color: #c20cb9; font-weight: bold;">true</span>    <span style="color: #666666; font-style: italic;">#obligatoire pour l'hébergement ispcp car le user de déploiement n'a pas à priori les droits d'écriture sur le répertoire associé au domaine ou sous domaine</span><br />
<span style="color: #000000; font-weight: bold;">set</span> :group_writable, <span style="color: #c20cb9; font-weight: bold;">false</span><br />
<br />
<span style="color: #000000; font-weight: bold;">set</span> :git_enable_submodules, <span style="color: #000000;">1</span><br />
<br />
<span style="color: #000000; font-weight: bold;">set</span> :repository, <span style="color: #ff0000;">&quot;git://git.cerdi.org/registration/health_registration.git&quot;</span><br />
<span style="color: #000000; font-weight: bold;">set</span> :scm,         :git<br />
<br />
role :web,        domain                         <span style="color: #666666; font-style: italic;"># Your HTTP server, Apache/etc</span><br />
role :app,        domain                         <span style="color: #666666; font-style: italic;"># This may be the same as your `Web` server</span><br />
role :db,         domain, :primary =<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #c20cb9; font-weight: bold;">true</span>       <span style="color: #666666; font-style: italic;"># This is where Rails migrations will run</span><br />
<br />
<span style="color: #000000; font-weight: bold;">set</span>  :keep_releases,  <span style="color: #000000;">3</span><br />
<br />
ssh_options<span style="color: #7a0874; font-weight: bold;">&#91;</span>:forward_agent<span style="color: #7a0874; font-weight: bold;">&#93;</span> = <span style="color: #c20cb9; font-weight: bold;">true</span></div></div>
<p>Je précise également que l&#8217;utilisateur est authentifié par clé RSA. Ce qui m&#8217;évite de saisir</p>
<p>Attendu que l&#8217;utilisateur utilisé (authentifié par clé RSA) pour le déploiement n&#8217;est pas l&#8217;utilisateur qui possède les répertoires, j&#8217;ai opté pour un utilisateur sudoer, seulement l&#8217;option use_sudo n&#8217;a pas suffit et j&#8217;ai du reprendre les commandes suivantes, à la suite de deploy.rb, en partant du code trouver /usr/lib/ruby/gems/1.8/gems/capifony-0.4.3/lib/capifony.rb (première fois que je voyais du ruby -_-&#8217;).</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">namespace :deploy <span style="color: #000000; font-weight: bold;">do</span><br />
<br />
task :setup, :except =<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #7a0874; font-weight: bold;">&#123;</span> :no_release =<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #c20cb9; font-weight: bold;">true</span> <span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #000000; font-weight: bold;">do</span><br />
<span style="color: #7a0874; font-weight: bold;">dirs</span> = <span style="color: #7a0874; font-weight: bold;">&#91;</span>deploy_to, releases_path, shared_path<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
<span style="color: #7a0874; font-weight: bold;">dirs</span> += shared_children.map <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #000000; font-weight: bold;">|</span>d<span style="color: #000000; font-weight: bold;">|</span> File.join<span style="color: #7a0874; font-weight: bold;">&#40;</span>shared_path, d<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#125;</span><br />
run <span style="color: #ff0000;">&quot;#{try_sudo} mkdir -p #{dirs.join(' ')} &amp;amp;&amp;amp; #{try_sudo} chmod g+w #{dirs.join(' ')}&quot;</span><br />
<span style="color: #666666; font-style: italic;">#add for case where deploy user is not owner</span><br />
<span style="color: #7a0874; font-weight: bold;">dirs</span> = <span style="color: #7a0874; font-weight: bold;">&#91;</span>releases_path, shared_path<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
run <span style="color: #ff0000;">&quot;#{try_sudo} chown -R #{user_deploy}:#{group_deploy} #{dirs.join(' ')}&quot;</span><br />
end<br />
<br />
task :symlink, :except =<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #7a0874; font-weight: bold;">&#123;</span> :no_release =<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #c20cb9; font-weight: bold;">true</span> <span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #000000; font-weight: bold;">do</span><br />
on_rollback <span style="color: #000000; font-weight: bold;">do</span><br />
<span style="color: #000000; font-weight: bold;">if</span> previous_release<br />
run <span style="color: #ff0000;">&quot;#{try_sudo} rm -f #{current_path}; #{try_sudo} ln -s #{previous_release} #{current_path}; true&quot;</span><br />
<span style="color: #000000; font-weight: bold;">else</span><br />
logger.important <span style="color: #ff0000;">&quot;no previous release to rollback to, rollback of symlink skipped&quot;</span><br />
end<br />
end<br />
run <span style="color: #ff0000;">&quot;#{try_sudo} rm -f #{current_path} &amp;amp;&amp;amp; #{try_sudo} ln -s #{latest_release} #{current_path}&quot;</span><br />
end<br />
<br />
task :start <span style="color: #000000; font-weight: bold;">do</span><br />
run <span style="color: #ff0000;">&quot;[ -d #{deploy_to}/htdocs ] &amp;amp;&amp;amp; #{try_sudo} rm -rf #{deploy_to}/htdocs || true&quot;</span><br />
run <span style="color: #ff0000;">&quot;[ ! -f #{deploy_to}/htdocs ] &amp;amp;&amp;amp; #{try_sudo} ln -s #{current_path}/htdocs #{deploy_to}/htdocs || true&quot;</span><br />
run <span style="color: #ff0000;">&quot;[ ! -f #{deploy_to}/symfony ] &amp;amp;&amp;amp; #{try_sudo} ln -s #{current_path}/symfony #{deploy_to}/symfony || true&quot;</span><br />
<span style="color: #7a0874; font-weight: bold;">dirs</span> = <span style="color: #7a0874; font-weight: bold;">&#91;</span>releases_path, shared_path<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
run <span style="color: #ff0000;">&quot;#{try_sudo} chown -R #{user_deploy}:#{group_deploy} #{dirs.join(' ')}&quot;</span><br />
run <span style="color: #ff0000;">&quot;#{try_sudo} chmod -R g+w #{dirs.join(' ')}&quot;</span><br />
run <span style="color: #ff0000;">&quot;#{try_sudo} chown -h #{user_deploy}:#{group_deploy} #{current_path} #{deploy_to}/htdocs&quot;</span><br />
end<br />
<br />
task :share_childs <span style="color: #000000; font-weight: bold;">do</span><br />
<span style="color: #000000; font-weight: bold;">if</span> shared_children<br />
shared_children.each <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">link</span><span style="color: #000000; font-weight: bold;">|</span><br />
run <span style="color: #ff0000;">&quot;mkdir -p #{shared_path}/#{link}&quot;</span><br />
run <span style="color: #ff0000;">&quot;#{try_sudo} chmod -R g+w #{shared_path}/#{link}&quot;</span><br />
run <span style="color: #ff0000;">&quot;if [ -d #{release_path}/#{link} ] ; then rm -rf #{release_path}/#{link}; fi&quot;</span><br />
run <span style="color: #ff0000;">&quot;ln -nfs #{shared_path}/#{link} #{release_path}/#{link}&quot;</span><br />
end<br />
end<br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> shared_files<br />
shared_files.each <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">link</span><span style="color: #000000; font-weight: bold;">|</span><br />
link_dir = File.dirname<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">&quot;#{shared_path}/#{link}&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
run <span style="color: #ff0000;">&quot;mkdir -p #{link_dir}&quot;</span><br />
run <span style="color: #ff0000;">&quot;#{try_sudo} chmod -R g+w #{link_dir}&quot;</span><br />
run <span style="color: #ff0000;">&quot;touch #{shared_path}/#{link}&quot;</span><br />
run <span style="color: #ff0000;">&quot;ln -nfs #{shared_path}/#{link} #{release_path}/#{link}&quot;</span><br />
end<br />
end<br />
end<br />
end</div></div>
<p>Si ce n&#8217;est pas déjà fait, faites gérer votre projet par git</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">git init</span></div></div>
<p>pour ne faire gérer que le nécessaire par  git  éditer .gitignore</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">web<span style="color: #000000; font-weight: bold;">/</span>sf<span style="color: #000000; font-weight: bold;">*</span><br />
web<span style="color: #000000; font-weight: bold;">/</span>uploads<span style="color: #000000; font-weight: bold;">/*</span><br />
cache<span style="color: #000000; font-weight: bold;">/*</span><br />
plugins<span style="color: #000000; font-weight: bold;">/</span>.<span style="color: #000000; font-weight: bold;">*</span><br />
log<span style="color: #000000; font-weight: bold;">/*</span><br />
config<span style="color: #000000; font-weight: bold;">/</span>databases.yml<br />
mkmf.log<br />
.rsync<span style="color: #000000; font-weight: bold;">*</span><br />
backups<span style="color: #000000; font-weight: bold;">/*</span></div></div>
<p>pour intégrer symfony en tant que librairie externe il vous faudra supprimer le répertoire lib/vendor/symfony s&#8217;il existe ou crééer lib/vendor s&#8217;il n&#8217;existe pas</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> lib<span style="color: #000000; font-weight: bold;">/</span>vendor</div></div>
<p>ensuite il suffit de déclarer la librairie symfony comme un sous modules au niveau de git, et faire de même pour tous les plugins qui sont verisonnés avec git</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">git submodule</span> add http:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>vjousse<span style="color: #000000; font-weight: bold;">/</span>symfony-<span style="color: #000000;">1.4</span>.git lib<span style="color: #000000; font-weight: bold;">/</span>vendor<span style="color: #000000; font-weight: bold;">/</span>symfony<br />
<span style="color: #c20cb9; font-weight: bold;">git submodule</span> add https:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>rande<span style="color: #000000; font-weight: bold;">/</span>swFunctionalTestGenerationPlugin.git plugins<span style="color: #000000; font-weight: bold;">/</span>swFunctionalTestGenerationPlugin</div></div>
<p>ce qui a pour conséquence de créer un fichier .gitmodules contenant</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>submodule <span style="color: #ff0000;">&quot;lib/vendor/symfony&quot;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
path = lib<span style="color: #000000; font-weight: bold;">/</span>vendor<span style="color: #000000; font-weight: bold;">/</span>symfony<br />
url = http:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>vjousse<span style="color: #000000; font-weight: bold;">/</span>symfony-<span style="color: #000000;">1.4</span>.git<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>submodule <span style="color: #ff0000;">&quot;plugins/swFunctionalTestGenerationPlugin&quot;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
path = plugins<span style="color: #000000; font-weight: bold;">/</span>swFunctionalTestGenerationPlugin<br />
url = https:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>rande<span style="color: #000000; font-weight: bold;">/</span>swFunctionalTestGenerationPlugin.git</div></div>
<p>il s&#8217;agit ensuite de committer le projet , sur un serveur distant</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">git add</span> .<br />
<span style="color: #c20cb9; font-weight: bold;">git commit</span> <span style="color: #660033;">-a</span> <span style="color: #660033;">-m</span> <span style="color: #ff0000;">'commit entire project'</span> <span style="color: #666666; font-style: italic;">#commit en local</span><br />
<span style="color: #c20cb9; font-weight: bold;">git remote</span> add origin <span style="color: #c20cb9; font-weight: bold;">git</span><span style="color: #000000; font-weight: bold;">@</span>git.cerdi.org:registration<span style="color: #000000; font-weight: bold;">/</span>health_registration.git  <span style="color: #666666; font-style: italic;">#défini un serveur git distant</span><br />
<span style="color: #c20cb9; font-weight: bold;">git push</span> origin master <span style="color: #666666; font-style: italic;">#répercutre le modifs sur le serveur git distant</span></div></div>
<p>maintenant que notre projet est gité avec ces sous modules, il ne reste qu&#8217;à</p>
<p>lancer la commande suivante pour finir de configurer le déploiement</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cap deploy:setup</div></div>
<p>lancer la commande suivante pour le premier déploiement</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cap deploy:cold</div></div>
<p>lancer la commande suivante pour les suivants</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cap deploy:start</div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.mazenod.fr/2011/04/capifony-sous-windows-pour-deploiement-automatise-sous-ispcp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>postgreSQL &amp; xampp portable sous windows</title>
		<link>http://blog.mazenod.fr/2011/03/postgresql-xampp-portable-sous-windows/</link>
		<comments>http://blog.mazenod.fr/2011/03/postgresql-xampp-portable-sous-windows/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 18:09:41 +0000</pubDate>
		<dc:creator>mazenovi</dc:creator>
				<category><![CDATA[bricolage]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[libre]]></category>
		<category><![CDATA[portable apps]]></category>
		<category><![CDATA[doctrine]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://blog.mazenod.fr/?p=1862</guid>
		<description><![CDATA[<p><a href="http://blog.mazenod.fr/wp-content/uploads/2011/03/03568004-photo-logo-postgresql.jpg"><img class="alignleft" style="margin-left: 20px; margin-right: 20px;" title="03568004-photo-logo-postgresql" src="http://blog.mazenod.fr/wp-content/uploads/2011/03/03568004-photo-logo-postgresql.jpg" alt="" width="220" height="170" /></a>PostgreSQL est une alternative libre et professionnelle à MySQL. Si il est répandu dans le monde UNIX il l'est un peu moins dans le monde windows, et encore moins en tant qu'application portable. Le propos de ce post est donc de pouvoir installer ce SGBD afin de l'intégrer à un XAMPP portable déjà installé</p>
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.mazenod.fr%2F2011%2F03%2Fpostgresql-xampp-portable-sous-windows%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.mazenod.fr%2F2011%2F03%2Fpostgresql-xampp-portable-sous-windows%2F&amp;style=normal&amp;b=2" height="61" width="50" title="postgreSQL & xampp portable sous windows" alt=" postgreSQL & xampp portable sous windows" /><br />
			</a>
		</div>
<p>Tout est dans le titre je crois. Je suis parti de ce billet <a href="http://notepad.patheticcockroach.com/628/adding-postgresql-portable-to-xampp-on-windows/">http://notepad.patheticcockroach.com/628/adding-postgresql-portable-to-xampp-on-windows/</a>et je vous livre ce qui a fonctionné pour moi. J&#8217;ai déjà expliqué sur ce blog <a href="http://blog.mazenod.fr/2009/11/environnement-de-developpement-portable-pour-symfony-framakey/">comment installer une plateforme xampp portable sous windows</a>.</p>
<p>Le prérequis est donc d&#8217;en avoir une fonctionnelle pour la suite <img src='http://blog.mazenod.fr/wp-includes/images/smilies/icon_wink.gif' alt="icon wink postgreSQL & xampp portable sous windows" class='wp-smiley' title="postgreSQL & xampp portable sous windows" /> </p>
<p>Tout d&#8217;abord il vous faudra une version portable de postrgre, que vous trouverez sur <a href="http://www.postgresql.org/download/windows">http://www.postgresql.org/download/windows</a>. En tant qu&#8217;<em>&laquo;&nbsp;Advanced user&nbsp;&raquo; </em>vous téléchagerez l&#8217; <a href="http://www.enterprisedb.com/products/pgbindownload.do">archive zip</a> sans l&#8217;installeur (la version portable quoi). J&#8217;ai opté pour la <em> 9.0.3-1</em> qui semble être la stable du moment.</p>
<p>Une fois l&#8217;archive décompressée, copier / coller le répertoire pgsql qu&#8217;elle contient dans Z:/MyApps/xampp/.</p>
<p><a href="http://blog.mazenod.fr/wp-content/uploads/2011/03/images.jpg" rel="lightbox[1862]"><img class="aligncenter size-full wp-image-1874" title="images" src="http://blog.mazenod.fr/wp-content/uploads/2011/03/images.jpg" alt="images postgreSQL & xampp portable sous windows" width="259" height="194" /></a></p>
<p>La première des choses à faire est ensuite de créer un cluster en tapant</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Z:\MyApps\xampp\pgsql\bin\initdb.exe <span style="color: #660033;">-D</span> ..\data<br />
<br />
Les fichiers de ce cluster appartiendront à l<span style="color: #ff0000;">'utilisateur « mazenovi».<br />
Le processus serveur doit également lui appartenir.<br />
<br />
Le cluster sera initialisé avec la locale French_France.1252.<br />
L'</span>encodage par défaut des bases de données a été configuré en conséquence<br />
avec WIN1252.<br />
La configuration de la recherche plein texte a été initialisée à « french ».<br />
<br />
correction des droits sur le répertoire existant ..<span style="color: #000000; font-weight: bold;">/</span>data... ok<br />
création des sous-répertoires... ok<br />
sélection de la valeur par défaut de max_connections... <span style="color: #000000;">100</span><br />
sélection des valeurs par défaut de shared_buffers<span style="color: #000000; font-weight: bold;">/</span>max_fsm_pages... 32MB<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">204800</span><br />
création des fichiers de configuration... ok<br />
création de la base de données template1 dans ..<span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span>base<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span>... ok<br />
initialisation de pg_authid... ok<br />
initialisation des dépendances... ok<br />
création des vues système... ok<br />
chargement de la description des objets système... ok<br />
création des conversions... ok<br />
création des dictionnaires... ok<br />
initialisation des droits sur les objets internes... ok<br />
création <span style="color: #c20cb9; font-weight: bold;">du</span> schéma d<span style="color: #ff0000;">'informations... ok<br />
lancement du vacuum sur la base de données template1... ok<br />
copie de template1 vers template0... ok<br />
copie de template1 vers postgres... ok<br />
<br />
ATTENTION : active l'</span>authentification « trust » pour les connexions<br />
locales.<br />
Vous pouvez modifier ceci en éditant pg_hba.conf ou en utilisant l<span style="color: #ff0000;">'option -A<br />
au prochain lancement d'</span>initdb.<br />
<br />
Succès. Vous pouvez maintenant lancer le serveur de bases de données par :<br />
<br />
<span style="color: #ff0000;">&quot;postgres&quot;</span> <span style="color: #660033;">-D</span> <span style="color: #ff0000;">&quot;../data&quot;</span><br />
ou<br />
<span style="color: #ff0000;">&quot;pg_ctl&quot;</span> <span style="color: #660033;">-D</span> <span style="color: #ff0000;">&quot;../data&quot;</span> <span style="color: #660033;">-l</span> journal_applicatif start</div></div>
<p><strong>N.B. </strong>le cluster appartient à l&#8217;utilisateur système avec lequel il est créé c&#8217;est important pour la suite!</p>
<p>pour lancer le serveur</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> Z:\MyApps\xampp\pgsql\bin<br />
<br />
<span style="color: #ff0000;">&quot;pg_ctl&quot;</span> <span style="color: #660033;">-D</span> <span style="color: #ff0000;">&quot;../data&quot;</span> <span style="color: #660033;">-l</span> journal_applicatif start</div></div>
<p>vous pouvez déjà jouer avec pgAdmin3 en entrant l&#8217;adresse de votre serveur (127.0.01 ou localhost) et le login mot de passe de l&#8217;utilisateur que vous avez utilisez pour créer le cluster. Mais il s&#8217;agit ici de faire fonctionner postgreSQL avec php. On va donc décommenter deux extensions dans le Z:\MyApps\xampp\php\php.ini</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">; php driver to use postgreSQL databases<br />
<span style="color: #007800;">extension</span>=php_pgsql.dll<br />
; abstraction layer <span style="color: #000000; font-weight: bold;">for</span> PDO<br />
<span style="color: #007800;">extension</span>=php_pdo_pgsql.dll</div></div>
<p>Mais là vous risquez d&#8217;être victime de message d&#8217;erreur car PostgreSQl a besoin de quelques dll pour fonctionner sous windows. Afin de garder l&#8217;installation portable il faut ajouter \MyApps\xampp\pgsql\bin au path, car ce répertoire contient les dll nécessaires (et évite du coup d&#8217;avoir à les copier dans c:\windows\system32).</p>
<p><a href="http://blog.mazenod.fr/wp-content/uploads/2011/03/environnement.png" rel="lightbox[1862]"><img class="aligncenter size-full wp-image-1864" title="environnement" src="http://blog.mazenod.fr/wp-content/uploads/2011/03/environnement.png" alt="environnement postgreSQL & xampp portable sous windows" width="578" height="420" /></a></p>
<p>Afin de tester que postgreSQL fonctionne bien avec php je vous propose d&#8217;installer phpPgAdmin en le téléchargeant sur le site officiel http://phppgadmin.sourceforge.net/ puis en le décompressant dans Z:/MyApps/xampp/phpPgAdmin/</p>
<p>Afin de le rendre visible ajouter dans Z:\MyApps\xampp\apache\conf\extra\httpd-xampp.conf</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Alias <span style="color: #000000; font-weight: bold;">/</span>phppgadmin <span style="color: #ff0000;">&quot;Z:/MyApps/xampp/phpPgAdmin/&quot;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;Directory <span style="color: #ff0000;">&quot;Z:/MyApps/xampp/phpPgAdmin&quot;</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;<br />
AllowOverride AuthConfig<br />
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>Directory<span style="color: #000000; font-weight: bold;">&amp;</span>gt;</div></div>
<p>et modifier</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&amp;</span>lt;LocationMatch <span style="color: #ff0000;">&quot;^/(?i:(?:xampp|security|licenses|phpmyadmin|phppgadmin|webalizer|server-status|server-info))&quot;</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;<br />
Order deny,allow<br />
Deny from all<br />
Allow from 127.0.0.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">8</span><br />
ErrorDocument <span style="color: #000000;">403</span> <span style="color: #000000; font-weight: bold;">/</span>error<span style="color: #000000; font-weight: bold;">/</span>HTTP_XAMPP_FORBIDDEN.html.var<br />
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>LocationMatch<span style="color: #000000; font-weight: bold;">&amp;</span>gt;</div></div>
<p>éditer également selon vos besoins le fichier de configuration de phpPgAdmin Z:\MyApps\xampp\phpPgAdmin\conf\config.inc.php</p>
<p>ouvrez maintenant http://localhost/phppgadmin dans votre navigateur et saisissez les login mot de passe de l&#8217;utilisateur associé au cluster</p>
<p><a href="http://blog.mazenod.fr/wp-content/uploads/2011/03/phppgadmin.png" rel="lightbox[1862]"><img class="aligncenter size-full wp-image-1867" title="phppgadmin" src="http://blog.mazenod.fr/wp-content/uploads/2011/03/phppgadmin.png" alt="phppgadmin postgreSQL & xampp portable sous windows" width="591" height="183" /></a></p>
<p>&nbsp;</p>
<p>A vous postgreSQL</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mazenod.fr/2011/03/postgresql-xampp-portable-sous-windows/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>la crypto facile avec TrueCrypt</title>
		<link>http://blog.mazenod.fr/2011/03/la-crypto-facile-avec-truecrypt/</link>
		<comments>http://blog.mazenod.fr/2011/03/la-crypto-facile-avec-truecrypt/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 10:58:34 +0000</pubDate>
		<dc:creator>mazenovi</dc:creator>
				<category><![CDATA[libre]]></category>
		<category><![CDATA[portable apps]]></category>
		<category><![CDATA[securité]]></category>
		<category><![CDATA[anonymat]]></category>
		<category><![CDATA[gratuit]]></category>
		<category><![CDATA[hadopi]]></category>
		<category><![CDATA[musique]]></category>
		<category><![CDATA[sécurité]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.mazenod.fr/?p=1784</guid>
		<description><![CDATA[<p><a href="http://blog.mazenod.fr/wp-content/uploads/2011/03/TrueCrypt-150x150.png"><img class="alignleft" style="margin: 20px;" title="TrueCrypt-150x150" src="http://blog.mazenod.fr/wp-content/uploads/2011/03/TrueCrypt-150x150.png" alt="" width="150" height="150" /></a>Le volume de données personnelles et professionnelles fait considérablement croître les conséquences de leur détournement en cas de perte ou de vol. J'ai pris un peu de temps pour tester les différentes possibilités qu'offrent TrueCrypt, une solution libre, qui permet de crypter ses données sous différentes formes. Du cryptage d'un système tout entier à la partition cryptée cachée en cas d'extorsion du mot de passe, la simplicité est au rendez vous!</p>
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.mazenod.fr%2F2011%2F03%2Fla-crypto-facile-avec-truecrypt%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.mazenod.fr%2F2011%2F03%2Fla-crypto-facile-avec-truecrypt%2F&amp;style=normal&amp;b=2" height="61" width="50" title="la crypto facile avec TrueCrypt" alt=" la crypto facile avec TrueCrypt" /><br />
			</a>
		</div>
<h1>Pourquoi crypter?</h1>
<p><a href="http://www.nsa.gov/kids/"><img class="alignright size-full wp-image-1804" style="margin: 20px;" title="crypto_cat" src="http://blog.mazenod.fr/wp-content/uploads/2011/03/crypto_cat.gif" alt="crypto cat la crypto facile avec TrueCrypt" width="302" height="252" /></a>C&#8217;est sûr on ne balade pas tous des dossiers classés secrets défense dans nos ordinateurs portables. Mais si on prend deux secondes pour y réfléchir, perdre ou se faire voler une machine peut vite se révéler fort ennuyeux.</p>
<p>Les mots de passe sauvegardés pour la Messagerie, pour les instant messengers (MSN, Gtalk), dans la saisie semi automatique du navigateurs (facebook, twitter, webmail etc ..), sont autant de petits gains de temps apparemment anodins qui deviendront tout à coup de véritables vulnérabilités pouvant mettre en péril l&#8217;intégrité de votre identité numérique. Quiconque trouve ou vole votre machine, peut (à minima) se faire passer pour vous tant que vous n&#8217;avez pas changé les mots de passe de tous les sevrices que vous utilisez &#8230; si tant est que vous puissiez le faire avant le voleur &#8230;</p>
<p>Le b-a-ba est alors de protéger sa session par mot de passe &#8230; ce qui est  bien mais pas top, dans la mesure ou un système quel qu&#8217;il soit, dès qu&#8217;on peut y accéder physiquement &#8211; ce que l&#8217;heureux trouveur et /ou le vilain voleur sont a priori en mesure de faire &#8211; est tout à fait vulnérable. C&#8217;est à dire que toutes les données sur le disque de votre ordinateur sont accessibles simplement même si la session est protégée par mot de passe: il suffit d&#8217;accéder à ce disque à partir d&#8217;un autre système en le branchant directement à la carte mère ou via une coque USB. Ce qui est donc à la portée de n&#8217;importe qui!!</p>
<p style="text-align: center;"><img class="size-full wp-image-1805 aligncenter" title="laptop-privacy-1" src="http://blog.mazenod.fr/wp-content/uploads/2011/03/laptop-privacy-1.jpg" alt="laptop privacy 1 la crypto facile avec TrueCrypt" width="450" height="338" /></p>
<p>C&#8217;est là que le cryptage fait sens. En effet ce dernier permettra de rendre toutes vos données inaccessibles tant que le mot de passe qui permet de voir les données en claire n&#8217;a pas été saisi, et ce qu&#8217;on accède au disque d&#8217;une autre machine ou non.</p>
<h1>Crypter quoi?</h1>
<p>Je viens d&#8217;évoquer le cas de l&#8217;ordinateur portable qui est le cas typique d&#8217;utilisation nomade, mais les mêmes considérations s&#8217;appliquent aux suite d&#8217;applications portables (<a href="http://www.framakey.org/">FramaKey</a>, <a href="http://www.liberkey.com/">liberKey</a>,<a href="http://portableapps.com/"> portableapps</a>) qui peuvent être utilisée sur clé ou disque dur USB.</p>
<p>Il faut donc considérer le cryptage des disques systèmes, aussi bien que le cryptage des disques ou parties de disques des périphériques de stockage externes.</p>
<p>Ca tombe bien <a href="http://www.truecrypt.org/">TrueCrypt</a> gère tout ces cas de figure</p>
<h1>Comment crypter?</h1>
<p>Sous windows il y a des solutions natives comme <a href="http://pro.01net.com/editorial/509777/le-chiffrement-de-bitlocker-chahute-par-les-experts/">bitlocker, mais elles n&#8217;ont pas eu que des bons échos</a>. Selon les constructeurs il y a aussi des possibilités plus &laquo;&nbsp;hard&nbsp;&raquo;, des disques durs auto chiffrant par exemple (à noter qu&#8217;il existe la même chose pour les clés USB). Et puis <a href="http://www.korben.info/comment-chiffrer-une-partition-systeme-linux-ici-ubuntu.html">sous linux il existe LVM</a> (<a href="http://news.softpedia.com/news/Encrypted-Ubuntu-7-10-68383.shtml">un autre tuto ici</a>). Je n&#8217;ai pas vraiment creusé pour trouver quelque chose sous MAC, si vous avez des suggestions les commentaires sont ouverts &#8230;</p>
<p style="text-align: center;"><img class="size-full wp-image-1806 aligncenter" title="52015_416_corsair_un_clef_avec_chiffrement_des_donnees" src="http://blog.mazenod.fr/wp-content/uploads/2011/03/52015_416_corsair_un_clef_avec_chiffrement_des_donnees.jpg" alt="52015 416 corsair un clef avec chiffrement des donnees la crypto facile avec TrueCrypt" width="500" height="210" /></p>
<p>La solution que propose <a href="http://www.truecrypt.org/">TrueCrypt</a> existe sur ces 3 OS. Outre le fait que vous pourrez suivre la même procédure pour chacune de vos machines quelque soit son OS, vous allez aussi pouvoir crypter vos disques durs portables et autres clés USB et les utiliser sur n&#8217;importe quel OS.</p>
<p><a href="http://www.korben.info/chiffrer-un-disque-systeme-windows-avec-truecrypt.html">Crypter son disque système Windows</a> est une opération relativement simple. Officiellement True Crypt ne permet pas de réaliser cette opération sous linux. Plus chagrinant le dual boot windows / linux sur un même disque n&#8217;est pas supporté et empêche du coup de crypter la partition windows.</p>
<p>J&#8217;utilise surtout <a href="http://www.truecrypt.org/">TrueCrypt</a> pour ma suite d&#8217;application portable <a href="http://www.liberkey.com/">LiberKey</a> qui est  pour moi de plus en plus cruciale. Voulant profiter au maximum du caractère portable de <a href="http://www.truecrypt.org/">TrueCrypt</a> j&#8217;ai choisi d&#8217;opter pour le fichier crypté plutôt que pour la partition cryptée, et je pense que cette option est la plus ergonomique pour les médias portables. En effet Si <a href="http://www.truecrypt.org/">TrueCrypt</a> est à installer au niveau de l&#8217;OS sous linux ou sous mac os, il existe une version portable pour windows! Il est donc possible de se déplacer avec <a href="http://www.truecrypt.org/">TrueCrypt</a> sur le disque contenant le fichier crypté et d&#8217;y accéder même sur une machine où <a href="http://www.truecrypt.org/">TrueCrypt</a> n&#8217;est pas installé &#8230; et où éventuellement on ne dispose pas des permissions suffisantes pour réaliser cette opération</p>
<p>L&#8217;idée est donc de créer un fichier crypté qui tient presque toute la place sur le disque (ici DataMaze)</p>
<p style="text-align: center;"><a href="http://blog.mazenod.fr/wp-content/uploads/2011/03/screenshot.1.jpg" rel="lightbox[1784]"></a><img class="aligncenter size-full wp-image-1799" title="screenshot.1" src="http://blog.mazenod.fr/wp-content/uploads/2011/03/screenshot.1.jpg" alt="screenshot.1 la crypto facile avec TrueCrypt" width="557" height="412" /></p>
<p>et d&#8217;entreposer le nécessaire portable de TrueCrypt dans un répertoire à côté</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-1800" title="screenshot.2" src="http://blog.mazenod.fr/wp-content/uploads/2011/03/screenshot.2.jpg" alt="screenshot.2 la crypto facile avec TrueCrypt" width="557" height="412" /></p>
<p>Il ne reste ensuite plus qu&#8217;à batcher le montage (sur le lecteur Z dans notre cas) de la clé mount.bat</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">echo</span> off<br />
TrueCrypt\TrueCrypt <span style="color: #000000; font-weight: bold;">/</span>v DataMaze <span style="color: #000000; font-weight: bold;">/</span>l Z <span style="color: #000000; font-weight: bold;">/</span>m <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #000000; font-weight: bold;">/</span>auto <span style="color: #000000; font-weight: bold;">/</span>q</div></div>
<p>et le démontage unmount.bat</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">TrueCrypt\TrueCrypt <span style="color: #000000; font-weight: bold;">/</span>d Z <span style="color: #000000; font-weight: bold;">/</span>q</div></div>
<p>L&#8217;un des inconvénients majeur de cette méthode est qu&#8217;il est possible d&#8217;effacer le fichier crypté sans avoir d&#8217;autorisation spéciale :&#8217;(</p>
<h1><span>Les perfs</span></h1>
<p>Le cryptage est long quoiqu&#8217;il arrive: compter 100Go à l&#8217;heure.</p>
<p>En revanche les performances système ne sont quasi pas altérées au niveau de l&#8217;utilisation des disques ou fichiers crypter. J&#8217;ai fait un petit test sur un disque de 500Go avec <a href="http://crystalmark.info/software/CrystalDiskMark/index-e.html">CrystalDiskMark</a></p>
<h2>Avant</h2>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #660033;">-----------------------------------------------------------------------</span><br />
CrystalDiskMark 3.0.1 <span style="color: #7a0874; font-weight: bold;">&#40;</span>C<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">2007</span>-<span style="color: #000000;">2010</span> hiyohiyo<br />
Crystal Dew World : http:<span style="color: #000000; font-weight: bold;">//</span>crystalmark.info<span style="color: #000000; font-weight: bold;">/</span><br />
<span style="color: #660033;">-----------------------------------------------------------------------</span><br />
<span style="color: #000000; font-weight: bold;">*</span> MB<span style="color: #000000; font-weight: bold;">/</span>s = <span style="color: #000000;">1</span>,000,000 byte<span style="color: #000000; font-weight: bold;">/</span>s <span style="color: #7a0874; font-weight: bold;">&#91;</span>SATA<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">300</span> = <span style="color: #000000;">300</span>,000,000 byte<span style="color: #000000; font-weight: bold;">/</span>s<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
<br />
Sequential Read : &nbsp; &nbsp;<span style="color: #000000;">31.724</span> MB<span style="color: #000000; font-weight: bold;">/</span>s<br />
Sequential Write : &nbsp; &nbsp;<span style="color: #000000;">26.235</span> MB<span style="color: #000000; font-weight: bold;">/</span>s<br />
Random Read 512KB : &nbsp; &nbsp;<span style="color: #000000;">19.922</span> MB<span style="color: #000000; font-weight: bold;">/</span>s<br />
Random Write 512KB : &nbsp; &nbsp;<span style="color: #000000;">25.046</span> MB<span style="color: #000000; font-weight: bold;">/</span>s<br />
Random Read 4KB <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">QD</span>=<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> : &nbsp; &nbsp; <span style="color: #000000;">0.436</span> MB<span style="color: #000000; font-weight: bold;">/</span>s <span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; <span style="color: #000000;">106.5</span> IOPS<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
Random Write 4KB <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">QD</span>=<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> : &nbsp; &nbsp; <span style="color: #000000;">0.602</span> MB<span style="color: #000000; font-weight: bold;">/</span>s <span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; <span style="color: #000000;">147.1</span> IOPS<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
Random Read 4KB <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">QD</span>=<span style="color: #000000;">32</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> : &nbsp; &nbsp; <span style="color: #000000;">0.460</span> MB<span style="color: #000000; font-weight: bold;">/</span>s <span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; <span style="color: #000000;">112.4</span> IOPS<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
Random Write 4KB <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">QD</span>=<span style="color: #000000;">32</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> : &nbsp; &nbsp; <span style="color: #000000;">0.620</span> MB<span style="color: #000000; font-weight: bold;">/</span>s <span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; <span style="color: #000000;">151.4</span> IOPS<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
<br />
Test : <span style="color: #000000;">1000</span> MB <span style="color: #7a0874; font-weight: bold;">&#91;</span>D: <span style="color: #000000;">0.1</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.7</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">465.8</span> GB<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>x5<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
Date : <span style="color: #000000;">2011</span><span style="color: #000000; font-weight: bold;">/</span>02<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">22</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">52</span>:<span style="color: #000000;">21</span><br />
OS : Windows <span style="color: #000000;">7</span> &nbsp;<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">6.1</span> Build <span style="color: #000000;">7600</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>x86<span style="color: #7a0874; font-weight: bold;">&#41;</span></div></div>
<h2>Après</h2>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #660033;">-----------------------------------------------------------------------</span><br />
CrystalDiskMark 3.0.1 <span style="color: #7a0874; font-weight: bold;">&#40;</span>C<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">2007</span>-<span style="color: #000000;">2010</span> hiyohiyo<br />
Crystal Dew World : http:<span style="color: #000000; font-weight: bold;">//</span>crystalmark.info<span style="color: #000000; font-weight: bold;">/</span><br />
<span style="color: #660033;">-----------------------------------------------------------------------</span><br />
<span style="color: #000000; font-weight: bold;">*</span> MB<span style="color: #000000; font-weight: bold;">/</span>s = <span style="color: #000000;">1</span>,000,000 byte<span style="color: #000000; font-weight: bold;">/</span>s <span style="color: #7a0874; font-weight: bold;">&#91;</span>SATA<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">300</span> = <span style="color: #000000;">300</span>,000,000 byte<span style="color: #000000; font-weight: bold;">/</span>s<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
<br />
Sequential Read : &nbsp; &nbsp;<span style="color: #000000;">35.005</span> MB<span style="color: #000000; font-weight: bold;">/</span>s<br />
Sequential Write : &nbsp; &nbsp;<span style="color: #000000;">26.591</span> MB<span style="color: #000000; font-weight: bold;">/</span>s<br />
Random Read 512KB : &nbsp; &nbsp;<span style="color: #000000;">14.992</span> MB<span style="color: #000000; font-weight: bold;">/</span>s<br />
Random Write 512KB : &nbsp; &nbsp;<span style="color: #000000;">21.508</span> MB<span style="color: #000000; font-weight: bold;">/</span>s<br />
Random Read 4KB <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">QD</span>=<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> : &nbsp; &nbsp; <span style="color: #000000;">0.374</span> MB<span style="color: #000000; font-weight: bold;">/</span>s <span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; &nbsp;<span style="color: #000000;">91.3</span> IOPS<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
Random Write 4KB <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">QD</span>=<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> : &nbsp; &nbsp; <span style="color: #000000;">0.626</span> MB<span style="color: #000000; font-weight: bold;">/</span>s <span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; <span style="color: #000000;">152.9</span> IOPS<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
Random Read 4KB <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">QD</span>=<span style="color: #000000;">32</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> : &nbsp; &nbsp; <span style="color: #000000;">0.423</span> MB<span style="color: #000000; font-weight: bold;">/</span>s <span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; <span style="color: #000000;">103.4</span> IOPS<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
Random Write 4KB <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">QD</span>=<span style="color: #000000;">32</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> : &nbsp; &nbsp; <span style="color: #000000;">0.662</span> MB<span style="color: #000000; font-weight: bold;">/</span>s <span style="color: #7a0874; font-weight: bold;">&#91;</span> &nbsp; <span style="color: #000000;">161.7</span> IOPS<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
<br />
Test : <span style="color: #000000;">1000</span> MB <span style="color: #7a0874; font-weight: bold;">&#91;</span>Z: <span style="color: #000000;">0.5</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2.4</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">463.9</span> GB<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>x5<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
Date : <span style="color: #000000;">2011</span><span style="color: #000000; font-weight: bold;">/</span>02<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">23</span> <span style="color: #000000;">15</span>:<span style="color: #000000;">40</span>:<span style="color: #000000;">31</span><br />
OS : Windows <span style="color: #000000;">7</span> &nbsp;<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">6.1</span> Build <span style="color: #000000;">7600</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>x86<span style="color: #7a0874; font-weight: bold;">&#41;</span></div></div>
<h1>Mot de passe vs Keyfile</h1>
<p>Il y a deux systèmes d&#8217;authentification: Le système par mot de passe classique et le système d&#8217;authentification par fichier. Le second implique que vous ayez toujours le fichier d&#8217;authentification sous la main (et tant qu&#8217;à faire pas sur le disque qui contient le conteneur crypté <img src='http://blog.mazenod.fr/wp-includes/images/smilies/icon_surprised.gif' alt="icon surprised la crypto facile avec TrueCrypt" class='wp-smiley' title="la crypto facile avec TrueCrypt" /> )). Les deux systèmes sont combinables.</p>
<p>Notez qu&#8217;il n&#8217;y a pas de système de récupération de mot de passe, ni de re-génération de fichier d&#8217;authentification &#8230;</p>
<p>Mot de passe oublié  = données perdues. Ce qui est finalement assez rassurant, si on y réfléchit bien!</p>
<h1>Le mode parano?</h1>
<p>Il est possible de mettre en place un conteneur  caché, pour prévenir le cas où on est forcé (ambiance couteau sous la gorge) de donner son mot de passe. Le principe est assez simple, on appelle ça le déni plausible: au lieu de créer une partition cryptée TrueCrypt en créera deux, l’une dans l’autre. L&#8217;une qui fera office de  leurre, alors que l&#8217;autre contiendra effectivement les données  confidentielles. L’idée est que même si le mot de passe de la partition  leurre est révélé il ne permet d’accéder qu&#8217;à cette partition, et il est  alors impossible de prouver qu’il existe une deuxième partition cryptée (celle qui contient les données confidentielles) dans la première.</p>
<p>le déni plausible peut être mis en oeuvre, pour un fichier crypté, une partition et même un système tout entier.</p>
<p>plusieurs réflexions tout de même :</p>
<ul>
<li>vous perdez un peu de place</li>
<li>ca fait un deuxième mot de passe à retenir (et à bien mémoriser parce qu&#8217;il faudra le sortir naturellement au moment où on vous braque un kalashnikov sur la tempe)</li>
<li>si vous avez mis  le déni plausible en place il y a un certain temps et que vous n&#8217;avez pas touché à la partition &laquo;&nbsp;fake&nbsp;&raquo; depuis, votre agresseur, s&#8217;il sait ce qu&#8217;il cherche et s&#8217;il sait regarder la date de dernière modification d&#8217;un fichier, aura vite fait de s&#8217;apercevoir que vous le prenez pour un lapin de 6 semaines &#8230;</li>
</ul>
<p>Tout récemment<a href="http://www.korben.info/cacher-un-conteneur-truecrypt-dans-une-video.html"> Korben relayait le moyen de cacher un conteneur truecrypt dans des fichiers vidéo</a>, ce qui me paraît beaucoup moins pratique à utiliser, mais beaucoup plus crédible en terme de camouflage <img src='http://blog.mazenod.fr/wp-includes/images/smilies/icon_wink.gif' alt="icon wink la crypto facile avec TrueCrypt" class='wp-smiley' title="la crypto facile avec TrueCrypt" /> </p>
<h1>Conclusion</h1>
<p>Si vous lisez ces lignes et que vous vous dites que vous n&#8217;avez rien à cacher et que chiffrer son disque ce n&#8217;est bon que pour <a href="http://fr.wikipedia.org/wiki/Julian_Assange">Julian Assange</a>, c&#8217;est que j&#8217;ai doublement perdu mon temps:</p>
<p>1 &#8211; il n&#8217;y a pas que les données confidentielles qui nécessitent un cryptage, mais tout flux de données vous concernant peut potentiellement être utilisé contre vous et / ou à votre insu. Ce qui implique que le cryptage de données devrait être une pratique tout à fait commune dans une société du tout numérique &#8230; il n&#8217;y a qu&#8217;à lire les mésaventures du <a href="http://virtualabs.fr/spip.php?article45">dragueur trahi par sa clef USB</a> pour s&#8217;en persuader</p>
<p>2 &#8211; C&#8217;est que vous pensez que crypter un système d&#8217;exploitation ou un périphérique externe de stockage est compliqué, ce qui est tout à fait faux, dans la mesure où <a href="http://www.truecrypt.org/">TrueCrypt</a> s&#8217;occupe de tout et qu&#8217;il existe de nombreuses ressources pour toute sorte de cas pratiques</p>
<h2>Liens complémentaires</h2>
<ul>
<li><a href="http://free.korben.info/index.php/True_crypt">http://free.korben.info/index.php/True_crypt</a></li>
<li><a href="http://fr.wikipedia.org/wiki/TrueCrypt">http://fr.wikipedia.org/wiki/TrueCrypt</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.mazenod.fr/2011/03/la-crypto-facile-avec-truecrypt/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>activer la couleur pour la commande symfony dans un bash cygwin portable</title>
		<link>http://blog.mazenod.fr/2011/03/activer-la-couleur-pour-la-commande-symfony-dans-un-bash-cygwin-portable/</link>
		<comments>http://blog.mazenod.fr/2011/03/activer-la-couleur-pour-la-commande-symfony-dans-un-bash-cygwin-portable/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 10:24:47 +0000</pubDate>
		<dc:creator>mazenovi</dc:creator>
				<category><![CDATA[bricolage]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[libre]]></category>
		<category><![CDATA[portable apps]]></category>
		<category><![CDATA[gratuit]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[PC]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.mazenod.fr/?p=1423</guid>
		<description><![CDATA[<p><a href="../wp-content/uploads/2011/08/cygwin_logo.png"><img class="alignleft" style="margin-left: 30px; margin-right: 30px;" title="cygwin_logo" src="../wp-content/uploads/2011/08/cygwin_logo.png" alt="" width="64" height="64" /></a>Une petite astuce pour les développeurs symfony en environnement windows qui vous permettra de bénéficier des couelurs produites par la commande symfony. Vous verrez qu'il est aussi possible de configurer un environnement UnixLike dans une console agréable et personnalisée</p>
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.mazenod.fr%2F2011%2F03%2Factiver-la-couleur-pour-la-commande-symfony-dans-un-bash-cygwin-portable%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.mazenod.fr%2F2011%2F03%2Factiver-la-couleur-pour-la-commande-symfony-dans-un-bash-cygwin-portable%2F&amp;style=normal&amp;b=2" height="61" width="50" title="activer la couleur pour la commande symfony dans un bash cygwin portable" alt=" activer la couleur pour la commande symfony dans un bash cygwin portable" /><br />
			</a>
		</div>
<h2>symfony en couleur</h2>
<p>Les utilisateurs windows ont longtemps été privés des couleurs qu&#8217;affichent la sortie de la commande symfony. Mais depuis<a href="http://www.symfony-project.org/tutorial/1_4/fr/whats-new"> symfony 1.3/1.4 les choses se sont beaucoup améliorées</a>.</p>
<p>C&#8217;est le jour où j&#8217;ai voulu <a href="http://www.willdurand.fr/faut-il-tester-les-tests/">tester les tests</a>, que le besoin de couleur c&#8217;est vraiment fait ressentir: j&#8217;ai d&#8217;abord perdu pas mal de temps à essayer d&#8217;activer <a href="http://fr.wikipedia.org/wiki/ANSI.SYS">ansi.sys</a> sur mon windows 7 &#8230;</p>
<p>sans succés!</p>
<p>La solution je l&#8217;ai trouvé chez  <a href="http://www.jnieto.org/article/colorize_your_windows_console_life_with_symfony">Jonathan Nieto : Colorize your Windows console life with symfony</a> (et aussi grâce à <a href="http://twitter.com/couac">@couac</a>) et elle s&#8217;appelle <a href="http://adoxa.110mb.com/ansicon/index.html">ANSICON</a> il suffit donc de</p>
<ul>
<li>télécharger le zip</li>
<li>dézipper</li>
<li>copier / coller les fichiers ansi.dll et ansicon.exe dans c:\windows \system32</li>
<li>taper ansicon -i dans un prompt de commande</li>
</ul>
<p><strong>N.B.</strong> vous devez rouvrir une autre fenêtre MS-DOS pour que la couleur soit</p>
<p><strong>N.B2.</strong> si comme moi vous disposez d&#8217;un environnement de développement portable xampp ou UwAmp, cette manipulation est à faire sur chacun des postes que vous utilisez.</p>
<p>Ca marche aussi bien dans une bête commande MS-DOS que dans un cygwin, sans avoir à utiliser l&#8217;option &#8211;force de la commande symfony, du coup j&#8217;ai tenté</p>
<h2>cygwin portable</h2>
<p>J&#8217;avais déjà joué un peu à modifier le path au lancement de la console, lors de l&#8217;installation portable de Git afin de changer éventuellement d&#8217;intrerpréteur en ligne de commande PHP lors d&#8217;une même session par exemple. Mais ayant un bout de commande <a href="http://www.itefix.no/i2/node/10650">cwrsync</a> par là, un bout d&#8217;install <a href="http://blog.mazenod.fr/2011/02/git-portable-console2-sous-windows/">git</a> par ailleurs, je me suis itéressé à cygwin et à son potentiel portable, afin de tout unifier.</p>
<ul>
<li>J&#8217;ai en fait installé cygwin sur mon disque dur usb (dans z:\MyApps\cygwin), mais la démarche est la même en partant d&#8217;un <a href="http://sourceforge.net/projects/cygwinportable/">cygwin portable</a> (pas super à jour :/) <a href="http://bitsofwizardry.wordpress.com/2010/01/29/cygwin-portable-some-linux-power-on-a-usb-for-windows/">comme l&#8217;explique ce post </a></li>
<li> J&#8217;ai ensuite créé un home dir dans z:\MyApps\cygwin\home\mazenovi qui me permet de rendre mes préférences (.ssh, .bashrc) portables elles aussi.</li>
<li>Enfin j&#8217;ai simplement modifié le batch de lancement Cygwin.bat en CygwinPortable.bat comme suit</li>
</ul>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">echo</span> off<br />
<br />
chdir \MyApps\Cygwin\bin<br />
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">path</span>=<span style="color: #000000; font-weight: bold;">%</span>WD<span style="color: #000000; font-weight: bold;">%</span>\cygwin\bin;<span style="color: #000000; font-weight: bold;">%</span>WD<span style="color: #000000; font-weight: bold;">%</span>\cygwin\usr\X11R6\bin;\MyApps\xampp\php;\MyApps\xampp\mysql\bin;<span style="color: #000000; font-weight: bold;">%</span>path<span style="color: #000000; font-weight: bold;">%</span><br />
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">SHELL</span>=<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span><br />
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">HOME</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>mazenovi<br />
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">DISPLAY</span>=:<span style="color: #000000;">0</span><br />
<span style="color: #c20cb9; font-weight: bold;">bash</span> <span style="color: #660033;">--login</span> <span style="color: #660033;">-i</span></div></div>
<p>L&#8217;idée est simplement d&#8217;enlever les lettres de lecteur pour avoir des path partant de la racine de la clé, et de rajouter quelques variables d&#8217;environnement (ici le path vers le php et le mysql de mon installation xampp portable). Une fois fait il suffit d&#8217;installer les commandes dont vous avez besoin (git et rsync dans mon cas) via cygwin en relançant le setup.exe (si vous êtes partis de la version portable de cycgwin n&#8217;oubliez pas de remplacer cygwinsetup.exe par un setup.exe à jour).</p>
<p>Pour finir j&#8217;ai ensuite créé un onglet dans <a href="http://sourceforge.net/projects/console/">console2</a> une petite console libre, permettant entre autre d&#8217;utiliser la font consolas et de gérer la transparence de votre ligne de commande</p>
<p><a href="http://blog.mazenod.fr/wp-content/uploads/2011/08/cygwin.png" rel="lightbox[1423]"><img class="aligncenter size-medium wp-image-1476" title="cygwin" src="http://blog.mazenod.fr/wp-content/uploads/2011/08/cygwin-300x227.png" alt="cygwin 300x227 activer la couleur pour la commande symfony dans un bash cygwin portable" width="300" height="227" /></a></p>
<p>de quoi réconcilier les windoziens avec la ligne de commande :p</p>
<h2>Sale Geek kro$oft!</h2>
<p>Vous me traiterez sans doute de sale bricolo car j&#8217;utilise des installations Apache MySQL PHP windows (xampp ou UwAmp) à l&#8217;intèrieur d&#8217;un Cygwin qui est un pseudo Unix. Ce à quoi je répondrai, &laquo;&nbsp;c&#8217;est vrai! c&#8217;est un mélange des genres!&nbsp;&raquo;, mais grâce à UwAmp par exemple, je peux utiliser des versions de PHP différentes simplement en ouvrant un nouvel onglet dans ma console &#8230;</p>
<p>&lt;troll&gt;Et puis j&#8217;ai déjà vu des système Unix like (à base de BSD par exemple) largement aussi fermé qu&#8217;un windows&lt;/troll&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mazenod.fr/2011/03/activer-la-couleur-pour-la-commande-symfony-dans-un-bash-cygwin-portable/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Git portable &amp; Console2 sous windows</title>
		<link>http://blog.mazenod.fr/2011/02/git-portable-console2-sous-windows/</link>
		<comments>http://blog.mazenod.fr/2011/02/git-portable-console2-sous-windows/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 18:18:43 +0000</pubDate>
		<dc:creator>mazenovi</dc:creator>
				<category><![CDATA[bricolage]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[libre]]></category>
		<category><![CDATA[portable apps]]></category>
		<category><![CDATA[gratuit]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://blog.mazenod.fr/?p=1294</guid>
		<description><![CDATA[<p><a href="../wp-content/uploads/2010/08/github.png"><img class="alignleft" style="margin-left: 30px; margin-right: 30px;" title="github" src="../wp-content/uploads/2010/08/github-300x300.png" alt="" width="132" height="132" /></a>Un tuto rapide pour installer git de manière portable et l'intégrer aux mieux dans son prompt préféré (Console2). Nous verrons ensuite comment débuter un nouveau projet géré avec git sur github.</p>
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.mazenod.fr%2F2011%2F02%2Fgit-portable-console2-sous-windows%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.mazenod.fr%2F2011%2F02%2Fgit-portable-console2-sous-windows%2F&amp;style=normal&amp;b=2" height="61" width="50" title="Git portable & Console2 sous windows" alt=" Git portable & Console2 sous windows" /><br />
			</a>
		</div>
<p>Git est un système de gestion de versions qui s&#8217;est répandu dans le monde du développement comme une traînée de poudre il y a quelques temps; surtout depuis que plusieurs projets majeurs, dont <a href="http://github.com/symfony/symfony">Symfony 2</a> sont passés de svn à git.</p>
<p>Le propos de cet article est d&#8217;installer git de manière portable et intégrée à<a href="http://sourceforge.net/projects/console/"> Console 2</a> qui est mon prompt de commande préféré, et de voir les quelques commandes de bases</p>
<h2>Installation</h2>
<p><a href="http://code.google.com/p/msysgit/">msysgit</a> propose une version portable de git. Une fois décompressée dans votre suite d&#8217;applications portables préférées, vous pouvez avoir accès à Git en ligne de commande en lançant <em>git-cmd.bat</em> ou mieux <em>git-bash.cmd</em>, qui vous donne accès à un bash UNIX minimal (c&#8217;est à dire limité à quelques commandes) dans votre windows</p>
<p>Il n&#8217;y a absolument rien de sorcier là dedans, mais notez tout de même que pour changer de répertoire vous ne devez utiliser que des / et non pas des \, et faire référence à la lettre du lecteur de disque comme suit</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>c<span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>mazenovi<span style="color: #000000; font-weight: bold;">/</span>Desktop</div></div>
<p>C&#8217;est un peu comme du cygwin, mais visiblement ça n&#8217;en est pas!</p>
<h2>Console2</h2>
<p>Ce qui est sympa c&#8217;est d&#8217;intégrer l&#8217;environnement ligne de commande Git en tant qu&#8217;onglet de <a href="http://console.sourceforge.net">Console2</a>.</p>
<p><a href="http://console.sourceforge.net/">Console2</a> est un prompt de commande souple, personnalisable (police, couleur, transparence, etc &#8230;) et complètement portable.</p>
<p>Vous pouvez ajouter des onglets prédéfinis dans &laquo;&nbsp;Edit&nbsp;&raquo; -&gt; &laquo;&nbsp;Settings&nbsp;&raquo;</p>
<p style="text-align: center;"><a href="http://blog.mazenod.fr/wp-content/uploads/2010/08/settings.png" rel="lightbox[1294]"><img class="size-medium wp-image-1298 aligncenter" title="settings" src="http://blog.mazenod.fr/wp-content/uploads/2010/08/settings-293x300.png" alt="settings 293x300 Git portable & Console2 sous windows" width="293" height="300" /></a></p>
<p>Vous devez spécifier le chemin vers le batch permettant d&#8217;accéder à git en ligne de comande (git-bash.bat).</p>
<p>Vous pouvez également spécifier un répertoire par défaut dans lequel sera positionné votre prompt.</p>
<p>Il suffit ensuite de bien penser à mettre des paths relatifs ou absolus, mais dans ce dernier cas sans spécifier la lettre du lecteur pour que la configuration reste elle aussi portable.</p>
<p>Ensuite le git-bash peut se lancer dans <a href="http://console.sourceforge.net/">Console2</a> en ouvrant un nouvel onglet<a href="http://console.sourceforge.net/"><br />
</a></p>
<p style="text-align: center;"><a href="http://blog.mazenod.fr/wp-content/uploads/2010/08/tab.png" rel="lightbox[1294]"><img class="size-medium wp-image-1299 aligncenter" title="tab" src="http://blog.mazenod.fr/wp-content/uploads/2010/08/tab-300x179.png" alt="tab 300x179 Git portable & Console2 sous windows" width="300" height="179" /></a></p>
<p>Notez bien que nous n&#8217;avons pas touché aux variables d&#8217;environnement  du système, et que pour autant la commande git est accessible de partout &#8230; le path système est en fait modifié directement par le script git-bash.bat</p>
<h1>Test sur github</h1>
<p><a href="http://github.com">github</a> est un site d&#8217;hébergement et de gestion de développement  de logiciels utilisant git et <a href="http://fr.wikipedia.org/wiki/GitHub">choisi par beaucoup de projets open source</a>.</p>
<h2>Avec git-bash</h2>
<h3>générer et configurer une clé RSA</h3>
<p>Dans un onglet git bash (que vous venez de créer) tapez</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">ssh-keygen</span> <span style="color: #660033;">-t</span> rsa</div></div>
<p>Laissez tous les choix par défaut (appuyez deux fois sur entrée)</p>
<p>Vous obtenez deux fichiers (mazenovi est bien sûr à remplacer par votre nom d&#8217;utilisateur) :</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>c<span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>mazenovi<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_rsa</div></div>
<p>est votre clé privée, et elle est au bon endroit et</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>c<span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>mazenovi<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_rsa.pub</div></div>
<p>est votre clé publique que vous devez saisir dans la section <a href="https://github.com/account#keys">Account settings</a> -&gt; SSH Public Keys.</p>
<p>Vous pouvez ensuite configurer votre nom &amp; mail (à remplacer par les votre)</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">git config</span> <span style="color: #660033;">--global</span> user.name <span style="color: #ff0000;">&quot;mazenovi&quot;</span><br />
<br />
<span style="color: #c20cb9; font-weight: bold;">git config</span> <span style="color: #660033;">--global</span> user.email vmazenod<span style="color: #000000; font-weight: bold;">@</span>mail.com</div></div>
<p>de manière générale la conf de git est stockée dans</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>c<span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>mazenovi<span style="color: #000000; font-weight: bold;">/</span>.gitconfig</div></div>
<p>Tout est alors prêt pour créer votre &#8230;</p>
<h3>Premier repository</h3>
<p>il vous faudra tout d&#8217;abord <a href="http://github.com/repositories/new">créer un nouveau dépôt </a>(&laquo;&nbsp;ckMedia&nbsp;&raquo; dans mon cas) sur <a href="http://github.com/">github</a></p>
<p><strong>créer le dépôt sur votre machine local</strong>, qui n&#8217;est rien de plus qu&#8217;un répertoire géré par git, en tapant toujours dans l&#8217;onglet onglet git bash</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> ckMedia<br />
<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> ckMedia</div></div>
<p><strong>le faire gérer par git</strong></p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">git init</span></div></div>
<p><strong>le modifier</strong> (créer un simple fichier vide README par exemple)</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">touch</span> README</div></div>
<p><strong>ne plus faire gérer un fichier par git</strong> (les modifications apportées au fichier ne sont plus prises en compte par git)</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">git rm</span> README</div></div>
<p><strong>annuler les modifications</strong> (revenir à la denière verison)</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">git checkout</span></div></div>
<p><strong>ajouter la modification au prochain commit</strong> (prochaine mise à jour du repostory sur github)</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">git add</span> README</div></div>
<p><strong>supprimer le fichier du prochain commit</strong></p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">git reset</span> README</div></div>
<p><strong>faire un commit</strong> (valider les changements sur le repository local)</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">git commit</span> <span style="color: #660033;">-m</span> <span style="color: #ff0000;">'first commit'</span></div></div>
<p><strong>N.B.</strong> le commentaire est obligatoire, si vous oubliez l&#8217;option -m l&#8217;éditeur de texte par défaut est lancé</p>
<p><strong>Pour faire un commit sur tous les fichiers modifiés et gérés par git</strong> vous pouvez utiliser l&#8217;option -a. Les fichiers supprimés dans le projet seront supprimés (git rm) du dépôt</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">git commit</span> <span style="color: #660033;">-a</span> <span style="color: #660033;">-m</span> <span style="color: #ff0000;">'update all my changes'</span></div></div>
<p><strong>Pour faire afficher ce qui est à &laquo;&nbsp;commiter&nbsp;&raquo;</strong>, c&#8217;est à dire ce qui a déjà fait l&#8217;objet d&#8217;un add, et ce qui a été simplement modifié, c&#8217;est à dire qui est géré mais n&#8217;a pas fait l&#8217;objet d&#8217;un add:</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">git status</span></div></div>
<p>on appelle cet état transitoire entre le moment où le fichier est modifié et le commit le <strong>stage</strong></p>
<p>Les schéma suivant résume les commandes que nous venons de voir<br />
<object width="728" height="312" type="image/svg+xml" data="http://marklodato.github.com/visual-git-guide/basic-usage.svg"></object></p>
<p><strong>ajouter un raccourcis vers l&#8217;URL du dépot github</strong>. On le nomme ici origin</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">git remote</span> add origin <span style="color: #c20cb9; font-weight: bold;">git</span><span style="color: #000000; font-weight: bold;">@</span>github.com:mazenovi<span style="color: #000000; font-weight: bold;">/</span>ckMedia.git</div></div>
<p><strong>répercuter les changements sur le dépot cible</strong></p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">git push</span> origin master</div></div>
<p><strong>pour lister tous les commit</strong></p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">git log</span></div></div>
<h3>Pour la petite histoire</h3>
<p>Le magazine PC  World  nous apprend que « quand on lui a demandé   pourquoi il avait  appelé son logiciel &laquo;&nbsp;git&nbsp;&raquo;, qui est à peu près   l&#8217;équivalent de « connard »  en argot anglais, Linus Torvalds a répondu «   je ne suis qu&#8217;un  égocentrique, donc j&#8217;appelle tous mes projets  d&#8217;après  ma propre  personne. D&#8217;abord Linux, puis Git. »</p>
<p>source : <a href="http://fr.wikipedia.org/wiki/Git">http://fr.wikipedia.org/wiki/Git</a></p>
<h3>compélément</h3>
<ul>
<li>pour plus de détails  <a href="http://gitref.org/">http://gitref.org/</a></li>
<li>pour me trouver sur git <a href="http://github.com/mazenovi"> http://github.com/mazenovi</a></li>
<li>Git staging area <a href="http://www.gitready.com/beginner/2009/01/18/the-staging-area.html">http://www.gitready.com/beginner/2009/01/18/the-staging-area.html</a></li>
<li>un petit guide en français: <a href="http://www.unixgarden.com/index.php/administration-systeme/git-it">http://www.unixgarden.com/index.php/administration-systeme/git-it</a></li>
<li>une documentation un peu plus exhaustive en français : <a href="http://www.alexgirard.com/git-book/">http://www.alexgirard.com/git-book/</a></li>
<li>un tuto en anglais: <a href="http://gitimmersion.com">http://gitimmersion.com</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.mazenod.fr/2011/02/git-portable-console2-sous-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux Live USB (portable) virtualisé sans limitation de persistance avec partition casper</title>
		<link>http://blog.mazenod.fr/2010/10/linux-live-usb-portable-virtualise-sans-limitation-de-persistance-avec-partition-casper/</link>
		<comments>http://blog.mazenod.fr/2010/10/linux-live-usb-portable-virtualise-sans-limitation-de-persistance-avec-partition-casper/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 16:24:08 +0000</pubDate>
		<dc:creator>mazenovi</dc:creator>
				<category><![CDATA[bricolage]]></category>
		<category><![CDATA[libre]]></category>
		<category><![CDATA[portable apps]]></category>
		<category><![CDATA[gratuit]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[maze]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[PC]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.mazenod.fr/?p=1651</guid>
		<description><![CDATA[<p><a href="http://blog.mazenod.fr/2010/10/linux-live-usb-portable-virtualise-sans-limitation-de-persistance-avec-partition-casper"><img class="alignleft" style="margin: 20px;" title="Install-Ubuntu-904-on-a-Flash-Drive-Usbuntu" src="../wp-content/uploads/2010/10/Install-Ubuntu-904-on-a-Flash-Drive-Usbuntu.jpg" alt="" width="151" height="113" /></a></p>
<p>Ballader un GNU/Linux Ubuntu sur une clé USB présente beaucoup d'avantages. Vous découvrirez quelles sont les limitations liées à ce mode d'utilisation et comment en contourner certaines ... Vous pourrez également utiliser votre ubuntu à partir de windows via virtualbox.</p>
<p>C'est un excellent moyen de (faire) tester Ubuntu sans toucher à la machine hôte, alors laissez vous guidez par le screencast ...</p>
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.mazenod.fr%2F2010%2F10%2Flinux-live-usb-portable-virtualise-sans-limitation-de-persistance-avec-partition-casper%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.mazenod.fr%2F2010%2F10%2Flinux-live-usb-portable-virtualise-sans-limitation-de-persistance-avec-partition-casper%2F&amp;style=normal&amp;b=2" height="61" width="50" title="Linux Live USB (portable) virtualisé sans limitation de persistance avec partition casper" alt=" Linux Live USB (portable) virtualisé sans limitation de persistance avec partition casper" /><br />
			</a>
		</div>
<h2>Petit rappel</h2>
<p>Un <a href="http://ubuntu-fr.org/">Ubuntu</a> portable c&#8217;est forcément un dérivé d&#8217;un <a href="http://ubuntu-fr.org/">Ubuntu</a> live. Et un <a href="http://ubuntu-fr.org/">Ubuntu</a> live c&#8217;est un système d&#8217;exploitation (de type GNU/Linux, distribution<a href="http://ubuntu-fr.org/">Ubuntu</a>) assez générique pour fonctionner sans soucis sur la plupart des machines, sans avoir à l&#8217;installer.  En gros on boote sur le CD ROM et un <a href="http://ubuntu-fr.org/">Ubuntu</a> se lance, prêt à l&#8217;utilisation (avec quelques restrictions majeures mais nous verrons cela plus tard), et surtout prêt à l&#8217;installation de GNU/Linux sur la machine hôte. Le support royal était historiquement le CD ROM, on parlait alors de live CD et maintenant que les clés USB font des tailles raisonnables et que la plupart des cartes mères sont capables de booter à partir d&#8217;un périphérique USB, on peut avantageusement remplacer le support optique par le périphérique de stockage USB &#8230; J&#8217;ai l&#8217;impression de parler comme une notification système des fois o_0&#8242;.</p>
<p><a href="http://blog.mazenod.fr/wp-content/uploads/2010/10/geek-porno.jpg" rel="lightbox[1651]"><img class="size-full wp-image-1657 alignleft" style="margin-right: 20px;" title="geek-porno" src="http://blog.mazenod.fr/wp-content/uploads/2010/10/geek-porno.jpg" alt="geek porno Linux Live USB (portable) virtualisé sans limitation de persistance avec partition casper" width="176" height="254" /></a>L&#8217;<a href="http://ubuntu-fr.org/">Ubuntu</a> live c&#8217;est l&#8217;ultime fantasme du barbu libriste &#8230; Dans ses rêves les plus fous il réparerait le PC de sa voisine (blonde, à forte poitrine, en nuisette rose) infesté de virus, gavé d&#8217;erreur de base de registre, qui met 3 plombes à démarrer et crachote message d&#8217;erreur sur message d&#8217;erreur. Là le barbu arriverait, le sourire en coin, vêtu de son T-Shirt noir &laquo;&nbsp;scan my network and die&nbsp;&raquo; acheté sur <a href="http://www.thinkgeek.com/">http://thinkgeek.com</a> et d&#8217;un geste assuré il rebooterait la machine malade, que sa propriétaire croit morte, avec une clé USB minuscule. Ubuntu se lancerait, le bureau s&#8217;afficherait et en quelques secondes la néophyte se repèrerait instantanément: &laquo;&nbsp;oh c&#8217;est comme dans windows! Y a firefox aussi. Et je peux relever mes mails? Je peux faire du MSN? je peux skyper? Je peux regarder des films? Ecouter deezer? Et Word? Et PowerPoint? &#8230;&nbsp;&raquo;. Et là le barbu la larme à l&#8217;oeil lui répondrait que oui elle pourra  le faire.  Finalement le barbu cliquerait sur l&#8217;icône installer unbuntu 10.10, un PC de plus de serait libéré, il irait se coucher le <a href="http://blog.mazenod.fr/wp-content/uploads/2010/10/installUbuntu.png" rel="lightbox[1651]"><img class="size-full wp-image-1672 alignright" style="margin: 30px;" title="installUbuntu" src="http://blog.mazenod.fr/wp-content/uploads/2010/10/installUbuntu.png" alt="installUbuntu Linux Live USB (portable) virtualisé sans limitation de persistance avec partition casper" width="169" height="117" /></a>coeur léger avec le sentiment d&#8217;avoir participer à l&#8217;avènement du libre, cette longue mission d&#8217;évangélisation qui lui tient tant à coeur</p>
<h2>casper le gentil fantôme</h2>
<p>Bref Sans rentrer dans les détails (que j&#8217;ignore d&#8217;ailleurs), un <a href="http://ubuntu-fr.org/">Ubuntu</a> live sur clé USB se confectionne uniquement sur une partition formater en FAT32. Un <a href="http://ubuntu-fr.org/">Ubuntu</a> Live présente également un inconvénient majeur, en cela qu&#8217;il n&#8217;a pas de mémoire: tout ce que vous ferez comme personnalisations, installations de programmes ou mises à jour seront perdues à chaque redémarrage.</p>
<p>Comme le barbu est joueur il s&#8217;est dit que tant qu&#8217;à être sur un support supportant la ré-écriture (la clé USB si vous suivez) ça pourrait être sympa d&#8217;avoir un live &laquo;&nbsp;personnalisable&nbsp;&raquo;, comme ça on pourrait faire un peu <span style="text-decoration: line-through;">de facebook</span> d&#8217;<a href="http://identi.ca/">identica</a> avec <a href="http://gwibber.com/">Gwibber</a> ou relever ces mails avec <a href="http://www.mozillamessaging.com/fr/thunderbird/">thunderbird</a>, sans avoir à tout renconfigurer à chaque fois &#8230;</p>
<p><a href="http://blog.mazenod.fr/wp-content/uploads/2010/10/pp-casper.jpg" rel="lightbox[1651]"><img class="alignright size-full wp-image-1659" style="margin: 20px;" title="pp-casper" src="http://blog.mazenod.fr/wp-content/uploads/2010/10/pp-casper.jpg" alt="pp casper Linux Live USB (portable) virtualisé sans limitation de persistance avec partition casper" width="258" height="289" /></a>Alors il a rajouté un petit fichier nommé casper-rw à côté des fichiers d&#8217;<a href="http://ubuntu-fr.org/">Ubuntu</a> et a dit à l&#8217;<a href="http://ubuntu-fr.org/">Ubuntu</a> live d&#8217;écrire tout ce qui était de l&#8217;ordre de la personnalisation ou de la vie du système (les mises à jour etc &#8230;) dans casper-rw. Ca commence à devenir vraiment intéressant car on peut songer à une nouvelle vie, portable, libre, sous GNU/Linux &#8230; hélas il reste encore un inconvénient majeur : le système de fichier Fat32 ne sait gérer que des fichiers dont la taille est inférieure à 4Gb. On ne pourra donc pas avoir plus de 4Gb de données de personnalisation /-) Autrement dit un petit &laquo;&nbsp;aptitude safe-upgrade &nbsp;&raquo; et vous avez rempli casper!</p>
<p>Et bien j&#8217;ai découvert une colossale ruse qui permet de contourner cette limitation sur <a href="http://www.pendrivelinux.com/create-a-larger-than-4gb-casper-partition/">pendrive</a></p>
<p>En fait il s&#8217;agit simplement de créer  une partition ayant pour file system ext2 ou ext3 et pour label casper-rw. Et là vous lui donnez la taille que vous voulez, vous pourrez ainsi installer toutes les applications dont vous avez besoins!</p>
<p>Deux limitations au moins toutefois</p>
<ul>
<li>Pas de mise à jour du Kernel Linux</li>
<li>Pas de gestion des utilisateurs (même pas possible de mettre un mot de passe à l&#8217;utilisateur live)</li>
</ul>
<p>Pour ma part j&#8217;ai opté pour une partition de 30 Go sur un DD USB de 500Go. Il me reste plus de 450Go pour <a href="http://blog.mazenod.fr/2010/09/framatuning-a-base-de-liberkey/">une suite d&#8217;appli portable du genre de la LiberKey ou FramaKey et mes données perso</a>, je vous livre ma méthode à partir de windows 7 pour que vous puissiez le faire tout seul et que vous aussi vous finissiez enfin par choper votre voisine. En gros, pour ne pas avoir à graver un CD Live pour faire l&#8217;opération (comme c&#8217;est suggéré dans le tuto pendrive)</p>
<p><script src="http://blog.mazenod.fr/wp-content/uploads/5.3/swfobject.js" type="text/javascript"></script></p>
<div id="ubuntu-1" style="text-align: center;">This text will be replaced</div>
<p><script type="text/javascript">// <![CDATA[
     var so = new SWFObject('http://blog.mazenod.fr/wp-content/uploads/5.3/player.swf','ply','470','320','9','#000000');   so.addParam('allowfullscreen','true');   so.addParam('allowscriptaccess','always');   so.addParam('wmode','opaque');   so.addVariable('file','http://blog.mazenod.fr/wp-content/uploads/2010/11/ubuntu-1.flv');   so.write('ubuntu-1');
// ]]&gt;</script></p>
<ul>
<li>créer un partition de 6Go FAT 32 avec diskmgmt.msc sous windows</li>
<li>télécharger <a href="http://old.linuxliveusb.com/index.php">LiliUSB creator</a></li>
<li>télécharger la dernière version d&#8217;<a href="http://ubuntu-fr.org/telechargement">Ubuntu</a></li>
<li>installer et lancer <a href="http://old.linuxliveusb.com/index.php">LiliUSB creator</a></li>
<li><a href="http://old.linuxliveusb.com/index.php">LiliUSB creator</a> Etape1 : Sélectionner la partition que vous venez de créer</li>
<li><a href="http://old.linuxliveusb.com/index.php">LiliUSB creator</a> Etape2 : Sélectionner l&#8217;image iso d&#8217;<a href="http://ubuntu-fr.org/telechargement">Ubuntu</a> que vous venez de télécharger</li>
<li><a href="http://old.linuxliveusb.com/index.php">LiliUSB creator</a> Etape3 : régler la persistance à fond</li>
<li><a href="http://old.linuxliveusb.com/index.php">LiliUSB creator</a> Etape4 :
<ul>
<li>décochez &laquo;&nbsp;Cacher les fichiers sur la clé&nbsp;&raquo;</li>
<li>cochez &laquo;&nbsp;Formater la clé en FAT32&#8243;</li>
<li>cochez &laquo;&nbsp;Permettre de lancer LinuxLive directement sous windows (nécessite Internet)&nbsp;&raquo; pour avoir VirtualBox</li>
</ul>
</li>
<li>lancez VirtualBox.exe dans le dossier VirtualBox qui se trouve sur la partition où l&#8217;Ubuntu live a été installé</li>
<li>augmentez un peu la RAM</li>
<li>lancez la machine virtuelle</li>
<li>une fois sous Ubuntu
<ul>
<li>lancez Gparted</li>
<li>créez un partition ext2 ou ext3 de la taille que vous souhaitez en lui donnant pour nom casper-rw</li>
<li>appliquez les modifications</li>
</ul>
</li>
<li>éteignez la machine virtuelle</li>
<li>renommez le fichier casper-rw sur la partition où l&#8217;ubuntu Live a été installé en casper-rw.old par exemple</li>
</ul>
<ul>
<li>relancer la machine virtuelle avec Virtualize_This_Key.exe dans le dossier Virtual Box</li>
<li>optionnel (mais bien pratique): installez les guest additions</li>
</ul>
<div id="ubuntu-2" style="text-align: center;">This text will be replaced</div>
<p><script type="text/javascript">// <![CDATA[
     var so = new SWFObject('http://blog.mazenod.fr/wp-content/uploads/5.3/player.swf','ply','470','320','9','#000000');   so.addParam('allowfullscreen','true');   so.addParam('allowscriptaccess','always');   so.addParam('wmode','opaque');   so.addVariable('file','http://blog.mazenod.fr/wp-content/uploads/2010/11/ubuntu-2.flv');   so.write('ubuntu-2');
// ]]&gt;</script></p>
<p><a href="http://blog.mazenod.fr/2010/09/comment-creer-des-copies-decran-animees-screencast-legeres-et-gratuites-pour-le-web/">Les screencasts ont été réalisés avec des logiciels libres</a> et le montage avec <a href="http://www.virtualdub.org/">virutalDub</a> (libre lui aussi). Ils sont hébergés sur mon serveur donc soyez patients ou téléchargez directement les flv <a href="http://blog.mazenod.fr/wp-content/uploads/2010/11/ubuntu-1.flv">1</a> et <a href="http://blog.mazenod.fr/wp-content/uploads/2010/11/ubuntu-2.flv">2</a> pour les regarder offline.</p>
<h2>Vous connaissiez dejà?</h2>
<p>Ah ouai? depuis quand? je viens de découvrir ça dans <a href="http://old.linuxliveusb.com/fr/faq-persistence/117-how-can-i-have-more-than-4gb-of-persistent-datas-.html">la FAQ de Lili US</a>B &#8230; alors soit c&#8217;est récent, soit j&#8217;étais passé à côté &#8230; Mais dans tous les cas c&#8217;est un outil supplémentair pour faire essayer <a href="http://ubuntu-fr.org/">Ubuntu</a> au plus grand nombre sans toucher à leur machine dans un premier temps. Une fois convaincu y a plus qu&#8217;à cliquer pour libérer leur PC!!! #VLOM</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mazenod.fr/2010/10/linux-live-usb-portable-virtualise-sans-limitation-de-persistance-avec-partition-casper/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
<enclosure url="http://blog.mazenod.fr/wp-content/uploads/2010/11/ubuntu-1.flv" length="713909882" type="video/x-flv" />
<enclosure url="http://blog.mazenod.fr/wp-content/uploads/2010/11/ubuntu-2.flv" length="690302291" type="video/x-flv" />
		</item>
		<item>
		<title>quitter PuTTY pour KiTTY</title>
		<link>http://blog.mazenod.fr/2010/09/quitter-putty-pour-kitty/</link>
		<comments>http://blog.mazenod.fr/2010/09/quitter-putty-pour-kitty/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 18:55:30 +0000</pubDate>
		<dc:creator>mazenovi</dc:creator>
				<category><![CDATA[bricolage]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[libre]]></category>
		<category><![CDATA[portable apps]]></category>
		<category><![CDATA[gratuit]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[PC]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.mazenod.fr/?p=1271</guid>
		<description><![CDATA[<p><a href="../wp-content/uploads/2010/07/a-hellokitty.gif"><img class="alignleft" style="margin-left: 30px; margin-right: 30px;" title="a-hellokitty" src="../wp-content/uploads/2010/07/a-hellokitty.gif" alt="" width="112" height="115" /></a>Ami Barbu, mais pas trop (puisqu'il s'agit d'un article concernant un client SSH mais sous windows), toi qui gère moulte serveurs *NIX, avec aisance, peut-être comme moi ne connais tu pas encore les bienfaits de KiTTY par rappport à PuTTY ...</p>
<p>Si tu veux améliorer ton quotidien sans perdre de temps à reconfigurer les sessions de tes 3243 serveurs un par un, cet article est pour toi</p>
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.mazenod.fr%2F2010%2F09%2Fquitter-putty-pour-kitty%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.mazenod.fr%2F2010%2F09%2Fquitter-putty-pour-kitty%2F&amp;style=normal&amp;b=2" height="61" width="50" title="quitter PuTTY pour KiTTY" alt=" quitter PuTTY pour KiTTY" /><br />
			</a>
		</div>
<p><a href="http://blog.mazenod.fr/wp-content/uploads/2010/07/HELLO1.gif" rel="lightbox[1271]"><img class="alignleft size-full wp-image-1273" style="margin: 20px;" title="HELLO1" src="http://blog.mazenod.fr/wp-content/uploads/2010/07/HELLO1.gif" alt="HELLO1 quitter PuTTY pour KiTTY" width="203" height="201" /></a>Des années que <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">PuTTY</a> est mon meilleur ami pour la gestion de mes serveurs UNIX. Jusque là je n&#8217;avais jamais remis ce petit soft en question et c&#8217;est en <a href="http://blog.mazenod.fr/2010/09/framatuning-a-base-de-liberkey/">installant conjointement la dernière version de la Framakey et de la Liberkey </a>que je me suis intéressé à <a href="http://www.9bis.net/kitty/">KiTTY</a>. Ce dernier ne présente en effet QUE des améliorations par rapport à  à son ancêtre</p>
<h2>Migrer</h2>
<p>Hélas il n&#8217;y a pas de solutions miracles pour importer les sessions de PuTTY vers KiTTY. L&#8217;idée de base est que ces deux softs écrivent les paramètres des sessions dans la base de registre, de manière temporaire s&#8217;ils sont en version portable et de manière permanente sinon.</p>
<p>PuTTY dans la clé HKCU/Software/SimonTatham/PuTTY</p>
<p>et KiTTY dans HKCU/Software/9bis.com/KiTTY</p>
<p>Si vous utilisez PuTTY portable vous devez avoir un répertoire Data/settings/putty.reg dans le répertoire de l&#8217;application. Pour la version non portable il vous faudra exporter manuellement à partir de la base de registre (avec regedit puis clic droit -&gt; exporter sur la clé à exporter) la clé</p>
<p><a href="http://blog.mazenod.fr/wp-content/uploads/2011/07/regedit.png" rel="lightbox[1271]"><img class="aligncenter size-medium wp-image-1538" title="regedit" src="http://blog.mazenod.fr/wp-content/uploads/2011/07/regedit-239x300.png" alt="regedit 239x300 quitter PuTTY pour KiTTY" width="239" height="300" /></a></p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>HKEY_CURRENT_USER\Software\SimonTatham\PuTTY<span style="color: #7a0874; font-weight: bold;">&#93;</span></div></div>
<p>Il faut ensuite éditer cette clé avec un éditeur de texte et faire en rechercher / remplacer de l&#8217;expression &laquo;&nbsp;\SimonTatham\PuTTY&nbsp;&raquo; par &laquo;&nbsp;\9bis.com\KiTTY&nbsp;&raquo;, puis sauvegarder le fichier transformé en kitty.reg sur le bureau. Il n&#8217;y a ensuite qu&#8217;à double cliquer sur ce fichier pour importer les clés que l&#8217;on vient de modifier.</p>
<p>A partir de là il faut maintenant utiliser KiTTY en ligne de commande pour qu&#8217;il aille chercher la configuration dans la base de registre et qu&#8217;il la convertisse en fichier locaux pour que la configuration soit pleinement portable, ce qui se fait via la commande</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">kitty.exe <span style="color: #660033;">-convert-dir</span></div></div>
<p>Normalement 6 répertoires sont créés dans le répertoire de l&#8217;application KiTTY</p>
<h2><a href="http://blog.mazenod.fr/wp-content/uploads/2010/07/Kitty.png" rel="lightbox[1271]"><img class="aligncenter size-full wp-image-1272" title="Kitty" src="http://blog.mazenod.fr/wp-content/uploads/2010/07/Kitty.png" alt="Kitty quitter PuTTY pour KiTTY" width="284" height="240" /></a>Fonctionnalités</h2>
<p>le fichier kitty.ini, dans le répertoire de l&#8217;application permet d&#8217;ajouter <a href="http://www.9bis.net/kitty/">quelques options sympas</a>, dont</p>
<div class="codecolorer-container dos blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="dos codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[KiTTY]<br />
icon=yes            ;permet d'avoir une <span style="color: #33cc33;">&lt;</span>a href=&quot;http://www.9bis.net/kitty/?page=That<span style="color: #33cc33;">%</span><span style="color: #448888;">2</span>7s<span style="color: #33cc33;">%</span><span style="color: #448888;">2</span>0all<span style="color: #33cc33;">%</span><span style="color: #448888;">2</span>0folks<span style="color: #33cc33;">&amp;</span>amp;zone=fr&quot;<span style="color: #33cc33;">&gt;</span>icone par session<span style="color: #33cc33;">&lt;</span>/a<span style="color: #33cc33;">&gt;</span><br />
transparency=yes ;permet de faire le cake en réglant la <span style="color: #33cc33;">&lt;</span>a href=&quot;http://www.9bis.net/kitty/?page=Transparence<span style="color: #33cc33;">&amp;</span>amp;zone=fr&quot;<span style="color: #33cc33;">&gt;</span>transparence de la fenêtre avec ctrl + et ctrl -<span style="color: #33cc33;">&lt;</span>/a<span style="color: #33cc33;">&gt;</span></div></div>
<h2>à Voir aussi</h2>
<ul>
<li><a href="http://www.9bis.net/kitty/">site officiel de KiTTY</a></li>
<li><a href="http://www.thegeekstuff.com/2008/08/turbocharge-putty-with-12-powerful-add-ons-software-for-geeks-3/">Turbocharge PuTTY with 12 Powerful Add-Ons – Software for Geeks #3</a></li>
<li><a href="http://puttycm.free.fr/cms/">PuTTY Connection Manager website</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.mazenod.fr/2010/09/quitter-putty-pour-kitty/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>FramaTuning à base de LiberKey</title>
		<link>http://blog.mazenod.fr/2010/09/framatuning-a-base-de-liberkey/</link>
		<comments>http://blog.mazenod.fr/2010/09/framatuning-a-base-de-liberkey/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 20:04:42 +0000</pubDate>
		<dc:creator>mazenovi</dc:creator>
				<category><![CDATA[bricolage]]></category>
		<category><![CDATA[libre]]></category>
		<category><![CDATA[portable apps]]></category>
		<category><![CDATA[gratuit]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[PC]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.mazenod.fr/?p=1259</guid>
		<description><![CDATA[<p><a href="../wp-content/uploads/2010/07/2t_liberkey-th.jpg.png"><img class="alignleft" style="margin-left: 30px; margin-right: 30px;" title="2t_liberkey-th.jpg" src="../wp-content/uploads/2010/07/2t_liberkey-th.jpg.png" alt="" width="100" height="100" /></a>La <a href="http://www.framakey.org/">Framakey</a> est une suite libre d'applications libres. Malgré tout elle se révèle parfois insuffisante et peut être complétée avantageusement par une autre suite d'application portable: la <a href="http://www.liberkey.com/">LiberKey</a>.</p>
<p>Vous verrez dans ce post comment faire cohabiter les deux suites sur une même clé USB</p>
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.mazenod.fr%2F2010%2F09%2Fframatuning-a-base-de-liberkey%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.mazenod.fr%2F2010%2F09%2Fframatuning-a-base-de-liberkey%2F&amp;style=normal&amp;b=2" height="61" width="50" title="FramaTuning à base de LiberKey" alt=" FramaTuning à base de LiberKey" /><br />
			</a>
		</div>
<p><a href="http://blog.mazenod.fr/wp-content/uploads/2010/07/liberkey.jpg" rel="lightbox[1259]"><img class="alignleft size-medium wp-image-1285" style="margin: 30px;" title="liberkey" src="http://blog.mazenod.fr/wp-content/uploads/2010/07/liberkey-156x300.jpg" alt="liberkey 156x300 FramaTuning à base de LiberKey" width="156" height="300" /></a>La <a href="http://www.framakey.org/">Framakey</a> est un projet très fonctionnel, je ne le répèterai jamais assez. C&#8217;est également un projet entièrement open source qui s&#8217;adresse au large public des windowsiens (et un peu celui des macistes également). En celà la Framakey est probablement l&#8217;une des meilleures promotions pour le logiciel libre &#8230;</p>
<p>La philosophie  proposée par Richard Stallmann est complètement respecté dans ce projet en ce sens qu&#8217;il n&#8217;intègre que des logiciels libre et qu&#8217;il est lui même libre. Dans sa biographie &laquo;&nbsp;Richard Stallman et la révolution du logiciel libre&nbsp;&raquo;, la prise de position est claire: &laquo;&nbsp;Si j’ai besoin d’une chose et qu’elle n’existe pas dans sa forme libre  alors je ne l’utilise pas. Je contribue si je le peux à la création de  la version libre de cette chose&nbsp;&raquo;.</p>
<p>C&#8217;est probablement parce qu&#8217;il est si tranché que RMS est effectivement le ché d&#8217;une révolution. De mon modeste point de vue si un simple gratuit suffit à mes besoins, je vais l&#8217;utiliser &#8230; Or cette philosophie si elle n&#8217;est pas celle de la <a href="http://www.framakey.org/">framakey</a>, est celle de la <a href="http://www.liberkey.com/">liberkey</a> qui est plus orientée vers le gratuit que vers le libre (plus vers les &laquo;&nbsp;free beers&nbsp;&raquo; que vers la &laquo;&nbsp;freedom&nbsp;&raquo; <img src='http://blog.mazenod.fr/wp-includes/images/smilies/icon_wink.gif' alt="icon wink FramaTuning à base de LiberKey" class='wp-smiley' title="FramaTuning à base de LiberKey" />  )</p>
<p>Comme j&#8217;aime bien les hybrides,  et que j&#8217;ai du mal à me déicder entre les grandes idées et les outils pratiques, je vous propose une cohabitation de ses deux suites d&#8217;applications portables.</p>
<p>Comme vous êtes d&#8217;un naturel curieux et sceptique (si si je le sens bien!) vous me demanderez:</p>
<h1>Pourquoi faire cohabiter la FramaKey et la LiberKey?</h1>
<p>Pour deux raisons esssentielles:</p>
<p>La première que j&#8217;ai partiellement évoquée en introduction qui est une manière de ne pas trancher entre la liberté (pure <img src='http://blog.mazenod.fr/wp-includes/images/smilies/icon_wink.gif' alt="icon wink FramaTuning à base de LiberKey" class='wp-smiley' title="FramaTuning à base de LiberKey" />  ) de la FramaKey et <a href="http://www.liberkey.com/fr/catalogue/parcourir.html"><span style="text-decoration: line-through;">le gros</span> l&#8217;énorme catalogue d&#8217;applications de la LiberKey</a> incluant tout un tas de simples gratuits bien pratiques</p>
<p>La deuxième raison est le système de mise à jour des applications: si synapps l&#8217;application qui gère la mise à jour des applications installées sur la framakey est un beau projet, il est pour le moment moins fonctionnel que le système de mise à jour de la LiberKey. Dans la mesure où synapps est complètement ouvert et en python alors que le code de l&#8217;équivalent liberkey n&#8217;est pas accessible, je ne peux me satisfaire ni de l&#8217;un ni de l&#8217;autre pour le moment</p>
<h1><a href="http://blog.mazenod.fr/wp-content/uploads/2010/07/saintignucius.jpg" rel="lightbox[1259]"><img class="size-medium wp-image-1276 alignright" style="margin: 20px;" title="saintignucius" src="http://blog.mazenod.fr/wp-content/uploads/2010/07/saintignucius-216x300.jpg" alt="saintignucius 216x300 FramaTuning à base de LiberKey" width="216" height="300" /></a></h1>
<h1>Ma démarche</h1>
<p>sera donc une &laquo;&nbsp;adaptation&nbsp;&raquo; de la pensée de St IGNUcius (qu&#8217;il me pardonne de prendre mes aises avec sa philosophie):</p>
<ul>
<li>Tout ce qui pourra être installer et mis à jour sur la FramaKey via Synapps le sera</li>
<li>Tout ce qui n&#8217;est pas disponible via synapps sera installé et synchronisé via la LiberKey</li>
<li>Tout ce qui n&#8217;est géré ni par l&#8217;un ni par l&#8217;autre, sera installé dans un répertoire à part, qui contiendradonc toutes les applications à mettre à jour manuellement</li>
</ul>
<h1>Pourquoi privilégier la FramaKey?</h1>
<p>Outre l&#8217;aspect philosophique, le FramaLauncher, est un peu plus souple que le launcher de la LiberKey, comme lui</p>
<ul>
<li>Il permet de faire référence à des applications portables non FramaKey</li>
<li>Il permet de créer des réccourcis (portables) vers n&#8217;importe quel dossier ou fichier de la clé</li>
<li>Il permet également d&#8217;ajouter des paramètres au lancement d&#8217;une application</li>
</ul>
<p>Mais en plus</p>
<ul>
<li>Il permet de lancer un groupe d&#8217;applications: du genre un éditeur de texte + un navigateur + un environnement XAMPP ou UwAmp par exemple</li>
</ul>
<h1>Comme va se passer la cohabitation?</h1>
<p>Le plus simplement du monde. Le seul problème à résoudre est le répertoire des applications qui est le même pour la FramaKey et la LiberKey &laquo;&nbsp;\Apps&nbsp;&raquo;. L&#8217;idée est de ne pas toucher aux paramètres de la framakey et de changer le path de la liberKey en &laquo;&nbsp;\LiberKeyApps&nbsp;&raquo;, en remplaçant ..\..\Apps par ..\..\LiberKeyApps dans</p>
<ul>
<li>\LiberKeyTools\LiberKeyMenu\LiberKeyMenu.xml</li>
<li>\LiberKeyTools\Installer\LKInst.xml</li>
</ul>
<p>La LiberKey créé un répertoire &laquo;&nbsp;\MyApps&nbsp;&raquo; pour les applications non LiberKey, que je propose de garder pour les applications gérées ni par la FramaKey, ni par la LiberKey.</p>
<h1>Et maintenant?</h1>
<p>Il reste à faire son marché, et à installer et configurer les applications dont vous vous servez, messagerie, navigateur, outil de diagnostique, suite bureautique, jeux et pourquoi pas un <a href="http://blog.mazenod.fr/2009/11/environnement-de-developpement-portable-pour-symfony-framakey/">environnement de développement</a> ?</p>
<p>Personellement j&#8217;utilise en plus deux launchers supplémentaires</p>
<h2>CircleDock</h2>
<p><a href="http://circledock.wikidot.com/">circledock</a> est un launcher extrêment souple et personnalisable, qui permet d&#8217;accéder à vos applications préférées en 1 clic, ou en utilisant les bords réactifs de votre écran, ou encore une touche de votre clavier. Une fois installé sur votre ordianteur, il propose une version portable qui permet de créer des raccourcis (portables) vers les programmes gérés par la LiberKey et ou la FramaKey avec un simple glisser / déposer</p>
<div style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/9ko36ebOg9U?fs=1&amp;hl=fr_FR" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/9ko36ebOg9U?fs=1&amp;hl=fr_FR" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
<h2>RocketDock</h2>
<p><a href="http://www.youtube.com/watch?v=d6UVb15it6A&amp;feature=player_embedded">RocketDock</a> lui permet d&#8217;avoir un dock à la manière de mac os X, il est également assez souple et bénéficie surtout de tout un tas de <a href="http://rocketdock.com/addons/skins">skins</a> qui raviront les plus geeks d&#8217;entre vous!</p>
<div style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="align" value="center" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/d6UVb15it6A?fs=1&amp;hl=fr_FR" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/d6UVb15it6A?fs=1&amp;hl=fr_FR" allowscriptaccess="always" allowfullscreen="true" align="center"></embed></object></div>
<h1>En guise de conclusion</h1>
<p>Bien entendu vous pouvez installer soit la Framakey, soit la LiberKey cet article n&#8217;est qu&#8217;une proposition permettant de suivre et d&#8217;utiliser les deux suites &#8230; Faites en ce que vous voulez <img src='http://blog.mazenod.fr/wp-includes/images/smilies/icon_biggrin.gif' alt="icon biggrin FramaTuning à base de LiberKey" class='wp-smiley' title="FramaTuning à base de LiberKey" /> </p>
<p>Dans un cas comme dans l&#8217;autre il est possible de coupler votre suite d&#8217;application portable à un <a href="http://blog.mazenod.fr/2010/09/framakey-ubuntu-remix-performance-securite/">linux avec les profils firefox et thunderbird partagés</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mazenod.fr/2010/09/framatuning-a-base-de-liberkey/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Framakey Ubuntu Remix – sécurité &amp; performance</title>
		<link>http://blog.mazenod.fr/2010/09/framakey-ubuntu-remix-performance-securite/</link>
		<comments>http://blog.mazenod.fr/2010/09/framakey-ubuntu-remix-performance-securite/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 18:00:02 +0000</pubDate>
		<dc:creator>mazenovi</dc:creator>
				<category><![CDATA[bricolage]]></category>
		<category><![CDATA[libre]]></category>
		<category><![CDATA[portable apps]]></category>
		<category><![CDATA[gratuit]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[PC]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.mazenod.fr/?p=1158</guid>
		<description><![CDATA[<p><a href="http://blog.mazenod.fr/wp-content/uploads/2010/07/stallman.jpg"><img class="alignleft" style="margin-left: 20px; margin-right: 20px;" title="KONICA MINOLTA DIGITAL CAMERA" src="http://blog.mazenod.fr/wp-content/uploads/2010/07/stallman.jpg" alt="" width="193" height="180" /></a>Après un an d'utilisation intensive de la  Framakey, j'ai profité de la dernière version de la suite  d'applications portables de Framasoft, pour réfléchir un peu à comment  tirer les meilleures performances de cette suite applicative, et comment la rendre un  peu plus sécurisée, en cas de perte ou de vol ...</p>
<p>Si vous avez envie de bricoler utile, ce post est fait pour vous!</p>
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.mazenod.fr%2F2010%2F09%2Fframakey-ubuntu-remix-performance-securite%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.mazenod.fr%2F2010%2F09%2Fframakey-ubuntu-remix-performance-securite%2F&amp;style=normal&amp;b=2" height="61" width="50" title="Framakey Ubuntu Remix – sécurité & performance" alt=" Framakey Ubuntu Remix – sécurité & performance" /><br />
			</a>
		</div>
<h2>Sécurité</h2>
<p>Après un an d&#8217;utilisation, ma FramaKey contient un arsenal d&#8217;applications complet, toutes configurées, du simple éditeur de texte, à la messagerie, en passant par l&#8217;IM, et les accès SSH à mes serveurs, ainsi que TOUTES mes données persos: des archives, de la documentation, des factures, mes déclarations d&#8217;impots, des scans de ma carte d&#8217;identité, de ma carte vitale &#8230;</p>
<p>En gros accéder à ma framaKey équivaut simplement à la possibilité d&#8217;emprunter mon identité &#8230; numérique et plus si affinité! Sous ces conditions crypter ces données paraît une bonne idée.</p>
<p>Vu le caractère multiplateforme de la FramaKey, <a href="http://www.truecrypt.org/">TrueCrypt</a> disponible  sous linux / windows / MAC OS semble l&#8217;outil le plus approprié. Ca  tombe bien d&#8217;ailleurs puisque Framasoft a dèjà fait un tuto sur l&#8217;<a href="http://www.framakey.org/Tutoriels/SecuriserAvecTrueCrypt">installation  de la Framakey avec TrueCrypt</a>.</p>
<h2>Performances</h2>
<p>La rapidité d&#8217;exécution des applications portables est cruciale, pour l&#8217;améliorer il convient de prendre en compte deux paramètres : le système de fchier (FAT/FAT32/NTFS/ &#8230;) et la nature du support (clé USB ou disque dur USB)</p>
<p>Si vous voulez vous faire une idée voici à titre indicatif les <a href="http://framakey.org/Utils/FramakeyDriveBenchmarkTest">perfs obtenues sur les différentes marques de clés USB</a>. Sachant que vous pouvez faire vous même vos propres tests avec l&#8217;application <a href="http://framakey.org/Utils/FramakeyDriveBenchmark">Framakey Drive Benchamrk</a>.</p>
<p>Voici les miens à partir d&#8217;un DD USB Iomega et d&#8217;une clé USB Corsair Flash Voyager GT 16Go.</p>
<table border="1">
<thead>
<tr>
<td style="border: 1px solid #7f8080;"></td>
<td style="border: 1px solid #7f8080; background-color: #f5f5f5;" colspan="6">File system</td>
</tr>
<tr>
<td style="border: 1px solid #7f8080; background-color: #f5f5f5;" rowspan="4">Device</td>
<td style="border: 1px solid #7f8080;" colspan="3">FAT32</td>
<td style="border: 1px solid #7f8080;" colspan="3">NTFS</td>
</tr>
<tr>
<td style="border: 1px solid #7f8080;" rowspan="2">normal</td>
<td style="border: 1px solid #7f8080;" colspan="2">encrypted</td>
<td style="border: 1px solid #7f8080;" rowspan="2">normal</td>
<td style="border: 1px solid #7f8080;" colspan="2">encrypted</td>
</tr>
<tr>
<td style="border: 1px solid #7f8080;">FAT32</td>
<td style="border: 1px solid #7f8080;">NTFS</td>
<td style="border: 1px solid #7f8080;">FAT32</td>
<td style="border: 1px solid #7f8080;">NTFS</td>
</tr>
</thead>
<tbody>
<tr>
<td style="border: 1px solid #7f8080; background-color: #f5f5f5;">Iomega</td>
<td style="border: 1px solid #7f8080;">13007,14kb/s (4.78s)</td>
<td style="border: 1px solid #7f8080;">67362,51kb/s (0.92s)</td>
<td style="border: 1px solid #7f8080;">64851,34kb/s (0.96s)</td>
<td style="border: 1px solid #7f8080;">14375,32kb/s (4.33s)</td>
<td style="border: 1px solid #7f8080;">137385.14kb/s (0.45s)</td>
<td style="border: 1px solid #7f8080;">87738.25kb/s (0.71s)</td>
</tr>
<tr>
<td style="border: 1px solid #7f8080; background-color: #f5f5f5;">Voyager</td>
<td style="border: 1px solid #7f8080;">3953.63kb/s (15.74s)</td>
<td style="border: 1px solid #7f8080;">144511.99kb/s (0.43s)</td>
<td style="border: 1px solid #7f8080;">81822.81kb/s (0.76s)</td>
<td style="border: 1px solid #7f8080;">3350.64kb/s (18.57s)</td>
<td style="border: 1px solid #7f8080;">148863.05kb/s (0.42s)</td>
<td style="border: 1px solid #7f8080;">57178.41kb/s (1.09s)</td>
</tr>
</tbody>
</table>
<p>J&#8217;ai tenu à mesurer les performances obtenues avec des partitions cryptées avec TrueCrypt (en FAT32 et en NTFS), mais je trouve les résultats assez surréalistes!! Je ne m&#8217;attendais pas à ce que les temps d&#8217;accès diminuent pour les partitions cryptées o_O&#8217;</p>
<p>Un résultat attendu, en revanche, qui justifie en parti l&#8217;écriture de ce post, est que les temps d&#8217;accès sont considérablement réduits sur un DD USB par  rapport à une clé USB (même performante) &#8230;</p>
<p>Le choix du Filesystem NTFS est également une bonne idée, mais il &laquo;&nbsp;casse&nbsp;&raquo; les profils partagés avec l&#8217;Ubuntu portable qui lui est forcément sur une partition FAT32, donc séparée!</p>
<h2>Réflexion</h2>
<p>Pour satisafire à mes exigences de performance (, d&#8217;espace) et de sécurité je vais utiliser un disque dur USB 500Go, plus rapide en écriture qu&#8217;une simple clé et le partitionner. Sur une petite partition 10Go formater en FAT, je vais installer un Ubuntu persistent. Sur le reste du disque partitionné en NTFS, je vais créer une partition cryptée avec TrueCrypt qui contiendra ma suite d&#8217;applications portables et mes données personnelles.</p>
<h2>Prérequis</h2>
<ul>
<li>un disque dur USB, prêt à être formaté (pas de données dessus donc)</li>
<li>La dernière version de la <a href="http://www.framakey.org/Pack/Framakey-Ubuntu">Framakey Ubuntu Remix</a> (dézipper, dans un coin de votre ordinateur)</li>
<li>Le logiciel <a href="http://www.framakey.org/Pack/Framakey-Ubuntu">TrueCrypt</a> en version windows</li>
</ul>
<h2>Action</h2>
<p>L&#8217;idée est donc de partitionner un disque dur USB (une partition USBuntu pour le linux, et une partition FRAMAKEY pour la suite d&#8217;application portable du même nom) et de rendre l&#8217;une de ses partitions bootable. Pour le partitionnement je vous propose d&#8217;utiliser l&#8217;utilitaire de gestion des disques intégré à windows : diskmgmt.msc</p>
<p style="text-align: center;"><br /><img src="http://blog.mazenod.fr/wp-content/uploads/2010/07/partition.png" alt="partition Framakey Ubuntu Remix – sécurité & performance"  title="Framakey Ubuntu Remix – sécurité & performance" /><br />
</p>
<h3>Installation d&#8217;Ubuntu portable et persistant sur la partition USBuntu</h3>
<p>Là il y a une grosse feinte &#8230; en effet l&#8217;utilitaire framaboot proposé par framasoft ne permet pas de rendre bootable un disque dur USB, il ne marche QUE pour les clés. Si vous souhaitez vraiment utiliser le linux livré avec la FramaKey vous pouvez lire cette <a href="http://forum.framasoft.org/viewtopic.php?f=73&amp;t=32674">petite astuce sur Framagora</a>.</p>
<p>Sinon je vous propose cette solution, qui utilise une application  nommée <a href="http://www.linuxliveusb.com/">LiLiUsbCreator</a>Portable, disponible dans le répertoire Apps de la Framakey que vous avez téléchargé</p>
<ul>
<li>Etape1 : choisissez la partition de 10Go que vous venez de créer</li>
<li>Etape2 : choisissez « télécharger » puis sélectionnez « ubuntu  10.0.4″ puis cliquez sur automatiquement</li>
<li>Eatpe3 : réglez la persistance à fond 3950Mo</li>
<li>Etape4 : cochez toutes les options</li>
<li>Etape 5 : cliquez sur l’éclair</li>
</ul>
<p>Vous devez avoir quelque chose comme ça au final …</p>
<p><a href="http://blog.mazenod.fr/wp-content/uploads/2010/07/liliUSBCreator.png" rel="lightbox[1158]"><br />
</a><a href="http://blog.mazenod.fr/wp-content/uploads/2010/07/liliUSBCreator.png" rel="lightbox[1158]"><img class="aligncenter size-medium wp-image-1229" title="liliUSBCreator" src="http://blog.mazenod.fr/wp-content/uploads/2010/07/liliUSBCreator-176x300.png" alt="liliUSBCreator 176x300 Framakey Ubuntu Remix – sécurité & performance" width="176" height="300" /></a></p>
<h3>Installation de la framakey sur une partition cryptée</h3>
<p>L’idée est de suivre pas à pas le tuto d’<a href="http://www.framakey.org/Tutoriels/SecuriserAvecTrueCrypt">installation   de la Framakey avec TrueCrypt</a>, sur la partition FRAMAKEY</p>
<h2>Le temps de test est venu</h2>
<p>connectez votre disque dur USB à votre PC, démarrez votre machine, règlez le BIOS pour booter sur le disque dur USB, et vous devriez voir apparaître un menu Ubutnu, sélectionner le &laquo;&nbsp;mode persistant&nbsp;&raquo;, vous êtes sur votre Ubuntu portable  &#8230; vous pouvez monter votre partition cryptée en installant <a href="http://doc.ubuntu-fr.org/truecrypt">truecrypt sur votre linux</a>, comme indiqué dans la section &laquo;&nbsp;monter un dossier crypté&nbsp;&raquo;:</p>
<ul>
<li>faites un clic droit sur le premier icone de disqur dur</li>
<li>sélectionner&nbsp;&raquo;Select File and Mount &#8230;&nbsp;&raquo;</li>
<li>Aller chercher le fichier fk sur la partition framakey</li>
<li>Taper le mot de passe</li>
<li>enjoy <img src='http://blog.mazenod.fr/wp-includes/images/smilies/icon_smile.gif' alt="icon smile Framakey Ubuntu Remix – sécurité & performance" class='wp-smiley' title="Framakey Ubuntu Remix – sécurité & performance" /> </li>
</ul>
<h2>Virtualisation</h2>
<p>Vous ne pourrez pas virtualiser l&#8217;Ubuntu persistant installé sur la  première partition du disque. <a href="http://www.linuxliveusb.com/fr/step3.html">VirtualBox ne  fonctionne pas dans le contexte d&#8217;un linux persistant sous Vista ni  seven</a> (je suis sous seven) &#8230; Dommage!</p>
<p>Si  vous êtes sous XP, ou que vous utilisez un Ubuntu Live vous pouvez vous  référer à ce <a href="http://www.pendrivelinux.com/boot-a-usb-flash-drive-in-virtualbox/">tuto  pour  virtualiser votre système portable avec virtualbox</a>, ou utiliser l&#8217;exécutable présent sur la clé nommé &laquo;&nbsp;virtualize_this_key.exe&nbsp;&raquo;.</p>
<h2>Sécuriser Ubuntu</h2>
<p>Je n&#8217;ai pas vraiment trouvé comment faire &#8230; en effet je n&#8217;ai pas été en mesure de créer un nouvel utilisateur (auquel j&#8217;aurais pu affecté des dossiers personnels cryptés) et pire je n&#8217;ai pas réussi à mettre de mot de passe à l&#8217;utilisateur live par défaut (ubuntu) &#8230; J&#8217;imagine que c&#8217;est une des limitations des Linux portables, mais je n&#8217;ai trouvé nul part d&#8217;explication &#8230; si vous en avez une : les commentaires sont ouverts!</p>
<h2>Profils partagés</h2>
<p>La fonctionnalité qui a été &laquo;&nbsp;cassé&nbsp;&raquo; donc, c&#8217;est la synchro de  FireFox et Thunderbird en environnement Windows / Linux / Mac. On doit  pouvoir récupérer ça en configurant correctement les préférences de l&#8217;utilisateur ubuntu que nous venons de créer, vu qu&#8217;il n&#8217;y a <a href="http://forum.framasoft.org/viewtopic.php?f=133&amp;t=32571&amp;p=264611&amp;hilit=profils+partag%C3%A9s">pas de mystère quant au partage des profils de Firefox et Thunderbird avec la Framakey</a>.</p>
<p>Imaginons que le volume crypter soit monter sur /truecrypt/</p>
<p>pour firefox :</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>truecrypt<span style="color: #000000; font-weight: bold;">/</span>Apps<span style="color: #000000; font-weight: bold;">/</span>FramafoxPortable<span style="color: #000000; font-weight: bold;">/</span>Data<span style="color: #000000; font-weight: bold;">/</span>profile<span style="color: #000000; font-weight: bold;">/</span> .mozilla<span style="color: #000000; font-weight: bold;">/</span>firefox<span style="color: #000000; font-weight: bold;">/</span>9ixdkipx.default</div></div>
<p>pour thunderbird :</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>truecrypt<span style="color: #000000; font-weight: bold;">/</span>Apps<span style="color: #000000; font-weight: bold;">/</span>FramabirdPortable<span style="color: #000000; font-weight: bold;">/</span>Data<span style="color: #000000; font-weight: bold;">/</span>profile<span style="color: #000000; font-weight: bold;">/</span> &nbsp;.mozilla-thunderbird<span style="color: #000000; font-weight: bold;">/</span>9ixdkipx.default</div></div>
<p>pour pidgin</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>truecrypt<span style="color: #000000; font-weight: bold;">/</span>Apps<span style="color: #000000; font-weight: bold;">/</span>PortablePidgin<span style="color: #000000; font-weight: bold;">/</span>Data<span style="color: #000000; font-weight: bold;">/</span>settings<span style="color: #000000; font-weight: bold;">/</span>.purple .purple</div></div>
<p>Pour vos documents</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>truecrypt<span style="color: #000000; font-weight: bold;">/</span>Data<span style="color: #000000; font-weight: bold;">/</span>  Data</div></div>
<p>etc &#8230;</p>
<p>Nous y voilà! vous avez un disque dur entièrement crypté, rempli d&#8217;applications portables et multiplateformes &#8230; de quoi ballader votre vie numérique en toute sécurité!</p>
<p>Notez que maintenant tout n&#8217;est plus qu&#8217;une question de goût dans la mesure ou vous pouvez coupler n&#8217;importe quelle suite d&#8217;application portable à n&#8217;importe quelle distro linux gérées par <a href="http://www.linuxliveusb.com/">LinuxLiveUsbCreator</a>.</p>
<h2>Plus d&#8217;applications portables &#8230;</h2>
<ul>
<li><a href="http://framakey.org/Portables/Index">http://framakey.org/Portables/Index</a></li>
<li><a href="http://www.liberkey.com/fr/catalogue/parcourir.html">http://www.liberkey.com/fr/catalogue/parcourir.html</a></li>
<li><a href="http://portableapps.com/apps">http://portableapps.com/apps</a></li>
<li><a href="http://www.portablefreeware.com/">http://www.portablefreeware.com/</a></li>
<li><a href="http://www.pendriveapps.com/">http://www.pendriveapps.com/</a></li>
<li><a href="http://web5s.over-blog.com/">SansBurOFixe</a></li>
<li><a href="http://usbsoft.org/">http://usbsoft.org/</a></li>
<li><a href="http://www.winpenpack.com">http://www.winpenpack.com</a></li>
<li><a href="http://portablelinuxapps.org/">http://portablelinuxapps.org/</a></li>
<li><a href="http://www.makeuseof.com/tag/portable-software-usb/">100 Portable Apps for your USB Stick (for Mac and Win)</a></li>
</ul>
<p>PS: faites des sauvegardes régulières hein?!?</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 2645px; width: 1px; height: 1px; overflow: hidden;">
<h1>100 Portable Apps for your USB Stick (for Mac and Win)</h1>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.mazenod.fr/2010/09/framakey-ubuntu-remix-performance-securite/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Comment créer des copies d’écran animées (screencast) légères et gratuites pour le web</title>
		<link>http://blog.mazenod.fr/2010/09/comment-creer-des-copies-decran-animees-screencast-legeres-et-gratuites-pour-le-web/</link>
		<comments>http://blog.mazenod.fr/2010/09/comment-creer-des-copies-decran-animees-screencast-legeres-et-gratuites-pour-le-web/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 12:30:12 +0000</pubDate>
		<dc:creator>mazenovi</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[bricolage]]></category>
		<category><![CDATA[libre]]></category>
		<category><![CDATA[portable apps]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[gratuit]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[PC]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.mazenod.fr/?p=1163</guid>
		<description><![CDATA[<p><a href="../wp-content/uploads/2010/07/camstudio.png"><img class="alignleft" style="margin-left: 20px; margin-right: 20px;" title="camstudio" src="../wp-content/uploads/2010/07/camstudio.png" alt="" width="172" height="179" /></a>Quoi de plus didactique qu'un screencast?</p>
<p>Voici un petit tuto qui vous permettra simplement de faire des copies d'écran animées gratuites, légères et optimales pour le web ...</p>
<p>Et bien entendu une attention particulière est portée à la portabilité du tout!</p>
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.mazenod.fr%2F2010%2F09%2Fcomment-creer-des-copies-decran-animees-screencast-legeres-et-gratuites-pour-le-web%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.mazenod.fr%2F2010%2F09%2Fcomment-creer-des-copies-decran-animees-screencast-legeres-et-gratuites-pour-le-web%2F&amp;style=normal&amp;b=2" height="61" width="50" title="Comment créer des copies d’écran animées (screencast) légères et gratuites pour le web" alt=" Comment créer des copies d’écran animées (screencast) légères et gratuites pour le web" /><br />
			</a>
		</div>
<p>faire un screencast sans passer par des outils payants n&#8217;est pas un mince affaire. L&#8217;idée est d&#8217;obtenir un format flv de taille et de qualité raisonnable en sortie afin de pouvoir l&#8217;intégrer à son sitye via un player du genre <a href="http://www.longtailvideo.com/players/jw-flv-player/">jwpalyer</a>.</p>
<p>Si le studio pouvait être mobile (i.e. les applications utilisées portables), ce serait un plus indéniable en ce qui me concerne!</p>
<p>Il y a longtemps que je connais <strong><a href="http://camstudio.org/">Camstudio</a></strong>, qui fonctionne très bien, qui est portable (il suffit de copier le répertoire d&#8217;installation à partir de &laquo;&nbsp;&nbsp;&raquo;Program Files&nbsp;&raquo;), mais qui a tendance à produire des fichiers volumineux.</p>
<h2>le codec qui va bien</h2>
<p>Ce que j&#8217;ai découvert en revanche c&#8217;est le <a href="http://camstudio.org/blog/camstudio-lossless-codec-v14-released"><strong>Camstudio Lossless Codec</strong></a> qui optimise grandement la taille des vidéos.</p>
<p>Une fois que vous aurez téléchargé et décompressez l&#8217;archive, il vous suffira d&#8217;un clic droit sur le fichier camcodec.inf, (séléctionnez &laquo;&nbsp;installer&nbsp;&raquo;) pour installer le codec sur votre système &#8230; D&#8217;un point de vue de la portabilité, cette opération est à reproduire sur chaque système avec lequel vous ferez des screencats</p>
<p>Il faut ensuite sélectionner ce codec dans CamStudio Recorder &laquo;&nbsp;options&nbsp;&raquo; -&gt; &laquo;&nbsp;video Options&nbsp;&raquo; -&gt; sélectionner &laquo;&nbsp;CamStudio LossLess Codec v1.4&#8243; dans la liste &laquo;&nbsp;Compressor&nbsp;&raquo;.</p>
<h2>La prise de son</h2>
<p>J&#8217;ai longtemps (et bêtement) fait les commentaires de mes screencasts en live, c&#8217;est à dire même temps que je réalisais les actions à enregistrer, ce qui demande une certaine logisitique (texte préparé sur un document word, sur un deuxième ou troisème écran) et un certain respect du timing, qui rend l&#8217;exercice assez fastidieux &#8230;</p>
<p>Bref que ce soit avec un simple <strong><a href="http://sourceforge.net/projects/minirec/">MiniRec</a> </strong>ou avec <a href="http://framakey.org/Portables/AudacityPortable?from=Portables.PortableAudacity"><strong>Audacity portable</strong></a>, il est bien plus pratique de différer la prise de son<strong> </strong>et de la monter ensuite</p>
<h2>Le montage<strong><br />
</strong></h2>
<p><strong><a href="http://portableapps.com/apps/music_video/virtualdub_portable">VirtualDub</a></strong> est léger, portable, et très intuitif. Son seul défaut est en vérité d&#8217;utiliser par défaut des codecs pas optimisés pour deux sous. Donc une fois que vous avez monter votre screencast, pensez à sélectionner &laquo;&nbsp;Videos&nbsp;&raquo; -&gt; &laquo;&nbsp;Direct stream copy&nbsp;&raquo; avant de &laquo;&nbsp;save AS AVI&nbsp;&raquo;, sans quoi vous vous retrouveriez avec un fichier AVI énorme</p>
<p>La dernière opération consiste en la conversion en flv de l&#8217;animation  <strong><a href="http://ffmpeg.org/">FFmpeg</a> <a href="http://www.videohelp.com/tools/ffmpeg">[Lien direct vers le bianire windows]</a> </strong>qui se fait via la ligne de commande suivante<strong> </strong></p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-i</span> input.avi <span style="color: #660033;">-vcodec</span> flashsv output.flv</div></div>
<p>ou en ajoutant la piste audio au format wav indépendamment</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-i</span> input.avi <span style="color: #660033;">-i</span> input.wav <span style="color: #660033;">-ar</span> <span style="color: #000000;">22050</span> <span style="color: #660033;">-vcodec</span> flashsv output.flv</div></div>
<p>Cela sous entend bien sûr que ffmpeg soit accessible via la ligne de commande, que le fichier video soit nommé input.avi et le fichier son input.wav <img src='http://blog.mazenod.fr/wp-includes/images/smilies/icon_wink.gif' alt="icon wink Comment créer des copies d’écran animées (screencast) légères et gratuites pour le web" class='wp-smiley' title="Comment créer des copies d’écran animées (screencast) légères et gratuites pour le web" /> </p>
<p><strong>source : </strong><a href="http://blog.creonfx.com/flash/howto-create-lossless-flash-screen-captures-screencasts-for-free">http://blog.creonfx.com/flash/howto-create-lossless-flash-screen-captures-screencasts-for-free</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mazenod.fr/2010/09/comment-creer-des-copies-decran-animees-screencast-legeres-et-gratuites-pour-le-web/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

