Here is an easy guide to get Atom running on Linux. You can find Atom’s GitHub project here. Atom project recommends Ubuntu 12.04 LTS x64, Atom currently supports x64/i386
If you are using Arch Linux you can find it on AUR.
Lets get started!
If you already have the required dependencies on your system skip this step, if you don’t have the dependencies already installed on your system then follow the steps. To install Node.js using PPA on Ubuntu follow this post
Installing dependencies for Debian based Linux distributions.
sudo apt-get install build-essential git nodejs
If you use Fedora or RPM based Linux distribution follow below. If you are using CentOS 6 than you can add EPEL repository. You might need to source compile Node.js on certain Linux distributions if Node.js is not available in the repository, you can get the Node.js source here.
sudo rpm -Uvh epel-release-6-8.noarch.rpm
Installing dependencies for RPM based Linux distribution.
sudo yum install 'Developer Tools' git nodejs npm
Installing dependencies for Gentoo or Gentoo based Linux distributions.
sudo emerge nodejs
Clone Atom’s Git repository.
git clone https://github.com/atom/atom Atom
Get into the directory.
Atom by default requires
<code class="highlighter-rouge">libudev.so.0 to work correctly. If this requirement is not met you would get an error message like the one given below.
/usr/local/share/atom/atom: error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory
To avoid the error above enter the command below.
sudo ln -sf /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0
To build Atom we need to configure NPM to use Python2 to avoid any errors.
sudo npm config set python /usr/bin/python2 -g
We can now start build Atom.
Once the above step is complete, we can install Atom.
sudo script/grunt install
Now we have Atom installed on our system, we can now create a shortcut to the application menu so we can execute Atom from the Application menu or Unity dash.
Create a Atom.desktop file in
sudo nano /usr/share/applications/Atom.desktop
Paste the content below in the Atom.desktop file and then save it.
[Desktop Entry] Name=Atom Comment= Exec=/usr/local/share/atom/atom %U Icon=atom Type=Application StartupNotify=true Category=GNOME;GTK;Utility;TextEditor;
Now you can launch Atom from the terminal by entering ‘Atom’ in the Terminal or visit the Unity dash and launch Atom.
Atom is still under active development and might have bugs, if you find any bugs in Atom report here. If you have problem following the steps above feel free to leave a comment below.