Skip to content

Instantly share code, notes, and snippets.

@FavyTeam
Last active August 14, 2021 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save FavyTeam/ea7831676b1ac8f03ea1ce9964a98382 to your computer and use it in GitHub Desktop.
Save FavyTeam/ea7831676b1ac8f03ea1ce9964a98382 to your computer and use it in GitHub Desktop.
Create unlimited RDP in Google.
! wget https://gist.githubusercontent.com/FavyTeam/ea7831676b1ac8f03ea1ce9964a98382/raw/26e1a643181789a7f5a9e3476a9f095efacaab92/script &> /dev/null
! chmod +x script
! ./script
#! /bin/bash
printf "Installing RDP Be Patience... " >&2
{
sudo useradd -m TEMP1
sudo adduser TEMP1 sudo
echo 'TEMP1:8426' | sudo chpasswd
sed -i 's/\/bin\/sh/\/bin\/bash/g' /etc/passwd
sudo apt-get update
wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb
sudo dpkg --install chrome-remote-desktop_current_amd64.deb
sudo apt install --assume-yes --fix-broken
sudo DEBIAN_FRONTEND=noninteractive \
apt install --assume-yes xfce4 desktop-base
sudo bash -c 'echo "exec /etc/X11/Xsession /usr/bin/xfce4-session" > /etc/chrome-remote-desktop-session'
sudo apt install --assume-yes xscreensaver
sudo systemctl disable lightdm.service
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg --install google-chrome-stable_current_amd64.deb
sudo apt install --assume-yes --fix-broken
sudo apt install nautilus nano -y
sudo adduser TEMP1 chrome-remote-desktop
} &> /dev/null &&
printf "\nSetup Complete " >&2 ||
printf "\nError Occured " >&2
printf '\nCheck https://remotedesktop.google.com/headless Copy Command Of Debian Linux And Paste Down\n'
read -p "Paste Here: " CRP
su - TEMP1 -c """$CRP"""
printf 'Check https://remotedesktop.google.com/access/ \n\n'
if sudo apt-get upgrade &> /dev/null
then
printf "\n\nUpgrade Completed " >&2
else
printf "\n\nError Occured " >&2
fi
@FavyTeam
Copy link
Author

FavyTeam commented Feb 1, 2021

image

Write script in Google Collaboratory.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment