<?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; linux</title>
	<atom:link href="http://astuces.absolacom.com/tag/linux/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>Changer la couleur de fenêtre de Pidgin</title>
		<link>http://astuces.absolacom.com/gnome/changer-la-couleur-de-fenetre-de-pidgin/</link>
		<comments>http://astuces.absolacom.com/gnome/changer-la-couleur-de-fenetre-de-pidgin/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 10:24:37 +0000</pubDate>
		<dc:creator>manuberro</dc:creator>
				<category><![CDATA[ça a fonctionné pour moi]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[IM]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[logiciel]]></category>
		<category><![CDATA[planet-libre]]></category>
		<category><![CDATA[tuning]]></category>
		<category><![CDATA[empathy]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[pidgin]]></category>

		<guid isPermaLink="false">http://astuces.absolacom.com/?p=1229</guid>
		<description><![CDATA[J&#8217;ai eu besoin de communiquer par IRC sur un chan particulier, mais j&#8217;ai été confronté à un problème auquel je ne m&#8217;attendais pas: les administrateurs utilisant mirc (qui utilise par défaut un fond noir), ou irssi (qui fonctionne en console&#8230;noire de base) avaient choisi d&#8217;avoir des couleurs de polices blanches et jaunes pour certains éléments. [...]]]></description>
			<content:encoded><![CDATA[<p>J&#8217;ai eu besoin de communiquer par <a title="Internet Relay Chat" href="http://fr.wikipedia.org/wiki/Internet_Relay_Chat" target="_blank">IRC</a> sur un chan particulier, mais j&#8217;ai été confronté à un problème auquel je ne m&#8217;attendais pas: les administrateurs utilisant <a title="mIRC" href="http://fr.wikipedia.org/wiki/Mirc" target="_blank">mirc</a> (qui utilise par défaut un fond noir), ou <a title="Irssi" href="http://fr.wikipedia.org/wiki/Irssi" target="_blank">irssi</a> (qui fonctionne en console&#8230;noire de base) avaient choisi d&#8217;avoir des couleurs de polices blanches et jaunes pour certains éléments.</p>
<p>Or, Pidgin utilise un fond blanc, ce qui fait que beaucoup de choses étaient illisibles<sup><a href="http://astuces.absolacom.com/gnome/changer-la-couleur-de-fenetre-de-pidgin/#footnote_0_1229" id="identifier_0_1229" class="footnote-link footnote-identifier-link" title="et effectuer des s&eacute;lections du texte pour arriver &agrave; le lire est fatiguant &agrave; la longue.">1</a></sup>.<a href="http://astuces.absolacom.com/wp-content/uploads/2011/12/pidgin_.jpg"><img class="alignright size-thumbnail wp-image-1230" title="pidgin_" src="http://astuces.absolacom.com/wp-content/uploads/2011/12/pidgin_-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>Empathy permet de changer les thèmes, et de voir les messages écrits en noir sans tenir compte de la couleur d&#8217;origine, mais ne m&#8217;affichait pas les personnes présentes dans le salon. Donc, il n&#8217;a pas été retenu comme solution.</p>
<p>Mais comme avec le libre, tout est faisable, et un simple changement de couleur devant être à ma portée, j&#8217;ai cherché comment modifier Pidgin, et j&#8217;ai fini par trouver.</p>
<p>Simple quand on le sait, mais quand on ne sait pas, c&#8217;est autre chose&#8230;</p>
<ul>
<li>Tout d&#8217;abord, ne cherchez pas le dossier <strong>pidgin</strong>, mais bien <strong>purple</strong>, qui se trouve dans votre home (<em>~/.purple</em>)</li>
<li>Par défaut, pidgin utilise le thème GTK de votre environnement. Sinon, et seulement sinon, il crée un fichier <strong>gtkrc-2.0</strong> dans le dossier <em>~/.purple</em>.</li>
<li>Si vous utilisez un gestionnaire de fenêtre basé sur GTK et que vous ne voulez pas changer votre thème général, il faudra créer un fichier nommé <strong>gtkrc-2.0</strong> dans le dossier <em>~/.purple</em> qui apportera des modification à pidgin par rapport à votre thème général.</li>
<li>Vous mettrez dans ce fichier texte les informations que vous voulez selon la syntaxe que vous donne la <a title="How to change..." href="http://developer.pidgin.im/wiki/Using%20Pidgin#HowdoIchangethefontPidginusesThebackgroundcolor" target="_blank">FAQ de Pidgin</a>.((si vous connaissez un peu le CSS, vous devriez comprendre comment fonctionne le fichier))</li>
</ul>
<p>Dans mon cas, cherchant juste à modifier l&#8217;aspect des fenêtres, j&#8217;ai utilisé le code fourni:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Create a style called &quot;inverted&quot; where the text and base (the base color behind the widget) are the reverse of typical.</span>
style <span style="color: #ff0000;">&quot;inverted&quot;</span>
<span style="color: #7a0874; font-weight: bold;">&#123;</span>
text<span style="color: #7a0874; font-weight: bold;">&#91;</span>NORMAL<span style="color: #7a0874; font-weight: bold;">&#93;</span> = <span style="color: #ff0000;">&quot;#FFFFFF&quot;</span>
base<span style="color: #7a0874; font-weight: bold;">&#91;</span>NORMAL<span style="color: #7a0874; font-weight: bold;">&#93;</span> = <span style="color: #ff0000;">&quot;#000000&quot;</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Apply &quot;inverted&quot; to conversation entry box--where you type.</span>
widget <span style="color: #ff0000;">&quot;*pidgin_conv_entry&quot;</span> style <span style="color: #ff0000;">&quot;inverted&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Apply &quot;inverted&quot; to conversation history pane--where you read the conversation.</span>
widget <span style="color: #ff0000;">&quot;*pidgin_conv_imhtml&quot;</span> style <span style="color: #ff0000;">&quot;inverted&quot;</span></pre></div></div>

<p>Après avoir relancé Pidgin, c&#8217;est tout de suite beaucoup plus lisible<sup><a href="http://astuces.absolacom.com/gnome/changer-la-couleur-de-fenetre-de-pidgin/#footnote_1_1229" id="identifier_1_1229" class="footnote-link footnote-identifier-link" title="Il ne s&amp;#8217;agit pas du chan qui m&amp;#8217;int&eacute;ressait, mais celui ci pr&eacute;sente les m&ecirc;mes caract&eacute;ristiques et me sert d&amp;#8217;exemple">2</a></sup>.</p>
<p><a href="http://astuces.absolacom.com/wp-content/uploads/2011/12/Capture-Quizz.png"><img class="aligncenter size-medium wp-image-1231" title="Capture-#Quizz" src="http://astuces.absolacom.com/wp-content/uploads/2011/12/Capture-Quizz-300x232.png" alt="Du texte en couleur, mais lisible" width="300" height="232" /></a>Sources: <a href="http://developer.pidgin.im/wiki/Using%20Pidgin" target="_blank">http://developer.pidgin.im/wiki/Using%20Pidgin</a></p>
Notes:<ol class="footnotes"><li id="footnote_0_1229" class="footnote">et effectuer des sélections du texte pour arriver à le lire est fatiguant à la longue.</li><li id="footnote_1_1229" class="footnote">Il ne s&#8217;agit pas du chan qui m&#8217;intéressait, mais celui ci présente les mêmes caractéristiques et me sert d&#8217;exemple</li></ol>]]></content:encoded>
			<wfw:commentRss>http://astuces.absolacom.com/gnome/changer-la-couleur-de-fenetre-de-pidgin/feed/</wfw:commentRss>
		<slash:comments>2</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>Hosts (reur et damnation), la &#8216;route&#8217; sera longue&#8230;</title>
		<link>http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/</link>
		<comments>http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/#comments</comments>
		<pubDate>Sun, 26 Jun 2011 07:33:30 +0000</pubDate>
		<dc:creator>manuberro</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[logiciel]]></category>
		<category><![CDATA[planet-libre]]></category>
		<category><![CDATA[système]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://astuces.absolacom.com/?p=1143</guid>
		<description><![CDATA[J&#8217;ai découvert avec stupeur l&#8217;article de Génération Linux qui cite un article de TF1 expliquant comment et pourquoi 1 supprimer les fichier hosts d&#8217;un ordinateur sous linux (GNU/linux). (Outre le fait que je suis en phase avec benjamin sur ce qu&#8217;il faut penser sur TF0) Je vais vous expliquer réellement à quoi il sert, et comment [...]]]></description>
			<content:encoded><![CDATA[<p>J&#8217;ai découvert avec <a href="http://fr.wiktionary.org/wiki/stupeur" target="_blank">stupeur</a> l&#8217;article de <a title="Apprenez Linux grâce à TF1" href="http://www.generation-linux.fr/index.php?post/2011/06/25/Apprenez-Linux-gr%C3%A2ce-%C3%A0-TF1" target="_blank">Génération Linux</a> qui cite un <a title="Article sur TF1.fr, ouvrez avec précaution!" href="http://www.tf1.fr/shopping/a-quoi-servent-les-fichiers-hosts-et-comment-les-supprimer-sous-linux-wcod140863.html" target="_blank">article de TF1</a> expliquant comment et pourquoi <sup><a href="http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/#footnote_0_1143" id="identifier_0_1143" class="footnote-link footnote-identifier-link" title="enfin, le pourquoi n&amp;#8217;est pas tr&egrave;s clair">1</a></sup> supprimer les fichier hosts d&#8217;un ordinateur sous linux (GNU/linux).<a href="http://astuces.absolacom.com/wp-content/uploads/2011/06/konerinside.jpg"><img class="alignright size-thumbnail wp-image-1150" title="konerinside" src="http://astuces.absolacom.com/wp-content/uploads/2011/06/konerinside-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>(Outre le fait que je suis en phase avec benjamin sur ce qu&#8217;il faut penser sur TF0) Je vais vous expliquer réellement à quoi il sert, et comment s&#8217;en servir un peu plus (vu que benjamin ne le fait pas). Et je vais le faire à un niveau d’explication qu&#8217;un lecteur de TF0 puisse comprendre. Mais je vous le dis tout de suite:</p>
<h1 style="text-align: center;"><strong>Ne supprimez pas votre fichier /etc/hosts!</strong></h1>
<h2>Principe de fonctionnement</h2>
<p>Lorsque vous voulez aller visiter le site de TF0<sup><a href="http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/#footnote_1_1143" id="identifier_1_1143" class="footnote-link footnote-identifier-link" title="A publier des b&ecirc;tises pareil, c&amp;#8217;est eux qui vont me servir de cobaye, tant pis">2</a></sup> , vous allez taper l&#8217;adresse <em>tf0.fr</em> dans la barre d&#8217;adresse, pas leur adresse IP. Parce que c&#8217;est plus simple à se souvenir. Or, les ordinateurs communiquent entre eux avec l&#8217;adresse IP, parce qu&#8217;ils sont conçus comme ça<sup><a href="http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/#footnote_2_1143" id="identifier_2_1143" class="footnote-link footnote-identifier-link" title="et surtout parce que &ccedil;a fonctionne, pas seulement pour enb&ecirc;ter les t&eacute;l&eacute;spectateurs de TF0">3</a></sup>. Votre ordinateur va donc s&#8217;adresser à un service de DNS (<em><a title="domain" href="http://fr.wiktionary.org/wiki/domain"><strong>d</strong>omain</a> <a title="name" href="http://fr.wiktionary.org/wiki/name"><strong>n</strong>ame</a> <a title="system" href="http://fr.wiktionary.org/wiki/system"><strong>s</strong>ystem</a></em> (« <a title="système" href="http://fr.wiktionary.org/wiki/syst%C3%A8me">système</a> de <a title="nom" href="http://fr.wiktionary.org/wiki/nom">nom</a> de <a title="domaine" href="http://fr.wiktionary.org/wiki/domaine">domaine</a> ») qui va faire la correspondance entre l&#8217;adresse que vous connaissez, et l&#8217;adresse IP du site auquel s&#8217;adresser.</p>
<p>C&#8217;est un peu le GPS de l&#8217;informatique: vous connaissez l&#8217;adresse, il vous dit où ça se trouve. Et c&#8217;est comme ça pour TOUS les services réseau.</p>
<p>Mais, historiquement, (c&#8217;est à dire <del>quand j&#8217;étais plus jeune</del> <a href="http://www.youtube.com/watch?v=5YHpcJwBsc0&amp;feature=related" target="_blank">non rien)</a>, les ordinateurs n&#8217;étaient pas connectés à internet. Ils n&#8217;étaient même parfois pas connectés du tout<sup><a href="http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/#footnote_3_1143" id="identifier_3_1143" class="footnote-link footnote-identifier-link" title=" je sais, c&amp;#8217;est l&amp;#8217;horreur, la pr&eacute;histoire&amp;#8230;Incroyable mais vrai, ni wifi, ni 3G!">4</a></sup> mais les services réseau nécessitaient quand même d&#8217;avoir leur réponse même en l&#8217;absence de DNS.</p>
<p>Donc, les informaticiens ont décidé<sup><a href="http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/#footnote_4_1143" id="identifier_4_1143" class="footnote-link footnote-identifier-link" title="arbitrairement, je sais, mais les informaticiens sont comme &ccedil;a">5</a></sup> d&#8217;utiliser un fichier qui ferait la correspondance entre un nom et une adresse IP. Et il faut bien admettre que ça marche! Et que c&#8217;est pratique! On le verra bientôt.</p>
<p>De plus, ce fichier étant local, la réponse est plus rapide que d&#8217;aller interroger un serveur chez votre FAI, même s&#8217;ils répondent assez vite.</p>
<h3>Z&#8217;en ont de la chance, les linuxiens!</h3>
<p>Ce système de fonctionnement n&#8217;est pas spécifique à linux, windows possède le même, inspiré de Unix lui aussi. C&#8217;est le fichier hosts que vous trouverez dans windows\system32\drivers\etc\hosts (pour XP)</p>
<p><span style="text-decoration: underline;"><strong>Comparons un fichier hosts et un fichier hosts&#8230;:</strong></span></p>
<table>
<tbody>
<tr>
<td>
<p><div id="attachment_1145" class="wp-caption alignleft" style="width: 287px"><a href="http://astuces.absolacom.com/wp-content/uploads/2011/06/hosts-linux.png"><img class="size-medium wp-image-1145" title="hosts-linux" src="http://astuces.absolacom.com/wp-content/uploads/2011/06/hosts-linux-277x300.png" alt="hosts-linux" width="277" height="300" /></a><p class="wp-caption-text">hosts-linux</p></div></td>
<td>
<p><div id="attachment_1146" class="wp-caption alignright" style="width: 310px"><a href="http://astuces.absolacom.com/wp-content/uploads/2011/06/hosts-windows.png"><img class="size-medium wp-image-1146" title="hosts-windows" src="http://astuces.absolacom.com/wp-content/uploads/2011/06/hosts-windows-300x193.png" alt="hosts-windows" width="300" height="193" /></a><p class="wp-caption-text">hosts-windows</p></div></td>
</tr>
</tbody>
</table>
<p><span style="text-decoration: underline;"><strong>Que remarque t-on?</strong></span></p>
<ul>
<li>Sous linux, on peut lire le fichier dans une console et c&#8217;est plus pratique,</li>
<li>Sous linux, on peut avoir de la couleur, et c&#8217;est beau,</li>
<li>Sous linux, on utilise le fichier hosts (en tout cas en ce qui me concerne) alors que sur windows il est là, mais atrophié et malheureux, sans pour autant être anémique vu qu&#8217;il a plus de commentaires que d&#8217;utilité.</li>
<li>Les deux sont identiques, au moins dans l&#8217;aspect. Une IP, un nom.</li>
</ul>
<h3>Comment se servir du fichier hosts?</h3>
<p>Vu que le fichier est là, autant l&#8217;utiliser. Comme il est interrogé par défaut <span style="text-decoration: underline;">avant</span> la résolution DNS, on peut le modifier et s&#8217;amuser.</p>
<p>Dans ce fichier, que vous devrez éditer avec les droits root, ajoutez la ligne suivante:</p>
<pre>82.242.245.98          <a class="linkification-ext" title="Linkification: http://www.tf1.fr" href="http://www.tf1.fr">www.tf1.fr</a></pre>
<p>Puis ouvrez votre navigateur pour aller sur <a class="linkification-ext" title="Linkification: http://www.tf1.fr" href="http://www.tf1.fr">www.tf1.fr</a>. Vous constaterez que MON DIEU, MA SOCIÉTÉ VIENT DE PRENDRE POSSESSION DE TF1 ET NOUS SOMMES LES MAITRES DU MONDE!!!</p>
<p>Ah non, c&#8217;est juste que mon ordinateur croit que pour aller sur TF1, il faut se rendre à l&#8217;adresse Absolacom&#8230;<sup><a href="http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/#footnote_5_1143" id="identifier_5_1143" class="footnote-link footnote-identifier-link" title="/me retrouve un rythme cardiaque correct">6</a></sup>.</p>
<p>Tiens, ça me donne une idée<sup><a href="http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/#footnote_6_1143" id="identifier_6_1143" class="footnote-link footnote-identifier-link" title="autre que pourrir les ordinateurs de mes coll&egrave;gues, c&amp;#8217;est pour &ccedil;a qu&amp;#8217;il faut les droits root. Ah, on me souffle dans l&amp;#8217;oreillette qu&amp;#8217;avec windows on peut sans droits particuliers&amp;#8230; A v&eacute;rifier de votre c&ocirc;t&eacute;.">7</a></sup>: et si j&#8217;indiquais dans mon fichier hosts l&#8217;adresse de toutes ces vilaines publicités qui apparaissent sur mon ordinateur?</p>
<p>Eh bien, au lieu d&#8217;attendre des heures que google analytics veuille bien répondre avant de m&#8217;afficher la page, ou avoir des sites de casino, ou de jeunes filles slaves  voulant à tout prix chatter avec moi<sup><a href="http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/#footnote_7_1143" id="identifier_7_1143" class="footnote-link footnote-identifier-link" title=" ce que je peux comprendre">8</a></sup> ou des sites voulant augmenter mon anatomie<sup><a href="http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/#footnote_8_1143" id="identifier_8_1143" class="footnote-link footnote-identifier-link" title="ce que j&amp;#8217;ai du mal &agrave; comprendre">9</a></sup> , j&#8217;aurais une erreur, certes, mais je verrais le reste de ma page. Plus vite, mieux, plus agréable<sup><a href="http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/#footnote_9_1143" id="identifier_9_1143" class="footnote-link footnote-identifier-link" title="presque du Daf Punk">10</a></sup>. Vous trouverez <a title="hosts anti pub" href="http://forum.korben.info/topic/856-fichier-hosts-pour-bloquer-les-pubs/">plein d&#8217;endroits</a> qui vous donneront <a href="http://www.toutgr.com/tuto/microsoft-windows/winxp/85-modifier-le-fichier-hosts-sur-windows.html">une liste</a> à ajouter à votre fichier hosts en cherchant un peu sur le net.</p>
<p>Regardez dans mon hosts, la solution pour éviter le rickroll s&#8217;y est cachée: saurez vous la retrouver?</p>
<p>Comme je choisis le nom et l&#8217;IP à insérer, je peux aussi y indiquer mes machines locales. Ainsi, si je veux faire un <em>ping</em> ou un <em>ssh</em> sur <em>mercure</em> (un de mes postes), je peux le faire avec son IP ou le nom que je lui ai donné dans ce fichier. Pas besoin de DNS sur un petit réseau!</p>
<h3>Cool! Je vais pouvoir mettre toutes les adresses de l&#8217;internet dans mon fichier hosts et je n&#8217;aurais plus besoin de DNS pour naviguer!</h3>
<p>Oui, en principe. En pratique, quand ce fichier atteint une certaine taille, il génère l&#8217;effet inverse de celui recherché: c&#8217;est long à chaque requête.</p>
<p>Et puis c&#8217;est surtout la mise à jour qui est laborieuse. Imaginons que google change d&#8217;IP, vous ne pourriez plus atteindre leur site tant que vous n&#8217;aurez pas modifié le fichier hosts, ce qui est compliqué quand il y a beaucoup d&#8217;entrées.</p>
<p>Même pas peur! Et si je le supprime, mon fichier hosts, ça donne quoi?</p>
<p>Ça donne que TF0 pourra à nouveau afficher des pubs sur votre ordinateur. Mais ça va surtout mettre le b&#8230;l dans les services réseau qui vont vouloir s&#8217;adresser à localhost et qui n&#8217;auront plus l&#8217;IP correspondante<sup><a href="http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/#footnote_10_1143" id="identifier_10_1143" class="footnote-link footnote-identifier-link" title="je sais, mais c&amp;#8217;est b&ecirc;te, un ordinateur">11</a></sup>. Un certain programme<sup><a href="http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/#footnote_11_1143" id="identifier_11_1143" class="footnote-link footnote-identifier-link" title="que je ne citerais pas">12</a></sup> se rabat sur &#8216;localhost&#8217; quand le site demandé ne répond pas (timeout) et repère l&#8217;adresse 127.0.0.1 pour passer le message disant qu&#8217;il y a un problème. Sauf que s&#8217;il n&#8217;y a plus le fichier hosts, il n&#8217;y a plus de 127.0.0.1 pour localhost, donc le programme est en timeout et se rabat sur localhost qui passe en timeout et le programme se rabat sur localhost qui&#8230;.<sup><a href="http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/#footnote_12_1143" id="identifier_12_1143" class="footnote-link footnote-identifier-link" title="comment &ccedil;a, je l&amp;#8217;ai d&eacute;j&agrave; dit?">13</a></sup></p>
<p>Bref, que du bonheur grâce à TF0<sup><a href="http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/#footnote_13_1143" id="identifier_13_1143" class="footnote-link footnote-identifier-link" title="et ses r&eacute;dacteurs">14</a></sup>.</p>
<h3>Résumons un peu:</h3>
<ol>
<li>Le fichier hosts n&#8217;a un rôle de filtrage du web que si on lui a demandé de le faire. Le supprimer n’apporterait qu&#8217;un comportement non désiré à ce niveau (sauf pour les publicitaires)</li>
<li>Que l&#8217;adresse soit présente ou pas dans le fichier hosts, tant qu&#8217;un DNS est présent sur le réseau, et l’ordinateur paramétré pour l’interroger, on accèdera au site choisi.</li>
<li>Le fichier hosts n&#8217;est pas inutile pour le fonctionnement même de l&#8217;ordinateur. Amusez vous à le supprimer sur windows, histoire de rigoler<sup><a href="http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/#footnote_14_1143" id="identifier_14_1143" class="footnote-link footnote-identifier-link" title="puis red&eacute;marrez en console, utilisez vi pour le recr&eacute;er. Comment &ccedil;a c&amp;#8217;est pas possible?!?">15</a></sup></li>
<li>Le fichier hosts n&#8217;est pas créé par votre FAI ou par les serveurs DNS. Il ne contient QUE ce que vous y mettez. Dans le cas contraire, ce serait inutile de le supprimer, puisqu&#8217;il serait recréé à chaque connexion.<sup><a href="http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/#footnote_15_1143" id="identifier_15_1143" class="footnote-link footnote-identifier-link" title="l&amp;#8217;auteur confond sans doute avec le fichier /etc/resolv.conf">16</a></sup></li>
<li>L&#8217;auteur ne sait pas lire un man, l&#8217;option <em>-f</em> de <em>rm</em> sert à <strong>ne pas avoir de demande de confirmation dans tous les cas</strong>, certainement pas à effacer un fichier protégé en écriture, qu&#8217;il soit protégé ou pas<sup><a href="http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/#footnote_16_1143" id="identifier_16_1143" class="footnote-link footnote-identifier-link" title="&ccedil;a veut dire quoi, prot&eacute;g&eacute;? J&amp;#8217;ai les droits ou pas de le supprimer?">17</a></sup></li>
</ol>
<h2>Conclusion</h2>
<ol>
<li>TF0 fait une grande confiance à ses rédacteurs</li>
<li>Le niveau linux chez eux  est le même que le niveau auquel je place leurs émissions</li>
<li><del>Je vais me prendre un procès si je ne supprime pas leur nom dans mon article</del> (checked)</li>
<li>Faut pas toucher à mon linux quand je voulais dormir le dimanche matin mais que les moustiques m&#8217;agressent!</li>
</ol>
<p>PS: supprimez la ligne que je vous ait fait ajouter au fichier hosts si vous voulez retourner sur TF1 et pas sur le site de ma société.</p>
Notes:<ol class="footnotes"><li id="footnote_0_1143" class="footnote">enfin, le pourquoi n&#8217;est pas très clair</li><li id="footnote_1_1143" class="footnote">A publier des bêtises pareil, c&#8217;est eux qui vont me servir de cobaye, tant pis</li><li id="footnote_2_1143" class="footnote">et surtout parce que ça fonctionne, pas seulement pour enbêter les téléspectateurs de TF0</li><li id="footnote_3_1143" class="footnote"> je sais, c&#8217;est l&#8217;horreur, la préhistoire&#8230;Incroyable mais vrai, ni wifi, ni 3G!</li><li id="footnote_4_1143" class="footnote">arbitrairement, je sais, mais les informaticiens sont comme ça</li><li id="footnote_5_1143" class="footnote">/me retrouve un rythme cardiaque correct</li><li id="footnote_6_1143" class="footnote">autre que pourrir les ordinateurs de mes collègues, c&#8217;est pour ça qu&#8217;il faut les droits root. Ah, on me souffle dans l&#8217;oreillette qu&#8217;avec windows on peut sans droits particuliers&#8230; A vérifier de votre côté.</li><li id="footnote_7_1143" class="footnote"> ce que je peux comprendre</li><li id="footnote_8_1143" class="footnote">ce que j&#8217;ai du mal à comprendre</li><li id="footnote_9_1143" class="footnote">presque du Daf Punk</li><li id="footnote_10_1143" class="footnote">je sais, mais c&#8217;est bête, un ordinateur</li><li id="footnote_11_1143" class="footnote">que je ne citerais pas</li><li id="footnote_12_1143" class="footnote">comment ça, je l&#8217;ai déjà dit?</li><li id="footnote_13_1143" class="footnote">et ses rédacteurs</li><li id="footnote_14_1143" class="footnote">puis redémarrez en console, utilisez <em>vi</em> pour le recréer. Comment ça c&#8217;est pas possible?!?</li><li id="footnote_15_1143" class="footnote">l&#8217;auteur confond sans doute avec le fichier /etc/resolv.conf</li><li id="footnote_16_1143" class="footnote">ça veut dire quoi, protégé? J&#8217;ai les droits ou pas de le supprimer?</li></ol>]]></content:encoded>
			<wfw:commentRss>http://astuces.absolacom.com/systeme/hosts-reur-et-damnation-la-route-sera-longue/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Désactiver le lancement de GDM sur Lucid</title>
		<link>http://astuces.absolacom.com/serveur/desactiver-le-lancement-de-gdm-sur-lucid/</link>
		<comments>http://astuces.absolacom.com/serveur/desactiver-le-lancement-de-gdm-sur-lucid/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 10:30:20 +0000</pubDate>
		<dc:creator>manuberro</dc:creator>
				<category><![CDATA[borne]]></category>
		<category><![CDATA[ça a fonctionné pour moi]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[memo]]></category>
		<category><![CDATA[planet-libre]]></category>
		<category><![CDATA[serveur]]></category>
		<category><![CDATA[gdm]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[système]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://astuces.absolacom.com/?p=1108</guid>
		<description><![CDATA[Sur l&#8217;une de mes machine, destinée à un usage spécifique dont je parlerais plus tard, j&#8217;avais besoin d&#8217;avoir une interface graphique pour l&#8217;installation et le réglage d&#8217;un logiciel particulier. Mais une fois celui ci configuré, je souhaitais que GDM ne se lance plus, sauf à la demande. J&#8217;ai donc installé une version &#171;&#160;desktop&#160;&#187; puis j&#8217;ai [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://astuces.absolacom.com/wp-content/uploads/2011/06/gdm1.jpg"><img class="alignleft size-full wp-image-1139" title="gdm" src="http://astuces.absolacom.com/wp-content/uploads/2011/06/gdm1.jpg" alt="" width="100" height="43" /></a>Sur l&#8217;une de mes machine, destinée à un usage spécifique dont je parlerais plus tard, j&#8217;avais besoin d&#8217;avoir une interface graphique pour l&#8217;installation et le réglage d&#8217;un logiciel particulier.</p>
<p>Mais une fois celui ci configuré, je souhaitais que GDM ne se lance plus, sauf à la demande. J&#8217;ai donc installé une version &laquo;&nbsp;desktop&nbsp;&raquo; puis j&#8217;ai cherché à désactiver GDM.</p>
<p>Or, si cela était évident (ou du moins connu) dans les versions précédentes, en supprimant le lien de lancement dans /etc/rc2.d ou avec <em>update-rc.d</em>, avec <em>upstart</em> c&#8217;est désormais différent.</p>
<p>Les programmes lancés au démarrage sont situés dans des fichiers de configuration placés dans <em>/etc/init</em>. Celui qui nous intéresse est <em>gdm.conf</em>.</p>
<p>Il faut modifier le fichier de la manière suivante:</p>
<p>de</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># gdm - GNOME Display Manager</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># The display manager service manages the X servers running on the</span>
<span style="color: #666666; font-style: italic;"># system, providing login and auto-login services</span>
&nbsp;
description    <span style="color: #ff0000;">&quot;GNOME Display Manager&quot;</span>
author        <span style="color: #ff0000;">&quot;William Jon McCann &amp;lt;&lt;a class=&quot;</span>linkification-ext<span style="color: #ff0000;">&quot; title=&quot;</span>Linkification: mailto:mccann<span style="color: #000000; font-weight: bold;">@</span>jhu.edu<span style="color: #ff0000;">&quot; href=&quot;</span>mailto:mccann<span style="color: #000000; font-weight: bold;">@</span>jhu.edu<span style="color: #ff0000;">&quot;&gt;mccann@jhu.edu&lt;/a&gt;&amp;gt;&quot;</span>
&nbsp;
start on <span style="color: #7a0874; font-weight: bold;">&#40;</span>filesystem
          and started dbus
          and <span style="color: #7a0874; font-weight: bold;">&#40;</span>drm-device-added card0 <span style="color: #007800;">PRIMARY_DEVICE_FOR_DISPLAY</span>=<span style="color: #000000;">1</span>
          or stopped udevtrigger<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
stop on runlevel <span style="color: #7a0874; font-weight: bold;">&#91;</span>016<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
emits starting-dm
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">env</span> <span style="color: #007800;">XORGCONFIG</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>xorg.conf
...</pre></div></div>

<p>à</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># gdm - GNOME Display Manager</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># The display manager service manages the X servers running on the</span>
<span style="color: #666666; font-style: italic;"># system, providing login and auto-login services</span>
&nbsp;
description    <span style="color: #ff0000;">&quot;GNOME Display Manager&quot;</span>
author        <span style="color: #ff0000;">&quot;William Jon McCann &amp;lt;&lt;a class=&quot;</span>linkification-ext<span style="color: #ff0000;">&quot; title=&quot;</span>Linkification: mailto:mccann<span style="color: #000000; font-weight: bold;">@</span>jhu.edu<span style="color: #ff0000;">&quot; href=&quot;</span>mailto:mccann<span style="color: #000000; font-weight: bold;">@</span>jhu.edu<span style="color: #ff0000;">&quot;&gt;mccann@jhu.edu&lt;/a&gt;&amp;gt;&quot;</span>
&nbsp;
start on <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #666666; font-style: italic;">#start on (filesystem</span>
<span style="color: #666666; font-style: italic;">#          and started dbus</span>
<span style="color: #666666; font-style: italic;">#          and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1</span>
<span style="color: #666666; font-style: italic;">#          or stopped udevtrigger))</span>
stop on runlevel <span style="color: #7a0874; font-weight: bold;">&#91;</span>016<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
emits starting-dm
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">env</span> <span style="color: #007800;">XORGCONFIG</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>xorg.conf
...</pre></div></div>

<p>Relancer ensuite l&#8217;ordinateur, GDM ne se lancera plus au démarrage, et vous pourrez alors vous connecter sur les consoles.</p>
<p>Ce n&#8217;est pas une astuce exclusive, mais j&#8217;ai perdu assez de temps à chercher la réponse que je le note pour savoir où le retrouver.</p>
<p>Ne vous affolez pas parce que vous serez en mode texte, vous verrez qu&#8217;on arrive à faire des choses sympas ensuite.</p>
<p>Par exemple, vous pouvez vous identifier avec votre mot de passe et lancer la commande <em>startx</em> pour lancer votre environnement graphique.</p>
<p>Dans un prochain article, nous verrons qu&#8217;il y a mieux&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://astuces.absolacom.com/serveur/desactiver-le-lancement-de-gdm-sur-lucid/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

