/RDP

Primary LanguageShell


Table of Contents

Info
How To Use
Optional


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.

  1. Log in to your google account (if you aren't yet).
  2. Go to https://colab.research.google.com
  3. Click File > new Notebook.
  4. Copy this script in the terminal(?).
! wget https://raw.githubusercontent.com/Tiramitzu/RDP/main/RDP.sh &> /dev/null
! chmod +x RDP.sh
! ./RDP.sh
  1. Click the Run cell button (Play emoji like thingy).
  2. Input your username and password there
    5.1. Wait for the RDP Server installing.
  3. Just follow the rest of it okay.
  4. 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.
  5. Wait for Package upgrade has completed show up.
  6. Go to https://remotedesktop.google.com/access,
    9.1. Select your remote device(s).
  7. AND BOOM YOU'RE CONNECTED
  8. 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.