News for hackers. Stuff that matters.
Re:Free Linux cloud shell for Gmail users by thesandlord on Saturday January 27, 2018 @04:30PM (#16248175)
(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 free!

This link will directly open the shell in a full page, and I'm not sure it will work unless you have set up your GCP account before. It's really not designed to be opened this way, I recommend opening it from the GCP console and then making it full screen if your want.

Also note: Cloud Shell gives you a persistent 5GB /home Directory, but every other folder is reset after a while. If you want to add your own binaries, I'd recommend adding home to your path and installing them there.

Re:Free Linux cloud shell for Gmail users by toyg on Saturday January 27, 2018 @08:12PM (#16249101)
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 by traverseda on Saturday January 27, 2018 @08:53PM (#16249271)
You can tell virtualenv to use an arbitrary python interpreter, even pypy, using `--python=/path/to/python/interpreter`.
Re:Free Linux cloud shell for Gmail users by toyg on Saturday January 27, 2018 @08:58PM (#16249288)
But then I have to install the virtualenv script in every dev environment, when really the stdlib version is perfectly fine and requires no extra hacks.

It's an annoyance specific to Debian and to this day I'm not sure I understand the rationale for splitting it out of the main python3 package.

Re:Free Linux cloud shell for Gmail users by dundercoder on Sunday January 28, 2018 @02:21AM (#16250254)
I'm building python 3.6.4 from source and stashing it in $HOME. No errors so far.

EDIT: Worked great!

    @cloudshell:~/python3/bin$ ./ipython3
    Python 3.6.4 (default, Jan 28 2018, 00:39:17)
    Type 'copyright', 'credits' or 'license' for more information
    IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.
    In [1]: from __future__ import braces
      File "<ipython-input-1-6d5c5b2f0daf>", line 1
        from __future__ import braces
                                     ^
    SyntaxError: not a chance
Re:Free Linux cloud shell for Gmail users by madez on Saturday January 27, 2018 @04:58PM (#16248319)
Will Google record the input from the users and/or analyze it?
Re:Free Linux cloud shell for Gmail users by YuriGrinshteyn on Saturday January 27, 2018 @05:29PM (#16248465)
Re:Free Linux cloud shell for Gmail users by madez on Sunday January 28, 2018 @06:16AM (#16250819)
I cannot confirm your answer.

In "6. Data Deletion" Google assures that data will be delete in a reasonable fashion upon request or on expiry of the term. Google reserves the right to share the data with other entities in "11.2 Information about Subprocessors" which are listed in [0]. I assume that the data will also be deleted from the subprocessors. It is also stated that the function is explained, yet an exhaustive explanation is missing. The most informative I can find is that they "provide customer and technical support" besides some non-exclusive examples of activities.

Also, I see no part that ensures Google won't analyze the data, like for example to train neural networks. Could you point me to it?

[0] https://cloud.google.com/terms/subprocessors

Re:Free Linux cloud shell for Gmail users by tyingq on Saturday January 27, 2018 @08:43PM (#16249229)
It is one of a few tunnels that things like Websense can't recognize. Well known to consultants stranded on networks heavily controlled by their F500 clients.
Re:Free Linux cloud shell for Gmail users by jnbiche on Saturday January 27, 2018 @07:00PM (#16248836)
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.

Re:Free Linux cloud shell for Gmail users by jarvelov on Saturday January 27, 2018 @08:29PM (#16249167)
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...

Re:Free Linux cloud shell for Gmail users by jnbiche on Sunday January 28, 2018 @02:59PM (#16253120)
Well, that applies to the user, not to whoever spun the distro to begin with. Google could have put them wherever they wanted.

Anyway, not a huge deal, just a bit odd. And evoking my OCD: ...must...keep...clean...root.

Re:Free Linux cloud shell for Gmail users by kxra on Monday January 29, 2018 @02:19PM (#16259922)
Any chance of getting Haskell on there?
Re:Free Linux cloud shell for Gmail users by audscias on Monday January 29, 2018 @05:38PM (#16261269)
I install the GHC everytime I want to use haskell on the Cloud Shell. It takes literaly like 30 seconds.

The Cloud Shell is a Debian Stretch container, so it's easy to install packages as you will. If you want them to be persistent install them on your home folder and add the route to your env vars.