Install github atom text editor on Ubuntu 14.04 x64

Official guide:

https://github.com/atom/atom/blob/master/docs/build-instructions/linux.md

Quote here:

  git clone https://github.com/atom/atom
  cd atom
  script/build # Creates application at /tmp/atom-build/Atom
  sudo script/grunt install # Installs command to /usr/local/bin/atom
  script/grunt mkdeb # Generates a .deb package at /tmp/atom-build

My log (for future re-installation): current version 0.95-f86280a

#**********************
#go to http://nodejs.org/download/
#download node.js source code
cd ~/tmp/nodejs
wget  http://nodejs.org/dist/v0.10.28/node-v0.10.28.tar.gz
tar xzvf node-v0.10.28.tar.gz
cd node-v0.10.28
./configure
./make test
#if failure occures at any stage, fix those. In my case, I failed at 'curl'.
sudo apt-get install curl
./make
sudo make install
#***********************
sudo apt-get install npm
sudo apt-get install libgnome-keyring-dev
sudo npm config set python /usr/bin/python2 -g
#*************************
cd ~/tmp/atom
git clone https://github.com/atom/atom
cd atom/script
sudo ./build
#err occurs at build: node-gyp, my solution:
sudo apt-get remove gyp
#This works
sudo ./build  #this will create app at /tmp/atom-build/Atom
#**************************
cd ~/atom/atom
sudo npm install -g grunt-cli
#don't know if above command is necessary or not
npm install
cd build
sudo grunt install #this will install atom to /usr/local/bin/atom
sudo grunt mkdeb #this will make .deb package at /tmp/atom-build
#****************************
#Finished!
#To run
sudo atom
#package management
apm

 

Advertisements

2 thoughts on “Install github atom text editor on Ubuntu 14.04 x64”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s