Last active
January 1, 2021 03:27
-
-
Save vhchung/b413fccc3d4f3779d5574a75c6c2c4c7 to your computer and use it in GitHub Desktop.
Clone from this tutorial: https://anonyviet.com/huong-dan-tao-vps-bang-google-colab/?fbclid=IwAR3F9u4KjRbjYno8FjjLfmkkBFNFiHk7QrxQSeh1UPvWp8G5Ox2TH5BBvE8
This file contains hidden or 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
#! /bin/bash | |
printf "Installing RDP Be Patience... " >&2 | |
{ | |
sudo useradd -m chungvh | |
sudo adduser chungvh sudo | |
echo 'chungvh:your_passwd' | 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 chungvh 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 - chungvh -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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment