This is an RDP Server to connect to the Google Colaboratory machine(?) via RDP to make it easier to use. You can use it anytime as long as it isn't deprecated yet because of google itself. Thanks to alok676875 for the original code, and mzrtamp for helping me.
- Log in to your google account (if you aren't yet).
- Go to https://colab.research.google.com
- Click File > new Notebook.
- Copy this script in the terminal(?).
! wget https://raw.githubusercontent.com/Tiramitzu/RDP/main/RDP.sh &> /dev/null
! chmod +x RDP.sh
! ./RDP.sh
- Click the Run cell button (Play emoji like thingy).
- Input your username and password there
5.1. Wait for the RDP Server installing. - Just follow the rest of it okay.
- Go to https://remotedesktop.google.com/headless,
7.1. Click Begin > Next > Authorize > Select your google account > Copy Debian Linux > Start Over, then close the tab,
7.2. Paste the command that you've copied in the terminal(?) then press enter,
7.3. Enter a PIN at least six digits and then enter the same PIN again. - Wait for
Package upgrade has completed
show up. - Go to https://remotedesktop.google.com/access,
9.1. Select your remote device(s). - AND BOOM YOU'RE CONNECTED
- You need to repeat those step if the machine disconnected.
function ConnectButton(){
console.log("Connect pushed");
document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click()
}
setInterval(ConnectButton,60000);
To use it just open the developer tools by press F12
or `Ctrl + Alt + I on your Keyboard and open the console, copy the script and paste it there then press enter.