LoginSignup
2
2

More than 5 years have passed since last update.

XRDP を ubuntu17.04に aptで インストールして使う gnome版

Last updated at Posted at 2017-08-02

ubuntu 16.10 から xrdp が apt で 0.9系が 入るようになった。
なので vmに xrdp をいれて リモートデスクトップ接続するのが 簡単になってうれしい。

sudo apt install ubuntu-gnome-desktop xrdp
sudo vi /etc/xrdp/startwm.sh

最後の 2行を コメントアウトして gnome-session を 最後に書く

sudo systemctl enable xrdp
sudo systemctl start xrdp

これで いけそう。
いまから 試す。
xrdp に ログインできたけど gnomeが 起動しないようです。

んー だめ。 記事が おおい mate に 切換えです。

もういっかい OSインストールから やり直して
sudo apt install ubuntu-mate-desktop xrdp
echo mate-session >~/.xsession
reboot して つないだら mate の画面が 出てきた。

コンソールの GUI ログインは じゃまなので
systemctl disable lightdm.service
で 停止した。

gnomeで うごかすのは またやってみるよ。
/etc/X11/Xwrapper.config の内容を
allowed_users = anybody
に 修正する と gnome でも うまくいきました。

カラーマネージデバイスが どーのこうの といわれたので
"Authentication is required to create a color managed device" で 検索した。

File /etc/polkit-1/localauthority/50-local.d/allow-colord.pkla

[Allow colord for all users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile 
ResultAny=yes
ResualtInactive=auth_admin
ResultActive=yes

GNOME問題は この2つかな。
べつの手段も みつけたけど どっちが いいのかな。

# echo "X-GNOME-Autostart-enabled=false" >> /etc/xdg/autostart/gnome-software-service.desktop
# echo "X-GNOME-Autostart-enabled=false" >> /etc/xdg/autostart/gnome-settings-daemon.desktop

日本語入力については 他の記事参照してください。(あとで書きます)

参考: https://weblab360.com/User:xltran/App/xRDP/Installation/CentOS
参考:http://c-nergy.be/blog/?p=10165

2
2
0

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
2
2