Ubuntu 20.04 LTS + xrdp 0.9.12
Windows 10 Pro 20H2 の Hyper-V
Windows 10 Pro 20H2 の vmconnect で拡張接続
$ setxkbmap -query
rules: base
model: pc104
layout: jp
/etc/xrdp/reconnectwm.sh
の設定に次を追記する。
sleep 2s
setxkbmap -layout "us,us"
次の内容を参考にした.
keyboard layout - Run a command at the start of XRDP session - Ask Ubuntu
https://askubuntu.com/questions/985206/run-a-command-at-the-start-of-xrdp-session