Comments (29)
Thats so cool! Could we also get persistent sessions? :D
from internet-of-tomohiro.
Thank you!
The virtual machine get assigned to your google colaboratory is reset after 12 hours.
See "How long can notebooks run in Colab?" in https://research.google.com/colaboratory/faq.html
from internet-of-tomohiro.
Hello, should we change the runtime back to factory settings and run the codes all the time? no easy way?
from internet-of-tomohiro.
Hello, we need to run the code all time because the virtual machine provided by google colab is reset after 12 hours.
In google colab pro, it seems the virtual machine can run for 24 hours at maximum.
If you buy google cloud or amazon aws and setup it correctly, you don't need to run the code all the time.
But remocolab is only tested on google colab.
from internet-of-tomohiro.
I wonder if anyone is using this for gaming. That would be interesting.
from internet-of-tomohiro.
I tried this and the i could connect with vnc but after a few minutes it stops and said
ssh: connect to host 0.tcp.au.ngrok.io port 19904: Connection refused
whenever I want to reconnect again.
from internet-of-tomohiro.
Is your google colab instance running when you got that error?
Do you still get that error after factory reset runtime
and rerun remocolab.setupSSHD()
?
In case your colab runtime got timeout, this might fix your problem.
demotomohiro/remocolab#23 (comment)
from internet-of-tomohiro.
Hi, thanks for replying.
I use the vnc viewer for around 15 minutes and then I left the turbovnc window in the background and work on the colab in the browser.
Came back to the turbovnc viewer after around half an hour and the vncviewer is not connected anymore and ssh shows that Connection refused
message.
Could not connect to the ssh or vncviewer again unless I did killall Xvnc
and re-run remocolab to assign new port.
Only after killing Xvnc and using new port I could get the ssh and vncviewer to connect again.
from internet-of-tomohiro.
I ran remocolab.setupVNC
and logined to ssh server and wait for 1 hour with do nothing.
Then I can still login to ssh server without error.
In your case, maybe you got ngrok timeout as your ngrok process didn't get any packets for long time.
Adding -o ServerAliveInterval=60
option when you login to the SSH server might solve your problem.
from internet-of-tomohiro.
Hello, thanks for the program. It runs like a charm. I am wondering once I see the virtual desktop is there any way to change the resolution to 1920x1080?
from internet-of-tomohiro.
Just in case anyone have the same resolution issue as I stated right above. It turns out we can easily configure the resolution beforehand in the TurnVNC program.
from internet-of-tomohiro.
Sorry for the delay, I added how to change remote desktop size to this article.
from internet-of-tomohiro.
from internet-of-tomohiro.
I always end up with the following error. Please help.
OSError Traceback (most recent call last)
in ()
----> 1 remocolab.setupVNC()
4 frames
/usr/lib/python3.6/shutil.py in _unpack_zipfile(filename, extract_dir)
900 # file
901 data = zip.read(info.filename)
--> 902 f = open(target, 'wb')
903 try:
904 f.write(data)
OSError: [Errno 26] Text file busy: '/content/ngrok'
from internet-of-tomohiro.
Download URL for TurboVNC used in remocolab stop working.
I fixed it in demotomohiro/remocolab#57.
Please check this:
https://github.com/demotomohiro/remocolab/wiki/Frequently-Asked-Questions#i-got-error-while-running-remocolabsetupvnc-or-remocolabsetupsshd
from internet-of-tomohiro.
Thank you. this fix works just fine.
from internet-of-tomohiro.
When I paste password for SHS and type enter it says access denied. I used password under 'Colab password'. What went wrong?
from internet-of-tomohiro.
If you run the ssh command displayed after remocolab.setupVNC(), paste the colab password correctly and push enter key, you should be able to login to the ssh server.
If copying colab password doesn't work, you can also login by using public key authentication and you can login without pasting the password.
How to login to a ssh server with public key authentication is explained here:
https://github.com/demotomohiro/remocolab/blob/master/README.md#how-to-use
from internet-of-tomohiro.
Should I paste public key where I would Colab password? My public key looks like this: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5L6l37gu11rYb2YWPeU3MFcZmjfg9xpfvspLTXLM6CFkUihygJw2gW5fctcrhnzxU5rW4QMoZtGBoQ6apmRqokZ8ln2i1vpAEQyy/byRm0tpXU1u2DjXNtKJ3iMQeKmSGBvbvkSlMuuBlHkZ/q1dKME65Gr1uAhjxWZrDzgW1uctFgZRzyi1DKffOR2MyHFJCwXKYpaW3twQLX55+Mr7FUFf1t106kQqHodqkmW0yKjiFelu4+wQNOt2sQkk3sYjqSChwN5YZKB2uyS9gwmH3dpd9bLwFDPqBHKJ/srHGbeUErP36x/roqSiscvRKN+F7SIU/JCOF4Rqn2zHqx1nv dino@DESKTOP-RJDTSEV. I tried pasting it but still it said 'Access denied'.
from internet-of-tomohiro.
You paste your public key to remocolab.setupSSHD(public_key = "your public key here")
.
You don't need to paste your public key when you login to ssh server.
If you set passphrase to your private key, you need to type it when you login to ssh server.
When you run remocolab.setupSSHD()
with public_key, it automatically copy specified public key to /home/colab/.ssh/authorized_keys
This site explains how to use ssh public-key authentication:
https://kb.iu.edu/d/aews
from internet-of-tomohiro.
Is it important if I wrtie it before or after remocolab.setupVNC() ?
from internet-of-tomohiro.
I managed to connect to VNC Viewer but I can't open its browser to download Blender.
from internet-of-tomohiro.
You need to install browser.
Add new code cell on your google colab's notebook and write !apt install firefox
to the cell and run it.
from internet-of-tomohiro.
Could I download over the browser my project file and open it in blender (on VNC)?
from internet-of-tomohiro.
You can upload and download your file to your google colab instance with scp command.
scp -o UserKnownHostsFile=/dev/null -P 12345 myfile.txt [email protected]:.
scp -o UserKnownHostsFile=/dev/null -P 12345 [email protected]:myfile.txt .
('-P' must be capital letter)
First scp command upload myfile.txt on your PC to /home/colab on colab instance and second command download /home/colab/myfile.txt to current working directory on your PC.
Replace the number after -P option to the number after -p option in your ssh command and replace the address after '@' to the address in your ssh command.
from internet-of-tomohiro.
I am amazed by the fact that you managed to start Xorg inside the container with nvidia-OpenGL supported! That is what I was looking for.
お疲れ様!
from internet-of-tomohiro.
Thank you!
from internet-of-tomohiro.
I took advantage of this way of using colab a couple of years ago thanks to your tutorial and your scripts, now I'm back for something specific and I realize that it is no longer possible, do you know of an alternative? Thanks
from internet-of-tomohiro.
Alternatives I know are GPU instances on AWS or GCP.
As far as I know, SSH server is installed and runs in default on linux GPU instance on AWS.
But you would need to setup destktop environment, install driver for GPU and remote desktops yourself.
If you use windows instance on AWS, you can use remote desktop in default but you need to install nvidia driver.
Linux instance is usually cheaper than windows instance on AWS.
from internet-of-tomohiro.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from internet-of-tomohiro.