Skip to content

Instantly share code, notes, and snippets.

@mamemomonga
Created December 8, 2019 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mamemomonga/cfa1636a6cf41b264ad8503b64e799d4 to your computer and use it in GitHub Desktop.
Save mamemomonga/cfa1636a6cf41b264ad8503b64e799d4 to your computer and use it in GitHub Desktop.
Ubuntu 18.04へのxrdpの導入と面倒なダイアログ削除

Ubuntu 18.04へのxrdpの導入と面倒なダイアログ削除

$ sudo apt install xrdp
$ sudo sh -c 'cat > /etc/polkit-1/localauthority.conf.d/02-allow-colord.conf' << 'EOS'
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("video")) {
      return polkit.Result.YES;
   }
});
EOS
$ sudo sh -c 'gpasswd -a $SUDO_USER video'
$ sudo reboot

参考文献

xRDP からログインした時の「カラープロファイルを作成するには認証が必要です」ダイアログを消す

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment