<?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>~lionel.porcheron &#187; GNU/Linux</title>
	<atom:link href="http://www.porcheron.info/tag/gnu-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.porcheron.info</link>
	<description></description>
	<lastBuildDate>Sun, 31 Jan 2010 17:21:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Better jesred rules</title>
		<link>http://www.porcheron.info/better-jesred-rules/</link>
		<comments>http://www.porcheron.info/better-jesred-rules/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 08:56:49 +0000</pubDate>
		<dc:creator>Lionel Porcheron</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.porcheron.info/?p=66</guid>
		<description><![CDATA[A friend of mine give me better rules for jesred. You can now browse the repository in the browser: ﻿regex ^http://((.*)archive.ubuntu.com/ubuntu/(dists&#124;pool)/.*(deb&#124;bz2&#124;Release&#124;Release.gpg))$ http://apt-cacher:3142/\1 regex ^http://(security.ubuntu.com/ubuntu/(dists&#124;pool)/.*(deb&#124;bz2&#124;Release&#124;Release.gpg))$ http://apt-cacher:3142/\1 Thanks Jerôme!]]></description>
			<content:encoded><![CDATA[<p>A friend of mine give me better rules for jesred. You can now browse the repository in the browser:</p>
<p>﻿<span style="font-size: small;">regex ^http://((.*)archive.ubuntu.com/ubuntu/(dists|pool)/.*(deb|bz2|Release|Release.gpg))$    http://apt-cacher:3142/\1</span><br />
<span style="font-size: small;">regex ^http://(security.ubuntu.com/ubuntu/(dists|pool)/.*(deb|bz2|Release|Release.gpg))$    http://apt-cacher:3142/\1</span></p>
<p>Thanks Jerôme!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.porcheron.info/better-jesred-rules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bandwith optimization: squid, apt-cacher and jesred</title>
		<link>http://www.porcheron.info/bandwith-optimization-squid-apt-cacher-and-jesred/</link>
		<comments>http://www.porcheron.info/bandwith-optimization-squid-apt-cacher-and-jesred/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 21:23:24 +0000</pubDate>
		<dc:creator>Lionel Porcheron</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.porcheron.info/?p=64</guid>
		<description><![CDATA[At work, I now have around 50 desktops running Ubuntu and around 40 servers (including customers machines) also running Ubuntu. As you can imagine, when you have a security update of X, this represents a lot of bandwith usage! Not to speak about Hardy upgrade! We started to look at different solutions to optimize our [...]]]></description>
			<content:encoded><![CDATA[<p>At work, I now have around 50 desktops running Ubuntu and around 40 servers (including customers machines) also running Ubuntu. As you can imagine, when you have a security update of X, this represents a lot of bandwith usage! Not to speak about Hardy upgrade! We started to look at different solutions to optimize our precious bandwith.</p>
<p>Some search gave:</p>
<ul>
<li><em><strong>local mirror</strong></em>: huch... this is a bit too much for us <img src='http://www.porcheron.info/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li><em><strong>squid usage</strong></em>: good, but you need to tweak too much your squid installation to keep your .deb inside the pool. And squid can make .deb expires even they are still valid.</li>
<li><em><strong>apt-proxy/apt-cacher/apt-cacher-ng</strong></em>: all looks good but... you have to modify your client configuration. As I am lazy, I don't want to do that (and also, because I have mobile users who only want to use the cache when they are on the corporate network). Between the three, I chose apt-cacher, just based on some reading on the web... Other may be as good as apt-cacher!</li>
</ul>
<p>We selected the association: <a title="squid" href="http://www.squid-cache.org" target="_blank">squid</a> + <a title="apt-cacher" href="http://packages.qa.debian.org/a/apt-cacher.html">apt-cacher</a> + <a title="jesred" href="http://www.linofee.org/~jel/webtools/jesred/">jesred</a>. Let's have a look on each component:</p>
<ul>
<li><em><strong>apt-cacher</strong></em>: .deb and Packages/Source cache. You can also import data from another source (for exemple from a cd-rom).</li>
<li><em><strong>squid</strong></em>: THE proxy, we use it as a transparent proxy in our case.</li>
<li><em><strong>jesred</strong></em>: rewrite squid URL and redirect access to the Ubuntu archive to apt-cacher.</li>
</ul>
<p>The installation described below was made on a <a title="Ubuntu" href="http://www.ubuntu.com" target="_blank">Ubuntu</a> 8.04. The machine is a Xen virtual machine (I'll talk about Xen another time <img src='http://www.porcheron.info/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> ). All the softwares are taken from Ubuntu repositories: squid beeing in main, other packages are in universe (ensure universe is enabled). Installation and configuration is really easy!</p>
<p><strong>squid installation</strong></p>
<p><code># apt-get install squid</code></p>
<p><strong>squid configuration</strong></p>
<p>Edit /etc/squid.conf and add in ACL definititions:<br />
<code>acl mylan src 10.0.0.0/255.255.0.0</code></p>
<p>Allow traffic from you network:<br />
<code>http_access allow mylan</code></p>
<p>You can now test your squid. It should be operational.</p>
<p><strong>apt-cacher installation</strong></p>
<p><code># apt-get install apt-cacher</code></p>
<p>I just changed the admin_email value in <code>/etc/apt-cacher/apt-cacher.conf</code></p>
<p>As a quick test, set http_proxy env value and try to use apt. Everything should go throught the cache (check the logs).</p>
<p><strong>jesred installation</strong></p>
<p><code># apt-get install jesred</code></p>
<p><strong>jesred configuration</strong></p>
<p>Edit <code> /etc/jesred.acl</code> to authorize your network (just add you lan at the end of the file).</p>
<p>Edit <code>/etc/jesred.rules</code> and add:<br />
<code>regex ^http://((.*)archive.ubuntu.com/ubuntu/(dists|pool)/.*)$    http://localhost:3142/\1<br />
regex ^http://(security.ubuntu.com/ubuntu/(dists|pool)/.*)$    http://localhost:3142/\1</code></p>
<p>I have also added two aborts in order to use upgrade-manager:<br />
<code>abort .gpg<br />
abort ReleaseAnnouncement<br />
</code><br />
Last but not least, the glue between all the elements:</p>
<p>Edit <code>/etc/squid.conf</code> and add:<br />
<code>redirect_program /usr/lib/squid/jesred</code></p>
<p>Finished ! Now your squid redirect all requests to *archive.ubuntu.com and security.ubuntu.com to apt-cacher. Happy installation / upgrades!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.porcheron.info/bandwith-optimization-squid-apt-cacher-and-jesred/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Ubuntu Server Team</title>
		<link>http://www.porcheron.info/ubuntu-server-team/</link>
		<comments>http://www.porcheron.info/ubuntu-server-team/#comments</comments>
		<pubDate>Fri, 02 Nov 2007 13:23:12 +0000</pubDate>
		<dc:creator>Lionel Porcheron</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.porcheron.info/ubuntu-server-team/</guid>
		<description><![CDATA[One of the thing I should have done on the 18th of october, is blogging about the new Ubuntu release : 7.10, codename Gutsy Gibbon. No need to make another list of new (great) features included in the release, I would like to talk about the server team. During gutsy cycle, Canonical have hired a [...]]]></description>
			<content:encoded><![CDATA[<p>One of the thing I should have done on the 18th of october, is blogging about the new Ubuntu release : 7.10, codename Gutsy Gibbon. No need to make another list of <a title="Ubuntu 7.10" href="http://www.ubuntu.com/getubuntu/releasenotes/710tour" target="_blank">new (great) features included in the release</a>, I would like to talk about the <a title="Ubuntu Server Team on Launchpad" href="https://launchpad.net/~ubuntu-server" target="_blank">server team</a>.</p>
<p>During gutsy cycle, <a title="Canonical website" href="http://www.canonical.com" target="_blank">Canonical</a> have hired a <a title="Canonical Server Team on Launchpad" href="https://launchpad.net/~canonical-server" target="_blank">bunch of people</a> for taking care of the server platform. The team has been growing (thanks to the community), and we are now 78 members. This team is working hard to make Ubuntu Server rocks (well, it's already rocks, but rocks <strong>more</strong>). First results have reached gutsy, there will be more for hardy, the next Ubuntu release (due in April) which will be a LTS (Long Term Support, which for the server team means 5 years).</p>
<p>Lot of people have been asking "Why I should use Ubuntu as a server, Ubuntu is a desktop distro?". I remember <a title="Adam Conrad on Launchpad" href="https://launchpad.net/~adconrad" target="_blank">Adam Conrad</a> saying about differences between Debian and Ubuntu as a server : "Release schedule, LTS releases, commercial support from Canonical, and a different logo". From my experience, I think it is an excellent summary of the advantages of Ubuntu.</p>
<p>If you're looking into contributing or if you want to help us, reporting bug is a good starting point!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.porcheron.info/ubuntu-server-team/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Canonical Landscape</title>
		<link>http://www.porcheron.info/canonical-landscape/</link>
		<comments>http://www.porcheron.info/canonical-landscape/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 23:34:50 +0000</pubDate>
		<dc:creator>Lionel Porcheron</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.porcheron.info/blog/?p=56</guid>
		<description><![CDATA[During Ubuntu Live in Portland, Canonical (the Ubuntu main sponsor) announced the availability of Landscape a tool for Canonical support customers. This tool was designed to manage your IT infrastructure: all your servers/desktops/laptops are configurable through a web interface. The web interface also permit to get an inventory (hardware and software), to monitor them, etc. [...]]]></description>
			<content:encoded><![CDATA[<p>During <a href="http://www.ubuntulive.com">Ubuntu Live</a> in Portland, Canonical (the Ubuntu main sponsor) announced the availability of <a href="http://canonical.com/landscape">Landscape</a> a tool for Canonical support customers.<br />
This tool was designed to manage your IT infrastructure: all your servers/desktops/laptops are configurable through a web interface. The web interface also permit to get an inventory (hardware and software), to monitor them, etc. For a complete (and better) description visit the <a href="http://canonical.com/landscape">presentation page on Canonical website</a>.<br />
This tool appears to be the dreamed tool for the sysadmin I am. I have to confess that we have started a super-secret project for a similar tool. Well, that's said, I also have to confess that landscape looks better than our tool right now...</p>
]]></content:encoded>
			<wfw:commentRss>http://www.porcheron.info/canonical-landscape/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>seamlessrdp: Windows applications integrated in your Linux desktop</title>
		<link>http://www.porcheron.info/seamlessrdp-windows-applications-integrated-in-your-linux-desktop/</link>
		<comments>http://www.porcheron.info/seamlessrdp-windows-applications-integrated-in-your-linux-desktop/#comments</comments>
		<pubDate>Tue, 14 Aug 2007 08:57:35 +0000</pubDate>
		<dc:creator>Lionel Porcheron</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.porcheron.info/blog/?p=53</guid>
		<description><![CDATA[Cendio has recently released in OpenSource a component called "seamlessrdp". The difference with opening a session with rdesktop on a Windows server it that individual application is integrated in your environement. You need two components : a component on the server side, another on the client side. On the client side, rdesktop superior to 1.5 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cendio.com">Cendio</a> has recently released in OpenSource a component called "seamlessrdp". The difference with opening a session with rdesktop on a Windows server it that individual application is integrated in your environement.</p>
<p>You need two components : a component on the server side, another on the client side. On the client side, rdesktop superior to 1.5 get it.</p>
<p>For the server side, you will get details intructions on <a href="http://www.cendio.com/seamlessrdp/">Cendio seammlessrdp webpage</a>. It just consists in unzipping a zip somewhere on your Windows machine.</p>
<p>Here is the command line I use to launch Internet Explorer on a remote machine :<br />
<code><br />
$ rdesktop -a 24 -A -s "c:\seamlessrdp\seamlessrdpshell.exe c:\program files\internet explorer\iexplore.exe" windows_server -u lionel -p -<br />
</code></p>
<p>Here is the result on my desktop :</p>
<div><a title="seamlessrdp screenshot" href="http://www.porcheron.info/blog/wp-content/uploads/2007/08/seamlessrdp.png"><img src="http://www.porcheron.info/blog/wp-content/uploads/2007/08/seamlessrdp.thumbnail.png" alt="seamlessrdp screenshot" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.porcheron.info/seamlessrdp-windows-applications-integrated-in-your-linux-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>command-not-found package in Ubuntu</title>
		<link>http://www.porcheron.info/command-not-found-package-in-ubuntu/</link>
		<comments>http://www.porcheron.info/command-not-found-package-in-ubuntu/#comments</comments>
		<pubDate>Fri, 16 Mar 2007 12:59:06 +0000</pubDate>
		<dc:creator>Lionel Porcheron</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.porcheron.info/blog/?p=49</guid>
		<description><![CDATA[The package command-not-found is now part of the default Ubuntu Desktop installation. What does the command-not-found package do ? Let's take an example: lionel@ouessant:~$ mutt The program 'mutt' is currently not installed. You can install it by typing: sudo apt-get install mutt bash: mutt: command not found When a command is not found in your [...]]]></description>
			<content:encoded><![CDATA[<p>The package command-not-found is now part of the default Ubuntu Desktop installation. What does the command-not-found package do ? Let's take an example:<br />
<code><br />
lionel@ouessant:~$ mutt<br />
The program 'mutt' is currently not installed.  You can install it by typing:<br />
sudo apt-get install mutt<br />
bash: mutt: command not found<br />
</code><br />
When a command is not found in your computer, it search in a database in which package this command is and give you the command to install it.<br />
Great isn't it ?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.porcheron.info/command-not-found-package-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Ruby On Rails: for development only!</title>
		<link>http://www.porcheron.info/ruby-on-rails-for-development-only/</link>
		<comments>http://www.porcheron.info/ruby-on-rails-for-development-only/#comments</comments>
		<pubDate>Mon, 19 Feb 2007 22:53:23 +0000</pubDate>
		<dc:creator>Lionel Porcheron</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Ruby On Rails]]></category>

		<guid isPermaLink="false">http://www.porcheron.info/blog/?p=48</guid>
		<description><![CDATA[For my blog and some other services (mainly mails), I am using a dedicated software hosted by a professionnal ISP. Last week-end, I migrated all the services to my new platform (with more RAM as my old server was swapping most of the time). I had to reinstall all services. Now my server is under [...]]]></description>
			<content:encoded><![CDATA[<p>For my blog and some other services (mainly mails), I am using a dedicated software hosted by a professionnal ISP. Last week-end, I migrated all the services to my new platform (with more RAM as my old server was swapping most of the time). I had to reinstall all services.<br />
Now my server is under Ubuntu (yeah, Ubuntu rocks !) reinstalling software was really easy: courier, postfix, apache, php, mysql, all come in packages, and work mostly out of the box.<br />
I am also hosting some Rails site for friends. Migration was a nightmare! Installing PHP/MySQL took me 10min, same for Python. Rails took me... half a day and I had to end up with incantations to get it work ("Rails failed to start"... thanks for the error message !). After it startup, Rails version changed: applications does not start any more...<br />
I am happy with my choice of Django (in python) for personal development !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.porcheron.info/ruby-on-rails-for-development-only/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Connexion efficace à l&#039;IRC</title>
		<link>http://www.porcheron.info/connexion-efficace-a-lirc/</link>
		<comments>http://www.porcheron.info/connexion-efficace-a-lirc/#comments</comments>
		<pubDate>Thu, 04 Jan 2007 20:22:10 +0000</pubDate>
		<dc:creator>Lionel Porcheron</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.porcheron.info/blog/?p=41</guid>
		<description><![CDATA[Lucas demandait aujourd'hui dans un billet sur son blog le meilleur moyen de se connecter à l'IRC. Je répondrai ici en Français (Lucas, comment on fait pour répondre quand les commentaires et les trackback sont fermés ? ). Ma solution sera un peu différente de celle présentée par Christian Perrier. J'ai les mêmes contraintes que [...]]]></description>
			<content:encoded><![CDATA[<p>Lucas demandait aujourd'hui <a href="http://www.lucas-nussbaum.net/blog/?p=226" target="_blank" title="more efficient IRCing?">dans un billet sur son blog</a> le meilleur moyen de se connecter à l'IRC. Je répondrai ici en Français (Lucas, comment on fait pour répondre quand les commentaires et les trackback sont fermés ? <img src='http://www.porcheron.info/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ). Ma solution sera un peu différente de celle présentée par <a href="http://www.perrier.eu.org/weblog/2007/01/04#efficient-irc" title="more efficient IRCing?" target="_blank">Christian Perrier</a>.<br />
J'ai les mêmes contraintes que Lucas (en plus je change de machine entre mon domicile et le travail), je m'étais penché sur le sujet il y a quelques temps, en sachant que je n'étais pas du tout fan d'<a href="http://www.irssi.org/" target="_blank" title="Irssi - The client of the future">irssi</a> moi non plus. Pourtant, irssi dispose d'un plugin génial : le mode proxy. Pour l'activer, il suffit de faire dans sa configuration irssi :</p>
<p>settings = {<br />
core = {<br />
real_name = "Lionel Porcheron";<br />
user_name = "lionel";<br />
nick = "lionel";<br />
};<br />
proxy = {<br />
irssiproxy_password = "hackme";<br />
irssiproxy_ports = "freenode=3600 rezosup=3601 oftc=3602";<br />
irssiproxy_bind = "192.168.1.10";<br />
};<br />
};</p>
<p>Pour charger le mode proxy, il faut faire depuis irssi un "/load proxy". Je lance ensuite un irssi sur un serveur dans un screen, ce qui donne le résultat ci-dessous:</p>
<p style="text-align: center"><a href="http://www.porcheron.info/blog/wp-content/uploads/2007/11/screen_irssi.png" title="irssi in a screen"><img src="http://www.porcheron.info/blog/wp-content/uploads/2007/11/screen_irssi.thumbnail.png" alt="irssi in a screen" /></a></p>
<p>Je peux bien sûr comme Christian utiliser mon irssi dans mon screen, mais surtout, moi qui aime les interfaces graphiques, je peux utiliser mon client préféré, alias <a href="http://xchat-gnome.navi.cx/" target="_blank" title="xchat-gnome">xchat-gnome</a>. Pour cela, il suffit de définir des nouveaux réseaux : comme serveur on rentre le port du proxy et comme adresse du serveur l'adresse définie dans le fichier de configuration d'irssi. Le mot de passe du serveur est le mot de passe défini dans irssi (et non pas celui de connexion au réseau). Côté client, on ne voit aucune différence.<br />
Bien sûr, ce n'est pas très sécurisé, et quand on est "à l'extérieur", ça ne marche pas. Pour cela, j'utilise (vous l'avez senti arriver) un tunnel ssh:</p>
<p>ssh -L 3602:toulouse:3602 -L 3601:toulouse:3601 -L 3600:toulouse:3600 chez_moi</p>
<p>Ce tunnel me permet de n'importe où de me connecter de la même façon à l'IRC. Pour simplifier la configuration de xchat, je l'utilise même en local.</p>
<p>Autre point positif, une fois la configuration IRC définie sur le serveur, le paramétrage d'un client est trivial : pas de cannaux de connexion à définir, juste un triplet : serveur, port, mot de passe à rentrer.</p>
<p>Cerise sur le gateau, irssi dispose dans ses plugins de base d'un script "awayproxy" (à place dans .irssi/scripts/autorun pour le lancer automatiquement). Ce script vous permet de vous placer automatiquement "away" quand vous n'avez pas de client connecté au proxy, et vous envoie un mail avec le contenu du message quand on vous highlight sur un canal (oui, je n'aime pas loguer inutilement tous les canaux sur lesquel j'iddle, d'<a href="http://people.ubuntu.com/~fabbione/irclogs" title="Logs IRC Ubuntu" target="_blank">autres</a> font ça pour moi).</p>
<p>Je trouve ça en plus beaucoup plus pratique (avec la possibilité de popup quand on est hightlighté sur un canal qui passent bien souvent à la trape dans une fenêtre irssi...).</p>
<p>Et merci PierreF et Dobermann de m'avoir donné cette solution il y a un peu plus d'un an maintenant. J'en suis très satisfait !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.porcheron.info/connexion-efficace-a-lirc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Créer un repository yum pour RHEL 4.0</title>
		<link>http://www.porcheron.info/creer-un-repository-yum-pour-rhel-40/</link>
		<comments>http://www.porcheron.info/creer-un-repository-yum-pour-rhel-40/#comments</comments>
		<pubDate>Mon, 04 Dec 2006 22:09:04 +0000</pubDate>
		<dc:creator>Lionel Porcheron</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://www.porcheron.info/blog/?p=38</guid>
		<description><![CDATA[J'utilise à des fins de tests, une RHEL 4.0 et étant habitué à apt (vous avez remarqué que les billets traitent plutôt de Debian et Ubuntu généralement non ?), apt me manque terriblement ! yum fournit une solution acceptable (même si je continue à préférer apt), mais il n'est pas disponible sur la RHEL . [...]]]></description>
			<content:encoded><![CDATA[<p>J'utilise à des fins de tests, une RHEL 4.0 et étant habitué à apt (vous avez remarqué que les billets traitent plutôt de Debian et Ubuntu généralement non ?), apt me manque terriblement ! yum fournit une solution acceptable (même si je continue à préférer apt), mais il n'est pas disponible sur la RHEL <img src='http://www.porcheron.info/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> . Après avoir vu ce qu'avait fait un de nos clients, je me suis donc lancé : installer yum sur les RHEL et mettre en place un dépôt yum local (pour ne plus à avoir à choisir un CD et à fouiller dedans, puis passer au suivant...). Les utiliser deviendrait presque agréable après !</p>
<p>Voici donc la procédure à suivre.</p>
<p>On commence par copier le contenu de tous les CD sur le disque (cela servira de miroir après) :</p>
<pre>mount -o loop /srv/media/RHEL4-U3-i386-AS-disc1.iso /mnt/</pre>
<pre>cp -ar /mnt/* /srv/www/yum/4/i386/os/</pre>
<pre>umount /mnt</pre>
<pre>mount -o loop /srv/media/RHEL4-U3-i386-AS-disc2.iso /mnt/</pre>
<pre>cp -ar /mnt/* /srv/www/yum/4/i386/os/</pre>
<pre>umount /mnt</pre>
<pre>mount -o loop /srv/media/RHEL4-U3-i386-AS-disc3.iso /mnt</pre>
<pre>cp -ar /mnt/* /srv/www/yum/4/i386/os/</pre>
<pre>umount /mnt</pre>
<pre>mount -o loop /srv/media/RHEL4-U3-i386-AS-disc4.iso /mnt/</pre>
<pre>cp -ar /mnt/* /srv/www/yum/4/i386/os/</pre>
<p>On va ensuite créer les données propres au repository yum. Pour cela, il faut utiliser la commande "createrepo", disponible dans Debian Sid et dans Ubuntu Feisty (mais elle s'installe très bien sur une Edgy).</p>
<pre>createrepo  /srv/www/yum/4/i386/os/</pre>
<p>On installe ensuite la commande yum sur notre station RHEL :</p>
<pre>wget http://centos.cs.ucr.edu/centos/4.4/apt/i386/RPMS.os/python-urlgrabber-2.9.8-2.noarch.rpm</pre>
<pre>wget http://centos.cs.ucr.edu/centos/4.4/apt/i386/RPMS.os/python-sqlite-1.1.7-1.2.i386.rpm</pre>
<pre>wget http://centos.cs.ucr.edu/centos/4.4/apt/i386/RPMS.os/python-elementtree-1.2.6-4.2.1.i386.rpm</pre>
<pre>wget http://centos.cs.ucr.edu/centos/4.4/apt/i386/RPMS.os/yum-2.4.3-1.c4.noarch.rpm</pre>
<pre>wget http://centos.cs.ucr.edu/centos/4.4/apt/i386/RPMS.os/sqlite-3.3.3-1.2.i386.rpm</pre>
<pre>wget http://centos.cs.ucr.edu/centos/4.4/os/x86_64/CentOS/RPMS/centos-yumconf-4-4.5.noarch.rpm</pre>
<pre>rpm -Uvh *.rpm</pre>
<p>Ensuite, il reste à configurer notre repository (nous supposerons ici que nous le contenu a été préalablement placé dans un répertoire servi par un serveur http). Créer un fichier</p>
<pre>/etc/yum.repos.d/local.repo</pre>
<p>avec le contenu :</p>
<pre>[local-rhel]</pre>
<pre>name=Red Hat Enterprise Linux $releasever</pre>
<pre>baseurl=http://packages.local/redhat/RHEL/4/i386/os/RedHat/</pre>
<pre>failovermethod=priority</pre>
<pre>gpgcheck=1</pre>
<pre>gpgkey=http://packages.local/redhat/RHEL/4/i386/os/RPM-GPG-KEY</pre>
<pre>enabled=1</pre>
<p>Et c'est parti : yum update / yum install !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.porcheron.info/creer-un-repository-yum-pour-rhel-40/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pourquoi j&#039;arrête le XFS !</title>
		<link>http://www.porcheron.info/pourquoi-j-arrete-le-xfs/</link>
		<comments>http://www.porcheron.info/pourquoi-j-arrete-le-xfs/#comments</comments>
		<pubDate>Fri, 06 Oct 2006 10:48:36 +0000</pubDate>
		<dc:creator>Lionel Porcheron</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://www.porcheron.info/wordpress/?p=20</guid>
		<description><![CDATA[Il y a quelques années de cela, je m'étais penché sur les différents systèmes de fichiers existants sous Linux. J'avais retenu XFS pour deux points: il était largement plus performant avec un noyau 2.6 que le système plus traditionnel ext3 il proposait de base les ACL (alors qu'il fallait à l'époque patcher son noyau pour [...]]]></description>
			<content:encoded><![CDATA[<p>Il y a quelques années de cela, je m'étais penché sur les différents systèmes de fichiers existants sous Linux. J'avais retenu XFS pour deux points:</p>
<ul>
<li>il était largement plus performant avec un noyau 2.6 que le système plus traditionnel ext3</li>
<li>il proposait de base les ACL (alors qu'il fallait à l'époque patcher son noyau pour pouvoir en disposer sur l'ext3).</li>
</ul>
<p>J'avais rejeté reiserfs et jfs que je trouvais trop confidentiels.</p>
<p>Le site <a href="http://www.debian-administration.org/articles/388">Debian Administration</a> a publié un article complet sur les comparaisons des systèmes de fichiers existants. Il présente de manière bien plus complète que ce billet les avantages / inconvéniants de chacun.</p>
<p>Cela fait plusieurs fois que j'ai vu des systèmes de fichiers XFS se corrompre (jusque là, j'ai toujours récupéré la situation avec des xfs_repair), mais il y a quelques jours, j'ai vu avec stupéfaction dans mes logs d'un serveur un production&nbsp;:</p>
<pre> Filesystem "sdb1": XFS internal error xfs_da_do_buf(2) at line 2273 of file fs/xfs/xfs_da_btree.c.  Caller 0xf8a989e8  <a href="&lt;f8a983e8&gt;">&lt;f8a983e8&gt;</a> xfs_da_do_buf+0x3d8/0x920 <a href="xfs">xfs</a>  <a href="&lt;f8a989e8&gt;">&lt;f8a989e8&gt;</a> xfs_da_read_buf+0x58/0x60 <a href="xfs">xfs</a>  <a href="&lt;f8a989e8&gt;">&lt;f8a989e8&gt;</a> xfs_da_read_buf+0x58/0x60 <a href="xfs">xfs</a>  <a href="&lt;f8ab1984&gt;">&lt;f8ab1984&gt;</a> xfs_itobp+0x114/0x260 <a href="xfs">xfs</a>  <a href="&lt;f8a989e8&gt;">&lt;f8a989e8&gt;</a> xfs_da_read_buf+0x58/0x60 <a href="xfs">xfs</a>  <a href="&lt;f8a9c3bd&gt;">&lt;f8a9c3bd&gt;</a> xfs_dir2_block_getdents+0xad/0x360 <a href="xfs">xfs</a>  <a href="&lt;f8a9c3bd&gt;">&lt;f8a9c3bd&gt;</a> xfs_dir2_block_getdents+0xad/0x360 <a href="xfs">xfs</a>  <a href="&lt;f8ad1ccf&gt;">&lt;f8ad1ccf&gt;</a> xfs_access+0x4f/0x60 <a href="xfs">xfs</a>  <a href="&lt;f8ad1ccf&gt;">&lt;f8ad1ccf&gt;</a> xfs_access+0x4f/0x60 <a href="xfs">xfs</a>  <a href="&lt;f8a8a025&gt;">&lt;f8a8a025&gt;</a> xfs_bmap_last_offset+0xc5/0x130 <a href="xfs">xfs</a>  <a href="&lt;f8a9b710&gt;">&lt;f8a9b710&gt;</a> xfs_dir2_put_dirent64_direct+0x0/0xa0 <a href="xfs">xfs</a>  <a href="&lt;f8a9b650&gt;">&lt;f8a9b650&gt;</a> xfs_dir2_isblock+0x30/0x80 <a href="xfs">xfs</a>  <a href="&lt;f8a9b710&gt;">&lt;f8a9b710&gt;</a> xfs_dir2_put_dirent64_direct+0x0/0xa0 <a href="xfs">xfs</a>  <a href="&lt;f8a9ae89&gt;">&lt;f8a9ae89&gt;</a> xfs_dir2_getdents+0xb9/0x160 <a href="xfs">xfs</a>  <a href="&lt;f8a9b710&gt;">&lt;f8a9b710&gt;</a> xfs_dir2_put_dirent64_direct+0x0/0xa0 <a href="xfs">xfs</a>  <a href="&lt;f8ad52f0&gt;">&lt;f8ad52f0&gt;</a> xfs_readdir+0x60/0xc0 <a href="xfs">xfs</a>  <a href="&lt;f8add7c6&gt;">&lt;f8add7c6&gt;</a> linvfs_readdir+0x116/0x230 <a href="xfs">xfs</a>  <a href="&lt;c0175687&gt;">&lt;c0175687&gt;</a> vfs_readdir+0xa7/0xc0  <a href="&lt;c0175980&gt;">&lt;c0175980&gt;</a> filldir64+0x0/0x100  <a href="&lt;c0175aee&gt;">&lt;c0175aee&gt;</a> sys_getdents64+0x6e/0xaa  <a href="&lt;c0175980&gt;">&lt;c0175980&gt;</a> filldir64+0x0/0x100  <a href="&lt;c01061eb&gt;">&lt;c01061eb&gt;</a> syscall_call+0x7/0xb</pre>
<p>Pourtant, la machine n'avait pas rebooté violemment, rien de spécial à signaler. XFS est un système de fichier capable de se corompre en fonctionnement "normal"&nbsp;! Problème similaire sur un portable où c'était la partition racine qui était concernée et où xfs_repair n'a pas été en mesure de réparer&nbsp;: il a fallu reformater et donc réinstaller&nbsp;!</p>
<p>Je ne suis pas le seul à avoir ce genre de considérations. Cet été, Martin f. Krafft a publié <a href="http://blog.madduck.net/geek/2006.08.09-through-with-xfs">un billet sur son blog</a> où il expliquait ses problèmes avec XFS.</p>
<p>Cela étant, maintenant, je crois que pour moi, ça sera de l'ext3 partout&nbsp;!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.porcheron.info/pourquoi-j-arrete-le-xfs/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
