Menu

XRDP on Raspberry Pi3

xrdp
2019-03-11
2022-12-11
  • Wilfried Peters

    Wilfried Peters - 2019-03-11

    I'm using XRDP on some Raspberry Pi3. The installation and connection setup with my Mac Book Pro takes me a little bit more than one minute. While I have used the connection in the past with Windows clients only, I quickly experienced that my MAC keyboard was not recognized by “Remote Desktop for MAC” within XRDP. Over the last 2 weeks I'm searching for solutions in the internet and did follow their instructions without success.

    From my understanding Windows Remote Desktop for MAC (both version 8 and version 10) do not deliver the proper keyboard code to XRDP. When looking to "/var/log/xrdp.log" I can see:

    RD version 8:
    [20190311-13:48:34] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
    [20190311-13:48:34] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file

    RD version 10:
    [20190311-13:56:24] [INFO ] Cannot find keymap file /etc/xrdp/km-00000000.ini
    [20190311-13:56:24] [INFO ] Cannot find keymap file /etc/xrdp/km-00000000.ini
    [20190311-13:56:24] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
    [20190311-13:56:24] [WARN ] local keymap file for 0x00000000 found and doesn't match built in keymap, using local keymap file

    After remote login the command “setxkbmap -query” delivers:
    rules: base
    model: pc104
    layout: us

    When changing the keyboard manually: “setxkbmap -model pc104 -layout de” the keyboard changes and setxkbmap -query delivers:
    rules: base
    model: pc104
    layout: de

    Also creating a new xrdp keyboard-ini file (in console mode):
    setxkbmap -model pc104 -layout de
    xrdp-genkeymap km-00000409.ini
    sudo mv km-00000409.ini /etc/xrdp
    sudo chown root:root /etc/xrdp/km-00000409.ini
    does not make any difference. Every fresh login starts with “layout us”.

    My question to the experts: Is there a way to advise xrdp (e.g. changing the /etc/xrdp/xrdp_keyboard.ini file) to use by default a specific keyboard (like the one I’m defining by using the “setxkbmap -model apple_laptop -layout de” command)?

    My final observation based on the log file is that XRDP might even switch to my modified km-00000409.ini file, however, the call “exec /bin/sh /etc/X11/Xsession” in /etc/xrdp/startwm.sh might revert that change. Unfortunately to place “setxkbmap -model pc104 -layout de” at the bottom of “etc/xrdp/startwm.sh” does not help either.

    Thanks for your help!
    Wilfried

     
  • 邵振华

    邵振华 - 2022-12-11

    没有评论

     

Log in to post a comment.