Atom on the Raspberry Pi


#1

It is possible to install Atom on the Raspberry Pi.
I did it on Ubuntu Mate (but I guess it works the same way with Raspian).

Instructions

  1. Install all the dependencies.
    You got to install some dependencies with the terminal emulator.
    sudo apt-get install build-essential git libgnome-keyring-dev fakeroot gconf2 gconf-service libgtk2.0-0 libudev1 libgcrypt20 python rpm npm npm-cli apm nodejs
    Set the python path:
    npm config set python /usr/bin/python2 -g
    Install node-gyp:
    npm -g node-gyp
    Note that node-gyp made an issue here, you need to install it also in the project folder, otherwise you will have build errors.

  2. Download the source.
    git clone https://github.com/atom/atom.git

  3. Navigate into the source folder.
    cd atom

  4. Install node-gyp locally.
    npm install node-gyp

  5. Build the source.
    ./script/build
    If this gives you issues try with sudo.
    sudo ./script/build

  6. Install Atom.
    If everything builds correctly you will get a folder named “out”.
    Now run the install script.
    sudo script/grunt install
    This installs atom into the folder “usr/local/bin”

  7. Add the Icon Menu.
    According to your window manager this is different.
    I used mate to add my icon.
    You may check if the system finds the program and the icon automatically, then you don’t need to add the item in the menu.
    Otherwise right-click into the main menu.
    Click edit menu.
    Select the category where you want to place atom. Maybe use “development”.
    Click add item.
    Now select the icon. The atom icons are in the folder called “atom/out/icons”.
    Name it “atom”.
    Command:usr/local/share/atom/atom %F.
    Command: “Atom editor” or whatever you like.

That’s it!
Now start atom an see if it is working.
If you run into problems, see the issues below. Otherwise write a comment.

Issues

  • If you cannot install nodejs use nodejs-legacy instead.

  • If the build cannot find node-gyp install ist locally (see above).

  • If you run into errors starting atom give write acces to the atom folder.
    sudo chmod 777 -R /usr/local/share/atom/
    sudo chmod 777 -R .atom/


#2

Using pi3 B v1.2 with raspberrian, I get:
E: Unable to locate package npm-cli
E: Unable to locate package apm

And therefore unable to proceed due to:
bash: npm: command not found


#3

You need to install the package with npm install cli. I think apm comes with Atom.


#4

This is what I get when I try to build

pi@raspberrypi:~/atom $ ./script/build

/home/pi/atom/script/build:13
const yargs = require(‘yargs’)
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3


#5

on the current version/src it needs libsecret dev files and libxkbfile, but I’m currently running into an error I have yet to overcome with the electron-packager not working on armv7l


#6

Can/will the atom team PLEASE PLEASE release an official raspberry pi version?
Atom is a developers dream and it’s almost cruel that we cannot get it working on Raspi3

I tried for about 4 hours last night and ended up with a white developer screen and less hair

Is there an official statement like “No Never” or is it possible? I would think those with the chops could make a .deb or something and end the trauma :slight_smile:

I love Atom, use it everyday and i miss it on Raspberry