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