1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
| #!/bin/bash
UPDATE_SYSTEM=true
INSTALL_SOFTWARE=true
INSTALL_XFCE=true
INSTALL_XRDP=true
if [ "$UPDATE_SYSTEM" = true ]; then sudo apt update && sudo apt upgrade -y fi
if [ "$INSTALL_SOFTWARE" = true ]; then sudo apt install -y vim build-essential sudo apt install -y git wget neofetch fi
if [ "$INSTALL_XFCE" = true ]; then sudo apt install -y xrdp xfce4 fi
if [ "$INSTALL_XRDP" = true ]; then sudo sed -i 's/^test -x/#test -x/' /etc/xrdp/startwm.sh sudo bash -c 'echo "startxfce4" >> /etc/xrdp/startwm.sh' sudo systemctl restart xrdp sudo systemctl enable xrdp sudo ufw allow 3389/tcp echo "XRDP installation and configuration completed." fi
if [ "$INSTALL_TEXLIVE_FULL" = true ]; then sudo apt install texlive-full fonts-wqy-zenhei fi
|