title: XRDP add layout
body: <p>On Debian 8 installed XRDP + xfce4. There is no possibility to add a new layout to system - the "Add" button is disabled: after logging in go to the "Application Menu - Settings - Keyboard" select "Layout" and see the following picture: see <a href="http://ipic.su/7ypkZV" rel="nofollow noreferrer">screenshot</a>.</p>
  
  <p>In the directory <code>/etc/xrdp/</code> there are files:</p>
  
  <ul>
  <li><code>km-0407.ini</code></li>
  <li><code>km-0409.ini</code></li>
  <li><code>km-040c.ini</code></li>
  <li><code>km-0410.ini</code></li>
  <li><code>km-0419.ini</code></li>
  <li><code>km-041d.ini</code></li>
  <li><code>rsakeys.ini</code></li>
  <li><code>sesman.ini</code></li>
  <li><code>startwm.sh</code></li>
  <li><code>xrdp.ini</code></li></li>
  </ul>
  
  <p><code>km-0419.ini</code> - layout, which I need.</p>
  
  <p>How to add a keyboard layout?</p>
  
  <p>I tried to run inside a terminal session (under root) commands:</p>
  
  <pre><code>setxkbmap
  </code></pre>
  
  <p>and</p>
  
  <pre><code>xrdp-genkeymap /etc/xrdp/km-0419.ini
  </code></pre>
  
  <p>In response to the first command I get:</p>
  
  <blockquote>
  <pre><code>XKB extention not present on: 10.0
  </code></pre>
  </blockquote>
  
  <p>second silently executed, nothing happens.</p>
  
  <p>The same commands is a terminal session (on a host-machine) reported:</p>
  
  <blockquote>
  <pre><code>Can not open display «default display»
  </code></pre>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
  <pre><code>unable to open display ""
  </code></pre>
  </blockquote>