Is ist possible to install Atom on a Raspberry Pi 2 running Ubuntu?
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 Raspbian).
You got to install some dependencies with the terminal emulator. Install all the dependencies:
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 nodejsSet the python path:
npm config set python /usr/bin/python2 -gInstall node-gyp:
npm install -g node-gypNote that node-gyp made an issue here, you need to install it also in the project folder, otherwise you will have build errors.
Download the source:
git clone https://github.com/atom/atom.git
- Navigate into the source folder:
- Install node-gyp locally:
npm install node-gyp
- Build the source:
./script/buildIf this gives you issues try with sudo:
- If everything builds correctly you will get a folder named "out".
Now run the install script:
sudo script/grunt installThis installs atom into the folder "/usr/local/bin"
- 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.
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.
If you cannot install nodejs use nodejs-legacy instead.
If the build cannot find node-gyp install it 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/