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