forked from akuhnet/w-colab
-
Notifications
You must be signed in to change notification settings - Fork 3
/
cloudshellrdp.sh
35 lines (35 loc) · 1.43 KB
/
cloudshellrdp.sh
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
rm -rf ngrok ngrok-stable-linux-amd64.zip > /dev/null 2>&1
echo "Download ngrok"
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip > /dev/null 2>&1
unzip ngrok-stable-linux-amd64.zip > /dev/null 2>&1
read -p "Ctrl + V Authtoken: " CRP
./ngrok authtoken $CRP
nohup ./ngrok tcp 3389 &>/dev/null &
./ngrok tcp 3389 &>/dev/null &
echo Downloading File From akuh.net
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A6DCF7707EBC211F > /dev/null 2>&1
sudo apt-add-repository "deb http://ppa.launchpad.net/ubuntu-mozilla-security/ppa/ubuntu bionic main" > /dev/null 2>&1
sudo apt update > /dev/null 2>&1
sudo apt-get install firefox -y > /dev/null 2>&1
echo "===================================="
echo "Download RDP"
echo "===================================="
sudo apt install xrdp -y
clear
echo "===================================="
echo "Install RDP"
echo "===================================="
sudo apt install xfce4 -y > /dev/null 2>&1
sudo apt-get install -y xfce4-terminal > /dev/null 2>&1
sudo sed -i.bak '/fi/a xfce4-session \n' /etc/xrdp/startwm.sh
sudo service xrdp start
clear
echo XRDP Address:
curl --silent --show-error http://127.0.0.1:4040/api/tunnels | sed -nE 's/.*public_url":"tcp:..([^"]*).*/\1/p'
echo "===================================="
echo "Username root"
echo "Password you made it"
echo "More Free VPS akuh.net"
echo "Keep support akuh.net thank you"
echo "===================================="
sleep 43200