git clone https://github.com/ajaxorg/cloud9.git
git submodule update --init --recursive
git apply cloud9.patch
git clone git://github.com/semu/connect-basic-auth.git support/connect-basic-auth
node bin/cloud9.js -c config.js
Open the url http://127.0.0.1:3000/ when prompt the authorization,username is "username" and password is "password". Modify secure.user and secure.password in config.js to your own authorization.
Enjoy it.
If applying this to the version of cloud9 installed via npm, you'll need to add
require.paths.unshift(__dirname + "/connect-basic-auth/lib");
to ./support/paths.js