Ubuntu Server のGUIをMacでもWindowsでもリモート操作したい場合にxrdpがわりと便利です。
以下導入手順です。
aptでインストールします
$ sudo apt -y install xrdp
一応これでもリモートログインできるが以下のダイアログが出てきて、ログインの度にキャンセルしないとリモート操作ができず気持ち悪い。2.の手順で解消できます。
どこかで似たような症状が出た人の対応策を丸パクリですが、xrdp-color-manager.pklaファイルにおまじないを記述します
$ sudo tee /etc/polkit-1/localauthority/50-local.d/xrdp-color-manager.pkla <<EOL >/dev/null
[Netowrkmanager]
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=no
ResultInactive=no
ResultActive=yes
EOL
反映のため、polkitを再起動します
$ sudo systemctl restart polkit
以上で完了です。
Crieitは誰でも投稿できるサービスです。 是非記事の投稿をお願いします。どんな軽い内容でも投稿できます。
また、「こんな記事が読みたいけど見つからない!」という方は是非記事投稿リクエストボードへ!
こじんまりと作業ログやメモ、進捗を書き残しておきたい方はボード機能をご利用ください。
ボードとは?
コメント