sudo apt-get install python-software-properties
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install libgnome-keyring-dev
npm config set python /usr/bin/python2 -g # ensure that gyp uses Python 2
git clone https://github.com/atom/atom
cd atom
sudo su
script/build # Creates application at /tmp/atom-build/Atom
script/grunt install # Installs command to /usr/local/bin/atom
script/grunt mkdeb # Generates a .deb package at /tmp/atom-build