Skip to content

Instantly share code, notes, and snippets.

@gbraad
Last active February 16, 2018 10:21
Show Gist options
  • Select an option

  • Save gbraad/74cf1e795763dc33997a to your computer and use it in GitHub Desktop.

Select an option

Save gbraad/74cf1e795763dc33997a to your computer and use it in GitHub Desktop.
Install C9 on CentOS

Install C9 on CentOS as SSH remote workspace

To setup a SSH remote workspace for C9 on CentOS do the following on the host:

yum install git
git clone https://github.com/c9/core.git /opt/c9sdk
yum groupinstall "Development Tools"
yum install glibc-static
yum install tmux # or let it build a version
cd /opt/c9sdk/scripts
./install-sdk.sh

Go to http://c9.io/new and select SSH workspace. Add the key to ~/.ssh/authorized_keys for the user you allow access. As node executable refer to ~/.c9/node/bin/node

Note: I previously used the RPM packaged versions of node and npm, but it was not always succeeding. This might have been related to the network connection. This following these instructions the environment is immediately usable without having to do the install from the C9 workspace.

@gbraad
Copy link
Author

gbraad commented Feb 26, 2016

You can also use the installation at /opt/c9sdk/ for a local version of cloud9, such as over a ssh -L forward.

It is also possible to tgz the .c9 directory in your home to allow easy deployment on another host (without the need for the /opt/c9sdk folder) if you only use the ssh remote workspace.

@gbraad
Copy link
Author

gbraad commented Mar 23, 2016

@gbraad
Copy link
Author

gbraad commented May 5, 2016

Added an ansible playbook

https://github.com/gbraad/ansible-playbooks/blob/master/playbooks/install-c9sdk.yml

$ curl -sSL https://github.com/gbraad/ansible-playbooks/raw/master/playbooks/install-c9sdk.yml
$ ansible-playbook install-c9sdk.yml

@gbraad
Copy link
Author

gbraad commented May 8, 2016

Basic Ansible role exists at: https://galaxy.ansible.com/gbraad/c9sdk/

$ ansible-galaxy install gbraad.c9sdk
$ vi install-c9sdk.yml
- name: Install C9 SDK
  hosts: localhost
  roles:
    - gbraad c9sdk
$ ansible-playbook install-c9sdk.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment