Help us understand the problem. What is going on with this article?

ubuntu18.04でのxrdpトラブル対応  と リモートデスクトップ設定

More than 1 year has passed since last update.

●ubuntu 18.04でのxrdpトラブル対応

xrdpを設定すると、ローカルPCでマウス・キーボードの入力を受け付けなくなる
(リモート接続時は問題なし)

【解決方法】

sudo apt-get -y install xserver-xorg-input-all 

https://c-nergy.be/blog/?p=13390

●リモートデスクトップ設定手順(履歴)

検証環境

OS: ubuntu 18.04
GPU: GTX1080Ti

1.パッケージのインストール

sudo apt-get -y install xserver-xorg-core xorgxrdp xrdp (xrdpだけではダメ)
sudo apt-get -y install xserver-xorg-input-all (これがマウス・キーボード対策)

2.新カーソルの無効化

sed -e 's/^new_cursors=true/new_cursors=false/g' -i /etc/xrdp/xrdp.ini
sudo systemctl restart xrdp

3.~/.xsessionrcの作成

$ D=/usr/share/ubuntu:/usr/local/share:/usr/share:/var/lib/snapd/desktop
$ cat <<EOF > ~/.xsessionrc
export GNOME_SHELL_SESSION_MODE=ubuntu
export XDG_CURRENT_DESKTOP=ubuntu:GNOME
export XDG_DATA_DIRS=${D}
export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
EOF

4.「カラープロファイルを作成するには認証が必要です」の回避

sudo vim で作成するのが良い

/etc/polkit-1/localauthority.conf.d/02-allow-colord.conf
polkit.addRule(function(action, subject) {
   if ((action.id == "org.freedesktop.color-manager.create-device" ||
        action.id == "org.freedesktop.color-manager.create-profile" ||
        action.id == "org.freedesktop.color-manager.delete-device" ||
        action.id == "org.freedesktop.color-manager.delete-profile" ||
        action.id == "org.freedesktop.color-manager.modify-device" ||
        action.id == "org.freedesktop.color-manager.modify-profile") &&
       subject.isInGroup("**")) {
      return polkit.Result.YES;
   }
});

参考サイト

https://www.hiroom2.com/2018/04/28/ubuntu-1804-xrdp-gnome-ja/
https://note.spage.jp/archives/576
http://aimingoff.way-nifty.com/blog/2017/06/xrdp-4be6.html

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away