Install Atom Editor in openSUSE

You’re better served if you read the official documentation: Linux build instructions. Then you should proceed with this post to get an idea of my experience installing Atom in openSUSE 13.1.

Install Prerequisites

Build stuff: sudo zypper install make gcc gcc-c++ glibc-devel libgnome-keyring-devel

node.js from Tumbleweed (to keep up with updates):

sudo zypper addrepo http://download.opensuse.org/repositories/devel:languages:nodejs/openSUSE_Tumbleweed/devel:languages:nodejs.repo

sudo zypper refresh

sudo zypper install nodejs

Configure npm to use Python 2: sudo npm config set python /usr/bin/python2 -g

Install git: sudo zypper install git

Get Source, Build, Install

mkdir ~/src && cd ~/src

Get the source: git clone https://github.com/atom/atom

cd ~/src/atom

For some reason you need to re-configure npm to use Python 2. Don’t ask why; it just worked for me and failed if I didn’t: sudo npm config set python /usr/bin/python2 -g

Build: script/build

Install: sudo script/grunt install

Create an atom.desktop file with the following contents: vim ~/.local/share/applications/atom.desktop

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Atom
Comment=Atom editor by GitHub
Exec=/usr/local/bin/atom
Icon=/home/cg/.atom/atom.png
Terminal=false

Copy the icon image file to be used in the atom.desktop file: cp ~/src/atom/resources/atom.png ~/.atom

Now you are ready to start using Atom.

4 Responses to Install Atom Editor in openSUSE

  1. Heart1010 says:

    Thanks!

  2. Heart1010 says:

    update: On my openSUSE 13.1 pc I also have install node-gyp in order to be able to do the build script.

    # sudo npm -g install node-gyp

    …otherwise I got the errors
    $ script/build
    Node: v0.10.29
    npm: v1.4.14
    Installing build modules…
    gyp: /usr/share/node/common.gypi not found (cwd: /home/heart/src/atom/build/node_modules/runas) while reading includes of binding.gyp while trying to load binding.gyp
    gyp ERR! configure error
    gyp ERR! stack Error: `gyp` failed with exit code:
    ….and so on….

  3. Wylie Coyote says:

    What Heart1010 said, above.

    Also, upgrading node wiped out my npm, so …
    zypper install npm

    Then, a bug in npm required this:
    npm config set unsafe-perm true

    Then, why the script needs this, I dunno:
    zypper install gnome-keyring-devel

    Then, when the script crashes during your various attempts and googles, and finding the names of the ubuntu packages the ubuntu folks found you needed for atom, which just can’t have the same names in our OS, you will find the build process was corrupted …. so:
    script/clean

    Then:
    script/build
    … again. Rinse-repeat.

    Thanks Very Much for this guide, or there would be almost no hope of getting there!!
    But Why Oh WHY Can’t There Be A Binary For Crying Out Loud ?!?!?

  4. Omar says:

    install the “ATOM” editor in opensuse (either in the last 42.1 Leap or any other) is simple.
    you just have to download it from the page https://atom.io/ the .rpm format.
    Then you head to the folder where the file was downloaded, for example /home/name_user/download/atom.x86_64.rpm from that direction and just type in the console
    sudo zypper install atom.x86_64.rpm
    you must be patient while looking console units and everything else after a while you wonder if you want to download the files to which you answer “yes”.
    and that’s all ready, you will install on the menu development.
    I hope this info will be helpful. God bless you greatly.