24
28

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Last updated at Posted at 2019-11-06

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

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

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

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

検証環境

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

24
28
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
24
28

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?