-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:jzwick-jama/bash-scripts into main
- Loading branch information
Showing
1 changed file
with
30 additions
and
13 deletions.
There are no files selected for viewing
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
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 |