Code Monkey home page Code Monkey logo

colab-hacks's Introduction

Colab Hacks License: MIT

Simple Hacks for Google Colaboratory to boost your productivity and help you to perform daily tasks.

Colab RDP    Open in Colab RDP Issues

Colab RDP is used to get Remote Connection to Google Colaboratory with graphic user interface. It can be used to boost your productivity and you can perform heavy task without any worries.


Code Server is used to launch VSCode on browser using Agro Tunnel in Google Colaboratory which gives you better coding experience and you can use it for write code.


Torrent Downloader is Colab based Torrent Downloader in which you doesn't need any torrent client only just a google account for downloading and storing downloaded torrents into google drive.


Colab Threatens to Ban, Why?

Recent changes in Colaboratory T&C prohibits the following actions and could result in ban from colab1.

  • file hosting, media serving, or other web service offerings not related to interactive compute with Colab
  • downloading torrents or engaging in peer-to-peer file-sharing
  • using a remote desktop or SSH
  • connecting to remote proxies
  • mining cryptocurrency
  • running denial-of-service attacks
  • password cracking
  • using multiple accounts to work around access or resource usage restrictions

The changes are made because resources in Colab are prioritized for interactive use cases.

This means all the notebooks present in this repository are prohibited and use with your own risk. To discuss, follow up on issue #91.

Support

  1. Star this repository
  2. Promote this repository
  3. Contribute to this repository

Footnotes

  1. https://research.google.com/colaboratory/faq.html#limitations-and-restrictions

colab-hacks's People

Contributors

chetan-goyal avatar pradyumnakrishna avatar reoccurcat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

colab-hacks's Issues

Google Cloud CLI headless new sign-in flow

Any thoughts? How much inconvenience will it bring to the current RDP? Extra steps to setup gCloud CLI for every new RDP instance.

The new authentication flow requires you to update your current flags’ state before March 15, 2022. The old flow will be unavailable after April 26, 2022.

To continue using the Out of band OAuth 2.0 flow, you must install gCloud CLI on the local computer (i.e., the one that has a web browser) to generate the credential token for use on the remote Gcloud machine that has no web browser.

How to proceed at the last step?

Now I am getting the message:
Don't worry, you only have to do this once per client machine.

Download [Cloudflared (Argo Tunnel)](https://developers.cloudflare.com/argo-tunnel/getting-started/installation), then copy the absolute path of the cloudflare binary
Now, you have to append the following to your SSH config file (usually under ~/.ssh/config), and make sure you replace the placeholder with the path you copied in Step 1:
CopyHost *.trycloudflare.com
	HostName %h
	User root
	Port 22
	ProxyCommand <PUT_THE_ABSOLUTE_CLOUDFLARE_PATH_HERE> access ssh --hostname %h```

But I am unable to proceed. I installed Cloudflared but I am unable to get any cloudflare binary, nor SSH config file.
How do I proceed?
Thank you!

RDP is so lag? even though, my internet speed is fine.

I thought you said it boosted productivity? despite the fact that rdp is so lag? like is that even called "productivity" when you need to wait for the cursor to respond when clicking here and there? This is just not so good. I prefer buying shared VPS for 1 USD rather than buying the pro version for 9 USD for this kind of inconvenience.

Any solution here? I don't want to waste my moni by waiting for the subscription to just end with no use.

Internet Speed for Downloading Google Drive: Around 8MB/s, and seeing the speed in traffic monitor when running RDP, the speed is around 50 - 400KB/s incosistenly and sometimes the speed is around 100KB/s and just drop at around 20KB/s. I thought if doing something like this would eats lot of bandwidth like what i used to with shared vps.

chrome remote desktop issues

cant connect to the rdp

Chrome Remote Desktop is starting up on the remote computer. Please try again in a minute.

Invalid Token when Creating RDP

When i copy the linux headless code into the CRP field and ad a 6 numbered pincode i get this error:

File "", line 12
Pin = 090991#@param {type: "integer"}
^
SyntaxError: invalid token

I tried to restart te browser, relogin to google, tried different pin codes and different sized pin codes but the error remains te same. Am i doing something wrong?

thanks

Google Drive Mount Doesn't Work in Remote Desktop

Problem

The drive mount provided in the Colab RDP notebook. It doesn't show or list any file when you open it using file explorer because the group, owner, and read/write permission belongs to the root user.

Tried every possible way to fix it but there is no other option than using sudo mode for opening drive folder.

Temp Fix

That's why we have added Nautilus to be installed in install.sh. Which can be used with sudo to open file explorer in sudo mode.
To use it type

sudo nautilus

If anyone has another fix then please provide it

i have a question

does torrnet download takes gigs from my internet (i have a quota in my wifi)

Run it on Remote Desktop Connection?

Can you make it possible to run it on Remote Desktop Connection Windows? I just can't with this one: remotedesktop.google.com, it's so lag and the delay is just so frustrating. and I tried with Remote Desktop Connection it fixed the issue. it's on w-colab with ngrok and colab-hacks doesn't support to connect through Remote Desktop Connection and maybe with cloudflare agro make it more less delay and more productive. Plus change the default browser to waterfox brave or some lightweight browser please, Thank you! :)

WINDOWS RDP

Yesterday, I was exploring some repositories and found out some users found a way to emulate windows in Colaboratory. It uses Ngrok tunnel and VNC to provide your RDP and QEMU for the emulation. Some users always ask for windows RDP thats why I am providing it here.
If anyone wants to use it then you can watch this video https://www.youtube.com/watch?v=4OwlzrCKkAg by NT. Hải.

There are two problems that might be the cause of slow windows RDP,

  1. Colab doesn't support native virtualisation and
  2. Ngrok tunnel is very slow

Thanks for your support

Update Ubuntu

Update Ubuntu version to latest rather than stucking on old one

Google Drive Mount error

Google Drive Mount error https://colab.research.google.com/drive/1OeRcZ0pmvTDMR_xW4JTakVIpUyK8fpfx#scrollTo=vk2qtOTGIFsQ
{Traceback (most recent call last):
File "/content/mount.py", line 5, in
drive.mount('/home/user2021/drive')
File "/usr/local/lib/python3.7/dist-packages/google/colab/drive.py", line 108, in mount
use_metadata_server=use_metadata_server)
File "/usr/local/lib/python3.7/dist-packages/google/colab/drive.py", line 128, in _mount
'TBE_EPHEM_CREDS_ADDR'] if ephemeral else _os.environ['TBE_CREDS_ADDR']
File "/usr/lib/python3.7/os.py", line 681, in getitem
raise KeyError(key) from None
KeyError: 'TBE_CREDS_ADDR}

Cant paste the google auth code

Device Name

Samsung Galaxy m12

Issue

On mobile device there is no way to click on the text and paste the code

how to re create this issue?

Just use a mobile and try your google mount, it won't let you paste it or even type anything in it

End

I know this doesn't look very important but it's very important to Us mobile users, we want to experience rdps too, please show some love to mobile users too 🙏

Google Account disabled

After 24 hours of using Colab RDP, Google disabled my Account permanently (account from 2013).
Please take care. I lost all my files

Chrome Remote Desktop isn't starting

Lately, you might have seeing the message when you successfully runs the Colab RDP notebook
Screen Shot 2021-04-30 at 9 36 53 PM

I really don't know what's the cause of this problem, I will try my best to fix this issue.
If anyone of you find a solution, then please contribute. I really like your contribution, This will help a lot of people.

Google Drive Not Mounting

Traceback (most recent call last):
File "/content/mount.py", line 5, in
drive.mount('/home/alex/drive')
File "/usr/local/lib/python3.7/dist-packages/google/colab/drive.py", line 108, in mount
use_metadata_server=use_metadata_server)
File "/usr/local/lib/python3.7/dist-packages/google/colab/drive.py", line 128, in _mount
'TBE_EPHEM_CREDS_ADDR'] if ephemeral else _os.environ['TBE_CREDS_ADDR']
File "/usr/lib/python3.7/os.py", line 681, in getitem
raise KeyError(key) from None
KeyError: 'TBE_CREDS_ADDR'

Google Drive Mount Issue

Traceback (most recent call last):
File "/content/mount.py", line 7, in
drive.mount('/home/user/drive')
File "/usr/local/lib/python3.7/dist-packages/google/colab/drive.py", line 113, in mount
ephemeral=ephemeral)
File "/usr/local/lib/python3.7/dist-packages/google/colab/drive.py", line 296, in _mount
raise ValueError('mount failed: invalid oauth code')
ValueError: mount failed: invalid oauth code

Can't run Windows like the Debian Linux !!

I am unable to run windows 10 on the rdp like the linux one. The debian linux works like a charm, but in case of windows it does not to work. I follow the same steps of installing linux but it seems that it does not work...
I am not expert in these, so maybe I am missing a few more steps that needs to be followed to run windows like linux...
So, anyone pls help me ASAP !!

colab threatens to ban me

colab RDP

You may be executing code that is disallowed, and this may restrict your ability to use Colab in the future. Please note the prohibited actions specified in our faq

Not loading up rdp

it gives me this error: Unable to reach the remote computer. This is probably due to the configuration of the network you are using.

Ngrok ssh not working

I m having issues to connect to ssh via ngrok
ssh_exchange_identification: Connection closed by remote host

Does it still work?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.