<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Zyrianes / Adm</title>
<link>http://home.zyrianes.net/blog</link>
<description>Ludo blog</description>
<language>en</language>
<copyright>The contents of this blog are available for non-commercial use only.</copyright>
<generator>Alinea http://pythonfr.org/alinea/</generator>





<item>
<title>Mode AP pour ath5k avec Lenny</title>
<link>http://home.zyrianes.net/blog/Articles/162/</link>
<guid isPermaLink="true">http://home.zyrianes.net/blog/Articles/162/</guid>
<description><![CDATA[
&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;meta name="generator" content="Docutils 0.5: http://docutils.sourceforge.net/" /&gt;
&lt;style type="text/css"&gt;

/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 5196 2007-06-03 20:25:28Z wiemann $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.

See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/

/* used to remove borders from tables and images */
.borderless, table.borderless td, table.borderless th {
  border: 0 }

table.borderless td, table.borderless th {
  /* Override padding for "table.docutils td" with "! important".
     The right padding separates the table cells. */
  padding: 0 0.5em 0 0 ! important }

.first {
  /* Override more specific margin styles with "! important". */
  margin-top: 0 ! important }

.last, .with-subtitle {
  margin-bottom: 0 ! important }

.hidden {
  display: none }

a.toc-backref {
  text-decoration: none ;
  color: black }

blockquote.epigraph {
  margin: 2em 5em ; }

dl.docutils dd {
  margin-bottom: 0.5em }

/* Uncomment (and remove this text!) to get bold-faced definition list terms
dl.docutils dt {
  font-weight: bold }
*/

div.abstract {
  margin: 2em 5em }

div.abstract p.topic-title {
  font-weight: bold ;
  text-align: center }

div.admonition, div.attention, div.caution, div.danger, div.error,
div.hint, div.important, div.note, div.tip, div.warning {
  margin: 2em ;
  border: medium outset ;
  padding: 1em }

div.admonition p.admonition-title, div.hint p.admonition-title,
div.important p.admonition-title, div.note p.admonition-title,
div.tip p.admonition-title {
  font-weight: bold ;
  font-family: sans-serif }

div.attention p.admonition-title, div.caution p.admonition-title,
div.danger p.admonition-title, div.error p.admonition-title,
div.warning p.admonition-title {
  color: red ;
  font-weight: bold ;
  font-family: sans-serif }

/* Uncomment (and remove this text!) to get reduced vertical space in
   compound paragraphs.
div.compound .compound-first, div.compound .compound-middle {
  margin-bottom: 0.5em }

div.compound .compound-last, div.compound .compound-middle {
  margin-top: 0.5em }
*/

div.dedication {
  margin: 2em 5em ;
  text-align: center ;
  font-style: italic }

div.dedication p.topic-title {
  font-weight: bold ;
  font-style: normal }

div.figure {
  margin-left: 2em ;
  margin-right: 2em }

div.footer, div.header {
  clear: both;
  font-size: smaller }

div.line-block {
  display: block ;
  margin-top: 1em ;
  margin-bottom: 1em }

div.line-block div.line-block {
  margin-top: 0 ;
  margin-bottom: 0 ;
  margin-left: 1.5em }

div.sidebar {
  margin: 0 0 0.5em 1em ;
  border: medium outset ;
  padding: 1em ;
  background-color: #ffffee ;
  width: 40% ;
  float: right ;
  clear: right }

div.sidebar p.rubric {
  font-family: sans-serif ;
  font-size: medium }

div.system-messages {
  margin: 5em }

div.system-messages h1 {
  color: red }

div.system-message {
  border: medium outset ;
  padding: 1em }

div.system-message p.system-message-title {
  color: red ;
  font-weight: bold }

div.topic {
  margin: 2em }

h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
  margin-top: 0.4em }

h1.title {
  text-align: center }

h2.subtitle {
  text-align: center }

hr.docutils {
  width: 75% }

img.align-left {
  clear: left }

img.align-right {
  clear: right }

ol.simple, ul.simple {
  margin-bottom: 1em }

ol.arabic {
  list-style: decimal }

ol.loweralpha {
  list-style: lower-alpha }

ol.upperalpha {
  list-style: upper-alpha }

ol.lowerroman {
  list-style: lower-roman }

ol.upperroman {
  list-style: upper-roman }

p.attribution {
  text-align: right ;
  margin-left: 50% }

p.caption {
  font-style: italic }

p.credits {
  font-style: italic ;
  font-size: smaller }

p.label {
  white-space: nowrap }

p.rubric {
  font-weight: bold ;
  font-size: larger ;
  color: maroon ;
  text-align: center }

p.sidebar-title {
  font-family: sans-serif ;
  font-weight: bold ;
  font-size: larger }

p.sidebar-subtitle {
  font-family: sans-serif ;
  font-weight: bold }

p.topic-title {
  font-weight: bold }

pre.address {
  margin-bottom: 0 ;
  margin-top: 0 ;
  font-family: serif ;
  font-size: 100% }

pre.literal-block, pre.doctest-block {
  margin-left: 2em ;
  margin-right: 2em }

span.classifier {
  font-family: sans-serif ;
  font-style: oblique }

span.classifier-delimiter {
  font-family: sans-serif ;
  font-weight: bold }

span.interpreted {
  font-family: sans-serif }

span.option {
  white-space: nowrap }

span.pre {
  white-space: pre }

span.problematic {
  color: red }

span.section-subtitle {
  /* font-size relative to parent (h1..h6 element) */
  font-size: 80% }

table.citation {
  border-left: solid 1px gray;
  margin-left: 1px }

table.docinfo {
  margin: 2em 4em }

table.docutils {
  margin-top: 0.5em ;
  margin-bottom: 0.5em }

table.footnote {
  border-left: solid 1px black;
  margin-left: 1px }

table.docutils td, table.docutils th,
table.docinfo td, table.docinfo th {
  padding-left: 0.5em ;
  padding-right: 0.5em ;
  vertical-align: top }

table.docutils th.field-name, table.docinfo th.docinfo-name {
  font-weight: bold ;
  text-align: left ;
  white-space: nowrap ;
  padding-left: 0 }

h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
  font-size: 100% }

ul.auto-toc {
  list-style-type: none }

&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;


&lt;div class="contents topic" id="contents"&gt;
&lt;p class="topic-title first"&gt;Contents&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;a class="reference internal" href="#pr-sentation" id="id2"&gt;Présentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference internal" href="#la-carte-wifi" id="id3"&gt;La carte wifi&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a class="reference internal" href="#description" id="id4"&gt;Description&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference internal" href="#en-mode-client-sous-debian" id="id5"&gt;En mode client sous Debian&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a class="reference internal" href="#le-mode-ap" id="id6"&gt;Le mode AP&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a class="reference internal" href="#id1" id="id7"&gt;Description&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference internal" href="#avec-les-wireless-tools" id="id8"&gt;Avec les wireless-tools&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference internal" href="#installation-d-hostapd" id="id9"&gt;Installation d'hostapd&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference internal" href="#configuration-d-hostapd" id="id10"&gt;Configuration d'hostapd&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a class="reference internal" href="#liens-et-articles-annexes" id="id11"&gt;Liens et articles annexes&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="pr-sentation"&gt;
&lt;h1&gt;&lt;a class="toc-backref" href="#id2"&gt;Présentation&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;J'ai un Packard Bell Imax mini N3600 qui me sert de passerelle et de plateforme d'auto-hébergement sous Debian Lenny. Celui-ci possède une carte wifi qui ne me sert pas car la connectivité est fournie par ma connexion ADSL.&lt;/p&gt;
&lt;p&gt;Je souhaite utiliser cette carte en tant que point d'accès Wifi, à la place de mon AP &lt;a class="reference external" href="http://wiki.openwrt.org/toh/linksys/wrt54gl"&gt;Linksys WRT54GL&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Pour ceux qui veulent les grandes lignes sans tout lire:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;installer hostapd 0.6.10 de Squeeze&lt;/li&gt;
&lt;li&gt;utiliser un noyau 2.6.32 de Lenny-backport&lt;/li&gt;
&lt;li&gt;utiliser le guide &lt;a class="reference external" href="http://bobcopeland.com/blog/2009/11/ath5k-ap-mode/"&gt;Ath5k AP Mode&lt;/a&gt; d'&lt;a class="reference external" href="http://bobcopeland.com/blog/"&gt;Insignificant Bits&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="la-carte-wifi"&gt;
&lt;h1&gt;&lt;a class="toc-backref" href="#id3"&gt;La carte wifi&lt;/a&gt;&lt;/h1&gt;
&lt;div class="section" id="description"&gt;
&lt;h2&gt;&lt;a class="toc-backref" href="#id4"&gt;Description&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Cette ordinateur inclut une carte wifi intégrée, il s'agit d'une &lt;a class="reference external" href="http://madwifi-project.org/wiki/Chipsets#a2425Swan"&gt;Atheros AR2425&lt;/a&gt; (168c:001c) qui fonctionne avec le driver &lt;a class="reference external" href="http://wireless.kernel.org/en/users/Drivers/ath5k"&gt;ath5k&lt;/a&gt;:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
# lspci -v -s 05:00.0
05:00.0 Ethernet controller:   Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
        Subsystem: AMBIT Microsystem Corp. Device 0428
        Flags: bus master, fast devsel, latency 0, IRQ 19
        Memory at febf0000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: [40] Power Management version 2
        Capabilities: [50] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
        Capabilities: [60] Express Legacy Endpoint, MSI 00
        Capabilities: [90] MSI-X: Enable- Mask- TabSize=1
        Capabilities: [100] Advanced Error Reporting &amp;lt;?&amp;gt;
        Capabilities: [140] Virtual Channel &amp;lt;?&amp;gt;
        Kernel driver in use: ath5k
        Kernel modules: ath5k
&lt;/pre&gt;
&lt;p&gt;Sortie de dmesg:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
# dmesg
[   16.735520] ath5k 0000:05:00.0: PCI INT A -&amp;gt; Link[LN4A] -&amp;gt; GSI 19 (level, low) -&amp;gt; IRQ 19
[   16.735619] ath5k 0000:05:00.0: setting latency timer to 64
[   16.735706] ath5k 0000:05:00.0: registered as 'phy0'
...
[   19.006496] ath: EEPROM regdomain: 0x65
[   19.006503] ath: EEPROM indicates we should expect a direct regpair map
[   19.006513] ath: Country alpha2 being used: 00
[   19.006519] ath: Regpair used: 0x65
...
[   21.942054] phy0: Selected rate control algorithm 'minstrel'
[   21.943763] Registered led device: ath5k-phy0::rx
[   21.943869] Registered led device: ath5k-phy0::tx
[   21.943938] ath5k phy0: Atheros AR2425 chip found (MAC: 0xe2, PHY: 0x70)
&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="section" id="en-mode-client-sous-debian"&gt;
&lt;h2&gt;&lt;a class="toc-backref" href="#id5"&gt;En mode client sous Debian&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Avant d'attaquer le mode AP, il faut valider le bon fonctionnement de la carte wifi avec le driver &lt;a class="reference external" href="http://wireless.kernel.org/en/users/Drivers/ath5k"&gt;ath5k&lt;/a&gt; sur la Debian Lenny.&lt;/p&gt;
&lt;p&gt;Pour cela le mieux est de l'utiliser en mode client, le mode le plus standard.&lt;/p&gt;
&lt;p&gt;La page &lt;a class="reference external" href="http://wiki.debian.org/ath5k"&gt;Debian ath5k&lt;/a&gt; peut vous être utile. Il faut vérifier que la carte est bien reconnue. Si l'OS ne charge pas tout seul le module ath5k, le charger et vérifier que la carte est reconnue, cf la sortie dmesg ci-dessus.&lt;/p&gt;
&lt;p&gt;Est-ce que l'interface est bien créée, pour cela il suffit d'installer le package wireless-tools et vérifier la sortie de iwconfig, ici c'est l'interface wlan0 qui est en mode Managed:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
# iwconfig
wlan0     IEEE 802.11bg  Mode:Managed  Access Point: Not-Associated
          Tx-Power=0 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
&lt;/pre&gt;
&lt;p&gt;Maintenant vous devez la configurer pour se connecter à votre réseau sans-fil (manuellement avec iwconfig, avec wicd ou autre gestionnaire de connexion).&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="le-mode-ap"&gt;
&lt;h1&gt;&lt;a class="toc-backref" href="#id6"&gt;Le mode AP&lt;/a&gt;&lt;/h1&gt;
&lt;div class="section" id="id1"&gt;
&lt;h2&gt;&lt;a class="toc-backref" href="#id7"&gt;Description&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Les cartes wifi possèdent plusieurs mode de fonctionnement, le plus classique est le mode client (mode Managed) pour se connecter à un réseau wifi.&lt;/p&gt;
&lt;p&gt;Mais il existe de nombreux autres modes: le mode AP (Mode Master), le mode écoute (Mode Monitor) utiliser par des outils comme Kismet, le mode ad-hoc (Mode Ad-Hoc) pour faire un réseau direct entre clients sans AP...&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="avec-les-wireless-tools"&gt;
&lt;h2&gt;&lt;a class="toc-backref" href="#id8"&gt;Avec les wireless-tools&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;J'ai déjà utilisé le mode AP avec une carte PCI wifi avec le driver prism54g, il suffisait d'utiliser la commande iwconfig:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
iwconfig wlan0 mode Master
iwconfig wlan0 essid test
iwconfig wlan0 key maclefWEP
&lt;/pre&gt;
&lt;p&gt;Hélas, le driver ath5k ne supporte pas ce mode de configuration. Il faut donc passer par &lt;a class="reference external" href="http://w1.fi/hostapd/"&gt;hostapd&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="installation-d-hostapd"&gt;
&lt;h2&gt;&lt;a class="toc-backref" href="#id9"&gt;Installation d'hostapd&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Il faut installer le package hostapd. Lenny propose la version 5.10 de hostapd qui est trop ancienne. En effet, il faut utiliser le driver nl80211 de hostapd, et cette version ne le supporte pas. Je comptais utiliser la version de lenny-backport, mais ... il n'y en a pas.&lt;/p&gt;
&lt;p&gt;J'ai regardé les &lt;a class="reference external" href="http://packages.debian.org/search?lang=en&amp;amp;searchon=names&amp;amp;keywords=hostapd"&gt;packages hostapd&lt;/a&gt; disponibles, et j'ai essayé celui de la squeeze. J'ai téléchargé le package:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
wget http://ftp.fr.debian.org/debian/pool/main/h/hostapd/hostapd_0.6.10-2_i386.deb
&lt;/pre&gt;
&lt;p&gt;et une tentative d'installation m'a indiqué deux conflits libnl1 et libssl. J'ai donc installé libnl1:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
apt-get install libnl1
&lt;/pre&gt;
&lt;p&gt;Je suis passé outre le conflit libssl car la version demandée était très proche de celle déjà installée (oui ce n'est pas bien). Donc j'ai forcé l'installation:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
dpkg --force-depends-version -i hostapd_0.6.10-2_i386.deb
&lt;/pre&gt;
&lt;p&gt;A noter qu'il est aussi souhaitable d'avoir un noyau &amp;gt;= 2.6.30. J'avais déjà un noyau de lenny-backport : linux-image-2.6.32-bpo.4-686.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="configuration-d-hostapd"&gt;
&lt;h2&gt;&lt;a class="toc-backref" href="#id10"&gt;Configuration d'hostapd&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;J'ai modifié le fichier /etc/defaut/hostapd pour indiquer le fichier de configuration:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
DAEMON_CONF=&amp;quot;/etc/hostapd/hostapd.conf&amp;quot;
&lt;/pre&gt;
&lt;p&gt;Puis j'ai copié le fichier d'exemple:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
cp /usr/share/doc/hostapd/examples/hostapd.conf.gz /etc/hostapd/
gunzip /etc/hostapd/hostapd.conf.gz
&lt;/pre&gt;
&lt;p&gt;J'ai suivi le guide &lt;a class="reference external" href="http://madwifi-project.org/wiki/UserDocs/ath5kAccessPoint"&gt;hostapd de mad-wifi&lt;/a&gt;. Il faut notamment utiliser le driver nl80211 de hostapd (basé sur la pile wifi mac80211 du noyau):&lt;/p&gt;
&lt;pre class="literal-block"&gt;
interface=wlan0
driver=nl80211
ssid=test
&lt;/pre&gt;
&lt;p&gt;Puis lancer hostapd:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
/usr/sbin/hostapd /etc/hostapd/hostapd.conf
&lt;/pre&gt;
&lt;p&gt;Hélas le guide &lt;a class="reference external" href="http://madwifi-project.org/wiki/UserDocs/ath5kAccessPoint"&gt;hostapd de mad-wifi&lt;/a&gt; est succinct, et je n'ai pas réussi à configurer correctement hostapd. J'avais un message d'incompatibilité matérielle.&lt;/p&gt;
&lt;p&gt;Mon salut est venu du blog d'&lt;a class="reference external" href="http://bobcopeland.com/blog/"&gt;Insignificant Bits&lt;/a&gt; avec l'article &lt;a class="reference external" href="http://bobcopeland.com/blog/2009/11/ath5k-ap-mode/"&gt;Ath5k AP Mode&lt;/a&gt; qui est plus détaillé. J'avais oublié de configurer de nombreux paramètres (notamment le mode g au lieu de a), en WPA2:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
hw_mode=g
channel=5
own_ip_addr=192.168.2.1
wpa=2
wpa_passphrase=MaClefWPA
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
&lt;/pre&gt;
&lt;p&gt;Puis un nouveau test, qui est passé:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
# /usr/sbin/hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Using interface wlan0 with hwaddr 00:24:2c:78:xx:xx and ssid 'test'
&lt;/pre&gt;
&lt;p&gt;Et la connexion d'un client:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
wlan0: STA 00:1b:b1:48:xx:xx IEEE 802.11: authenticated
STA 00:1b:b1:48:xx:xx: No WPA/RSN IE in association request
wlan0: STA 00:1b:b1:48:xx:xx IEEE 802.11: authenticated
wlan0: STA 00:1b:b1:48:xx:xx IEEE 802.11: associated (aid 1)
wlan0: STA 00:1b:b1:48:xx:xx RADIUS: starting accounting session 4D44ACF5-00000000
wlan0: STA 00:1b:b1:48:xx:xx WPA: pairwise key handshake completed (RSN)
&lt;/pre&gt;
&lt;p&gt;Il ne reste plus que des manipulations assez simples et très documentées: automatiser le lancement d'hostapd avec &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;/etc/init.d/hostapd&lt;/span&gt;&lt;/tt&gt;, configurer le serveur dhcp pour ce nouveau réseau, modifier la conf iptable pour le nat de ce réseau et le filtrage souhaité.&lt;/p&gt;
&lt;p&gt;Je remercie &lt;a class="reference external" href="http://bobcopeland.com/blog/"&gt;Insignificant Bits&lt;/a&gt; pour son article &lt;a class="reference external" href="http://bobcopeland.com/blog/2009/11/ath5k-ap-mode/"&gt;Ath5k AP Mode&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="liens-et-articles-annexes"&gt;
&lt;h1&gt;&lt;a class="toc-backref" href="#id11"&gt;Liens et articles annexes&lt;/a&gt;&lt;/h1&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Les caractéristiques du driver &lt;a class="reference external" href="http://wireless.kernel.org/en/users/Drivers/ath5k"&gt;ath5k&lt;/a&gt; pour la carte &lt;a class="reference external" href="http://madwifi-project.org/wiki/Chipsets#a2425Swan"&gt;Atheros AR2425&lt;/a&gt; sur kernel.org&lt;/li&gt;
&lt;li&gt;La page &lt;a class="reference external" href="http://wiki.debian.org/ath5k"&gt;Debian ath5k&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Les &lt;a class="reference external" href="http://packages.debian.org/search?lang=en&amp;amp;searchon=names&amp;amp;keywords=hostapd"&gt;packages hostapd&lt;/a&gt; chez Debian.&lt;/li&gt;
&lt;li&gt;Le site officiel &lt;a class="reference external" href="http://w1.fi/hostapd/"&gt;hostapd&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Le site &lt;a class="reference external" href="http://wireless.kernel.org/en/users/Documentation/hostapd"&gt;hostapd de kernel.org&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Le site &lt;a class="reference external" href="http://madwifi-project.org/wiki/UserDocs/ath5kAccessPoint"&gt;hostapd  de mad-wifi&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Le guide &lt;a class="reference external" href="http://bobcopeland.com/blog/2009/11/ath5k-ap-mode/"&gt;Ath5k AP Mode&lt;/a&gt; d'&lt;a class="reference external" href="http://bobcopeland.com/blog/"&gt;Insignificant Bits&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

]]></description>
<dc:creator>ludovic Bellier</dc:creator>
<dc:date>2011-01-29T20:38:47Z</dc:date>
</item>


<item>
<title>Home + Sharp + return</title>
<link>http://home.zyrianes.net/blog/Articles/160/</link>
<guid isPermaLink="true">http://home.zyrianes.net/blog/Articles/160/</guid>
<description><![CDATA[
The shortcut that I never remember:&lt;br /&gt;
Esc + # (Meta + #)&lt;br /&gt;
With Bash, comment the line and go to next line
]]></description>
<dc:creator>ludovic Bellier</dc:creator>
<dc:date>2008-03-22T14:19:02Z</dc:date>
</item>


<item>
<title>Very Simple Test Download via a Proxy Howto</title>
<link>http://home.zyrianes.net/blog/Articles/159/</link>
<guid isPermaLink="true">http://home.zyrianes.net/blog/Articles/159/</guid>
<description><![CDATA[
This simple howto explains howto to check your download rate through a ft proxy&lt;br /&gt;
&lt;br /&gt;
private Proxy&lt;br /&gt;
=============&lt;br /&gt;
&lt;br /&gt;
If it's a private proxy, first create a tunnel to this proxy with ::&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ssh -l &lt;user&gt; -L 3128:localhost:3128 &lt;host proxy&gt;&lt;br /&gt;
&lt;br /&gt;
Next, configure your proxy::&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; export ftp_proxy=localhost:3128 &lt;proxy_host&gt;&lt;br /&gt;
&lt;br /&gt;
Finally, test your dl with wget::&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; wget&amp;nbsp; --verbose --proxy=on \\&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ftp://ftp.free.fr/mirrors/ftp.ubuntu.com/releases/7.10/ubuntu-7.10-desktop-i386.iso&lt;br /&gt;
&lt;br /&gt;
You can check if your traffic uses the proxy with iftop, example::&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; iftop -i eth0&lt;br /&gt;
&lt;br /&gt;
public or internal Proxy&lt;br /&gt;
========================&lt;br /&gt;
&lt;br /&gt;
You just set your proxy host/port and launch wget::&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; export ftp_proxy=localhost:3128&lt;br /&gt;
&amp;nbsp; &amp;nbsp; wget&amp;nbsp; --verbose --proxy=on \\ &lt;br /&gt;
ftp://ftp.free.fr/mirrors/ftp.ubuntu.com/releases/7.10/ubuntu-7.10-desktop-i386.iso
]]></description>
<dc:creator>ludovic Bellier</dc:creator>
<dc:date>2007-11-18T22:00:13Z</dc:date>
</item>


<item>
<title>Navibe GM720 :  setting and using with Linux</title>
<link>http://home.zyrianes.net/blog/Articles/158/</link>
<guid isPermaLink="true">http://home.zyrianes.net/blog/Articles/158/</guid>
<description><![CDATA[
&lt;p&gt;I recently buy an USB GPS, also called GPS Mouse, &lt;a class="reference" href="http://www.navibe.com/product/gps_mouse/gm720/gm720.htm"&gt;Navibe GM720&lt;/a&gt; on eBay. I'll use it with Linux on my Apple iBook G4.&lt;/p&gt;
&lt;div class="contents topic" id="contents"&gt;
&lt;p class="topic-title first"&gt;&lt;a name="contents"&gt;Contents&lt;/a&gt;&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;a class="reference" href="#hardware" id="id4" name="id4"&gt;Hardware&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a class="reference" href="#gps" id="id5" name="id5"&gt;GPS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="#computer" id="id6" name="id6"&gt;Computer&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="#setting" id="id7" name="id7"&gt;Setting&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a class="reference" href="#hardware-id" id="id8" name="id8"&gt;Hardware ID&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="#setting-an-usb-gps-with-linux" id="id9" name="id9"&gt;Setting an USB GPS with Linux&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="#using" id="id10" name="id10"&gt;Using&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a class="reference" href="#verify-you-can-access-your-gps" id="id11" name="id11"&gt;Verify you can access your GPS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="#gpsd" id="id12" name="id12"&gt;GPSd&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="#gpsd-tools-sirfmon" id="id13" name="id13"&gt;Gpsd tools : sirfmon&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="#gpsd-tools-cgps" id="id14" name="id14"&gt;Gpsd tools : cgps&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="#gpsd-tools-xgps" id="id15" name="id15"&gt;Gpsd tools : xgps&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="#gpsd-tools-cgpxlogger" id="id16" name="id16"&gt;Gpsd tools : cgpxlogger&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="#gpsdrive" id="id17" name="id17"&gt;GpsDrive&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="#navit" id="id18" name="id18"&gt;Navit&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="#openstreetmap" id="id19" name="id19"&gt;OpenStreetMap&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="#ibook-with-gentoo-and-gps-use" id="id20" name="id20"&gt;iBook with Gentoo and GPS use&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="#thanks" id="id21" name="id21"&gt;Thanks&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="hardware"&gt;
&lt;h1&gt;&lt;a class="toc-backref" href="#id4" name="hardware"&gt;Hardware&lt;/a&gt;&lt;/h1&gt;
&lt;div class="section" id="gps"&gt;
&lt;h2&gt;&lt;a class="toc-backref" href="#id5" name="gps"&gt;GPS&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The &lt;a class="reference" href="http://www.navibe.com/product/gps_mouse/gm720/gm720.htm"&gt;Navibe GM720&lt;/a&gt; uses a USB-to-Serial converter from Prolific. The GPS chipset is the &lt;a class="reference" href="http://en.wikipedia.org/wiki/SiRFstar_III"&gt;SiRF Star III&lt;/a&gt;, a recent and famous chipset used in numerous current GPS receivers.&lt;/p&gt;
&lt;div class="image"&gt;&lt;img alt="http://home.zyrianes.net/blog/static/includes/NGM720Pen.png" src="http://home.zyrianes.net/blog/static/includes/NGM720Pen.png" /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="computer"&gt;
&lt;h2&gt;&lt;a class="toc-backref" href="#id6" name="computer"&gt;Computer&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I use an Apple iBook G4 with Gnu/Linux Gentoo PPC distribution. This 12&amp;quot; iBook is small enough, I can put it in a back bag and the battery allows 3-4 endurance hours.&lt;/p&gt;
&lt;div class="image"&gt;&lt;img alt="http://home.zyrianes.net/blog/static/includes/iBook.png" src="http://home.zyrianes.net/blog/static/includes/iBook.png" /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="setting"&gt;
&lt;h1&gt;&lt;a class="toc-backref" href="#id7" name="setting"&gt;Setting&lt;/a&gt;&lt;/h1&gt;
&lt;div class="section" id="hardware-id"&gt;
&lt;h2&gt;&lt;a class="toc-backref" href="#id8" name="hardware-id"&gt;Hardware ID&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;lsusb only shows the USB-to-Serial converter:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
# lsusb 
Bus 003 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
&lt;/pre&gt;
&lt;p&gt;cgps reports: &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;SiRF&lt;/span&gt; &lt;span class="pre"&gt;binary&lt;/span&gt; &lt;span class="pre"&gt;GSW3.2.0PAT_3&lt;/span&gt;&lt;/tt&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="setting-an-usb-gps-with-linux"&gt;
&lt;h2&gt;&lt;a class="toc-backref" href="#id9" name="setting-an-usb-gps-with-linux"&gt;Setting an USB GPS with Linux&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;A lot of these (all?) USB GPS use the Prolific USB-to-Serial converter. So your kernel needs the pl2303 driver.&lt;/p&gt;
&lt;p&gt;Linux kernel setting (here v2.6.23-rc1):&lt;/p&gt;
&lt;pre class="literal-block"&gt;
Device Drivers  ---&amp;gt;
 [*] USB support  ---&amp;gt;
  USB Serial Converter support  ---&amp;gt;
   &amp;lt;M&amp;gt; USB Serial Converter support
   &amp;lt;M&amp;gt;   USB Prolific 2303 Single Port Serial Driver
&lt;/pre&gt;
&lt;p&gt;When you plug your USB GPS, you see in /var/log/messages:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
Jul 29 17:23:40 iyn usb 3-1: new full speed USB device using ohci_hcd and address 3
Jul 29 17:23:40 iyn usb 3-1: configuration #1 chosen from 1 choice
Jul 29 17:23:40 iyn pl2303 3-1:1.0: pl2303 converter detected
Jul 29 17:23:40 iyn usb 3-1: pl2303 converter now attached to ttyUSB0
&lt;/pre&gt;
&lt;p&gt;If none, verify if the pl2303 module is loaded, with the command lsmod:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
# lsmod | grep pl2303
pl2303                 21956  0
&lt;/pre&gt;
&lt;p&gt;If none, the command:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
insmod pl2303
&lt;/pre&gt;
&lt;p&gt;loads the module.&lt;/p&gt;
&lt;p&gt;You see that the GPS can be accessed with the &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;ttyUSB0&lt;/span&gt;&lt;/tt&gt; serial device, so I'll use the &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;/dev/ttyUSB0&lt;/span&gt;&lt;/tt&gt; device name.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="using"&gt;
&lt;h1&gt;&lt;a class="toc-backref" href="#id10" name="using"&gt;Using&lt;/a&gt;&lt;/h1&gt;
&lt;div class="section" id="verify-you-can-access-your-gps"&gt;
&lt;h2&gt;&lt;a class="toc-backref" href="#id11" name="verify-you-can-access-your-gps"&gt;Verify you can access your GPS&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The &lt;a class="reference" href="http://gpsd.berlios.de/"&gt;gpsd&lt;/a&gt; suite has the &lt;a class="reference" href="http://gpsd.berlios.de/sirfmon.html"&gt;sirfmon&lt;/a&gt; utility which communicates with the GPS through the serial port (or through gpsd, see below).&lt;/p&gt;
&lt;p&gt;Starts it with:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
sirfmon /dev/ttyUSB0
&lt;/pre&gt;
&lt;p&gt;This software displays on top the informations received from the GPS and on bottom the raw communication with the GPS.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="gpsd"&gt;
&lt;h2&gt;&lt;a class="toc-backref" href="#id12" name="gpsd"&gt;GPSd&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The &lt;a class="reference" href="http://gpsd.berlios.de/"&gt;gpsd&lt;/a&gt; daemon is an abstraction layer. It communicates through the physical serial port GPS and offers services (lat, long, ...) to its clients (cgps, sirfmon, gpsdrive, navit, ...).&lt;/p&gt;
&lt;p&gt;A lot of Linux applications use it, and it is ported to Open/Free/NetBSD and Mac OS X.&lt;/p&gt;
&lt;p&gt;It's very simple, just start the daemon with&lt;/p&gt;
&lt;pre class="literal-block"&gt;
gpsd /dev/ttyUSB0
&lt;/pre&gt;
&lt;p&gt;If you want to kill it, use the &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;killall&lt;/span&gt; &lt;span class="pre"&gt;gpsd&lt;/span&gt;&lt;/tt&gt; command.&lt;/p&gt;
&lt;p&gt;FYI: gpsd installs the usb hotplug rules.&lt;/p&gt;
&lt;p&gt;The &lt;a class="reference" href="http://gpsd.berlios.de/"&gt;gpsd&lt;/a&gt; suite has a lot of very usefull tools.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="gpsd-tools-sirfmon"&gt;
&lt;h2&gt;&lt;a class="toc-backref" href="#id13" name="gpsd-tools-sirfmon"&gt;Gpsd tools : sirfmon&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a class="reference" href="http://gpsd.berlios.de/sirfmon.html"&gt;sirfmon&lt;/a&gt; is a &lt;a class="reference" href="http://en.wikipedia.org/wiki/SiRFstar_III"&gt;SiRF Star III&lt;/a&gt; chipset specific tool, it displays a lot of advanced information from this specific chipset class GPS. It'a a textual tool.&lt;/p&gt;
&lt;p&gt;Start gpsd if not yet done, and just:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
sirfmon
&lt;/pre&gt;
&lt;p&gt;and sirfmon will use gpsd to get geographic informations, see this Sirfmon screenshot:&lt;/p&gt;
&lt;div class="image"&gt;&lt;img alt="http://home.zyrianes.net/blog/static/includes/sirfmon.png" src="http://home.zyrianes.net/blog/static/includes/sirfmon.png" /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="gpsd-tools-cgps"&gt;
&lt;h2&gt;&lt;a class="toc-backref" href="#id14" name="gpsd-tools-cgps"&gt;Gpsd tools : cgps&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a class="reference" href="http://gpsd.berlios.de/xgps.html"&gt;cgps&lt;/a&gt; is also a text tool which displays useful geographic informations, but it isn't specific to one chipset class GPS. See this cgps screenshot:&lt;/p&gt;
&lt;div class="image"&gt;&lt;img alt="http://home.zyrianes.net/blog/static/includes/cgps.png" src="http://home.zyrianes.net/blog/static/includes/cgps.png" /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="gpsd-tools-xgps"&gt;
&lt;h2&gt;&lt;a class="toc-backref" href="#id15" name="gpsd-tools-xgps"&gt;Gpsd tools : xgps&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;It's same as cgps but with a graphic interface.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="gpsd-tools-cgpxlogger"&gt;
&lt;h2&gt;&lt;a class="toc-backref" href="#id16" name="gpsd-tools-cgpxlogger"&gt;Gpsd tools : cgpxlogger&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a class="reference" href="http://gpsd.berlios.de/xgps.html"&gt;cgpxlogger&lt;/a&gt; is a gps data logger, it displays GPS informations, in GPX format.&lt;/p&gt;
&lt;p&gt;Use example:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
# cgpxlogger &amp;gt; 2007-07-29_20h08.gpx
&lt;/pre&gt;
&lt;p&gt;and &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;Ctrl-c&lt;/span&gt;&lt;/tt&gt; stop it.&lt;/p&gt;
&lt;p&gt;GPX is one of the most known gps data logger format, a lot of applications use it. It's a good solution if you want trace your way or help the &lt;a class="reference" href="http://wiki.openstreetmap.org/index.php/OpenStreetMap:About"&gt;OSM&lt;/a&gt; project.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="gpsdrive"&gt;
&lt;h2&gt;&lt;a class="toc-backref" href="#id17" name="gpsdrive"&gt;GpsDrive&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a class="reference" href="http://www.gpsdrive.de/"&gt;gpsdrive&lt;/a&gt; is a car navigation system for laptops. It can download maps from Expedia or TopoZone. See this Gps Drive screenshot:&lt;/p&gt;
&lt;div class="image"&gt;&lt;img alt="http://home.zyrianes.net/blog/static/includes/GpsDrive.png" src="http://home.zyrianes.net/blog/static/includes/GpsDrive.png" /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="navit"&gt;
&lt;h2&gt;&lt;a class="toc-backref" href="#id18" name="navit"&gt;Navit&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a class="reference" href="http://navit.sourceforge.net/"&gt;navit&lt;/a&gt; is a car navigation system for laptops and embedded touch screen displays.
For the installation, you need some specific libraries: &lt;a class="reference" href="http://www.cegui.org.uk/"&gt;cegui&lt;/a&gt; with openGL support and quesoglc. See this &lt;a class="reference" href="http://navit.wiki.sourceforge.net/Getting+started"&gt;Navit installation page&lt;/a&gt; from the project.
This is a promising project.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="openstreetmap"&gt;
&lt;h2&gt;&lt;a class="toc-backref" href="#id19" name="openstreetmap"&gt;OpenStreetMap&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a class="reference" href="http://wiki.openstreetmap.org/index.php/OpenStreetMap:About"&gt;OSM&lt;/a&gt; is a collaborative editable map. Most of the current maps have restrictive rights, this project allows each person with a GPS to upgrade the &lt;a class="reference" href="http://wiki.openstreetmap.org/index.php/OpenStreetMap:About"&gt;OSM&lt;/a&gt; map. Some softwares (like Navit) can use this non-commercial Map.
See the current &lt;a class="reference" href="http://www.openstreetmap.org/index.html"&gt;OSM Map&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="ibook-with-gentoo-and-gps-use"&gt;
&lt;h1&gt;&lt;a class="toc-backref" href="#id20" name="ibook-with-gentoo-and-gps-use"&gt;iBook with Gentoo and GPS use&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;&lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;/etc/init.d/pbbuttonsd&lt;/span&gt; &lt;span class="pre"&gt;stop&lt;/span&gt;&lt;/tt&gt; deactivates the suspend to ram process, when you close your laptop or after 5mn of inactivity, so you can log your GPS way with cgpxlogger, and import it to &lt;a class="reference" href="http://wiki.openstreetmap.org/index.php/OpenStreetMap:About"&gt;OSM&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="thanks"&gt;
&lt;h1&gt;&lt;a class="toc-backref" href="#id21" name="thanks"&gt;Thanks&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;gpsd developers, Gwenn, Jkx.&lt;/p&gt;
&lt;/div&gt;

]]></description>
<dc:creator>ludovic Bellier</dc:creator>
<dc:date>2007-07-29T15:19:50Z</dc:date>
</item>


<item>
<title>Screen tips</title>
<link>http://home.zyrianes.net/blog/Articles/150/</link>
<guid isPermaLink="true">http://home.zyrianes.net/blog/Articles/150/</guid>
<description><![CDATA[
&lt;p&gt;&lt;strong&gt;screen&lt;/strong&gt; is a unix command that manages few virtual terminals.&lt;/p&gt;
&lt;div class="section" id="splitting-the-screen"&gt;
&lt;h1&gt;&lt;a name="splitting-the-screen"&gt;Splitting the screen&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Start screen with few terminals and use C-a S for splitting the current view. C-a TAB allows moving from one to another view.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;So:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
C-a S split the screen
C-a TAB move to another view
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;p&gt;man page:
&lt;a class="reference" href="http://www.sunsite.ualberta.ca/Documentation/Gnu/screen-3.9.4/html_chapter/screen_toc.html"&gt;http://www.sunsite.ualberta.ca/Documentation/Gnu/screen-3.9.4/html_chapter/screen_toc.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks to Gwenn aka demisel.&lt;/p&gt;
&lt;/div&gt;

]]></description>
<dc:creator>ludovic Bellier</dc:creator>
<dc:date>2005-05-19T12:03:08Z</dc:date>
</item>


<item>
<title>TightVNC and VNC_VIA_CMD</title>
<link>http://home.zyrianes.net/blog/Articles/149/</link>
<guid isPermaLink="true">http://home.zyrianes.net/blog/Articles/149/</guid>
<description><![CDATA[
&lt;p&gt;TightVNC has a '-via' option that allows using a gateway through the client and the VNC server.&lt;/p&gt;
&lt;p&gt;TightVNC with this option can use a 'host in the middle' (gateway) to access another host. The VNC_VIA_CMD defines the ssh options to access the gateway.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
host A access host C through host B. A and B have a public IP, but C is behind B. 
A can access B with ssh.
export VNC_VIA_CMD='/usr/bin/ssh -2 -x -p &amp;lt;B sshd port&amp;gt; -l &amp;lt;B user&amp;gt; -f -L %L:%H:%R %G sleep 20'
vncviewer -via  &amp;lt;B host ip&amp;gt; &amp;lt;C host IP from B&amp;gt;
&lt;/pre&gt;
&lt;p&gt;true life example:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
foo --&amp;gt; gateway.bar.com --&amp;gt; 192.168.1.36
foo&amp;gt; export VNC_VIA_CMD='/usr/bin/ssh -2 -x -p 55 -l foo -f -L %L:%H:%R %G sleep 20'
foo&amp;gt; vncviewer -via  gateway.bar.com 192.168.1.36
&lt;/pre&gt;
&lt;dl&gt;
&lt;dt&gt;links :&lt;/dt&gt;
&lt;dd&gt;&lt;ul class="first last simple"&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.vanemery.com/Linux/VNC/vnc-over-ssh.html"&gt;http://www.vanemery.com/Linux/VNC/vnc-over-ssh.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;charcode test:&lt;/dt&gt;
&lt;dd&gt;&lt;ul class="first last simple"&gt;
&lt;li&gt;&amp;amp;&lt;/li&gt;
&lt;li&gt;&amp;amp;amp;&lt;/li&gt;
&lt;li&gt;&amp;amp;#38;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;

]]></description>
<dc:creator>ludovic Bellier</dc:creator>
<dc:date>2005-05-16T21:41:19Z</dc:date>
</item>


<item>
<title>148</title>
<link>http://home.zyrianes.net/blog/Articles/148/</link>
<guid isPermaLink="true">http://home.zyrianes.net/blog/Articles/148/</guid>
<description><![CDATA[
CODE&lt;br/&gt;	&lt;link rel="alternate" type="application/rss+xml" title="RSS" href="/rss.php" /&gt;&lt;br/&gt;	&lt;link rel="alternate" type="application/xml" title="Atom" href="/atom.php" /&gt;&lt;br/&gt;
]]></description>
<dc:creator>ludovic Bellier</dc:creator>
<dc:date>2004-12-01T17:10:29Z</dc:date>
</item>


<item>
<title>Qmail tips</title>
<link>http://home.zyrianes.net/blog/Articles/145/</link>
<guid isPermaLink="true">http://home.zyrianes.net/blog/Articles/145/</guid>
<description><![CDATA[
&lt;div class="contents topic" id="contents"&gt;
&lt;p class="topic-title"&gt;&lt;a name="contents"&gt;Contents&lt;/a&gt;&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;a class="reference" href="#repair-the-queue" id="id1" name="id1"&gt;Repair the queue&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="#setup-as-mx-secondary-for-a-domain" id="id2" name="id2"&gt;Setup as MX secondary for a domain&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="#watch-qmail-logs-with-date-time" id="id3" name="id3"&gt;Watch qmail logs with date/time&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;This short article enumerates tips for qmail (a reminder for me):&lt;/p&gt;
&lt;div class="section" id="repair-the-queue"&gt;
&lt;h1&gt;&lt;a class="toc-backref" href="#id1" name="repair-the-queue"&gt;Repair the queue&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;The queue is located here : /var/qmail/queue/ , you can repair it with queue_repair ( &lt;a class="reference" href="http://www.qcc.ca/~charlesc/software/queue_repair/"&gt;http://www.qcc.ca/~charlesc/software/queue_repair/&lt;/a&gt; ).&lt;/p&gt;
&lt;p&gt;command:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
./queue_repair.py -c -s 23 --no-bigtodo /var/qmail
&lt;/pre&gt;
&lt;p&gt;see:  &lt;a class="reference" href="http://www.qcc.ca/~charlesc/software/queue_repair/docs.html#docs"&gt;http://www.qcc.ca/~charlesc/software/queue_repair/docs.html#docs&lt;/a&gt;
-c create and repair
-s 23 number of split directories
--no-bigtodo if your qmail don't use the qmail big-todo patch&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="setup-as-mx-secondary-for-a-domain"&gt;
&lt;h1&gt;&lt;a class="toc-backref" href="#id2" name="setup-as-mx-secondary-for-a-domain"&gt;Setup as MX secondary for a domain&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;It's quite simple, add the domain in the /var/qmail/control/rcpthosts of each recorded MX secondary. And, restarts qmail (just kill -HUP).&lt;/p&gt;
&lt;p&gt;exemple:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
server1.domain1.tld has:
MX   10 server1.domain1.tld
MX   20 server2.domain2.tld

on server2.domain2.tld,
in /var/qmail/control/rcpthosts file add line:
server1.domain1.tld 
&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="section" id="watch-qmail-logs-with-date-time"&gt;
&lt;h1&gt;&lt;a class="toc-backref" href="#id3" name="watch-qmail-logs-with-date-time"&gt;Watch qmail logs with date/time&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Qmail use a special log format for the date and the time (maybe seconds number since 1/1/1970 ). tai64nlocal shows user fiendly date/time.&lt;/p&gt;
&lt;p&gt;exemple:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
# tail -f /var/log/qmail/current  | tai64nlocal
2005-02-10 14:07:55.565508500 delivery 3973: success: did_1+0+0/
2005-02-10 14:07:55.565510500 status: local 0/10 remote 0/20
2005-02-10 14:07:55.565511500 end msg 52055
2005-02-10 14:27:01.610629500 new msg 52055
&lt;/pre&gt;
&lt;/div&gt;

]]></description>
<dc:creator>ludovic Bellier</dc:creator>
<dc:date>2004-09-26T13:52:23Z</dc:date>
</item>


<item>
<title>nmap</title>
<link>http://home.zyrianes.net/blog/Articles/144/</link>
<guid isPermaLink="true">http://home.zyrianes.net/blog/Articles/144/</guid>
<description><![CDATA[
&lt;p&gt;Nmap 3.70 released -&amp;gt; &lt;a class="reference" href="http://www.insecure.org/"&gt;http://www.insecure.org/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;this simple command allows to know which local hosts are up:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
nmap -sP &amp;lt;masked IP network&amp;gt;   (ex: nmap -sP 192.168.1.0/24 )
&lt;/pre&gt;
&lt;p&gt;This friendly scanning can be added to the crontab, allowing a daily report of the open ports:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
nmap -sT -P0 -sV &amp;lt;host&amp;gt; 2&amp;gt;&amp;amp;1 | mail -b &amp;lt;your mail&amp;gt; \
 -s &amp;quot;[nmap] `date -I` scan report&amp;quot; &amp;lt;host_owner_mail&amp;gt;
&lt;/pre&gt;
&lt;p&gt;For IPv6:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
nmap -sT -6 -P0 -sV &amp;lt;host|ipv6&amp;gt;
&lt;/pre&gt;

]]></description>
<dc:creator>ludovic Bellier</dc:creator>
<dc:date>2004-09-23T10:17:29Z</dc:date>
</item>


<item>
<title>A mail per valid SSH session</title>
<link>http://home.zyrianes.net/blog/Articles/143/</link>
<guid isPermaLink="true">http://home.zyrianes.net/blog/Articles/143/</guid>
<description><![CDATA[
&lt;p&gt;You want to be notified when someone connects on your server with ssh? Add this sshrc config file to your ssh config directory (/etc/ssh):&lt;/p&gt;
&lt;pre class="literal-block"&gt;
emailfrom=root&amp;#64;`hostname`
emailto=&amp;lt;_your address here_&amp;gt;
fulluser=&amp;quot;$USER&amp;#64;&amp;quot;`hostname`
date822=`date -R`
ldate=`date &amp;quot;+%A %e %B %Y a %Hh%M %Z&amp;quot;`
host_ip=&amp;quot;`echo $SSH_CONNECTION | awk '{print $1}'`&amp;quot;
host_dns=&amp;quot;`host ${host_ip}`&amp;quot;

echo -e &amp;quot;\
From: $emailfrom
To: $emailto
Subject: [SSHRC] ssh session - $USER
Date: $date822
User-Agent: sshrc
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
Hello,

A ssh session version $SHLVL opened,
with local user $fulluser,
$ldate,
from host  $SSH_CONNECTION.
host DNS : $host_dns


- -- 
sshrc&amp;quot; | /usr/sbin/sendmail -t
&lt;/pre&gt;
&lt;p&gt;Add your email to the emailto variable, test and modify to your needs.&lt;/p&gt;
&lt;p&gt;Thanks to Léa for her ssh post on this.&lt;/p&gt;

]]></description>
<dc:creator>ludovic Bellier</dc:creator>
<dc:date>2004-08-06T22:02:31Z</dc:date>
</item>



</channel>
</rss>
