-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-xrdp-v3.sh
28 lines (27 loc) · 1.06 KB
/
build-xrdp-v3.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
#Script V3
#Auto Create X-RDP On Google Colab
#Chrome Installed
rm -fr google-xrdp-v3.sh
echo "PROGRESS TIME : 5 MINUTES"
echo "andovi"
echo "juventus"
nohup ./ngrok tcp --region ap 3389 &>/dev/null &
echo "-Installing xrdp component"
sudo apt install lxde > /dev/null 2>&1
sudo apt install -y xrdp > /dev/null 2>&1
sudo sed -i.bak '/fi/a lxde-session \n' /etc/xrdp/startwm.sh > /dev/null 2>&1
echo " Done."
echo "-Installing chrome"
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A6DCF7707EBC211F > /dev/null 2>&1
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb > /dev/null 2>&1
sudo dpkg --install google-chrome-stable_current_amd64.deb > /dev/null 2>&1
sudo apt-get install --assume-yes --fix-broken > /dev/null 2>&1
echo " Done."
echo ""
sudo service xrdp start > /dev/null 2>&1
echo "========================"
echo " YOUR X-RDP INFO"
echo "========================"
curl --silent --show-error http://127.0.0.1:4040/api/tunnels | sed -nE 's/.*public_url":"tcp:..([^"]*).*/\1/p'
echo "Username: andovi"
echo "Password: juventus"