Installing hubot as a Campfire Bot on Ubuntu

A couple of friends and I utilize [Campfire](http://campfirenow.com/) as a chat room, yeah I know there are free alternatives, blah blah. This room is essentially a better version of irc for us. Anyway.. there are a ton of tutorials on [how to deploy hubot to heroku](https://github.com/github/hubot/wiki/Deploying-Hubot-onto-Heroku), but not a whole lot on how to deploy hubot on your own servers. Below is what I did to get a bot up and running on my server at my colo. My original post on this can be found here: [installing-hubot-as-a-campfire-bot-on-ubuntu-10-04](http://www.copyandwaste.com/2012/01/06/installing-hubot-as-a-campfire-bot-on-ubuntu-10-04-2/)

akonkol
February 22, 2012
Available via the "My Info" link

The number that is in this pattern /room/<number> in the url

The word before campfirenow.com

The username you create for the bot

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js

sudo apt-get update
sudo apt-get install nodejs nodejs-dev redis-server

--check to see if node installed
node -v

--install npm
curl http://npmjs.org/install.sh | sudo sh

--verify npm install
npm -v

cd /tmp

git clone https://github.com/github/hubot.git
cd hubot
npm install
sudo npm install -g coffee-script
make test

sudo cp -R /tmp/hubot /etc/.

export PATH="/etc/hubot/bin:$PATH"
export HUBOT_CAMPFIRE_TOKEN="%{YOUR_BOTS_CAMPFIRE_API_TOKEN}%"
export HUBOT_CAMPFIRE_ROOMS="%{YOUR_CAMPFIRE_ROOM_NUMBER}%"
export HUBOT_CAMPFIRE_ACCOUNT="%{YOUR_CAMPFIRE_SUBDOMAIN}%"

hubot -a campfire -n %{YOUR_BOTS_CAMPFIRE_ACCOUNT_NAME}% &