Live data from Hacker News

Free Linux cloud shell for Gmail users

console.cloud.google.com

41–50 of 90 posts

Re: Free Linux cloud shell for Gmail users

#41

How does this work? Given that its PID1 is not a "real" init process but a bash running the script `/google/scripts/onrun.sh` and its / being type `aufs`, I guess this is a Debian Docker instance?

Yep, /etc/debian_version is 9.3. It has a docker0 network interface (among others)

> It has a docker0 network interface (among others)

That's for the dockerd which is running inside the ... VM?

The interesting thing is that the uptime and dmesg show that this system is not shared on the kernel level - if I were to guess, I'd say that Google allocates a real virtual machine with a tiny OS running Docker, starts the docker container inside this VM and then grants you webshell/ssh access to this Docker container.

But why the Docker setup when the machine is yours anyway?

Re: Free Linux cloud shell for Gmail users

#43
post #6

It's available for to anyone that has a Google account. You don't have to be a "Gmail user".

You do need to register as a business if you are located in EMEA. There is no private/personal option. This is a huge showstopper for me and, in my opinion, anyone who wants to use it for educational purposes.

> You do need to register as a business if you are located in EMEA.

Is that a T&C rule or a technical block? Because I'm in EMEA, not registered as a business, and it opened for me just fine.

Re: Free Linux cloud shell for Gmail users

#46

(I work for Google Cloud) If you want to learn more about Cloud Shell, the marketing page is here: https://cloud.google.com/shell/ Cloud Shell is one of my favorite things about GCP. A lot of dev tools (Docker, Python/Go/Node/Ruby/Java/.Net, etc) are pre-installed, you can test "localhost" servers with the preview feature, there is a built in file editor (based on the open source Orion project), etc. And it's all fre…

Can I give you a tidbit of feedback?

If the instance is ephemeral, I need to manage everything in HOME and that's fine. For Python, that basically means using Virtualenv. That works fine at the moment for python 2.7, but 3.x on Debian requires the package python3-venv, which is not installed by default - and sure enough, it's missing in Cloud Shell.

It's a bit annoying having to apt-get install python3-venv every time. Any chance it could be preinstalled? It's such an essential tool for modern python development...

Re: Free Linux cloud shell for Gmail users

#47

Earlier quoted context omitted.

Yep, /etc/debian_version is 9.3. It has a docker0 network interface (among others)

> It has a docker0 network interface (among others) That's for the dockerd which is running inside the ... VM? The interesting thing is that the uptime and dmesg show that this system is not shared on the kernel level - if I were to guess, I'd say that Google allocates a real virtual machine with a tiny OS running Docker, starts the docker container inside this VM and then grants you webshell/ssh access to this Docke…

You're right... and docker works:

    $ docker pull hello-world
    $ docker run hello-world

    Hello from Docker!
    This message shows that your installation appears to be working correctly. 
    ....
Not surprising since two of the outgoing ports allowed are 2375 and 2376 -- the docker non-ssl and ssl ports.

Re: Free Linux cloud shell for Gmail users

#48

Earlier quoted context omitted.

Yep, /etc/debian_version is 9.3. It has a docker0 network interface (among others)

> It has a docker0 network interface (among others) That's for the dockerd which is running inside the ... VM? The interesting thing is that the uptime and dmesg show that this system is not shared on the kernel level - if I were to guess, I'd say that Google allocates a real virtual machine with a tiny OS running Docker, starts the docker container inside this VM and then grants you webshell/ssh access to this Docke…

Regarding whether it is a container or VM I'd guess the former.

But not Docker. More likely Google's own container tech which I'm pretty sure way predated Docker.

Re: Free Linux cloud shell for Gmail users

#49

Earlier quoted context omitted.

> It has a docker0 network interface (among others) That's for the dockerd which is running inside the ... VM? The interesting thing is that the uptime and dmesg show that this system is not shared on the kernel level - if I were to guess, I'd say that Google allocates a real virtual machine with a tiny OS running Docker, starts the docker container inside this VM and then grants you webshell/ssh access to this Docke…

Regarding whether it is a container or VM I'd guess the former. But not Docker. More likely Google's own container tech which I'm pretty sure way predated Docker.

Correct me if I'm wrong - but no kind of Linux container technology could fake dmesg/uptime. Doesn't this need at least some form of virtualization like Xen, QEMU/KVM or whatever dark magic?

Re: Free Linux cloud shell for Gmail users

#50
post #28

(I work for Google Cloud) If you want to learn more about Cloud Shell, the marketing page is here: https://cloud.google.com/shell/ Cloud Shell is one of my favorite things about GCP. A lot of dev tools (Docker, Python/Go/Node/Ruby/Java/.Net, etc) are pre-installed, you can test "localhost" servers with the preview feature, there is a built in file editor (based on the open source Orion project), etc. And it's all fre…

Thanks for the summary of Cloud Shell, I was not previously aware of it. Any idea why Apache and Gradle are installed in the root directory? Normally, these would be in `opt` or some such.

Most likely because of this [0]

> any modifications that you made to it outside your $HOME are lost.

[0] https://cloud.google.com/shell/docs/limitations#custom_insta...

Post reply on HN