<?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>Astuces d&#039;Absolacom &#187; ubuntu</title>
	<atom:link href="http://astuces.absolacom.com/category/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://astuces.absolacom.com</link>
	<description>La voie est libre mais pleine d&#039;achoppements</description>
	<lastBuildDate>Wed, 01 Feb 2012 17:59:43 +0000</lastBuildDate>
	<language>fr</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu 11.10 (Oneiric) ne s&#8217;arrête pas</title>
		<link>http://astuces.absolacom.com/ubuntu/ubuntu-11-10-oneiric-ne-sarrete-pas/</link>
		<comments>http://astuces.absolacom.com/ubuntu/ubuntu-11-10-oneiric-ne-sarrete-pas/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 17:59:43 +0000</pubDate>
		<dc:creator>manuberro</dc:creator>
				<category><![CDATA[ça a fonctionné pour moi]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[logiciel]]></category>
		<category><![CDATA[planet-libre]]></category>
		<category><![CDATA[système]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[oneiric]]></category>

		<guid isPermaLink="false">http://astuces.absolacom.com/?p=1278</guid>
		<description><![CDATA[Sur certains ordinateur, avec Oneiric, l&#8217;ordinateur ne s&#8217;arrête pas véritablement. L&#8217;ordinateur reste sous tension, même si le système est coupé. Il est alors nécessaire de faire un réset manuellement, ce qui peut être gênant quand l&#8217;ordinateur n&#8217;est pas accessible. Cela peut se produire autant lors de la demande d&#8217;arrêt que pour celle du redémarrage. Parfois [...]]]></description>
			<content:encoded><![CDATA[<p>Sur certains ordinateur, avec Oneiric, l&#8217;ordinateur ne s&#8217;arrête pas véritablement. L&#8217;ordinateur reste sous tension, même si le système est coupé.<br />
Il est alors nécessaire de faire un réset manuellement, ce qui peut être gênant quand l&#8217;ordinateur n&#8217;est pas accessible.<br />
Cela peut se produire autant lors de la demande d&#8217;arrêt que pour celle du redémarrage. Parfois cela fonctionne depuis le gestionnaire de fenêtre, parfois non. La commande &laquo;&nbsp;halt&nbsp;&raquo; en ligne de commande ne fonctionne pas, elle<sup><a href="http://astuces.absolacom.com/ubuntu/ubuntu-11-10-oneiric-ne-sarrete-pas/#footnote_0_1278" id="identifier_0_1278" class="footnote-link footnote-identifier-link" title="2 machine diff&eacute;rentes, m&ecirc;me OS, comportement diff&eacute;rent. M&ecirc;me avec des syst&egrave;mes diff&eacute;rents (ubuntu/voyager) ">1</a></sup> .<br />
Je n&#8217;ai pas trouvé de solution, et des rapports de bug ont été ouverts, et on en parle sur beaucoup de forums<sup><a href="http://astuces.absolacom.com/ubuntu/ubuntu-11-10-oneiric-ne-sarrete-pas/#footnote_1_1278" id="identifier_1_1278" class="footnote-link footnote-identifier-link" title="par exemple ici ou l&agrave;">2</a></sup>  mais en attendant, il faut bien pouvoir agir.</p>
<p>J&#8217;ai trouvé une solution de contournement qui permet d&#8217;effectuer ce qui est véritablement désiré et qui fonctionne sans problèmes.<br />
Créez un script <em>/usr/bin/force_halt</em> et mettez y ce code dedans:</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>
dbus-send <span style="color: #660033;">--system</span> <span style="color: #660033;">--print-reply</span> <span style="color: #660033;">--dest</span>=org.freedesktop.ConsoleKit <span style="color: #000000; font-weight: bold;">/</span>org<span style="color: #000000; font-weight: bold;">/</span>freedesktop<span style="color: #000000; font-weight: bold;">/</span>ConsoleKit<span style="color: #000000; font-weight: bold;">/</span>Manager org.freedesktop.ConsoleKit.Manager.Stop</pre></div></div>

<p>Rendez le exécutable et remplacez vos appels à &laquo;&nbsp;<em>halt</em>&nbsp;&raquo; par &laquo;&nbsp;<em>force_halt</em>&laquo;&nbsp;. Vous pouvez aussi remplacer <em>/sbin/halt</em> par un lien vers <em>force_halt</em></p>
<p>Concernant le reboot, il faut répéter les mêmes opérations mais remplacer le <strong>Stop</strong> de la fin de la ligne de commande par <strong>Restart</strong></p>
Notes:<ol class="footnotes"><li id="footnote_0_1278" class="footnote">2 machine différentes, même OS, comportement différent. Même avec des systèmes différents (ubuntu/voyager) </li><li id="footnote_1_1278" class="footnote">par exemple <a href="http://ubuntuforums.org/showthread.php?t=1865725">ici</a> ou <a href="http://ubuntuforums.org/showthread.php?t=1863456">là</a></li></ol>]]></content:encoded>
			<wfw:commentRss>http://astuces.absolacom.com/ubuntu/ubuntu-11-10-oneiric-ne-sarrete-pas/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[Solution] ushare bind: Adresse déjà utilisée</title>
		<link>http://astuces.absolacom.com/ubuntu/solution-ushare-bind-adresse-deja-utilisee/</link>
		<comments>http://astuces.absolacom.com/ubuntu/solution-ushare-bind-adresse-deja-utilisee/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 16:58:54 +0000</pubDate>
		<dc:creator>manuberro</dc:creator>
				<category><![CDATA[borne]]></category>
		<category><![CDATA[ça a fonctionné pour moi]]></category>
		<category><![CDATA[logiciel]]></category>
		<category><![CDATA[média]]></category>
		<category><![CDATA[serveur]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://astuces.absolacom.com/?p=1273</guid>
		<description><![CDATA[Si vous avez le message d&#8217;erreur bind: Adresse déjà utilisée lorsque vous lancez ushare, vérifiez que celui ci n&#8217;est pas déjà lancé. Dans tous les cas, vous pouvez lancez la commande suivante avant de relancer ushare: sudo killall ushare &#160;]]></description>
			<content:encoded><![CDATA[<p>Si vous avez le message d&#8217;erreur <em><strong>bind: Adresse déjà utilisée</strong></em> lorsque vous lancez ushare, vérifiez que celui ci n&#8217;est pas déjà lancé.</p>
<p>Dans tous les cas, vous pouvez lancez la commande suivante avant de relancer ushare:</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;">killall</span> ushare</pre></div></div>

<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://astuces.absolacom.com/ubuntu/solution-ushare-bind-adresse-deja-utilisee/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu: faire fonctionner la carte Ethernet Atheros AR8151</title>
		<link>http://astuces.absolacom.com/ubuntu/ubuntu-faire-fonctionner-la-carte-ethernet-atheros-ar8151/</link>
		<comments>http://astuces.absolacom.com/ubuntu/ubuntu-faire-fonctionner-la-carte-ethernet-atheros-ar8151/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 17:01:27 +0000</pubDate>
		<dc:creator>manuberro</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[planet-libre]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ar8151]]></category>
		<category><![CDATA[atheros]]></category>
		<category><![CDATA[driver]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[logiciel]]></category>
		<category><![CDATA[lucid]]></category>
		<category><![CDATA[reseau]]></category>
		<category><![CDATA[serveur]]></category>
		<category><![CDATA[système]]></category>

		<guid isPermaLink="false">http://astuces.absolacom.com/?p=1266</guid>
		<description><![CDATA[Ethernet controller [0200]: Atheros Communications AR8152 v2.0 Fast Ethernet [1969:2062] (rev c1) Les derniers pilotes Athéros ne sont pas disponibles. Le serveur semble down ou cassé, mais il est possible d&#8217;installer les drivers pour faire fonctionner cette carte réseau grâce à un forum allemand. Installons d&#8217;abord les éléments nécessaires sudo apt-get install --reinstall linux-headers-$&#40;uname -r&#41; [...]]]></description>
			<content:encoded><![CDATA[<h2>Ethernet controller [0200]: Atheros Communications AR8152 v2.0 Fast Ethernet [1969:2062] (rev c1)</h2>
<p>Les derniers pilotes <a href="http://partner.atheros.com/Drivers.aspx" target="_blank">Athéros</a> ne sont pas disponibles. Le serveur semble down ou cassé, mais il est possible d&#8217;installer les drivers pour faire fonctionner cette carte réseau grâce à un forum allemand.</p>
<p><strong>Installons d&#8217;abord les éléments nécessaires</strong></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> <span style="color: #660033;">--reinstall</span> linux-headers-$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">uname</span> -r<span style="color: #7a0874; font-weight: bold;">&#41;</span> build-essential</pre></div></div>

<p>Nous allons ensuite installer DKMS pour installer le module</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> <span style="color: #660033;">--reinstall</span> linux-headers-$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">uname</span> -r<span style="color: #7a0874; font-weight: bold;">&#41;</span> build-essential dkms        <span style="color: #666666; font-style: italic;"># s'ils ne sont pas déjà installés</span>
<span style="color: #666666; font-style: italic;">## Pour Ubuntu 10.04</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>media.cdn.ubuntu-de.org<span style="color: #000000; font-weight: bold;">/</span>forum<span style="color: #000000; font-weight: bold;">/</span>attachments<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2666793</span><span style="color: #000000; font-weight: bold;">/</span>AR81Family-linux-v1.0.1.14_dkms.tar.gz
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> xvf AR81Family-linux-v1.0.1.14_dkms.tar.gz <span style="color: #660033;">-C</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src
&nbsp;
<span style="color: #666666; font-style: italic;"># Pour Ubuntu 10.10 et supérieur</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>media.cdn.ubuntu-de.org<span style="color: #000000; font-weight: bold;">/</span>forum<span style="color: #000000; font-weight: bold;">/</span>attachments<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2666793</span><span style="color: #000000; font-weight: bold;">/</span>AR81Family-linux-v1.0.1.14_10.10.tar.gz
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> xvf AR81Family-linux-v1.0.1.14_10.10.tar.gz <span style="color: #660033;">-C</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src</pre></div></div>

<p><strong>Création du module et installation</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> dkms add <span style="color: #660033;">-m</span> atl1e <span style="color: #660033;">-v</span> 1.0.1.14
<span style="color: #c20cb9; font-weight: bold;">sudo</span> dkms build <span style="color: #660033;">-m</span> atl1e <span style="color: #660033;">-v</span> 1.0.1.14
<span style="color: #c20cb9; font-weight: bold;">sudo</span> dkms <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-m</span> atl1e <span style="color: #660033;">-v</span> 1.0.1.14</pre></div></div>

<p><strong>Chargement du module et test</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> modprobe atl1e
<span style="color: #c20cb9; font-weight: bold;">dmesg</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">egrep</span> <span style="color: #ff0000;">'atl1e|eth'</span>
<span style="color: #c20cb9; font-weight: bold;">ifconfig</span> <span style="color: #660033;">-a</span></pre></div></div>

<p>Malheureusement, l&#8217;archive pour 10.10 et supérieurs n&#8217;est plus disponible sur ce site. Je met donc au moins l&#8217;archive pour 10.04 à disposition sur le mien au cas où elle disparaitrait</p>
<p><a href="http://astuces.absolacom.com/wp-content/uploads/2011/12/AR81Family-linux-v1.0.1.14_dkms.tar.gz">AR81Family-linux-v1.0.1.14_dkms.tar</a></p>
<p>Source: <a href="http://forum.ubuntuusers.de/topic/lan-geht-nicht-wlan-schon/#post-2666793" target="_blank">http://forum.ubuntuusers.de/topic/lan-geht-nicht-wlan-schon/#post-2666793</a></p>
]]></content:encoded>
			<wfw:commentRss>http://astuces.absolacom.com/ubuntu/ubuntu-faire-fonctionner-la-carte-ethernet-atheros-ar8151/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Activer XDMCP sur Ubuntu Lucid 10.04</title>
		<link>http://astuces.absolacom.com/ubuntu/activer-xdmcp-sur-ubuntu-lucid-10-04/</link>
		<comments>http://astuces.absolacom.com/ubuntu/activer-xdmcp-sur-ubuntu-lucid-10-04/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 17:42:18 +0000</pubDate>
		<dc:creator>manuberro</dc:creator>
				<category><![CDATA[borne]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[logiciel]]></category>
		<category><![CDATA[planet-libre]]></category>
		<category><![CDATA[serveur]]></category>
		<category><![CDATA[système]]></category>
		<category><![CDATA[tuning]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[lucid]]></category>

		<guid isPermaLink="false">http://astuces.absolacom.com/?p=1171</guid>
		<description><![CDATA[Cette astuce fonctionne peut être avec les versions suivantes, mais je ne l&#8217;ai pas testée. A confirmer. Si vous avez besoin d&#8217;utiliser XDMCP sur votre réseau, vous constaterez qu&#8217;avec la &#171;&#160;nouvelle&#160;&#187; version de GDM, il n&#8217;est plus possible de l&#8217;activer facilement1. Or, il suffit de quelques manipulations pour la remettre en place. Paramétrer le serveur [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Cette astuce fonctionne peut être avec les versions suivantes, mais je ne l&#8217;ai pas testée. A confirmer.</p></blockquote>
<p>Si vous avez besoin d&#8217;utiliser XDMCP sur votre réseau, vous constaterez qu&#8217;avec la &laquo;&nbsp;nouvelle&nbsp;&raquo; version de GDM, il n&#8217;est plus possible de l&#8217;activer facilement<sup><a href="http://astuces.absolacom.com/ubuntu/activer-xdmcp-sur-ubuntu-lucid-10-04/#footnote_0_1171" id="identifier_0_1171" class="footnote-link footnote-identifier-link" title="en tout cas, pas aussi facilement qu&amp;#8217;avant">1</a></sup>.</p>
<p>Or, il suffit de quelques manipulations pour la remettre en place.</p>
<h2>Paramétrer le serveur XDMCP</h2>
<p>Tout d&#8217;abord, il faut créer le fichier<em> /etc/gdm/custom.conf</em> qui va enregistrer les options de GDM, et en particulier celles concernant XDMCP.</p>
<p>Remplissez le avec ceci:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>daemon<span style="color: #7a0874; font-weight: bold;">&#93;</span>
 <span style="color: #007800;">User</span>=gdm
 <span style="color: #007800;">Group</span>=gdm
<span style="color: #7a0874; font-weight: bold;">&#91;</span>security<span style="color: #7a0874; font-weight: bold;">&#93;</span>
 <span style="color: #007800;">DisallowTCP</span>=<span style="color: #c20cb9; font-weight: bold;">true</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>xdmcp<span style="color: #7a0874; font-weight: bold;">&#93;</span>
 <span style="color: #007800;">Enable</span>=<span style="color: #c20cb9; font-weight: bold;">true</span>
 <span style="color: #007800;">DisplaysPerHost</span>=<span style="color: #000000;">2</span>
 <span style="color: #007800;">HonorIndirect</span>=<span style="color: #c20cb9; font-weight: bold;">false</span>
 <span style="color: #007800;">MaxPending</span>=<span style="color: #000000;">4</span>
 <span style="color: #007800;">MaxSessions</span>=<span style="color: #000000;">16</span>
 <span style="color: #007800;">MaxWait</span>=<span style="color: #000000;">30</span>
 <span style="color: #007800;">MaxWaitIndirect</span>=<span style="color: #000000;">30</span>
 <span style="color: #007800;">PingIntervalSeconds</span>=<span style="color: #000000;">60</span>
 <span style="color: #007800;">Port</span>=<span style="color: #000000;">177</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>greeter<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>chooser<span style="color: #7a0874; font-weight: bold;">&#93;</span>
 <span style="color: #007800;">Multicast</span>=<span style="color: #c20cb9; font-weight: bold;">false</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>debug<span style="color: #7a0874; font-weight: bold;">&#93;</span>
 <span style="color: #007800;">Enable</span>=<span style="color: #c20cb9; font-weight: bold;">false</span></pre></div></div>

<p>Il suffit ensuite de redémarrer le service GDM pour activer le XDMCP.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">service gdm restart</pre></div></div>

<p>Cependant, si vous avez désactivé IPV6 sur votre réseau, cela ne fonctionnera pas, puisque XDMCP écoute par défaut en IPV6 désormais. Vous pouvez le voir en root avec la commande <em>netstat</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>test4:<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>manu<span style="color: #666666; font-style: italic;"># netstat -putan|grep 177</span>
udp6       <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span> :::<span style="color: #000000;">177</span>        :::<span style="color: #000000; font-weight: bold;">*</span>        <span style="color: #000000;">646</span><span style="color: #000000; font-weight: bold;">/</span>gdm-binary</pre></div></div>

<p>Il faut alors désactiver IPV6 sur l&#8217;ordinateur qui diffusera son affichage, par exemple en le désactivant au niveau du noyau.</p>
<p>On peut le faire en rajoutant une option au fichier de configuration de grub. Modifiez les fichier /etc/default/grub pour ajouter l&#8217;option &laquo;&nbsp;ipv6.disable=1&#8243;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">GRUB_CMDLINE_LINUX_DEFAULT</span>=<span style="color: #ff0000;">&quot;ipv6.disable=1 quiet splash&quot;</span></pre></div></div>

<p>Reconstruisez le fichier de configuration de grub par &laquo;&nbsp;sudo update-grub&nbsp;&raquo; puis redémarrez votre ordinateur. <em>Netstat</em> vous indique alors que XDMCP écoute en IPV4<sup><a href="http://astuces.absolacom.com/ubuntu/activer-xdmcp-sur-ubuntu-lucid-10-04/#footnote_1_1171" id="identifier_1_1171" class="footnote-link footnote-identifier-link" title="notez le 6 qui a disparu et la notation des adresses">2</a></sup></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>test4:<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>manu<span style="color: #666666; font-style: italic;"># netstat -putan|grep 177</span>
udp       <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span> 0.0.0.0:<span style="color: #000000;">177</span>        0.0.0.0<span style="color: #000000; font-weight: bold;">*</span>        <span style="color: #000000;">658</span><span style="color: #000000; font-weight: bold;">/</span>gdm-binary</pre></div></div>

<h2>Utiliser le client XDMCP</h2>
<p>On peut utiliser <a href="http://sourceforge.net/projects/xming/" target="_blank">Xming</a> depuis Windows, mais depuis Linux, il est plus simple d&#8217;utiliser <a href="http://doc.ubuntu-fr.org/tsclient" target="_blank"><em>tsclient</em></a>. Dans la liste des protocoles, si vous ne voyez pas XDMCP, c&#8217;est qu&#8217;il vous faut l&#8217;installer le paquet <em>xnest</em></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> xnest</pre></div></div>

<p><a href="http://astuces.absolacom.com/wp-content/uploads/2011/07/tsclient.png"><img class="aligncenter size-medium wp-image-1176" title="tsclient" src="http://astuces.absolacom.com/wp-content/uploads/2011/07/tsclient-270x300.png" alt="tsclient avec XDMCP" width="270" height="300" /></a>Ensuite, pour la connexion, c&#8217;est du classique.</p>
<h2>Un client XDMCP en console</h2>
<p>Si vous désirez lancer une session XDMCP systématiquement, il est inutile se charger gnome ou un gestionnaire de fenêtres simplement pour lancer tsclient puis votre session XDMCP. Il est possible de lancer celle ci directement.</p>
<p><a title="Désactiver le lancement de GDM sur Lucid" href="http://astuces.absolacom.com/serveur/desactiver-le-lancement-de-gdm-sur-lucid/" target="_blank">Désactivez le lancement de GDM</a>, puis logguez vous sur l&#8217;ordinateur et tapez la commande suivante:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>X11R6<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>X <span style="color: #660033;">-query</span> 192.168.1.2</pre></div></div>

<p>où 192.168.1.2 est le serveur sur lequel vous avez activé XDMCP.</p>
<h4>Sources:</h4>
<ul>
<li><a class="linkification-ext" title="Linkification: http://doc.ubuntu-fr.org/tutoriel/comment_creer_un_terminal_x_ou_recycler_une_vieille_machine?s=xdmcp" href="http://doc.ubuntu-fr.org/tutoriel/comment_creer_un_terminal_x_ou_recycler_une_vieille_machine?s=xdmcp">http://doc.ubuntu-fr.org/tutoriel/comment_creer_un_terminal_x_ou_recycler_une_vieille_machine?s=xdmcp</a></li>
<li><a class="linkification-ext" title="Linkification: http://ubuntuforums.org/showthread.php?t=1471703" href="http://ubuntuforums.org/showthread.php?t=1471703">http://ubuntuforums.org/showthread.php?t=1471703</a></li>
</ul>
Notes:<ol class="footnotes"><li id="footnote_0_1171" class="footnote">en tout cas, pas aussi facilement qu&#8217;avant</li><li id="footnote_1_1171" class="footnote">notez le 6 qui a disparu et la notation des adresses</li></ol>]]></content:encoded>
			<wfw:commentRss>http://astuces.absolacom.com/ubuntu/activer-xdmcp-sur-ubuntu-lucid-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tftpd-hpa sur Lucid (erreur TFTP open timeout)</title>
		<link>http://astuces.absolacom.com/ubuntu/tftpd-hpa-sur-lucid-erreur-tftp-open-timeout/</link>
		<comments>http://astuces.absolacom.com/ubuntu/tftpd-hpa-sur-lucid-erreur-tftp-open-timeout/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 10:34:55 +0000</pubDate>
		<dc:creator>manuberro</dc:creator>
				<category><![CDATA[borne]]></category>
		<category><![CDATA[ça a fonctionné pour moi]]></category>
		<category><![CDATA[client léger]]></category>
		<category><![CDATA[planet-libre]]></category>
		<category><![CDATA[serveur]]></category>
		<category><![CDATA[système]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://astuces.absolacom.com/?p=1248</guid>
		<description><![CDATA[La mise à jour du programme tftpd-hpa sur lucid modifie son fichier de configuration par défaut. Si vous utilisez des clients légers avec LTSP, vous vous retrouvez avec des clients qui s&#8217;arrêtent à l&#8217;erreur PXE: TFTP open timeout juste après avoir obtenu leur adresse IP du dhcp. Avant, votre fichier de configuration était ainsi: root@ltsp:#cat [...]]]></description>
			<content:encoded><![CDATA[<p>La mise à jour du programme <strong>tftpd-hpa</strong> sur <strong>lucid</strong> modifie son fichier de configuration par défaut. Si vous utilisez des clients légers avec <a href="http://www.ltsp.org/">LTSP</a>, vous vous retrouvez avec des clients qui s&#8217;arrêtent à l&#8217;erreur<strong> PXE: TFTP open timeout</strong> juste après avoir obtenu leur adresse IP du dhcp.</p>
<p>Avant, votre fichier de configuration était ainsi:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>ltsp:<span style="color: #666666; font-style: italic;">#cat /etc/default/tftpd-hpa</span>
<span style="color: #666666; font-style: italic;">#Defaults for tftpd-hpa</span>
<span style="color: #007800;">RUN_DAEMON</span>=<span style="color: #ff0000;">&quot;yes&quot;</span>
<span style="color: #007800;">OPTIONS</span>=<span style="color: #ff0000;">&quot;-l -s /var/lib/tftpboot&quot;</span></pre></div></div>

<p>Or, maintenant, le fichier se présente ainsi:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /etc/default/tftpd-hpa</span>
<span style="color: #007800;">TFTP_USERNAME</span>=<span style="color: #ff0000;">&quot;tftp&quot;</span>
<span style="color: #007800;">TFTP_DIRECTORY</span>=<span style="color: #ff0000;">&quot;/srv/tftp&quot;</span>
<span style="color: #007800;">TFTP_ADDRESS</span>=<span style="color: #ff0000;">&quot;0.0.0.0:69&quot;</span>
<span style="color: #007800;">TFTP_OPTIONS</span>=<span style="color: #ff0000;">&quot;&quot;</span></pre></div></div>

<p>Du coup, le serveur ne se lance plus (il n&#8217;apparait pas dans les processus) même si vous avez un message disant qu&#8217;il est déjà en cours de fonctionnement lorsque vous tentez de le relancer.</p>
<p>Il suffit alors de modifier votre fichier de la manière suivante:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /etc/default/tftpd-hpa</span>
<span style="color: #007800;">TFTP_USERNAME</span>=<span style="color: #ff0000;">&quot;tftp&quot;</span>
<span style="color: #007800;">TFTP_DIRECTORY</span>=<span style="color: #ff0000;">&quot;/var/lib/tftpboot&quot;</span>
<span style="color: #007800;">TFTP_ADDRESS</span>=<span style="color: #ff0000;">&quot;0.0.0.0:69&quot;</span>
<span style="color: #007800;">TFTP_OPTIONS</span>=<span style="color: #ff0000;">&quot;--secure&quot;</span></pre></div></div>

<p>Relancez ensuite votre serveur tftpd et vos clients devraient démarrer.</p>
<p>Si vous avez utilisé des outils qui paramètrent automatiquement le fichier de configuration avec l&#8217;ancienne version, réinstallez le paquet pour obtenir le nouveau fichier de configuration:</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> <span style="color: #660033;">--reinstall</span> tftpd-hpa</pre></div></div>

<p>puis effectuez manuellement les modifications.</p>
]]></content:encoded>
			<wfw:commentRss>http://astuces.absolacom.com/ubuntu/tftpd-hpa-sur-lucid-erreur-tftp-open-timeout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clavier qwerty sur Ubuntu Oneiric Ocelot</title>
		<link>http://astuces.absolacom.com/ubuntu/clavier-qwerty-sur-ubuntu-oneiric-ocelot/</link>
		<comments>http://astuces.absolacom.com/ubuntu/clavier-qwerty-sur-ubuntu-oneiric-ocelot/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 12:09:49 +0000</pubDate>
		<dc:creator>manuberro</dc:creator>
				<category><![CDATA[ça a fonctionné pour moi]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[planet-libre]]></category>
		<category><![CDATA[système]]></category>
		<category><![CDATA[tuning]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[clavier]]></category>

		<guid isPermaLink="false">http://astuces.absolacom.com/?p=1214</guid>
		<description><![CDATA[Après une install d&#8217;Oneiric sur une machine, je me suis retrouvé avec un clavier US dans l&#8217;environnement graphique et dans le gestionnaire de connexion lightdm. J&#8217;ai bien sûr réglé le clavier avec les outils de gnome1 mais à chaque redémarrage, je me retrouvais en clavier qwerty au lieu de l&#8217;azerty voulu. Après avoir longuement cherché [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.semageek.com/diy-fabriquer-un-rubiks-cube-bien-geek-a-l-aide-d-un-vieux-clavier/"><img class="alignleft size-thumbnail wp-image-1224" title="rubiks-cube-geek-clavier-touche-diy-2" src="http://astuces.absolacom.com/wp-content/uploads/2011/12/rubiks-cube-geek-clavier-touche-diy-2-150x150.jpg" alt="" width="150" height="150" /></a>Après une install d&#8217;Oneiric sur une machine, je me suis retrouvé avec un clavier US dans l&#8217;environnement graphique et dans le gestionnaire de connexion lightdm.</p>
<p>J&#8217;ai bien sûr réglé le clavier avec les outils de gnome<sup><a href="http://astuces.absolacom.com/ubuntu/clavier-qwerty-sur-ubuntu-oneiric-ocelot/#footnote_0_1214" id="identifier_0_1214" class="footnote-link footnote-identifier-link" title="et de lxde puisque j&amp;#8217;ai install&eacute; les deux environnements">1</a></sup> mais à chaque redémarrage, je me retrouvais en clavier qwerty au lieu de l&#8217;azerty voulu.</p>
<p>Après avoir longuement cherché , je suis tombé sur une discussion qui m&#8217;a donné la bonne solution.</p>
<p>Il faut aller consulter le fichier <em><strong>/etc/default/keyboard</strong></em> qui, s&#8217;il fait référence à un clavier US, est prioritaire sur les autres réglages.<br />
Si c&#8217;est le cas, il faut reconfigurer le clavier pour corriger ce fichier et faire en sorte d&#8217;obtenir les bonnes touches</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">dpkg-reconfigure keyboard-configuration</pre></div></div>

<p>Et suivre les instructions, ce qui devrait donner un résultat tel que celui ci:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># If you change any of the following variables and X is configured to</span>
<span style="color: #666666; font-style: italic;"># use this file, then the changes will become visible to X only if udev</span>
<span style="color: #666666; font-style: italic;"># is restarted. You may need to reboot the system.</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># The following variables describe your keyboard and can have the same</span>
<span style="color: #666666; font-style: italic;"># values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options</span>
<span style="color: #666666; font-style: italic;"># in /etc/X11/xorg.conf.</span>
&nbsp;
<span style="color: #007800;">XKBMODEL</span>=<span style="color: #ff0000;">&quot;pc105&quot;</span>
<span style="color: #007800;">XKBLAYOUT</span>=<span style="color: #ff0000;">&quot;fr&quot;</span>
<span style="color: #007800;">XKBVARIANT</span>=<span style="color: #ff0000;">&quot;&quot;</span>
<span style="color: #007800;">XKBOPTIONS</span>=<span style="color: #ff0000;">&quot;lv3:ralt_switch,compose:rctrl&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># If you don't want to use the XKB layout on the console, you can</span>
<span style="color: #666666; font-style: italic;"># specify an alternative keymap. Make sure it will be accessible</span>
<span style="color: #666666; font-style: italic;"># before /usr is mounted.</span>
<span style="color: #666666; font-style: italic;"># KMAP=/etc/console-setup/defkeymap.kmap.gz</span></pre></div></div>

<p>J&#8217;ai perdu du temps à trouver la solution, espérons que ça vous sera utile.</p>
<p>Source: http://forum.ubuntu-fr.org/viewtopic.php?pid=6654251#p6654251</p>
Notes:<ol class="footnotes"><li id="footnote_0_1214" class="footnote">et de lxde puisque j&#8217;ai installé les deux environnements</li></ol>]]></content:encoded>
			<wfw:commentRss>http://astuces.absolacom.com/ubuntu/clavier-qwerty-sur-ubuntu-oneiric-ocelot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Entête Crontab</title>
		<link>http://astuces.absolacom.com/ubuntu/entete-crontab/</link>
		<comments>http://astuces.absolacom.com/ubuntu/entete-crontab/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 09:55:32 +0000</pubDate>
		<dc:creator>manuberro</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[memo]]></category>
		<category><![CDATA[système]]></category>
		<category><![CDATA[tuning]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[cron]]></category>

		<guid isPermaLink="false">http://astuces.absolacom.com/?p=1195</guid>
		<description><![CDATA[Pour mémo, voici les lignes devant être présentes en entête de crontab pour éviter les soucis. En effet, le cron utilise son propre processus/shell au lancement, et on a parfois des erreurs difficiles à cerner de chemin non trouvé ou de langage. A adapter à votre situation # m h  dom mon dow   command MAILTO=&#160;&#187;monadressel@monfai.fr&#160;&#187; [...]]]></description>
			<content:encoded><![CDATA[<p>Pour mémo, voici les lignes devant être présentes en entête de crontab pour éviter les soucis. En effet, le cron utilise son propre processus/shell au lancement, et on a parfois des erreurs difficiles à cerner de chemin non trouvé ou de langage.</p>
<p>A adapter à votre situation</p>
<blockquote><p># m h  dom mon dow   command<br />
MAILTO=&nbsp;&raquo;monadressel@monfai.fr&nbsp;&raquo;<br />
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games<br />
SHELL=/bin/bash<br />
LC_ALL=fr_FR.UTF-8</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://astuces.absolacom.com/ubuntu/entete-crontab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pas de /var/log/messages sur Ubuntu Maverick/Natty</title>
		<link>http://astuces.absolacom.com/ubuntu/pas-de-varlogmessages-sur-ubuntu-mavericknatty/</link>
		<comments>http://astuces.absolacom.com/ubuntu/pas-de-varlogmessages-sur-ubuntu-mavericknatty/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 00:02:35 +0000</pubDate>
		<dc:creator>manuberro</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[logiciel]]></category>
		<category><![CDATA[planet-libre]]></category>
		<category><![CDATA[système]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[messages]]></category>
		<category><![CDATA[syslog]]></category>

		<guid isPermaLink="false">http://astuces.absolacom.com/?p=1158</guid>
		<description><![CDATA[Sur Ubuntu Natty, j&#8217;ai eu la surprise de constater qu&#8217;il n&#8217;y avais pas de fichier /var/log/messages. Cela vient du fait que les développeurs ont estimé qu&#8217;il était redondant avec les autres fichiers de logs, et ils ont décidé de ne plus l&#8217;activer. &#8230;les journaux que vous recherchez sont dans /var/log/syslog. Cela a été une décision [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://astuces.absolacom.com/wp-content/uploads/2011/07/messages.jpg"><img class="alignright size-thumbnail wp-image-1163" title="messages" src="http://astuces.absolacom.com/wp-content/uploads/2011/07/messages-150x150.jpg" alt="" width="150" height="150" /></a>Sur Ubuntu Natty, j&#8217;ai eu la surprise de constater qu&#8217;il n&#8217;y avais pas de fichier /var/log/messages.</p>
<p>Cela vient du fait que <a href="https://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/762505/comments/8" target="_blank">les développeurs ont estimé qu&#8217;il était redondant</a> avec les autres fichiers de logs, et ils ont décidé de ne plus l&#8217;activer.</p>
<blockquote><p>&#8230;les journaux que vous recherchez sont dans /var/log/syslog. Cela a été une décision délibérée dans maverick pour réduire les chevauchements de log (tout ce qui est logué dans /var/log/messages a toujours été aussi enregistré dans /var/log/syslog ).</p></blockquote>
<p>Or, certaines applications l&#8217;utilisent et se plaignent de ne pas le trouver. On peut le créer vide, mais il le restera. On peut aussi créer un lien vers /var/log/syslog.</p>
<p>Mais le mieux est de le réactiver. Il suffit d&#8217;éditer le fichier <em>/etc/rsyslog.d/50-default.conf</em> et de dé-commenter les lignes suivantes:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">*</span>.=info;<span style="color: #000000; font-weight: bold;">*</span>.=notice;<span style="color: #000000; font-weight: bold;">*</span>.=warn;\
auth,authpriv.none;\
cron,daemon.none;\
mail,news.none -<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>messages</pre></div></div>

<p>ensuite, redémarrez ou lancez</p>

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

<p>Source: <a href="http://ubuntuforums.org/showthread.php?t=1728570" target="_blank">http://ubuntuforums.org/showthread.php?t=1728570</a></p>
]]></content:encoded>
			<wfw:commentRss>http://astuces.absolacom.com/ubuntu/pas-de-varlogmessages-sur-ubuntu-mavericknatty/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Voir l&#8217;occupation des dossiers avec NCDU</title>
		<link>http://astuces.absolacom.com/ubuntu/voir-loccupation-des-dossiers-avec-ncdu/</link>
		<comments>http://astuces.absolacom.com/ubuntu/voir-loccupation-des-dossiers-avec-ncdu/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 18:57:30 +0000</pubDate>
		<dc:creator>manuberro</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[logiciel]]></category>
		<category><![CDATA[planet-libre]]></category>
		<category><![CDATA[serveur]]></category>
		<category><![CDATA[système]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://astuces.absolacom.com/?p=1047</guid>
		<description><![CDATA[Vous connaissez certainement Baobab, qui permet de naviguer rapidement dans le système de fichier pour trouver quel est le dossier ou le fichier qui prend tant de place1. Mais quand on se trouve sur une machine qui n&#8217;a pas d&#8217;interface graphique, ou par SSH ? Effectivement, on peut s&#8217;en sortir à grand coup de du, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://astuces.absolacom.com/wp-content/uploads/2011/04/complet.jpg"><img class="size-medium wp-image-1053 alignleft" title="complet" src="http://astuces.absolacom.com/wp-content/uploads/2011/04/complet-300x225.jpg" alt="" width="240" height="180" /></a>Vous connaissez certainement <a href="https://help.ubuntu.com/community/Baobab" target="_blank">Baobab</a>, qui permet de naviguer rapidement dans le système de fichier pour trouver quel est le dossier ou le fichier qui prend tant de place<sup><a href="http://astuces.absolacom.com/ubuntu/voir-loccupation-des-dossiers-avec-ncdu/#footnote_0_1047" id="identifier_0_1047" class="footnote-link footnote-identifier-link" title=" L&amp;#8217;&eacute;quivalent pour windows est WinDirStat ">1</a></sup>.</p>
<p>Mais quand on se trouve sur une machine qui n&#8217;a pas d&#8217;interface graphique, ou par SSH ?<br />
Effectivement, on peut s&#8217;en sortir à grand coup de <em>du</em>, <em>grep</em> et <em>find</em> .</p>
<p>Par exemple, et vous conviendrez que c&#8217;est<a href="http://fr.wikipedia.org/wiki/Ironie" target="_blank"> facile à mémoriser</a> :</p>
<blockquote><p><em>du -cks * | sort -rn | while read size fname; do for unit in k M G T P E Z Y; do if [ $size -lt 1024 ]; then echo -e  &laquo;&nbsp;${size}${unit}\t${fname}&nbsp;&raquo;; break; fi; size=$((size/1024)); done; done</em>.</p></blockquote>
<p>Mais il n&#8217;est pas du tout pratique de se construire une représentation de l&#8217;arborescence pour agir efficacement et rapidement.</p>
<p>Confronté à un manque surprenant de place sur un NAS distant venant à peine d&#8217;être installé (500 Go / 1 mois), j&#8217;ai recherché un outil me permettant de trouver quel utilisateur squattait la place.<a href="http://astuces.absolacom.com/wp-content/uploads/2011/04/ncdu1.png"><img class="alignright size-thumbnail wp-image-1055" title="ncdu1" src="http://astuces.absolacom.com/wp-content/uploads/2011/04/ncdu1-150x150.png" alt="" width="150" height="150" /></a></p>
<p><a href="http://dev.yorhel.nl/ncdu" target="_blank">NCDU</a>, pour NCurses Disk Usage, permet d&#8217;analyser le système de fichier, en tout cas l&#8217;arborescence dans laquelle vous vous trouvez ou celle que vous lui indiquez, et de naviguer dedans. Et <a href="http://dev.yorhel.nl/ncdu/man" target="_blank">de supprimer</a> les fichiers/dossiers inutiles que vous rencontreriez.</p>
<p>Dans mon cas, supprimer le dossier de <a href="http://www.festivaldufilmdevacances.com/presentation_festival_2009.php?l=fr" target="_blank">films de vacances</a><sup><a href="http://astuces.absolacom.com/ubuntu/voir-loccupation-des-dossiers-avec-ncdu/#footnote_1_1047" id="identifier_1_1047" class="footnote-link footnote-identifier-link" title=" mouais&amp;#8230; ">2</a></sup> d&#8217;un utilisateur a permis de retrouver de quoi travailler confortablement pour les autres.</p>
<p>NCDU se trouve dans les dépôts officiels, et un simple <em>sudo apt-get install ncdu</em> vous permettra de profiter de ce formidable <em>cli tool</em>.</p>
<p><a href="http://astuces.absolacom.com/wp-content/uploads/2011/04/ncdu2.png"><img class="alignleft size-thumbnail wp-image-1057" title="ncdu2" src="http://astuces.absolacom.com/wp-content/uploads/2011/04/ncdu2-150x150.png" alt="" width="150" height="150" /></a></p>
Notes:<ol class="footnotes"><li id="footnote_0_1047" class="footnote"> L&#8217;équivalent pour windows est <a href="http://www.commentcamarche.net/download/telecharger-245-windirstat" target="_blank">WinDirStat</a> </li><li id="footnote_1_1047" class="footnote"> mouais&#8230; </li></ol>]]></content:encoded>
			<wfw:commentRss>http://astuces.absolacom.com/ubuntu/voir-loccupation-des-dossiers-avec-ncdu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Tant qu&#8217;il y a de la vie&#8230;</title>
		<link>http://astuces.absolacom.com/ubuntu/tant-quil-y-a-de-la-vie/</link>
		<comments>http://astuces.absolacom.com/ubuntu/tant-quil-y-a-de-la-vie/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 18:36:39 +0000</pubDate>
		<dc:creator>manuberro</dc:creator>
				<category><![CDATA[anecdote]]></category>
		<category><![CDATA[système]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://astuces.absolacom.com/?p=1000</guid>
		<description><![CDATA[Torpedo : Le monde a l&#8217;envers Torpedo : Je rentre chez mes parents pour ma visite du mois Torpedo : Sur l&#8217;ordi familial ainsi que celui de ma mere et de mon pere&#8230;ya desormais kubuntu qui tourne Torpedo : Je demande ce qui sest passé&#8230;comment ce miracle a pu se produire Torpedo : Ma mere [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://astuces.absolacom.com/wp-content/uploads/2011/02/kubuntu.jpeg"><img class="alignright size-full wp-image-1001" title="kubuntu" src="http://astuces.absolacom.com/wp-content/uploads/2011/02/kubuntu.jpeg" alt="" width="150" height="113" /></a>Torpedo : Le monde a l&#8217;envers<br />
Torpedo : Je rentre chez mes parents pour ma visite du mois<br />
Torpedo : Sur l&#8217;ordi familial ainsi que celui de ma mere et de mon pere&#8230;ya desormais kubuntu qui tourne<br />
Torpedo : Je demande ce qui sest passé&#8230;comment ce miracle a pu se produire<br />
Torpedo : Ma mere me dit quelle s&#8217;embetait l&#8217;autre jour, qu&#8217;elle avait lu un article sur un forum dun magazine feminin sur les OS libres et pourquoi cest bien et elle s&#8217;est amusé a tout remplacer&#8230;<br />
Torpedo : En conclusion : la ou j&#8217;ai echoué, un forum d&#8217;un magazine feminin a réussi.<br />
Torpedo : C&#8217;est la quatrieme dimension<br />
Torpedo : J&#8217;hésite cependant a poster un message sur ce fameux forum pour les remercier&#8230;<br />
Torpedo : Le pire, enfin facon de parler, c&#8217;est quelle a tout réinstallé avec l&#8217;aide de mon padré&#8230;<br />
Torpedo : Eux, qui sont aussi doué avec un clavier que le pape avec une capote<br />
Torpedo : Je suis sur le cul&#8230;<br />
Torpedo : Bref<br />
Torpedo : Je suis soudainement optimiste quant à l&#8217;avenir du monde<br />
Torpedo : Aimez vous les uns les autres&#8230;</p>
<p><a title="DTC" href="http://danstonchat.com/11944.html" target="_blank">Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://astuces.absolacom.com/ubuntu/tant-quil-y-a-de-la-vie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Denyhosts: dé-blacklister une adresse IP valide</title>
		<link>http://astuces.absolacom.com/ubuntu/denyhosts-de-blacklister-une-adresse-ip-valide/</link>
		<comments>http://astuces.absolacom.com/ubuntu/denyhosts-de-blacklister-une-adresse-ip-valide/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 22:01:07 +0000</pubDate>
		<dc:creator>manuberro</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[logiciel]]></category>
		<category><![CDATA[planet-libre]]></category>
		<category><![CDATA[sécurité]]></category>
		<category><![CDATA[serveur]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://astuces.absolacom.com/?p=967</guid>
		<description><![CDATA[J&#8217;ai déjà parlé de denyhosts et de tous le bien que j&#8217;en pensais (dans l&#8217;article filtrer-les-connexions-ssh) mais il arrive parfois qu&#8217;une adresse IP valide et ne devant pas être bloquée se retrouve blacklistée1. Du coup, l&#8217;adresse se retrouve systématiquement listée dans le fichier /etc/hosts.deny, ce qui fait qu&#8217;il est impossible de se connecter sur le [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://astuces.absolacom.com/wp-content/uploads/2010/12/denied-copy.jpg"><img class="alignleft size-thumbnail wp-image-972" style="margin-left: 10px; margin-right: 10px;" title="denied-copy" src="http://astuces.absolacom.com/wp-content/uploads/2010/12/denied-copy-150x150.jpg" alt="" width="201" height="201" /></a>J&#8217;ai déjà parlé de denyhosts et de tous le bien que j&#8217;en pensais (dans l&#8217;article <a href="http://astuces.absolacom.com/ubuntu/filtrer-les-connexions-ssh/" target="_blank">filtrer-les-connexions-ssh</a>) mais il arrive parfois qu&#8217;une adresse IP valide et ne devant pas être bloquée se retrouve blacklistée<sup><a href="http://astuces.absolacom.com/ubuntu/denyhosts-de-blacklister-une-adresse-ip-valide/#footnote_0_967" id="identifier_0_967" class="footnote-link footnote-identifier-link" title="parce qu&amp;#8217;on a fait des essais, qu&amp;#8217;on a oubli&eacute; le mot de passe ou fait une erreur dans le port &agrave; utiliser&amp;#8230;Et c&amp;#8217;est du v&eacute;cu.">1</a></sup>. Du coup, l&#8217;adresse se retrouve systématiquement listée dans le fichier <em>/etc/hosts.deny</em>, ce qui fait qu&#8217;il est impossible de se connecter sur le serveur depuis ce site. Ce qui est catastrophique quand on a interdit toute connexion, SAUF depuis cette IP fixe&#8230;qui vient de se faire blacklister!.</p>
<p>Tout d&#8217;abord, lorsque vous mettez denyhosts en place sur un serveur, si vous avez une IP fixe depuis le site d&#8217;accès, <strong><span style="text-decoration: underline;">pensez à vous autoriser en permanence</span></strong> afin de ne pas vous trouver renfermé dehors. Pour ce faire, il suffit d&#8217;ajouter la ligne suivante au fichier <em>/etc/hosts.allow</em>, en remplaçant les XXX par votre adresse IP fixe<sup><a href="http://astuces.absolacom.com/ubuntu/denyhosts-de-blacklister-une-adresse-ip-valide/#footnote_1_967" id="identifier_1_967" class="footnote-link footnote-identifier-link" title="si votre IP est variable, &ccedil;a ne sert strictement &agrave; rien. ">2</a></sup>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ALL: XXX.XXX.XXX.XXX</pre></div></div>

<p>Si vous êtes déjà enfermé dehors et que vous n&#8217;avez pas physiquement accès au serveur, il vous faut absolument changer d&#8217;adresse IP. Rebootez votre modem, ou allez chez un ami, un cybercafé ou au McDonald pour vous connecter au serveur et corriger le problème. Pensez ensuite à changer tous les mots de passe utilisés dès que vous rentrez chez vous.</p>
<p>Si vous avez blindé les accès au serveur et que vous n&#8217;arrivez pas à entrer, il va vous falloir être inventif. Dites vous que c&#8217;est comme ça qu&#8217;on apprend le métier et à être prudent<sup><a href="http://astuces.absolacom.com/ubuntu/denyhosts-de-blacklister-une-adresse-ip-valide/#footnote_2_967" id="identifier_2_967" class="footnote-link footnote-identifier-link" title="Il existe deux types d&amp;#8217;administrateurs : Ceux qui ont fait une tr&egrave;s grosse connerie en tant que root et ceux qui vont en faire une&amp;#8230; ">3</a></sup> . J&#8217;ai bien fait 1000 km AR en voiture juste pour re-démarrer un serveur qui avait pris un &laquo;&nbsp;halt&nbsp;&raquo; dans la mauvaise console, ce qui ne m&#8217;est plus jamais arrivé&#8230;</p>
<p>Mais si vous avez réussi à rentrer sur votre serveur, vous avez fait le plus gros:</p>
<ol>
<li>Arrêtez denyhosts (<strong>/etc/init.d/denyhosts stop</strong>)</li>
<li>Supprimez l&#8217;entrée du fichier <em>/etc/hosts.deny</em> correspondant à votre IP</li>
<li>Profitez en pour ajouter votre IP au fichier <em>/etc/hosts.allow</em> comme indiqué plus haut</li>
<li>Allez dans le dossier <em>/var/lib/denyhosts</em><sup><a href="http://astuces.absolacom.com/ubuntu/denyhosts-de-blacklister-une-adresse-ip-valide/#footnote_3_967" id="identifier_3_967" class="footnote-link footnote-identifier-link" title="sur Ubuntu. Dans le cas d&amp;#8217;autres distributions, cela peut varier. Il semblerais que sur certaines versions ce soit dans/usr/share/denyhosts/data/ ">4</a></sup>. Vous devriez y trouver des fichiers comme ci dessous. Supprimez de ces fichiers toute occurrence à l&#8217;adresse IP concernée en supprimant complètement les lignes. la commande <strong>rgrep &laquo;&nbsp;xxx.xxx.xxx.xxx&nbsp;&raquo; /var/lib/denyhosts/</strong> vous dira dans quels fichiers vous devez agir.</li>
<li>Relancez ensuite denyhosts (<em>/etc/init.d/denyhosts start</em>)</li>
<li>Envoyez moi une petite bénédiction</li>
<li>Rentrez chez vous et allez vous coucher<sup><a href="http://astuces.absolacom.com/ubuntu/denyhosts-de-blacklister-une-adresse-ip-valide/#footnote_4_967" id="identifier_4_967" class="footnote-link footnote-identifier-link" title="c&amp;#8217;est en g&eacute;n&eacute;ral parce qu&amp;#8217;on est fatigu&eacute; qu&amp;#8217;on fait ce type de b&ecirc;tise.">5</a></sup></li>
</ol>
<p>Liste des fichiers du dossier<em> /var/lib/denyhosts</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000;">112253</span> <span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> root root 140K <span style="color: #000000;">2010</span>-<span style="color: #000000;">12</span>-08 <span style="color: #000000;">22</span>:<span style="color: #000000;">26</span> hosts
<span style="color: #000000;">112142</span> <span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> root root 140K <span style="color: #000000;">2010</span>-<span style="color: #000000;">12</span>-08 <span style="color: #000000;">22</span>:<span style="color: #000000;">26</span> hosts-restricted
<span style="color: #000000;">112251</span> <span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> root root 140K <span style="color: #000000;">2010</span>-<span style="color: #000000;">12</span>-08 <span style="color: #000000;">22</span>:<span style="color: #000000;">26</span> hosts-root
<span style="color: #000000;">112146</span> <span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> root root 140K <span style="color: #000000;">2010</span>-<span style="color: #000000;">12</span>-08 <span style="color: #000000;">22</span>:<span style="color: #000000;">26</span> hosts-valid
<span style="color: #000000;">112148</span> <span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> root root  <span style="color: #000000;">108</span> <span style="color: #000000;">2010</span>-<span style="color: #000000;">12</span>-08 <span style="color: #000000;">22</span>:<span style="color: #000000;">26</span> offset
<span style="color: #000000;">113817</span> <span style="color: #660033;">-rw-rw-rw-</span> <span style="color: #000000;">1</span> root root  27K <span style="color: #000000;">2010</span>-<span style="color: #000000;">12</span>-08 <span style="color: #000000;">11</span>:<span style="color: #000000;">42</span> purge-history
<span style="color: #000000;">112147</span> <span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> root root    <span style="color: #000000;">0</span> <span style="color: #000000;">2010</span>-<span style="color: #000000;">12</span>-08 <span style="color: #000000;">22</span>:<span style="color: #000000;">26</span> suspicious-logins
<span style="color: #000000;">112143</span> <span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> root root  <span style="color: #000000;">109</span> <span style="color: #000000;">2010</span>-<span style="color: #000000;">12</span>-08 <span style="color: #000000;">22</span>:<span style="color: #000000;">26</span> users-hosts
<span style="color: #000000;">112145</span> <span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> root root  14K <span style="color: #000000;">2010</span>-<span style="color: #000000;">12</span>-08 <span style="color: #000000;">22</span>:<span style="color: #000000;">26</span> users-invalid
<span style="color: #000000;">112144</span> <span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> root root  <span style="color: #000000;">118</span> <span style="color: #000000;">2010</span>-<span style="color: #000000;">12</span>-08 <span style="color: #000000;">22</span>:<span style="color: #000000;">26</span> users-valid</pre></div></div>

<p>Vérifiez quand même que l&#8217;IP n&#8217;est pas bloquée pour de bonnes raisons. Ça m&#8217;est arrivé dernièrement à cause de mauvais droits sur le home de l&#8217;utilisateur, donc le serveur SSH m&#8217;envoyait systématiquement bouler. Par conséquent, au bout d&#8217;un certain nombre d&#8217;essais échoués, denyhosts a considéré que j&#8217;étais illégitime et a blacklisté l&#8217;IP.</p>
<p>Je confirme avoir cherché un moment<sup><a href="http://astuces.absolacom.com/ubuntu/denyhosts-de-blacklister-une-adresse-ip-valide/#footnote_5_967" id="identifier_5_967" class="footnote-link footnote-identifier-link" title="que de souvenirs passionnant et haletants j&amp;#8217;aurais &agrave; conter &agrave; mes petits enfants&amp;#8230;! ">6</a></sup>.</p>
Notes:<ol class="footnotes"><li id="footnote_0_967" class="footnote">parce qu&#8217;on a fait des essais, qu&#8217;on a oublié le mot de passe ou fait une erreur dans le port à utiliser&#8230;Et c&#8217;est du vécu.</li><li id="footnote_1_967" class="footnote">si votre IP est variable, ça ne sert strictement à rien. </li><li id="footnote_2_967" class="footnote">Il existe deux types d&#8217;administrateurs : Ceux qui ont fait une très grosse connerie en tant que root et ceux qui vont en faire une&#8230; </li><li id="footnote_3_967" class="footnote">sur Ubuntu. Dans le cas d&#8217;autres distributions, cela peut varier. Il semblerais que sur certaines versions ce soit dans<em>/usr/share/denyhosts/data/</em> </li><li id="footnote_4_967" class="footnote">c&#8217;est en général parce qu&#8217;on est fatigué qu&#8217;on fait ce type de bêtise.</li><li id="footnote_5_967" class="footnote">que de souvenirs passionnant et haletants j&#8217;aurais à conter à mes petits enfants&#8230;! </li></ol>]]></content:encoded>
			<wfw:commentRss>http://astuces.absolacom.com/ubuntu/denyhosts-de-blacklister-une-adresse-ip-valide/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

