Advertisement
nuggt69

Untitled

Jan 12th, 2021
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. #!/bin/sh
  2. apt -y install xrdp
  3. sed -i 's/crypt_level=high/crypt_level=none/g' /etc/xrdp/xrdp.ini
  4. ufw allow 3389/tcp
  5. echo "polkit.addRule(function(action, subject) {" > /etc/polkit-1/localauthority.conf.d/02-allow-colord.conf
  6. echo "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(\"{group}\"))" >> /etc/polkit-1/localauthority.conf.d/02-allow-colord.conf
  7. echo "{return polkit.Result.YES;}});" >> /etc/polkit-1/localauthority.conf.d/02-allow-colord.conf
  8. /etc/init.d/xrdp restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement