<?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>Blog.hio.fr &#187; Linux</title>
	<atom:link href="http://blog.hio.fr/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hio.fr</link>
	<description></description>
	<lastBuildDate>Wed, 30 Jun 2010 09:16:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>LINUX &#171;&#160;udev: renamed network interface eth0 to eth1&#8243;</title>
		<link>http://blog.hio.fr/2010/01/20/linux-udev-renamed-network-interface-eth0-to-eth1/</link>
		<comments>http://blog.hio.fr/2010/01/20/linux-udev-renamed-network-interface-eth0-to-eth1/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 11:11:39 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[udev]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=515</guid>
		<description><![CDATA[Corriger en editant et en remettant dans l'ordre les bonne carte eth avec les bonne interface
]]></description>
			<content:encoded><![CDATA[<p>Corriger en editant et en remettant dans l&#8217;ordre les bonne carte eth avec les bonne interface</p>
<p>fichier a editer</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>udev<span style="color: #000000; font-weight: bold;">/</span>rules.d<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">70</span>-persistent-net.rules</pre></div></div>

<p>Changer les &laquo;&nbsp;NAME=&nbsp;&raquo; par les bonnes interfaces</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;"># This file was automatically generated by the /lib/udev/write_net_rules
# program, probably run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
# MAC addresses must be written in lowercase.
&nbsp;
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM==&quot;net&quot;, DRIVERS==&quot;?*&quot;, ATTRS{address}==&quot;00:0c:29:65:ae:04&quot;, NAME=&quot;eth1&quot;
&nbsp;
# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;00:1c:c0:01:5f:e0&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth0&quot;</pre></div></div>

<p>Probleme du au fait, que vous avez rajoutez une carte ethernet alors que la carte mere en possedai deja une,<br />
ca a pu fonctionner pendant un moment, et un jour pour une raison X (changement de kernel ou autre), la carte ethernet qui est sur la carte mere est passer en eth0 et n &#8216;etant pas connecter au reseau. bye bye, plus de ssh ni rien.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hio.fr/2010/01/20/linux-udev-renamed-network-interface-eth0-to-eth1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chomium browser et flash sous ubuntu 64bit</title>
		<link>http://blog.hio.fr/2009/09/07/chomium-browser-et-flash-sous-ubuntu-64bit/</link>
		<comments>http://blog.hio.fr/2009/09/07/chomium-browser-et-flash-sous-ubuntu-64bit/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 20:31:51 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[chromium]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=455</guid>
		<description><![CDATA[<a href="http://doc.ubuntu-fr.org/chromium-browser">http://doc.ubuntu-fr.org/chromium-browser</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://doc.ubuntu-fr.org/chromium-browser">http://doc.ubuntu-fr.org/chromium-browser</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hio.fr/2009/09/07/chomium-browser-et-flash-sous-ubuntu-64bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mon .emacs</title>
		<link>http://blog.hio.fr/2009/09/04/mon-emacs/</link>
		<comments>http://blog.hio.fr/2009/09/04/mon-emacs/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 05:58:47 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[conf]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=438</guid>
		<description><![CDATA[Ma conf d'emacs, qui se met dans le fichier /home/<user>/.emacs

J'ai recuperer ma conf emacs par petit bout au 4 coins du web ^^]]></description>
			<content:encoded><![CDATA[<p>Ma conf d&#8217;emacs, qui se met dans le fichier /home/%user%/.emacs</p>
<p>J&#8217;ai recuperer ma conf emacs par petit bout au 4 coins du web ^^</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span>menu-bar-mode -<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>                                                                                                                                                                                                                      
<span style="color: #808080; font-style: italic;">;; (tool-bar-mode -1)                                                                                                                                                                                                                   </span>
<span style="color: #808080; font-style: italic;">;; (scroll-bar-mode -1)                                                                                                                                                                                                                 </span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> visible-bell t<span style="color: #66cc66;">&#41;</span>                                                                                                                                                                                                                   
&nbsp;
<span style="color: #808080; font-style: italic;">;; mettre en surligne la zone de selection</span>
<span style="color: #66cc66;">&#40;</span>transient-mark-mode t<span style="color: #66cc66;">&#41;</span>                   
&nbsp;
<span style="color: #808080; font-style: italic;">;; parenthese matching</span>
<span style="color: #66cc66;">&#40;</span>show-paren-mode <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>   
<span style="color: #66cc66;">&#40;</span>setq-default hilight-paren-expression t<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">;; joli fond</span>
<span style="color: #808080; font-style: italic;">;;(set-background-color &quot;Wheat&quot; )</span>
&nbsp;
<span style="color: #808080; font-style: italic;">;; colorisation de la syntaxe</span>
<span style="color: #66cc66;">&#40;</span>global-font-lock-mode t<span style="color: #66cc66;">&#41;</span>    
<span style="color: #808080; font-style: italic;">;;maximum de couleurs        </span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> font-lock-maximum-decoration t<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>windmove-default-keybindings 'meta<span style="color: #66cc66;">&#41;</span> 
&nbsp;
<span style="color: #808080; font-style: italic;">;; completion sur shift-tab</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">quote</span> <span style="color: #66cc66;">&#91;</span>S-iso-lefttab<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">quote</span> dabbrev-expand<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">quote</span> <span style="color: #66cc66;">&#91;</span>S-tab<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">quote</span> dabbrev-expand<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>        
&nbsp;
<span style="color: #808080; font-style: italic;">;; circuler entre les buffer par ctrl-tab</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#40;</span>control tab<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span> `other-window<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">;; redefinition de quelques touches</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span><span style="color: #b1b100;">delete</span><span style="color: #66cc66;">&#93;</span> 'delete-char<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span>home<span style="color: #66cc66;">&#93;</span> 'beginning-of-line<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span>end<span style="color: #66cc66;">&#93;</span> 'end-of-line<span style="color: #66cc66;">&#41;</span>       
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span>\s-tab<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">lambda</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>       
                           <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span>  
                           <span style="color: #66cc66;">&#40;</span>switch-to-buffer <span style="color: #66cc66;">&#40;</span>other-buffer<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span>\M-\s<span style="color: #66cc66;">&#93;</span> 'set-mark-command<span style="color: #66cc66;">&#41;</span>                    
<span style="color: #808080; font-style: italic;">;;nom du buffer en cours dans la barre de titre               </span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> frame-title-format <span style="color: #ff0000;">&quot;%b - Emacs&quot;</span><span style="color: #66cc66;">&#41;</span>                        
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> icon-title-format <span style="color: #ff0000;">&quot;%b - Emacs&quot;</span><span style="color: #66cc66;">&#41;</span>                         
&nbsp;
<span style="color: #808080; font-style: italic;">;;backups/autosaves : pas d'autosaves (encombrant), et garder les backups dans un dossier à part</span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> auto-save-default <span style="color: #b1b100;">nil</span><span style="color: #66cc66;">&#41;</span>                                                                    
<span style="color: #66cc66;">&#40;</span>defvar backup-dir <span style="color: #ff0000;">&quot;~/.emacsbackups/&quot;</span><span style="color: #66cc66;">&#41;</span>                                                          
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> backup-directory-alist <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">list</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">cons</span> <span style="color: #ff0000;">&quot;.&quot;</span> backup-dir<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>                                      
&nbsp;
<span style="color: #808080; font-style: italic;">;; untabify sur F10</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span>f10<span style="color: #66cc66;">&#93;</span>  'untabify<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">;; moi, j'aime bien avoir le undo en Ctrl-Z</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#40;</span>control z<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span> `undo<span style="color: #66cc66;">&#41;</span>       
&nbsp;
<span style="color: #808080; font-style: italic;">;; F7 lance la compilation</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span>f7<span style="color: #66cc66;">&#93;</span> `compile<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span>f3<span style="color: #66cc66;">&#93;</span> 'find-file<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span>f4<span style="color: #66cc66;">&#93;</span> '<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">lambda</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>kill-buffer <span style="color: #66cc66;">&#40;</span>current-buffer<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#40;</span>control b<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span> 'electric-buffer-<span style="color: #b1b100;">list</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #808080; font-style: italic;">;; Gestion de la roulette de la souris avec plusieurs vitesses</span>
<span style="color: #808080; font-style: italic;">;; control + scroll      : grande vitesse</span>
<span style="color: #808080; font-style: italic;">;; shift + scroll        : petite vitesse</span>
<span style="color: #808080; font-style: italic;">;; scroll seul           : vitesse normale</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> up-slightly <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>scroll-up <span style="color: #cc66cc;">5</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> down-slightly <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>scroll-down <span style="color: #cc66cc;">5</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span>mouse-<span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#93;</span> 'down-slightly<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span>mouse-<span style="color: #cc66cc;">5</span><span style="color: #66cc66;">&#93;</span> 'up-slightly<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> up-one <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>scroll-up <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> down-one <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>scroll-down <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span>S-mouse-<span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#93;</span> 'down-one<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span>S-mouse-<span style="color: #cc66cc;">5</span><span style="color: #66cc66;">&#93;</span> 'up-one<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> up-a-lot <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>scroll-up<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> down-a-lot <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>scroll-down<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span>C-mouse-<span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#93;</span> 'down-a-lot<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span>C-mouse-<span style="color: #cc66cc;">5</span><span style="color: #66cc66;">&#93;</span> 'up-a-lot<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">;; si je fait des scripts, je les met la :</span>
<span style="color: #66cc66;">&#40;</span>add-to-<span style="color: #b1b100;">list</span> 'load-path <span style="color: #ff0000;">&quot;~/emacs-lisp/&quot;</span> <span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">;; on arrete de rajouter des lignes avec bas en fin de buffer</span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> next-line-add-newlines <span style="color: #b1b100;">nil</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">;; on est en europe, config du charset par defaut proprement</span>
<span style="color: #66cc66;">&#40;</span>standard-display-8bit <span style="color: #cc66cc;">128</span> <span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #808080; font-style: italic;">;;(standard-display-european 1)</span>
&nbsp;
<span style="color: #808080; font-style: italic;">;; affichage de l'heure (format 24h) :</span>
<span style="color: #66cc66;">&#40;</span>display-time<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> display-time-24hr-format t<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">;; Affiche numero de ligne et colonne</span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> column-number-mode t<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> line-number-mode t<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">;; petite fenetre de compil, pas tout l'ecran</span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> compilation-window-height <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>custom-set-variables
  <span style="color: #808080; font-style: italic;">;; custom-set-variables was added by Custom.</span>
  <span style="color: #808080; font-style: italic;">;; If you edit it by hand, you could mess it up, so be careful.</span>
  <span style="color: #808080; font-style: italic;">;; Your init file should contain only one such instance.</span>
  <span style="color: #808080; font-style: italic;">;; If there is more than one, they won't work right.</span>
 '<span style="color: #66cc66;">&#40;</span>inhibit-startup-screen t<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>custom-set-faces
  <span style="color: #808080; font-style: italic;">;; custom-set-faces was added by Custom.</span>
  <span style="color: #808080; font-style: italic;">;; If you edit it by hand, you could mess it up, so be careful.</span>
  <span style="color: #808080; font-style: italic;">;; Your init file should contain only one such instance.</span>
  <span style="color: #808080; font-style: italic;">;; If there is more than one, they won't work right.</span>
 <span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">;; Des espaces pour indenter.</span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> indent-tabs-mode <span style="color: #b1b100;">nil</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span>split-window-horizontally<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span>put 'upcase-region 'disabled <span style="color: #b1b100;">nil</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.hio.fr/2009/09/04/mon-emacs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment splitter les fenetre d&#8217;Emacs au lancement</title>
		<link>http://blog.hio.fr/2009/09/02/comment-splitter-les-fenetre-demacs-au-lancement/</link>
		<comments>http://blog.hio.fr/2009/09/02/comment-splitter-les-fenetre-demacs-au-lancement/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 06:29:12 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[split]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=431</guid>
		<description><![CDATA[Quelque chose de simple et de pratique pour splitter plusieurs fenetres d'emacs au demarrage.]]></description>
			<content:encoded><![CDATA[<p>Quelque chose de simple et de pratique pour splitter plusieurs fenetres d&#8217;emacs au demarrage.</p>
<p>La dans mon cas je veux 4 fenetres au lancement</p>
<p><strong>/home/hio/.emacs</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">...
<span style="color: #7a0874; font-weight: bold;">&#40;</span>split-window-horizontally<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>split-window-vertically<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>other-window <span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>split-window-vertically<span style="color: #7a0874; font-weight: bold;">&#41;</span>
...</pre></div></div>

<p>** tada **<br />
<a href="http://blog.hio.fr/wp-content/2009/09/emacs_split_startup.png"><img class="alignnone size-medium wp-image-433" title="emacs_split_startup" src="http://blog.hio.fr/wp-content/2009/09/emacs_split_startup-300x178.png" alt="emacs_split_startup" width="300" height="178" /></a></p>
<p>** tada ** ²<br />
<a href="http://blog.hio.fr/wp-content/2009/09/Capture-2.png"><img src="http://blog.hio.fr/wp-content/2009/09/Capture-2-300x187.png" alt="Capture-2" title="Capture-2" width="300" height="187" class="alignnone size-medium wp-image-430" /></a></p>
<p>et pour 2 fenetres comme je sais que vous etes feniant ^^, c&#8217;est encor plus simple !</p>
<p><strong>/home/hio/.emacs</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">...
<span style="color: #7a0874; font-weight: bold;">&#40;</span>split-window-horizontally<span style="color: #7a0874; font-weight: bold;">&#41;</span>
...</pre></div></div>

<p>Voila plus d&#8217;excuse pour utiliser le mechant vim.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hio.fr/2009/09/02/comment-splitter-les-fenetre-demacs-au-lancement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BASH Comment tester si un repertoire existe</title>
		<link>http://blog.hio.fr/2009/08/26/bash-comment-tester-si-un-repertoire-existe/</link>
		<comments>http://blog.hio.fr/2009/08/26/bash-comment-tester-si-un-repertoire-existe/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 08:03:30 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[fichier]]></category>
		<category><![CDATA[repertoire]]></category>
		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=417</guid>
		<description><![CDATA[Voila un petit bout de bash pour tester l'existence d'un repertoire ou d'un fichier]]></description>
			<content:encoded><![CDATA[<p>Voila un petit bout de bash pour tester l&#8217;existence d&#8217;un repertoire ou d&#8217;un fichier</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">dir</span></span>=<span style="color: #ff0000;">&quot;/home/hio/test&quot;</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$dir</span>&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;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$dir</span> existe !&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></td></tr></table></div>

<p>et en rajoutant un else ^^</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">dir</span></span>=<span style="color: #ff0000;">&quot;/home/hio/test&quot;</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$dir</span>&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;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$dir</span> existe !&quot;</span>
<span style="color: #000000; font-weight: bold;">else</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$dir</span> n'existe pas!&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></td></tr></table></div>

<p>et en inversant le test on rajoute juste un &laquo;&nbsp;!&nbsp;&raquo; devant le &laquo;&nbsp;-d&nbsp;&raquo;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">dir</span></span>=<span style="color: #ff0000;">&quot;/home/hio/test&quot;</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$dir</span>&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;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$dir</span> n'existe pas!&quot;</span>
<span style="color: #000000; font-weight: bold;">else</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$dir</span> existe !&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></td></tr></table></div>

<p>Voila, c&#8217;est pas tres compliquer ^^ et pour tester l&#8217;existence d&#8217;un fichier, on remplace juste le &laquo;&nbsp;-d&nbsp;&raquo; par un &laquo;&nbsp;-f&nbsp;&raquo;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hio.fr/2009/08/26/bash-comment-tester-si-un-repertoire-existe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BASH Mon petit script iptables</title>
		<link>http://blog.hio.fr/2009/07/25/bash-mon-petit-script-iptables/</link>
		<comments>http://blog.hio.fr/2009/07/25/bash-mon-petit-script-iptables/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 08:28:34 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=393</guid>
		<description><![CDATA[iptables.sh #!/bin/bash set -e iptables=&#34;/sbin/iptables&#34; modprobe=&#34;/sbin/modprobe&#34; allowporttcp=&#34;80 443 6667 6669&#34; allowportudp=&#34;1194&#34; allowporttcptoip=&#34;7000&#34; whitelist=&#34;82.225.**.** 81.56.**.** 81.57.**.**&#34; blacklist=&#34;74.52.74.** 213.23.175.** 81.2.210.** 60.242.109.**&#34; &#160; load &#40;&#41; &#123; #echo &#34;Loading kernel modules...&#34; #$modprobe ip_tables #$modprobe ip_conntrack #$modprobe iptable_filter #$modprobe ipt_state #echo &#34;Kernel modules loaded.&#34; &#160; echo &#34;Loading rules...&#34; $iptables -P FORWARD DROP $iptables -P INPUT DROP $iptables -N blacklist $iptables [...]]]></description>
			<content:encoded><![CDATA[<p><strong>iptables.sh</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #660033;">-e</span>
<span style="color: #007800;">iptables</span>=<span style="color: #ff0000;">&quot;/sbin/iptables&quot;</span>
<span style="color: #007800;">modprobe</span>=<span style="color: #ff0000;">&quot;/sbin/modprobe&quot;</span>
<span style="color: #007800;">allowporttcp</span>=<span style="color: #ff0000;">&quot;80 443 6667 6669&quot;</span>
<span style="color: #007800;">allowportudp</span>=<span style="color: #ff0000;">&quot;1194&quot;</span>
<span style="color: #007800;">allowporttcptoip</span>=<span style="color: #ff0000;">&quot;7000&quot;</span>
<span style="color: #007800;">whitelist</span>=<span style="color: #ff0000;">&quot;82.225.**.** 81.56.**.** 81.57.**.**&quot;</span>
<span style="color: #007800;">blacklist</span>=<span style="color: #ff0000;">&quot;74.52.74.** 213.23.175.** 81.2.210.** 60.242.109.**&quot;</span>
&nbsp;
load <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
  <span style="color: #666666; font-style: italic;">#echo &quot;Loading kernel modules...&quot;</span>
  <span style="color: #666666; font-style: italic;">#$modprobe ip_tables</span>
  <span style="color: #666666; font-style: italic;">#$modprobe ip_conntrack</span>
  <span style="color: #666666; font-style: italic;">#$modprobe iptable_filter</span>
  <span style="color: #666666; font-style: italic;">#$modprobe ipt_state</span>
  <span style="color: #666666; font-style: italic;">#echo &quot;Kernel modules loaded.&quot;</span>
&nbsp;
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Loading rules...&quot;</span>
    <span style="color: #007800;">$iptables</span> <span style="color: #660033;">-P</span> FORWARD DROP
    <span style="color: #007800;">$iptables</span> <span style="color: #660033;">-P</span> INPUT DROP
    <span style="color: #007800;">$iptables</span> <span style="color: #660033;">-N</span> blacklist
    <span style="color: #007800;">$iptables</span> <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-i</span> eth0 <span style="color: #660033;">-j</span> blacklist
&nbsp;
    <span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$allowporttcp</span>
      <span style="color: #000000; font-weight: bold;">do</span>
      <span style="color: #007800;">$iptables</span> <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">-m</span> tcp <span style="color: #660033;">--destination-port</span> <span style="color: #007800;">$i</span> <span style="color: #660033;">-j</span> ACCEPT
      <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Allow port : <span style="color: #007800;">$i</span>/tcp&quot;</span>
    <span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$allowportudp</span>
      <span style="color: #000000; font-weight: bold;">do</span>
      <span style="color: #007800;">$iptables</span> <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-p</span> udp <span style="color: #660033;">-m</span> udp <span style="color: #660033;">--destination-port</span> <span style="color: #007800;">$i</span> <span style="color: #660033;">-j</span> ACCEPT
      <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Allow port : <span style="color: #007800;">$i</span>/udp&quot;</span>
    <span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$allowporttcptoip</span>
      <span style="color: #000000; font-weight: bold;">do</span>
      <span style="color: #000000; font-weight: bold;">for</span> j <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$whitelist</span>
	<span style="color: #000000; font-weight: bold;">do</span>
	<span style="color: #007800;">$iptables</span> <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">-m</span> tcp <span style="color: #660033;">--destination-port</span> <span style="color: #007800;">$i</span> <span style="color: #660033;">-s</span> <span style="color: #007800;">$j</span> <span style="color: #660033;">-j</span> ACCEPT
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Allow port : <span style="color: #007800;">$i</span>/tcp for <span style="color: #007800;">$j</span>&quot;</span>
      <span style="color: #000000; font-weight: bold;">done</span>
    <span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$blacklist</span>
      <span style="color: #000000; font-weight: bold;">do</span>
      <span style="color: #007800;">$iptables</span> <span style="color: #660033;">-s</span> <span style="color: #007800;">$i</span> <span style="color: #660033;">-j</span> DROP <span style="color: #660033;">-A</span> blacklist
      <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$i</span> blacklisted&quot;</span>
    <span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>ipv4<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/*/</span>rp_filter;
      <span style="color: #000000; font-weight: bold;">do</span>
      <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$i</span>
      <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;1 &gt; <span style="color: #007800;">$i</span>&quot;</span>
    <span style="color: #000000; font-weight: bold;">done</span>
    <span style="color: #007800;">$iptables</span> <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-p</span> icmp <span style="color: #660033;">-j</span> ACCEPT
    <span style="color: #007800;">$iptables</span> <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-p</span> ALL <span style="color: #660033;">-m</span> state <span style="color: #660033;">--state</span> ESTABLISHED,RELATED <span style="color: #660033;">-j</span> ACCEPT
    <span style="color: #007800;">$iptables</span> <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-s</span> 127.0.0.1 <span style="color: #660033;">-j</span> ACCEPT
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Rules loaded.&quot;</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
blacklist <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    <span style="color: #007800;">$iptables</span> <span style="color: #660033;">-L</span> blacklist <span style="color: #660033;">-n</span>
    <span style="color: #007800;">$iptables</span> <span style="color: #660033;">-L</span> blacklist
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
flush <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Flushing rules...&quot;</span>
    <span style="color: #007800;">$iptables</span> <span style="color: #660033;">-F</span>
    <span style="color: #007800;">$iptables</span> <span style="color: #660033;">-X</span>
    <span style="color: #007800;">$iptables</span> <span style="color: #660033;">-t</span> mangle <span style="color: #660033;">-F</span>
    <span style="color: #007800;">$iptables</span> <span style="color: #660033;">-t</span> mangle <span style="color: #660033;">-X</span>
    <span style="color: #007800;">$iptables</span> <span style="color: #660033;">-P</span> INPUT ACCEPT
    <span style="color: #007800;">$iptables</span> <span style="color: #660033;">-P</span> FORWARD ACCEPT
    <span style="color: #007800;">$iptables</span> <span style="color: #660033;">-P</span> OUTPUT ACCEPT
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Rules flushed.&quot;</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
    start<span style="color: #000000; font-weight: bold;">|</span>restart<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	flush
	load
	<span style="color: #000000; font-weight: bold;">;;</span>
    stop<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	flush
	<span style="color: #000000; font-weight: bold;">;;</span>
    blacklist<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	blacklist
	<span style="color: #000000; font-weight: bold;">;;</span>
    <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;usage: start|stop|restart|blacklist.&quot;</span>
	<span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">esac</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></div></div>

<p><strong>Utilisation</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">iptables.sh start<span style="color: #000000; font-weight: bold;">|</span>stop<span style="color: #000000; font-weight: bold;">|</span>restart<span style="color: #000000; font-weight: bold;">|</span>blacklist</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.hio.fr/2009/07/25/bash-mon-petit-script-iptables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Pourquoi Emacs c&#8217;est le bien</title>
		<link>http://blog.hio.fr/2009/06/18/linux-pourquoi-emacs-cest-le-bien/</link>
		<comments>http://blog.hio.fr/2009/06/18/linux-pourquoi-emacs-cest-le-bien/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 13:48:32 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[emacs]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=373</guid>
		<description><![CDATA[Comment split les fenetres avec emacs.]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.hio.fr/wp-content/2009/06/Capture1.png"><img class="alignnone size-medium wp-image-376" title="Capture" src="http://blog.hio.fr/wp-content/2009/06/Capture1-300x240.png" alt="Capture" width="300" height="240" /></a></p>
<p><strong>Le split des fenetres avec emacs</strong></p>
<p>&lt;ctrl+x 1&gt; Revient a un seul buffer<br />
&lt;ctrl+x 2&gt; Split horizontalement<br />
&lt;ctrl+x 3&gt; Split verticalement<br />
&lt;ctrl+x o&gt; passer d&#8217;un buffer a l&#8217;autre</p>
<p>Le reste google it ! ^^</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hio.fr/2009/06/18/linux-pourquoi-emacs-cest-le-bien/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LINUX comment cree un serveur ftp avec pureftpd et mysql</title>
		<link>http://blog.hio.fr/2009/05/04/linux-comment-cree-un-serveur-ftp-avec-pureftpd-et-mysql/</link>
		<comments>http://blog.hio.fr/2009/05/04/linux-comment-cree-un-serveur-ftp-avec-pureftpd-et-mysql/#comments</comments>
		<pubDate>Mon, 04 May 2009 07:12:11 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[pureftpd]]></category>
		<category><![CDATA[quota]]></category>
		<category><![CDATA[tls]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=336</guid>
		<description><![CDATA[Ce we pendant mes moments perdu et dieu sait qu'ils ne sont pas nombreux :p
J'ai installé un serveur pureftpd avec le support de mysql, gestion des quota et gestion de bande passante.]]></description>
			<content:encoded><![CDATA[<p>Ce we pendant mes moments perdu et dieu sait qu&#8217;ils ne sont pas nombreux :p<br />
J&#8217;ai installé un serveur pureftpd avec le support de mysql, gestion des quota et gestion de bande passante.</p>
<p>Donc voila un tuto très bien fais, en gros si on a des bases suffisante, c&#8217;est terminer en 5 minutes.</p>
<blockquote><p>This document describes how to install a PureFTPd server that uses virtual users from a MySQL database instead of real system users. This is much more performant and allows to have thousands of ftp users on a single machine. In addition to that I will show the use of quota and upload/download bandwidth limits with this setup. Passwords will be stored encrypted as MD5 strings in the database.</p>
<p>For the administration of the MySQL database you can use web based tools like phpMyAdmin which will also be installed in this howto. phpMyAdmin is a comfortable graphical interface which means you do not have to mess around with the command line.<br />
<a href="http://www.howtoforge.com/pureftpd_mysql_virtual_hosting" target="_blank">source</a></p></blockquote>
<p>Pour le TLS , sécurité tout ça, tout ça :p</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssl<span style="color: #000000; font-weight: bold;">/</span>private
openssl req <span style="color: #660033;">-x509</span> <span style="color: #660033;">-nodes</span> <span style="color: #660033;">-newkey</span> rsa:<span style="color: #000000;">1024</span> <span style="color: #660033;">-keyout</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssl<span style="color: #000000; font-weight: bold;">/</span>private<span style="color: #000000; font-weight: bold;">/</span>pure-ftpd.pem <span style="color: #660033;">-out</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssl<span style="color: #000000; font-weight: bold;">/</span>private<span style="color: #000000; font-weight: bold;">/</span>pure-ftpd.pem
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">600</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssl<span style="color: #000000; font-weight: bold;">/</span>private<span style="color: #000000; font-weight: bold;">/*</span>.pem</pre></td></tr></table></div>

<p>Et on restart pureftpd avec l&#8217;option<br />
&#8211;tls=1 : Connexions de client normaux ou sécurisé autorisé.<br />
&#8211;tls=2 : Seul les clients sécurisés peuvent se connecter.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hio.fr/2009/05/04/linux-comment-cree-un-serveur-ftp-avec-pureftpd-et-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LINUX comment s&#8217;authentifier en SSH avec une clé</title>
		<link>http://blog.hio.fr/2009/04/25/linux-s-authentifier-en-ssh-avec-une-cle/</link>
		<comments>http://blog.hio.fr/2009/04/25/linux-s-authentifier-en-ssh-avec-une-cle/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 12:33:35 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=144</guid>
		<description><![CDATA[S&#8217;authentifier grace a des clés a de nombreux avantage: - Plus de mdp a taper quand on se connecte souvent sur moultes machines en ssh, c’est un gain de temps très appréciable - Facilite les transferts de fichiers avec rsync/scp/etc … et permet par exemple d’automatiser des backups avec rsync Bon allez trêve de bavardage [...]]]></description>
			<content:encoded><![CDATA[<p>S&#8217;authentifier grace a des clés a de nombreux avantage:</p>
<ul>
<li>- Plus de mdp a taper quand on se connecte souvent sur moultes machines en ssh, c’est un gain de temps très appréciable</li>
<li>- Facilite les transferts de fichiers avec rsync/scp/etc … et permet par exemple d’automatiser des backups avec rsync</li>
</ul>
<p>Bon allez trêve de bavardage et go go go</p>
<p><strong>On génère 2 clés</strong><br />
Une privée: <em>id_rsa</em> pour l’authentification du client ^^<br />
Une public: <em>id_rsa.pub</em> pour SSHD</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">debian:~$ <span style="color: #c20cb9; font-weight: bold;">ssh-keygen</span> <span style="color: #660033;">-t</span> rsa
Generating public<span style="color: #000000; font-weight: bold;">/</span>private rsa key pair.
Enter <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #c20cb9; font-weight: bold;">which</span> to save the key <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>hio<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_rsa<span style="color: #7a0874; font-weight: bold;">&#41;</span>:
Enter passphrase <span style="color: #7a0874; font-weight: bold;">&#40;</span>empty <span style="color: #000000; font-weight: bold;">for</span> no passphrase<span style="color: #7a0874; font-weight: bold;">&#41;</span>:
Enter same passphrase again:
Your identification has been saved <span style="color: #000000; font-weight: bold;">in</span> id_rsa.
Your public key has been saved <span style="color: #000000; font-weight: bold;">in</span> id_rsa.pub.
The key fingerprint is:
0b:<span style="color: #000000;">97</span>:e8:<span style="color: #000000;">18</span>:<span style="color: #000000;">78</span>:<span style="color: #000000;">50</span>:f8:3b:c9:<span style="color: #000000;">41</span>:ba:f3:6d:4b:<span style="color: #000000;">41</span>:b9 hio<span style="color: #000000; font-weight: bold;">@</span>debian
The key<span style="color: #ff0000;">'s randomart image is:
+--[ RSA 2048]----+
|   ..            |
|  ...  .         |
|  .+  o          |
|  .oo. o .       |
|  .oo+E S        |
|  o.=+ + .       |
|   o.oo .        |
|    ..o          |
|     ...         |
+-----------------+</span></pre></div></div>

<p>On se retrouve donc avec 2 fichiers contenant les clés :O</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">debian:~$ <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span>
total <span style="color: #000000;">8</span>
<span style="color: #660033;">-rw-------</span> <span style="color: #000000;">1</span> hio hio <span style="color: #000000;">1675</span> mar  <span style="color: #000000;">6</span> <span style="color: #000000;">12</span>:<span style="color: #000000;">41</span> id_rsa
<span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> hio hio  <span style="color: #000000;">392</span> mar  <span style="color: #000000;">6</span> <span style="color: #000000;">12</span>:<span style="color: #000000;">41</span> id_rsa.pub</pre></div></div>

<p>Ensuite on place les clés au bon endroit</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">debian:~$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> .ssh
debian:~$ <span style="color: #c20cb9; font-weight: bold;">cat</span> id_rsa <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; .ssh<span style="color: #000000; font-weight: bold;">/</span>authorized_keys
debian:~$ la .ssh<span style="color: #000000; font-weight: bold;">/</span>
total <span style="color: #000000;">8</span>
<span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> hio hio  <span style="color: #000000;">392</span> mar  <span style="color: #000000;">6</span> <span style="color: #000000;">12</span>:<span style="color: #000000;">41</span> authorized_keys</pre></div></div>

<p>On met les bonnes permissions<br />
<em>Attention si les permissions ne sont pas bonne le serveur ssh peut refusé d&#8217;utiliser vos clés</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">debian:~$ <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">600</span> .ssh<span style="color: #000000; font-weight: bold;">/</span>authorized_keys
debian:~$ <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span> .ssh<span style="color: #000000; font-weight: bold;">/</span>
total <span style="color: #000000;">4</span>
<span style="color: #660033;">-rw-------</span> <span style="color: #000000;">1</span> hio hio <span style="color: #000000;">392</span> mar  <span style="color: #000000;">6</span> <span style="color: #000000;">12</span>:<span style="color: #000000;">41</span> authorized_keys</pre></div></div>

<p><strong>Ma configuration d&#8217;sshd</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Package generated configuration file</span>
<span style="color: #666666; font-style: italic;"># See the sshd(8) manpage for details</span>
<span style="color: #666666; font-style: italic;"># What ports, IPs and protocols we listen for</span>
Port <span style="color: #000000;">22</span>
<span style="color: #666666; font-style: italic;"># Use these options to restrict which interfaces/protocols sshd will bind to</span>
<span style="color: #666666; font-style: italic;">#ListenAddress ::</span>
<span style="color: #666666; font-style: italic;">#ListenAddress 0.0.0.0</span>
Protocol <span style="color: #000000;">2</span>
<span style="color: #666666; font-style: italic;"># HostKeys for protocol version 2</span>
HostKey <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssh<span style="color: #000000; font-weight: bold;">/</span>ssh_host_rsa_key
HostKey <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssh<span style="color: #000000; font-weight: bold;">/</span>ssh_host_dsa_key
<span style="color: #666666; font-style: italic;">#Privilege Separation is turned on for security</span>
UsePrivilegeSeparation <span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #666666; font-style: italic;"># Lifetime and size of ephemeral version 1 server key</span>
KeyRegenerationInterval <span style="color: #000000;">3600</span>
ServerKeyBits <span style="color: #000000;">768</span>
<span style="color: #666666; font-style: italic;"># Logging</span>
SyslogFacility AUTH
LogLevel INFO
<span style="color: #666666; font-style: italic;"># Authentication:</span>
LoginGraceTime <span style="color: #000000;">120</span>
PermitRootLogin no
&nbsp;
<span style="color: #666666; font-style: italic;"># La partie qui nous interresse</span>
StrictModes <span style="color: #c20cb9; font-weight: bold;">yes</span>
RSAAuthentication <span style="color: #c20cb9; font-weight: bold;">yes</span>
PubkeyAuthentication <span style="color: #c20cb9; font-weight: bold;">yes</span>
AuthorizedKeysFile      <span style="color: #000000; font-weight: bold;">%</span>h<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>authorized_keys
&nbsp;
<span style="color: #666666; font-style: italic;"># Don't read the user's ~/.rhosts and ~/.shosts files</span>
IgnoreRhosts <span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #666666; font-style: italic;"># For this to work you will also need host keys in /etc/ssh_known_hosts</span>
RhostsRSAAuthentication no
<span style="color: #666666; font-style: italic;"># similar for protocol version 2</span>
HostbasedAuthentication no
<span style="color: #666666; font-style: italic;"># Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication</span>
<span style="color: #666666; font-style: italic;">#IgnoreUserKnownHosts yes</span>
<span style="color: #666666; font-style: italic;"># To enable empty passwords, change to yes (NOT RECOMMENDED)</span>
PermitEmptyPasswords no
<span style="color: #666666; font-style: italic;"># Change to yes to enable challenge-response passwords (beware issues with</span>
<span style="color: #666666; font-style: italic;"># some PAM modules and threads)</span>
ChallengeResponseAuthentication no
<span style="color: #666666; font-style: italic;"># Change to no to disable tunnelled clear text passwords</span>
<span style="color: #666666; font-style: italic;">#PasswordAuthentication yes</span>
<span style="color: #666666; font-style: italic;"># Kerberos options</span>
<span style="color: #666666; font-style: italic;">#KerberosAuthentication no</span>
<span style="color: #666666; font-style: italic;">#KerberosGetAFSToken no</span>
<span style="color: #666666; font-style: italic;">#KerberosOrLocalPasswd yes</span>
<span style="color: #666666; font-style: italic;">#KerberosTicketCleanup yes</span>
<span style="color: #666666; font-style: italic;"># GSSAPI options</span>
<span style="color: #666666; font-style: italic;">#GSSAPIAuthentication no</span>
<span style="color: #666666; font-style: italic;">#GSSAPICleanupCredentials yes</span>
X11Forwarding <span style="color: #c20cb9; font-weight: bold;">yes</span>
X11DisplayOffset <span style="color: #000000;">10</span>
PrintMotd no
PrintLastLog <span style="color: #c20cb9; font-weight: bold;">yes</span>
TCPKeepAlive <span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #666666; font-style: italic;">#UseLogin no</span>
<span style="color: #666666; font-style: italic;">#MaxStartups 10:30:60</span>
<span style="color: #666666; font-style: italic;">#Banner /etc/issue.net</span>
<span style="color: #666666; font-style: italic;"># Allow client to pass locale environment variables</span>
AcceptEnv LANG LC_<span style="color: #000000; font-weight: bold;">*</span>
Subsystem sftp <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>openssh<span style="color: #000000; font-weight: bold;">/</span>sftp-server
UsePAM <span style="color: #c20cb9; font-weight: bold;">yes</span></pre></div></div>

<p>Voila ensuite on recupere la clé priver par ses propres moyen , je parle a des gens intelligent, je vais qd même pas tout expliquer.</p>
<p>Donc pour ma part ça sera en SCP ^^</p>
<p>On aura donc un fichier <em>id_rsa</em> sur le poste client.</p>
<p>Ensuite pour utiliser la clé avec putty sous windows il faut la convertir.<br />
Si vous etes sous linux vous avez juste a faire manger la clé au client ssh (ssh &#8211;help).</p>
<p>Si vous etes comme moi sous windows au travail par exemple ^^ , il faut encor la convertir avec <em>puttygen.exe</em>, c&#8217;est relativement simple , comme je pars du principe que vous etes intelligent , je ne vais donc pas rentrer dans les details.</p>
<p><a href="http://blog.hio.fr/wp-content/2009/03/private_key_putty.png"><img class="alignnone size-medium wp-image-172" title="private_key_putty" src="http://blog.hio.fr/wp-content/2009/03/private_key_putty-300x292.png" alt="private_key_putty" width="300" height="292" /></a></p>
<p>Ensuite dans putty<br />
<a href="http://blog.hio.fr/wp-content/2009/03/private_key_dans_putty.png"><img class="alignnone size-medium wp-image-176" title="private_key_dans_putty" src="http://blog.hio.fr/wp-content/2009/03/private_key_dans_putty-300x290.png" alt="private_key_dans_putty" width="300" height="290" /></a></p>
<p>Et voila le résultat</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">login</span> <span style="color: #c20cb9; font-weight: bold;">as</span>: hio
Authenticating with public key <span style="color: #ff0000;">&quot;imported-openssh-key&quot;</span>
Linux debian 2.6.26-<span style="color: #000000;">1</span>-<span style="color: #000000;">686</span> <span style="color: #666666; font-style: italic;">#1 SMP Sat Jan 10 18:29:31 UTC 2009 i686</span>
&nbsp;
The programs included with the Debian GNU<span style="color: #000000; font-weight: bold;">/</span>Linux system are <span style="color: #c20cb9; font-weight: bold;">free</span> software;
the exact distribution terms <span style="color: #000000; font-weight: bold;">for</span> each program are described <span style="color: #000000; font-weight: bold;">in</span> the
individual files <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>doc<span style="color: #000000; font-weight: bold;">/*/</span>copyright.
&nbsp;
Debian GNU<span style="color: #000000; font-weight: bold;">/</span>Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have new mail.
Last <span style="color: #c20cb9; font-weight: bold;">login</span>: Wed Feb <span style="color: #000000;">25</span> <span style="color: #000000;">11</span>:<span style="color: #000000;">23</span>:<span style="color: #000000;">13</span> <span style="color: #000000;">2009</span> from fpc-a800662.bayard-presse.com
debian:~$</pre></div></div>

<p>Voila , c&#8217;est fini, ce fut court mais intense :p</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hio.fr/2009/04/25/linux-s-authentifier-en-ssh-avec-une-cle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LINUX Google Chrome alpha</title>
		<link>http://blog.hio.fr/2009/03/17/linux-google-chrome-alpha/</link>
		<comments>http://blog.hio.fr/2009/03/17/linux-google-chrome-alpha/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 16:01:26 +0000</pubDate>
		<dc:creator>HiO</dc:creator>
				<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[chromium]]></category>

		<guid isPermaLink="false">http://blog.hio.fr/?p=207</guid>
		<description><![CDATA[Les developpeurs de Google Chrome on sortie une pre alpha de Google chrome sous Linux.]]></description>
			<content:encoded><![CDATA[<p>Les developpeurs de Google Chrome on sortie une pre alpha de Google chrome sous Linux.</p>
<p>Plus d&#8217;info sur <a href="http://www.clubic.com/actualite-264652-pre-alpha-chrome-linux.html" target="_blank">clubic</a>, et la procédure d&#8217;installation sous ubuntu <a href="http://www.stefanoforenza.com/chromium-on-ubuntu-how-to/" target="_blank">ici</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hio.fr/2009/03/17/linux-google-chrome-alpha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
