Install Cloud9 first as [username]
$ su - [username]
$ wget https://github.com/gbraad/ansible-playbooks/raw/master/playbooks/install-c9sdk.yml
$ ansible-playbook install-c9sdk.yml
Create service unit
/etc/systemd/system/c9.service
[Unit]
Description=Cloud9 IDE
Requires=network.target
[Service]
Type=simple
User=[username]
ExecStart=/home/[username]/.local/bin/c9
Restart=on-failure
[Install]
WantedBy=multi-user.target
Create shell script
/home/[username]/.local/bin/c9
#!/bin/sh
USERNAME=""
PASSWORD=""
$HOME/.c9/node/bin/node /opt/c9sdk/server.js \
--listen 0.0.0.0 \
--port 8181 \
-a $USERNAME:$PASSWORD \
-w /workspace
$ sudo -i
$ systemctl daemon-reload
$ systemctl start c9
$ systemctl enable c9
Note: substitute username
You might want to do the following after installation: c9/core#454 which sets the project name/page title to whatever you prefer.