Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

How to Install c9 SSH on Google Cloud

MattMcFarland edited this page Nov 7, 2014 · 13 revisions

Getting Started:

To start with google cloud, you'll need:

  • A google account,
  • A google developers account.

Create a Project

First you create a Project: Once you click on Create Project, you'll be prompted to give it a name and ID. By default you should see "My Project" and a randomly created ID....

Change it to whatever you wish, this right here isn't that important.

Now you should see a notification showing you that your project is being created, it'll let you know when it is finished.

Create your Virtual Machine

Now we need to create a virtual machine for c9 SSH. So click on Create Instance right underneath "Spin up a Compute Engine VM"

Now we wait until the creation process has finished. Once that is ready, click on "Create Instance" as soon as it is visible.

You should see a form with quite a few options, but for this tutorial let's just change a couple items:

Now it's another waiting game, so give this process a few minutes to provision and boot up your new virtual machine.

SSH Login into your machine

Once your machine is ready, you should see a screen that looks like this:

Go ahead and click on the SSH button. Do note, sometimes it'll stall or error, this is only going to happen after you first create a VM. Sometimes the VM indicates as ready but it is still booting up! So if you run into an error, just wait a couple minutes then try again.

Once you login you should see a new browser window that works just like a shell terminal:

It's important to note that these machines you get from Google don't come with everything that c9 depends on. So let's first install the dependencies:

Install dependencies

sudo yum update && sudo yum install libevent-devel ncurses-devel glibc-static gcc python gcc-c++ -y

This process will take quite some time, so feel free to take a few minute break or watch all the files download/install on your system.

Install c9 ssh

Once the install is finished, type in the following command:

curl -L https://raw.githubusercontent.com/c9/install/master/install.sh | bash

You are now all set!