Last active
October 19, 2016 19:38
-
-
Save jgamblin/6e8454a977364dfa8696b3298db9376e to your computer and use it in GitHub Desktop.
Ubuntu Mate RDP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /bin/bash | |
export DEBIAN_FRONTEND=noninteractive | |
#Upate | |
apt-get update | |
apt-get dist-upgrade | |
#SSH Passwords | |
sed -i 's|[#]*PasswordAuthentication no|PasswordAuthentication yes|g' /etc/ssh/sshd_config | |
sed -i 's|UsePAM no|UsePAM yes|g' /etc/ssh/sshd_config | |
service ssh restart | |
#User Accounts | |
echo "Password2016" |passwd root | |
adduser burp | |
echo "Password2016" |passwd burp | |
usermod -aG admin burp | |
usermod -aG sudo burp | |
su - burp | |
#Mate & RDP | |
apt-get install ubuntu-mate-core ubuntu-mate-desktop mate-core mate-desktop-environment mate-notification-daemon xrdp | |
sed -i 's/port=-1/port=ask-1/g' /etc/xrdp/xrdp.ini | |
service xrdp restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment