<?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>Actinux</title>
	<atom:link href="http://www.actinux.org/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.actinux.org</link>
	<description>La réponse libre à un monde libre</description>
	<lastBuildDate>Tue, 09 Feb 2010 10:53:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>L&#8217;outil indispensable SSH</title>
		<link>http://www.actinux.org/index.php/2009/06/05/loutil-indispensable-ssh/</link>
		<comments>http://www.actinux.org/index.php/2009/06/05/loutil-indispensable-ssh/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 08:53:52 +0000</pubDate>
		<dc:creator>ati</dc:creator>
				<category><![CDATA[Divers]]></category>
		<category><![CDATA[Tutos]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh-add]]></category>
		<category><![CDATA[ssh-agent]]></category>

		<guid isPermaLink="false">http://www.actinux.org/?p=83</guid>
		<description><![CDATA[Beaucoup de personnes connaissent au moins de nom SSH. Cet outil cache pourtant certains secrets très pratiques et bien souvent totalement inconnus.
 
Aujourd&#8217;hui, il est courant de multiplier les accès distants sur des machines. Si Telnet et les r-commandes répondaient à ce besoin, le besoin de sécurité les a écartés de la course. SSH permet [...]]]></description>
			<content:encoded><![CDATA[<p>Beaucoup de personnes connaissent au moins de nom SSH. Cet outil cache pourtant certains secrets très pratiques et bien souvent totalement inconnus.<br />
 <span id="more-83"></span></p>
<p>Aujourd&#8217;hui, il est courant de multiplier les accès distants sur des machines. Si Telnet et les r-commandes répondaient à ce besoin, le besoin de sécurité les a écartés de la course. SSH permet donc d&#8217;accéder à une console distante de manière totalement sécurisée. Nous verrons dans ce tutoriel comment utiliser un client SSH mais aussi comment utiliser le SSH-agent pour faciliter le travail de tous les jours en s&#8217;identifiant rapidement.</p>
<p>La plupart du temps openSSH est déjà installé. Si cela n&#8217;est pas le cas il vous suffit de tapper dans une console :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> yum <span style="color: #c20cb9; font-weight: bold;">install</span> openssh openssh-clients</pre></div></div>

<p>ou</p>

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

<p>Pour se connecter simplement sur un serveur il vous suffit de tapper :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #c20cb9; font-weight: bold;">login</span><span style="color: #000000; font-weight: bold;">&gt;@&lt;</span>machinedist<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>où <em>login</em> est le nom du compte que vous souhaitez utiliser et <em>machinedist</em> représente l&#8217;adresse IP ou le nom de la machine visée. Lors d&#8217;une premiere connexion, un message décrivant que la machine distante est inconnue vous sera retournée. Ensuite SSH vous demande s&#8217;il doit continuer ou pas. Répondez &#8216;Yes&#8217; pour continuer. Cette étape permet de vérifier que la machine que vous souhaitez contacter et bien celle qui vous répond. Pour cela SSH utilise une empreinte (fingerprint en anglais) correspondant ni plus ni moins à une suite de valeurs héxadécimales. Une fois acceptée, cette empreinte sera ajoutée à votre liste d&#8217;hôtes connus.</p>
<p>L&#8217;étape suivante est l&#8217;authentification. Par défaut, SSH utilise une authentification par mot-de-passe. Ca n&#8217;est pas la seule manière de s&#8217;authentifier. On peut utiliser une paire de clés publique/privée. La première est une clé que vous partagerez et copierez partout où vous souhaiteriez vous connecter (nous y reviendrons un peu plus tard), la seconde est en quelque sorte l&#8217;équivalent de votre nouveau mot-de-passe.</p>
<p>Pour générer une paire de clés, OpenSSH propose un outil. en tapant dans votre console :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh-keygen</span></pre></div></div>

<p>vous pourrez créer simplement une paire. Vous pouvez, grâce à l&#8217;option &#8216;-t&#8217; préciser quel type de clés vous souhaitez. Sachez que SSH1 utilise généralement des clés RSA1, et SSH2 des clés DSA.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh-keygen</span> <span style="color: #660033;">-t</span> dsa</pre></div></div>

<p>Le générateur va vous demander où sauvegarder les clés et vous demander une passphrase. Cette passphrase n&#8217;améliore en rien la clé ou la sécurité des échanges. Elle permet juste d&#8217;empêcher quelqu&#8217;un qui récupèrerait votre paire de clés de l&#8217;utiliser. C&#8217;est une phrase protégeant la clé. Lorsque le générateur a fini vous obtenez 2 fichiers :</p>
<ul>
<li><strong>id_dsa</strong> ou <strong>id_rsa</strong> : la clé privé</li>
<li><strong>id_dsa.pub</strong> ou <strong>id_rsa.pub</strong> : la clé public</li>
</ul>
<p>Nous allons désormais donner notre clé public à l&#8217;ordinateur distant, celui auquel nous souhaitons nous connecter. Pour ce faire utilisons cette commande :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ssh-copy-id <span style="color: #660033;">-i</span> ~<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_dsa.pub <span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #c20cb9; font-weight: bold;">login</span><span style="color: #000000; font-weight: bold;">&gt;@&lt;</span>machinedist<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Pour utiliser notre clé et ainsi ne pas avoir à rentrer de mot-de-passe, il suffit désormais d&#8217;entrer :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-i</span> ~<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_dsa <span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #c20cb9; font-weight: bold;">login</span><span style="color: #000000; font-weight: bold;">&gt;@&lt;</span>machinedist<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Nous pouvons encore améliorer notre confort par plusieurs procédés. Dans le cas où vous avez protégé votre clé privée par une passphrase, à chaque connexion cette passphrase vous est demandée. Ensuite il peut paraître ennuyeux de devoir tapper l&#8217;emplacement du certificat, le login et le nom de la machine distance (voir son IP&#8230;). Pas de panique, SSH répond à tous vos problèmes <img src='http://www.actinux.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>D&#8217;abord créons un fichier ~/.ssh/config dans lequel nous placerons :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Host <span style="color: #000000; font-weight: bold;">&lt;</span>NomDeConnexion<span style="color: #000000; font-weight: bold;">&gt;</span>
User <span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #c20cb9; font-weight: bold;">login</span><span style="color: #000000; font-weight: bold;">&gt;</span>
HostName <span style="color: #000000; font-weight: bold;">&lt;</span>machinedist<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>où <em>NomDeConnexion</em> représente un identifiant aléatoire vous permettant d&#8217;identifier le compte et la machine définient respectivement par <em>login</em> et <em>machinedist</em>.<br />
Ainsi pour se connecter il suffira de tapper :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-i</span> ~<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_dsa <span style="color: #000000; font-weight: bold;">&lt;</span>NomDeConnexion<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Enfin, laissons SSH gérer nos clés et nous identifier avec la bonne clé. Pour ce faire, il suffit d&#8217;utiliser ssh-agent. Pour l&#8217;utiliser, initialisez votre terminal en le précédent de &laquo;&nbsp;ssh-agent&nbsp;&raquo; comme ceci :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Voici quelques exemples d'initialisation. Adaptez a votre besoin</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ssh-agent</span> gnome-terminal
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ssh-agent</span> <span style="color: #c20cb9; font-weight: bold;">zsh</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ssh-agent</span> <span style="color: #c20cb9; font-weight: bold;">bash</span></pre></div></div>

<p>Une fois le terminal lancé, vous aurez besoin d&#8217;importer votre(vos) clé(s) grâce à :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh-add</span></pre></div></div>

<p>ssh-add va ajouter votre clé ~/.ssh/id_rsa à la liste des clés utilisables par ssh-agent. Pour importer une clé supplémentaire il faut juste lui préciser où les trouver comme ceci :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh-add</span> ~<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_rsa_actinux1 ~<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_rsa_actinux2</pre></div></div>

<p>Dans le cas d&#8217;une protection de clé par passphrase, elle vous sera demandée (une seule fois <img src='http://www.actinux.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ).<br />
Vous pouvez lister à tout moment l&#8217;ensemble des clés contenues dans votre ssh-agent de part la commande :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh-add</span> <span style="color: #660033;">-l</span></pre></div></div>

<p>Ensuite plus besoin de préciser le fichier de clé à utiliser pour se connecter :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #000000; font-weight: bold;">&lt;</span>NomDeConnexion<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Pour terminer je vous conseillerez de placer dans votre fichier rc (.zshrc ou .bashrc par exemple) votre ou vos ssh-add et d&#8217;ajouter le ssh-agent sur les raccourcis utiles (le gnome-terminal par exemple). Ainsi la seule étape que vous aurez à passer 1 fois par jour c&#8217;est d&#8217;entrer votre/vos passphrases à l&#8217;ouverture de votre terminal.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.actinux.org/index.php/2009/06/05/loutil-indispensable-ssh/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Découverte de Zsh sur CentOS 5.2</title>
		<link>http://www.actinux.org/index.php/2009/04/03/zsh-sur-centos-52/</link>
		<comments>http://www.actinux.org/index.php/2009/04/03/zsh-sur-centos-52/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 10:31:28 +0000</pubDate>
		<dc:creator>ati</dc:creator>
				<category><![CDATA[Tutos]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[zlogin]]></category>
		<category><![CDATA[zlogout]]></category>
		<category><![CDATA[zprofile]]></category>
		<category><![CDATA[zsh]]></category>
		<category><![CDATA[zshrc]]></category>

		<guid isPermaLink="false">http://www.actinux.org/?p=59</guid>
		<description><![CDATA[Découvrons dans ce tutoriel ce qu&#8217;est Zsh et apprenons à le compiler et le configurer sous une CentOS 5.2

1. Petite présentation
Le Z shell ou zsh est un shell Unix. Il reprend la plupart des fonctions les plus pratiques de bash, ksh ou encore tcsh.
En particulier, Zsh apporte notamment les fonctionnalités suivantes :

 Complétion des commandes, des [...]]]></description>
			<content:encoded><![CDATA[<p>Découvrons dans ce tutoriel ce qu&#8217;est Zsh et apprenons à le compiler et le configurer sous une CentOS 5.2<br />
<span id="more-59"></span></p>
<p><strong>1. <span style="text-decoration: underline;">Petite présentation</span></strong><br />
Le Z shell ou zsh est un shell Unix. Il reprend la plupart des fonctions les plus pratiques de bash, ksh ou encore tcsh.<br />
En particulier, Zsh apporte notamment les fonctionnalités suivantes :</p>
<ul>
<li> Complétion des commandes, des options et des arguments de la plupart des commandes. En particulier, taper la suite de caractères « cd  » ne permettra la complétion que par des répertoires ;</li>
<li>Recherche dans les sous-répertoire grâce au sélecteur ** ;</li>
<li>Partage de l&#8217;historique des commandes entre tous les shells zsh actuellement actifs ;</li>
<li>Utilisation améliorée des variables et des tableaux ;</li>
<li>Édition des commandes multi lignes dans un seul buffer ;</li>
<li>Correction « orthographique » des commandes tapées</li>
<li>Plusieurs modes de compatibilité (zsh peut par exemple être vu comme un shell bourne quand il est exécuté en tant que /bin/sh) ;</li>
<li>Invite de commande personnalisable, avec la possibilité d&#8217;afficher des informations sur le côté droit de l&#8217;écran qui disparaissent si la commande tapée est trop longue ;</li>
</ul>
<p><strong>2. <span style="text-decoration: underline;">Compilation et installation</span></strong><br />
Plusieurs mirroirs sont disponibles pour récupérer les dernières versions du produit. Ils sont listés sur le site de Zsh : <a href="http://www.zsh.org/">http://www.zsh.org/</a><br />
Commençons donc ce tutoriel en récupérant la dernière version stable (à cette heure il s&#8217;agit de la version 4.2.3) :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>nephtys.lip6.fr<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>unix<span style="color: #000000; font-weight: bold;">/</span>shells<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">zsh</span><span style="color: #000000; font-weight: bold;">/</span>zsh.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvf zsh-4.2.3.tar.gz
<span style="color: #c20cb9; font-weight: bold;">mv</span> zsh-4.2.3 <span style="color: #000000; font-weight: bold;">/</span>opt
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>zsh-4.2.3</pre></div></div>

<p>On installe un paquet nécessaire à sa compilation :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> ncurses-devel</pre></div></div>

<p>Nous pouvons désormais le compiler :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> check
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>Par défaut, zsh s&#8217;installera dans le /usr/local/bin. Vous pouvez d’ores et déjà le lancer.</p>
<p><strong>3. <span style="text-decoration: underline;">Une config de base</span></strong><br />
Le shell Zsh comporte 2 paires de 5 fichiers de configuration. Vous les trouverez la première paire dans le /etc et la seconde dans votre répertoire personnel /home. Comme tous les shells, les fichiers de configuration globale (dans le /etc) seront lus en premier suivi par la lecture de vos fichiers personnels (dans le /home).<br />
Chronologiquement à leur ordre de lecture, ces fichiers sont :</p>
<ul>
<li><span style="text-decoration: underline;">zshenv et .zshenv</span> : contient l&#8217;ensemble des variables d&#8217;environnement ;</li>
<li><span style="text-decoration: underline;">zprofile et .zprofile</span> : est lu uniquement dans le cas d&#8217;un login shell ;</li>
<li><span style="text-decoration: underline;">zshrc et .zshrc</span> : (est lu uniquement dans le cas d&#8217;un interactive shell), il contient les aliases, les options (setopt), les fonctions, les zstyles&#8230; ;</li>
<li><span style="text-decoration: underline;">zlogin et .zlogin</span> : (est lu uniquement dans le cas d&#8217;un login shell), on y place des commandes à exécuter avant la session ;</li>
<li>En fermant votre shell les fichiers <span style="text-decoration: underline;">.zlogout et zlogout</span> sont lus dans l&#8217;ordre respectif (fichier utilisateur puis global).</li>
</ul>
<p>Apprenons désormais à configurer un minimum Zsh pour le rendre convivial et surtout pour profiter de son extrême efficacité et utilité <img src='http://www.actinux.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Voici donc quelques fichiers de configuration prêt à l&#8217;emploi.<br />
<em>Je tiens d&#8217;ailleurs à préciser que ces fichiers proviennent du site <strong>http://formation-debian.via.ecp.fr/</strong> et ont été légèrement modifiés. Je remercie la personne qui me l&#8217;a appris, même si la forme de sa remarque était autant inappropriée que stupide et qu&#8217;il n&#8217;a manifestement pas le goût de la présomption d&#8217;innocence&#8230;</em></p>
<p><span style="text-decoration: underline;"><strong>zshenv</strong></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Formation Debian GNU/Linux par Alexis de Lattre</span>
<span style="color: #666666; font-style: italic;"># http://formation-debian.via.ecp.fr/</span>
<span style="color: #666666; font-style: italic;"># Modifié par le blog Actinux</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Le PATH = un ensemble de répertoires dans lequel le shell va chercher les commandes (on les sépare par des ':')</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #ff0000;">&quot;/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/sbin:<span style="color: #007800;">$HOME</span>/bin&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Viewer/Editeur par défaut (pour Crontab, CVS,...)</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">VISUAL</span>=<span style="color: #c20cb9; font-weight: bold;">vim</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">EDITOR</span>=<span style="color: #c20cb9; font-weight: bold;">vim</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Permissions rw-r--r-- pour les fichiers crées</span>
<span style="color: #666666; font-style: italic;"># et rwxr-xr-x pour les répertoires crées</span>
<span style="color: #7a0874; font-weight: bold;">umask</span> 022
&nbsp;
<span style="color: #666666; font-style: italic;"># Proxy HTTP / FTP sans mot de passe</span>
<span style="color: #666666; font-style: italic;">#export http_proxy=&quot;http://proxy.exemple.org:8080&quot;</span>
<span style="color: #666666; font-style: italic;">#export ftp_proxy=&quot;ftp://proxy.exemple.org:8080&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Proxy HTTP / FTP avec mot de passe</span>
<span style="color: #666666; font-style: italic;">#export http_proxy=&quot;http://login:password@proxy.exemple.org:8080&quot;</span>
<span style="color: #666666; font-style: italic;">#export ftp_proxy=&quot;ftp://login:password@proxy.exemple.org:8080&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Ne pas passer par le proxy pour les domaines locaux</span>
<span style="color: #666666; font-style: italic;">#export no_proxy=&quot;exemple.org&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># De la couleur pour grep</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">GREP_OPTIONS</span>=<span style="color: #ff0000;">'--color=auto'</span></pre></div></div>

<p><span style="text-decoration: underline;"><strong>zshlogin</strong></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Formation Debian GNU/Linux par Alexis de Lattre</span>
<span style="color: #666666; font-style: italic;"># http://formation-debian.via.ecp.fr/</span>
<span style="color: #666666; font-style: italic;"># Modifié par le blog Actinux</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Ce fichier contient les commandes qui s'exécutent quand l'utilisateur</span>
<span style="color: #666666; font-style: italic;"># Ouvre une console</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Affiche des informations sur le système</span>
<span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-a</span>
<span style="color: #c20cb9; font-weight: bold;">uptime</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Accepte les messages d'autres utilisateurs</span>
<span style="color: #c20cb9; font-weight: bold;">mesg</span> y</pre></div></div>

<p><span style="text-decoration: underline;"><strong>zshlogout</strong></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Formation Debian GNU/Linux par Alexis de Lattre</span>
<span style="color: #666666; font-style: italic;"># http://formation-debian.via.ecp.fr/</span>
<span style="color: #666666; font-style: italic;"># Modifié par le blog Actinux</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Ce fichier contient les commandes qui s'exécutent quand l'utilisateur</span>
<span style="color: #666666; font-style: italic;"># Ferme une console</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Nettoie l'écran</span>
<span style="color: #c20cb9; font-weight: bold;">clear</span></pre></div></div>

<p><span style="text-decoration: underline;"><strong>zshrc</strong></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Formation Debian GNU/Linux par Alexis de Lattre</span>
<span style="color: #666666; font-style: italic;"># http://formation-debian.via.ecp.fr/</span>
<span style="color: #666666; font-style: italic;"># Modifié par le blog Actinux</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># 1. Les alias</span>
<span style="color: #666666; font-style: italic;">#</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#  Gestion du ls : couleur + touche pas aux accents</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">ls</span></span>=<span style="color: #ff0000;">'ls --classify --tabsize=0 --literal --color=auto --show-control-chars --human-readable'</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Gestion du grep : couleur</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">grep</span></span>=<span style="color: #ff0000;">'grep --color=auto'</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Demande confirmation avant d'écraser un fichier</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">cp</span></span>=<span style="color: #ff0000;">'cp --interactive'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">mv</span></span>=<span style="color: #ff0000;">'mv --interactive'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">rm</span></span>=<span style="color: #ff0000;">'rm --interactive'</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Raccourcis pour 'ls'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">ll</span>=<span style="color: #ff0000;">'ls -l'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">la</span>=<span style="color: #ff0000;">'ls -la'</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Quelques alias pratiques</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">c</span>=<span style="color: #ff0000;">'clear'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">less</span></span>=<span style="color: #ff0000;">'less --quiet'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">s</span>=<span style="color: #ff0000;">'cd ..'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">df</span></span>=<span style="color: #ff0000;">'df --human-readable'</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">du</span></span>=<span style="color: #ff0000;">'du --human-readable'</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># 2. Prompt et définition des touches</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TERM</span>&quot;</span> = <span style="color: #ff0000;">&quot;linux&quot;</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TERM</span>&quot;</span> = <span style="color: #ff0000;">&quot;screen&quot;</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TERM</span>&quot;</span> = <span style="color: #ff0000;">&quot;screen-w&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
 bindkey <span style="color: #ff0000;">'^[[1~'</span> beginning-of-line       <span style="color: #666666; font-style: italic;"># Home</span>
 bindkey <span style="color: #ff0000;">'^[[4~'</span> end-of-line             <span style="color: #666666; font-style: italic;"># End</span>
 bindkey <span style="color: #ff0000;">'^[[3~'</span> delete-char             <span style="color: #666666; font-style: italic;"># Del</span>
 bindkey <span style="color: #ff0000;">'^[[2~'</span> overwrite-mode          <span style="color: #666666; font-style: italic;"># Insert</span>
 bindkey <span style="color: #ff0000;">'^[[5~'</span> history-search-backward <span style="color: #666666; font-style: italic;"># PgUp</span>
 bindkey <span style="color: #ff0000;">'^[[6~'</span> history-search-forward  <span style="color: #666666; font-style: italic;"># PgDn</span>
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TERM</span>&quot;</span> = <span style="color: #ff0000;">&quot;xterm&quot;</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TERM</span>&quot;</span> = <span style="color: #ff0000;">&quot;xterm-color&quot;</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TERM</span>&quot;</span> = <span style="color: #ff0000;">&quot;xterm-debian&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$COLORTERM</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #660033;">-a</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$UNAME</span>&quot;</span> = <span style="color: #ff0000;">&quot;Linux&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
  <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">TERM</span>=xterm-debian
  <span style="color: #000000; font-weight: bold;">fi</span>
  bindkey <span style="color: #ff0000;">'^[[H'</span>  beginning-of-line       <span style="color: #666666; font-style: italic;"># Home</span>
  bindkey <span style="color: #ff0000;">'^[[F'</span>  end-of-line             <span style="color: #666666; font-style: italic;"># End</span>
  bindkey <span style="color: #ff0000;">'^[[3~'</span> delete-char             <span style="color: #666666; font-style: italic;"># Del</span>
  bindkey <span style="color: #ff0000;">'^[[2~'</span> overwrite-mode          <span style="color: #666666; font-style: italic;"># Insert</span>
  bindkey <span style="color: #ff0000;">'^[[5~'</span> history-search-backward <span style="color: #666666; font-style: italic;"># PgUp</span>
  bindkey <span style="color: #ff0000;">'^[[6~'</span> history-search-forward  <span style="color: #666666; font-style: italic;"># PgDn</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TERM</span>&quot;</span> = <span style="color: #ff0000;">&quot;rxvt&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">TERM</span>=<span style="color: #ff0000;">&quot;xterm&quot;</span>
  bindkey <span style="color: #ff0000;">'^[[1~'</span> beginning-of-line       <span style="color: #666666; font-style: italic;"># Home</span>
  bindkey <span style="color: #ff0000;">'^[[4~'</span> end-of-line             <span style="color: #666666; font-style: italic;"># End</span>
  bindkey <span style="color: #ff0000;">'^[[3~'</span> delete-char             <span style="color: #666666; font-style: italic;"># Del</span>
  bindkey <span style="color: #ff0000;">'^[[2~'</span> overwrite-mode          <span style="color: #666666; font-style: italic;"># Insert</span>
  bindkey <span style="color: #ff0000;">'^[[5~'</span> history-search-backward <span style="color: #666666; font-style: italic;"># PgUp</span>
  bindkey <span style="color: #ff0000;">'^[[6~'</span> history-search-forward  <span style="color: #666666; font-style: italic;"># PgDn</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-en</span> <span style="color: #ff0000;">'\033&amp;gt;'</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TERM</span>&quot;</span> = <span style="color: #ff0000;">&quot;vt100&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
  bindkey <span style="color: #ff0000;">'^[OA'</span> up-line-or-history   <span style="color: #666666; font-style: italic;"># Fleche haut</span>
  bindkey <span style="color: #ff0000;">'^[OB'</span> down-line-or-history <span style="color: #666666; font-style: italic;"># Fleche bas</span>
  bindkey <span style="color: #ff0000;">'^[OC'</span> forward-char         <span style="color: #666666; font-style: italic;"># Fleche droite</span>
  bindkey <span style="color: #ff0000;">'^[OD'</span> backward-char        <span style="color: #666666; font-style: italic;"># Fleche gauche</span>
  bindkey <span style="color: #ff0000;">'^?'</span>   delete-char          <span style="color: #666666; font-style: italic;"># Del</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># On définit ici les couleurs du term pour le root ou les utilisateurs</span>
<span style="color: #007800;">BLACK</span>=<span style="color: #ff0000;">&quot;%{&quot;</span>$<span style="color: #ff0000;">'\033[01;30m'</span><span style="color: #ff0000;">&quot;%}&quot;</span>
<span style="color: #007800;">GREEN</span>=<span style="color: #ff0000;">&quot;%{&quot;</span>$<span style="color: #ff0000;">'\033[01;32m'</span><span style="color: #ff0000;">&quot;%}&quot;</span>
<span style="color: #007800;">RED</span>=<span style="color: #ff0000;">&quot;%{&quot;</span>$<span style="color: #ff0000;">'\033[01;31m'</span><span style="color: #ff0000;">&quot;%}&quot;</span>
<span style="color: #007800;">YELLOW</span>=<span style="color: #ff0000;">&quot;%{&quot;</span>$<span style="color: #ff0000;">'\033[01;33m'</span><span style="color: #ff0000;">&quot;%}&quot;</span>
<span style="color: #007800;">CYAN</span>=<span style="color: #ff0000;">&quot;%{&quot;</span>$<span style="color: #ff0000;">'\033[36;1m'</span><span style="color: #ff0000;">&quot;%}&quot;</span>
<span style="color: #007800;">BLUE</span>=<span style="color: #ff0000;">&quot;%{&quot;</span>$<span style="color: #ff0000;">'\033[01;34m'</span><span style="color: #ff0000;">&quot;%}&quot;</span>
<span style="color: #007800;">BOLD</span>=<span style="color: #ff0000;">&quot;%{&quot;</span>$<span style="color: #ff0000;">'\033[01;39m'</span><span style="color: #ff0000;">&quot;%}&quot;</span>
<span style="color: #007800;">NORM</span>=<span style="color: #ff0000;">&quot;%{&quot;</span>$<span style="color: #ff0000;">'\033[00m'</span><span style="color: #ff0000;">&quot;%}&quot;</span>
<span style="color: #007800;">WHITE</span>=<span style="color: #ff0000;">&quot;%{&quot;</span>$<span style="color: #ff0000;">'\033[37;1m'</span><span style="color: #ff0000;">&quot;%}&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #780078;">`id -u`</span>&quot;</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">${CYAN}</span>%T <span style="color: #007800;">${BLUE}</span>%n<span style="color: #007800;">${YELLOW}</span>@<span style="color: #007800;">${WHITE}</span>%m <span style="color: #007800;">${GREEN}</span>%~<span style="color: #007800;">${YELLOW}</span> # <span style="color: #007800;">${NORM}</span><span style="color: #007800;">${BOLD}</span>&quot;</span>
<span style="color: #000000; font-weight: bold;">else</span>
  <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">${CYAN}</span>%T <span style="color: #007800;">${RED}</span>%n<span style="color: #007800;">${YELLOW}</span>@<span style="color: #007800;">${WHITE}</span>%m <span style="color: #007800;">${GREEN}</span>%~<span style="color: #007800;">${YELLOW}</span> $ <span style="color: #007800;">${NORM}</span><span style="color: #007800;">${BOLD}</span>&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Gestion de la couleur pour 'ls' (exportation de LS_COLORS)</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-x</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">dircolors</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-r</span> ~<span style="color: #000000; font-weight: bold;">/</span>.dir_colors <span style="color: #7a0874; font-weight: bold;">&#93;</span>
  <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #7a0874; font-weight: bold;">eval</span> <span style="color: #ff0000;">&quot;<span style="color: #780078;">`dircolors ~/.dir_colors`</span>&quot;</span>
  <span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-r</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>dir_colors <span style="color: #7a0874; font-weight: bold;">&#93;</span>
  <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #7a0874; font-weight: bold;">eval</span> <span style="color: #ff0000;">&quot;<span style="color: #780078;">`dircolors /etc/dir_colors`</span>&quot;</span>
  <span style="color: #000000; font-weight: bold;">else</span>
    <span style="color: #7a0874; font-weight: bold;">eval</span> <span style="color: #ff0000;">&quot;<span style="color: #780078;">`dircolors`</span>&quot;</span>
  <span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># 3. Options de zsh (cf 'man zshoptions')</span>
<span style="color: #666666; font-style: italic;">#</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Je ne veux JAMAIS de beeps</span>
unsetopt beep
unsetopt hist_beep
unsetopt list_beep
<span style="color: #666666; font-style: italic;"># &amp;gt;| doit etre utilise pour pouvoir ecraser un fichier déjà éxistant ;</span>
<span style="color: #666666; font-style: italic;"># le fichier ne sera pas écrasé avec '&amp;gt;'</span>
unsetopt clobber
<span style="color: #666666; font-style: italic;"># Ctrl+D est équivalent a 'logout'</span>
unsetopt ignore_eof
<span style="color: #666666; font-style: italic;"># Affiche le code de sortie si different de '0'</span>
setopt print_exit_value
<span style="color: #666666; font-style: italic;"># Demande confirmation pour 'rm *'</span>
unsetopt rm_star_silent
<span style="color: #666666; font-style: italic;"># Correction orthographique des commandes</span>
setopt correct
<span style="color: #666666; font-style: italic;"># Si on utilise des jokers dans une liste d'arguments, retire les jokers</span>
<span style="color: #666666; font-style: italic;"># qui ne correspondent a rien au lieu de donner une erreur</span>
setopt nullglob
&nbsp;
<span style="color: #666666; font-style: italic;"># Schémas de completion</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># - Schéma A :</span>
<span style="color: #666666; font-style: italic;"># 1ere tabulation : complète jusqu'au bout de la partie commune</span>
<span style="color: #666666; font-style: italic;"># 2eme tabulation : propose une liste de choix</span>
<span style="color: #666666; font-style: italic;"># 3eme tabulation : complète avec le 1er item de la liste</span>
<span style="color: #666666; font-style: italic;"># 4eme tabulation : complète avec le 2eme item de la liste, etc...</span>
<span style="color: #666666; font-style: italic;"># -&amp;gt; c'est le schema de complétion par défaut de zsh.</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Schema B :</span>
<span style="color: #666666; font-style: italic;"># 1ere tabulation : propose une liste de choix et complète avec le 1er item</span>
<span style="color: #666666; font-style: italic;">#                   de la liste</span>
<span style="color: #666666; font-style: italic;"># 2eme tabulation : complète avec le 2eme item de la liste, etc...</span>
<span style="color: #666666; font-style: italic;"># Si vous voulez ce schéma, décommentez la ligne suivante :</span>
<span style="color: #666666; font-style: italic;">#setopt menu_complete</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Schema C :</span>
<span style="color: #666666; font-style: italic;"># 1ere tabulation : complète jusqu'au bout de la partie commune et</span>
<span style="color: #666666; font-style: italic;">#                   propose une liste de choix</span>
<span style="color: #666666; font-style: italic;"># 2eme tabulation : complète avec le 1er item de la liste</span>
<span style="color: #666666; font-style: italic;"># 3eme tabulation : complète avec le 2eme item de la liste, etc...</span>
<span style="color: #666666; font-style: italic;"># Ce schema est le meilleur a mon gout !</span>
<span style="color: #666666; font-style: italic;"># Si vous voulez ce schema, décommentez la ligne suivante :</span>
<span style="color: #666666; font-style: italic;">#unsetopt list_ambiguous</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Options de complétion</span>
<span style="color: #666666; font-style: italic;"># Quand le dernier caractère d'une complétion est '/' et que l'on</span>
<span style="color: #666666; font-style: italic;"># tape 'espace' après, le '/' est effacé</span>
setopt auto_remove_slash
<span style="color: #666666; font-style: italic;"># Ne fait pas de complétion sur les fichiers et répertoires cachés</span>
unsetopt glob_dots
&nbsp;
<span style="color: #666666; font-style: italic;"># Traite les liens symboliques comme il faut</span>
setopt chase_links
&nbsp;
<span style="color: #666666; font-style: italic;"># Quand l'utilisateur commence sa commande par '!' pour faire de la</span>
<span style="color: #666666; font-style: italic;"># complétion historique, il n'execute pas la commande immédiatement</span>
<span style="color: #666666; font-style: italic;"># mais il écrit la commande dans le prompt</span>
setopt hist_verify
<span style="color: #666666; font-style: italic;"># Si la commande est invalide mais correspond au nom d'un sous-répertoire</span>
<span style="color: #666666; font-style: italic;"># éxecuter 'cd sous-repertoire'</span>
setopt auto_cd
<span style="color: #666666; font-style: italic;"># L'execution de &quot;cd&quot; met le repertoire d'ou l'on vient sur la pile</span>
setopt auto_pushd
<span style="color: #666666; font-style: italic;"># Ignore les doublons dans la pile</span>
setopt pushd_ignore_dups
<span style="color: #666666; font-style: italic;"># N'affiche pas la pile apres un &quot;pushd&quot; ou &quot;popd&quot;</span>
setopt pushd_silent
<span style="color: #666666; font-style: italic;"># &quot;pushd&quot; sans argument = &quot;pushd $HOME&quot;</span>
setopt pushd_to_home
&nbsp;
<span style="color: #666666; font-style: italic;"># Les jobs qui tournent en tache de fond sont nice a '0'</span>
unsetopt bg_nice
<span style="color: #666666; font-style: italic;"># N'envoie pas de &quot;HUP&quot; aux jobs qui tournent quand le shell se ferme</span>
unsetopt hup
&nbsp;
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># 4. Paramètres de l'historique des commandes</span>
<span style="color: #666666; font-style: italic;">#</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Nombre d'entrées dans l'historique</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">HISTORY</span>=<span style="color: #000000;">1000</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">SAVEHIST</span>=<span style="color: #000000;">1000</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Fichier où est stocké l'historique</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">HISTFILE</span>=<span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span>.zsh_history
&nbsp;
<span style="color: #666666; font-style: italic;"># Ajoute l'historique à la fin de l'ancien fichier</span>
setopt append_history
&nbsp;
<span style="color: #666666; font-style: italic;"># Chaque ligne est ajoutée dans l'historique à mesure qu'elle est tapée</span>
setopt inc_append_history
&nbsp;
<span style="color: #666666; font-style: italic;"># Ne stocke pas une ligne dans l'historique si elle est identique à la précédente</span>
unsetopt hist_ignore_dups
&nbsp;
<span style="color: #666666; font-style: italic;"># Supprime les répétitions dans le fichier d'historique, ne conservant que la dernière occurrence ajoutée</span>
unsetopt hist_ignore_all_dups
&nbsp;
<span style="color: #666666; font-style: italic;"># Supprime les répétitions dans l'historique lorsqu'il est plein, mais pas avant</span>
unsetopt hist_expire_dups_first
&nbsp;
<span style="color: #666666; font-style: italic;"># N'enregistre pas plus d'une fois une même ligne, quelles que soient les options fixées pour la session courante</span>
<span style="color: #666666; font-style: italic;">#setopt hist_save_no_dups</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># La recherche dans l'historique avec l'éditeur de commandes de zsh ne</span>
<span style="color: #666666; font-style: italic;"># montre  pas une même  ligne  plus d'une fois,  meme  si  elle a été</span>
<span style="color: #666666; font-style: italic;"># enregistrée</span>
unsetopt hist_find_no_dups
&nbsp;
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># 5. Complétion des options des commandes</span>
<span style="color: #666666; font-style: italic;">#</span>
&nbsp;
zstyle <span style="color: #ff0000;">':completion:*'</span> matcher-list <span style="color: #ff0000;">''</span> <span style="color: #ff0000;">'m:{a-z}={A-Z}'</span>
zstyle <span style="color: #ff0000;">':completion:*'</span> max-errors <span style="color: #000000;">3</span> numeric
zstyle <span style="color: #ff0000;">':completion:*'</span> use-compctl <span style="color: #c20cb9; font-weight: bold;">false</span>
&nbsp;
autoload <span style="color: #660033;">-U</span> compinit
compinit</pre></div></div>

<p>Je reviendrai plus en détail sur ces fichiers de configuration lors d&#8217;un prochain tutoriel.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.actinux.org/index.php/2009/04/03/zsh-sur-centos-52/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installer un serveur Redmine sur Centos 5.2</title>
		<link>http://www.actinux.org/index.php/2009/03/24/installer-un-serveur-redmine-sur-centos-52/</link>
		<comments>http://www.actinux.org/index.php/2009/03/24/installer-un-serveur-redmine-sur-centos-52/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 08:52:38 +0000</pubDate>
		<dc:creator>bpa</dc:creator>
				<category><![CDATA[Tutos]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[redmine]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.actinux.org/?p=11</guid>
		<description><![CDATA[Le but de cet article est d'écrire le processus d'installation d'un serveur <a href="http://www.redmine.org" target="_blank">RedMine </a>sur une Centos 5.2]]></description>
			<content:encoded><![CDATA[<p>Le but de cet article est d&#8217;écrire le processus d&#8217;installation d&#8217;un serveur <a href="http://www.redmine.org" target="_blank">RedMine </a>sur une Centos 5.2</p>
<h2>Description de RedMine</h2>
<p>Redmine est un outil de gestion de projet en Web. Il est écrit en utilisant le framework &laquo;&nbsp;Ruby on Rails&nbsp;&raquo;. Il est multi-plateforme et fonctionne avec plusieurs bases de données.<br />
<span id="more-11"></span></p>
<p>Redmine est un projet Open Source sous licence GNU General Public License v2 (GPL).</p>
<p>Les fonctionnalités :</p>
<ul>
<li> gestion multi-projets</li>
<li> gestion fine des droits utilisateurs définis par des rôles</li>
<li> rapports de bugs, demandes d&#8217;évolutions</li>
<li> Wiki multi-projets</li>
<li> forums multi-projets</li>
<li> Flux RSS / ATOM</li>
<li> Notifications par email</li>
<li> Gestion de feuilles de route, GANTT, calendrier</li>
<li> Historique</li>
<li> Intégration avec divers suivis de versions : SVN, CVS, Mercurial, Git, Bazaar &amp; Darcs</li>
<li> Identification possible via LDAP</li>
<li> Multilingue (25 langues)</li>
<li> Support de plusieurs bases de données : MySQL, PostgreSQL ou SQLite</li>
</ul>
<h2>Installation des Prés-requis</h2>
<p>Installer Ruby on Rails 2.2.2 sur Centos 5.2</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> ruby ruby-devel ruby-libs-RDOC irb ruby-mysql ruby-rdoc</pre></div></div>

<h3>Télécharger et installer Ruby</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</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;">45905</span><span style="color: #000000; font-weight: bold;">/</span>rubygems-1.3.1.tgz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvf rubygems-1.3.1.tgz
<span style="color: #7a0874; font-weight: bold;">cd</span> rubygems-1.3.1
ruby setup.rb</pre></div></div>

<h3>Installer le framework Rails</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gem <span style="color: #c20cb9; font-weight: bold;">install</span> rails <span style="color: #660033;">-v</span>=2.2.2</pre></div></div>

<h3>Installer le serveur MySQL</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> mysql-server
service mysqld start</pre></div></div>

<h3>Installer et configurer Subversion</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> subversion</pre></div></div>

<h2>Installation de Redmine</h2>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>src
<span style="color: #c20cb9; font-weight: bold;">wget</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;">52944</span><span style="color: #000000; font-weight: bold;">/</span>redmine-0.8.2.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-zxvf</span> redmine-0.8.2.tar.gz
<span style="color: #c20cb9; font-weight: bold;">mv</span> redmine-0.8.2 <span style="color: #000000; font-weight: bold;">/</span>opt
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>redmine<span style="color: #000000; font-weight: bold;">*</span>
adduser redmine
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> redmine. <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>redmine</pre></div></div>

<h3>Créer une base de donnée MySQL</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql <span style="color: #660033;">-u</span> root
create database redmine character <span style="color: #000000; font-weight: bold;">set</span> utf8;</pre></div></div>

<h3>Modifier le fichier de configuration de connexion MySQL</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> config<span style="color: #000000; font-weight: bold;">/</span>database.yml.example config<span style="color: #000000; font-weight: bold;">/</span>database.yml
<span style="color: #c20cb9; font-weight: bold;">vi</span> config<span style="color: #000000; font-weight: bold;">/</span>database.yml</pre></div></div>

<p>Exemple pour une base MySQL</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">production:
adapter: mysql
database: redmine
host: localhost
username: bduser
password: bdpasswd
socket:<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>mysql.sock</pre></div></div>

<h3>Créer la structure de la base de donnée</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>redmine
rake db:migrate <span style="color: #007800;">RAILS_ENV</span>=<span style="color: #ff0000;">&quot;production&quot;</span></pre></div></div>

<h3>Insérer des données de pré-configuration (cette étape est facultative mais fortement recommandée)</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rake redmine:load_default_data <span style="color: #007800;">RAILS_ENV</span>=<span style="color: #ff0000;">&quot;production&quot;</span></pre></div></div>

<h3>Modifier les droits de l&#8217;utilisateur redmine</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> tmp public<span style="color: #000000; font-weight: bold;">/</span>plugin_assets
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> redmine. files log tmp public<span style="color: #000000; font-weight: bold;">/</span>plugin_assets
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> <span style="color: #000000;">755</span> files log tmp public<span style="color: #000000; font-weight: bold;">/</span>plugin_assets</pre></div></div>

<h3>Démarrer le serveur</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ruby script<span style="color: #000000; font-weight: bold;">/</span>server webrick <span style="color: #660033;">-e</span> production</pre></div></div>

<p>Vous pouvez tester que votre serveur fonctionne :</p>
<p><strong>http://ipduserveur:3000</strong></p>
<p>Login et mot de passe par défaut:</p>
<blockquote><p>Login: admin<br />
Mot de passe: admin</p></blockquote>
<h4>Ajouter les librairies ImageMagick</h4>
<p>Cette étape est nécessaire pour la réalisation des diagramme de Gantt</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">gcc</span> tcl-devel libpng-devel libjpeg-devel ghostscript-devel bzip2-devel freetype-devel libtiff-devel
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>src
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.imagemagick.org<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>ImageMagick<span style="color: #000000; font-weight: bold;">/</span>ImageMagick.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvfz ImageMagick.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> ImageMagick<span style="color: #000000; font-weight: bold;">*</span>
.<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>lib <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ld.so.conf <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">wc</span> -l<span style="color: #000000; font-weight: bold;">`</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;/usr/local/lib&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ld.so.conf
ldconfig
gem <span style="color: #c20cb9; font-weight: bold;">install</span> rmagick <span style="color: #660033;">-r</span> <span style="color: #660033;">--no-ri</span> <span style="color: #660033;">--no-rdoc</span></pre></div></div>

<h2>Ajouter la gestion automatique des dépot SVN</h2>
<p>Redmine est capable de gérer automatiquement la création de vos dépots SVN; de plus, en fonction du type de projet (public ou privé) les dépots seront accessibles aux membres uniquement.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> mod_dav_svn mod_perl perl-Apache-DBI perl-Digest-SHA1 perl-DBD-mysql
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span>
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> root.apache <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span>
yum <span style="color: #c20cb9; font-weight: bold;">install</span> mod_dav_svn</pre></div></div>

<p>Récupérer une version plus récente de Redmine.pm</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>redmine.rubyforge.org<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span><span style="color: #000000; font-weight: bold;">/</span>trunk<span style="color: #000000; font-weight: bold;">/</span>extra<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span><span style="color: #000000; font-weight: bold;">/</span>Redmine.pm
<span style="color: #c20cb9; font-weight: bold;">cp</span> Redmine.pm <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>redmine<span style="color: #000000; font-weight: bold;">/</span>extra<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span><span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">mv</span> Redmine.pm <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>perl5<span style="color: #000000; font-weight: bold;">/</span>vendor_perl<span style="color: #000000; font-weight: bold;">/</span>5.8.8<span style="color: #000000; font-weight: bold;">/</span>Apache<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Corriger une petit problème sur un des fichers ruby:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>redmine<span style="color: #000000; font-weight: bold;">/</span>extra<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span><span style="color: #000000; font-weight: bold;">/</span>reposman.rb</pre></div></div>

<p>Ajouter :</p>
<blockquote><p>require &#8216;rdoc/ri/ri_paths&#8217;</p></blockquote>
<p>Avant le bloc:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">require <span style="color: #ff0000;">'getoptlong'</span>
require <span style="color: #ff0000;">'rdoc/usage'</span>
require <span style="color: #ff0000;">'soap/wsdlDriver'</span>
require <span style="color: #ff0000;">'find'</span>
require <span style="color: #ff0000;">'etc'</span></pre></div></div>

<p>Editer le fichier /etc/httpd/conf.d/subversion.conf et ajouter à la fin:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">DAV <span style="color: #c20cb9; font-weight: bold;">svn</span>
SVNParentPath <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span>
SVNListParentPath on</pre></div></div>

<p>Créer une fichier redmine.conf dans /etc/httpd/conf.d</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>Location <span style="color: #000000; font-weight: bold;">/</span>svn-private<span style="color: #000000; font-weight: bold;">&gt;</span>
DAV <span style="color: #c20cb9; font-weight: bold;">svn</span>
SVNParentPath <span style="color: #ff0000;">&quot;/opt/svn&quot;</span>
Order deny,allow
Deny from all
<span style="color: #666666; font-style: italic;"># only allow reading orders</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>Limit GET PROPFIND OPTIONS REPORT<span style="color: #000000; font-weight: bold;">&gt;</span>
Allow from 192.168.0.40
<span style="color: #000000; font-weight: bold;">&lt;/</span>Limit<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>Location<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
PerlLoadModule Apache::Redmine
   <span style="color: #000000; font-weight: bold;">&lt;</span>Location <span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span><span style="color: #000000; font-weight: bold;">&gt;</span>
     DAV <span style="color: #c20cb9; font-weight: bold;">svn</span>
     SVNParentPath <span style="color: #ff0000;">&quot;/opt/svn&quot;</span>
&nbsp;
     AuthType Basic
     AuthName redmine
     Require valid-user
&nbsp;
     PerlAccessHandler Apache::Authn::Redmine::access_handler
     PerlAuthenHandler Apache::Authn::Redmine::authen_handler
&nbsp;
     <span style="color: #666666; font-style: italic;">## for mysql</span>
     RedmineDSN <span style="color: #ff0000;">&quot;DBI:mysql:database=redmine;host=localhost&quot;</span>
&nbsp;
     RedmineDbUser <span style="color: #ff0000;">&quot;userdb&quot;</span>
     RedmineDbPass <span style="color: #ff0000;">&quot;userpwd&quot;</span>
  <span style="color: #000000; font-weight: bold;">&lt;/</span>Location<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Ajouter à la crontab:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">*/</span><span style="color: #000000;">5</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> ruby <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>redmine<span style="color: #000000; font-weight: bold;">/</span>extra<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span><span style="color: #000000; font-weight: bold;">/</span>reposman.rb <span style="color: #660033;">--redmine-host</span>=localhost:<span style="color: #000000;">3000</span> <span style="color: #660033;">--svn-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #660033;">--owner</span>=apache <span style="color: #660033;">--url</span>=http:<span style="color: #000000; font-weight: bold;">//</span>IP<span style="color: #000000; font-weight: bold;">/</span>svn-private<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">--verbose</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>reposman.log</pre></div></div>

<p>Tout devrait à présent fonctionner.<br />
L&#8217;idéal serait de mettre en place un cluter Mongrel, mais il semble que la gestion des dépots SVN ne fonctionne plus. </p>
<p>Si vous l&#8217;utilisez avec Mongrel, n&#8217;hésiter pas <img src='http://www.actinux.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.actinux.org/index.php/2009/03/24/installer-un-serveur-redmine-sur-centos-52/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bienvenue sur le blog Actinux</title>
		<link>http://www.actinux.org/index.php/2009/03/11/bienvenue-sur-le-blog-actinux/</link>
		<comments>http://www.actinux.org/index.php/2009/03/11/bienvenue-sur-le-blog-actinux/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 10:33:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Divers]]></category>

		<guid isPermaLink="false">http://www.actinux.org/wpress/?p=1</guid>
		<description><![CDATA[Actinux encourage ses équipes à contribuer activement à l&#8217;informatique libre et publie ses productions sous l&#8217;URL actinux.org
Ces productions sont assurées :
- soit par le travail personnel d&#8217;ingénieurs de la société en dehors de leur temps de travail
- soit avec le financement d&#8217;Actinux pendant le temps de travail.

Actinux consacre actuellement une partie de son temps pour [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.actinux.com/">Actinux</a> encourage ses équipes à contribuer activement à l&#8217;informatique libre et publie ses productions sous l&#8217;URL actinux.org</p>
<p>Ces productions sont assurées :</p>
<p>- soit par le travail personnel d&#8217;ingénieurs de la société en dehors de leur temps de travail</p>
<p>- soit avec le financement d&#8217;Actinux pendant le temps de travail.</p>
<div class="main-inside">
<p>Actinux consacre actuellement une partie de son temps pour apporter sa modeste contribution aux logiciels libres.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.actinux.org/index.php/2009/03/11/bienvenue-sur-le-blog-actinux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
