Skip to content

Instantly share code, notes, and snippets.

@jgamblin
Last active October 19, 2016 19:38
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 jgamblin/6e8454a977364dfa8696b3298db9376e to your computer and use it in GitHub Desktop.
Save jgamblin/6e8454a977364dfa8696b3298db9376e to your computer and use it in GitHub Desktop.
Ubuntu Mate RDP
# /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