Skip to content

Commit

Permalink
Merge branch 'main' of github.com:jzwick-jama/bash-scripts into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jennazwick646 committed Jun 10, 2023
2 parents b9a62e9 + 02e6489 commit 1f3f2cf
Showing 1 changed file with 30 additions and 13 deletions.
43 changes: 30 additions & 13 deletions ubuntu-setup/xrdp-install.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,35 @@
#!/bin/bash

function InstallXRDP() {
echo "Installing xrdp. Press enter to continue."
sudo apt install -y xrdp;
sudo systemctl status xrdp;
sudo adduser xrdp ssl-cert;
sudo systemctl restart xrdp;
echo "installation complete"
echo "Installing xrdp. Press enter to continue."
sudo apt install -y xrdp
echo "Installing xrdp. Press enter to continue."
sudo systemctl status xrdp
read -p "Did xrdp start? (Y/N) " didxrdpstart
case $didxrdpstart in
[Yy])
#action
;;
[Nn])
#second action
;;
Qq])
exit
;;
*)
echo "Invalid selection"
sleep 2
InstallXRDP
;;
esac
echo "Adding user xrdp to ssl-cert group..."
sudo adduser xrdp ssl-cert
echo "Restarting XRDP service..."
sudo systemctl restart xrdp
echo "installation complete"
}

InstallXRDP


function WhileTrue() {
while true; then

}
while true; do
InstallXRDP
exit
done

0 comments on commit 1f3f2cf

Please sign in to comment.