{"id":12492,"date":"2019-03-27T03:37:45","date_gmt":"2019-03-27T03:37:45","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=12492"},"modified":"2019-03-27T03:37:45","modified_gmt":"2019-03-27T03:37:45","slug":"atom-a-hackable-text-and-source-code-editor-for-linux","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/27\/atom-a-hackable-text-and-source-code-editor-for-linux\/","title":{"rendered":"Atom \u2013 A Hackable Text and Source Code Editor for Linux"},"content":{"rendered":"<p>These days\u00a0<strong>Atom<\/strong>\u00a0text editor is making a lots of news. Atom is a free and open-source text and source code editor, available for cross platform Operating Systems \u2013 Windows, Linux and Mac OS X. It is released under MIT License, written in C++, HTML, CSS, JavaScript, Node.js and Coffee Script, Atom is based on Chromium.<\/p>\n<div id=\"attachment_14422\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/06\/Atom-Editor.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-14422\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/06\/Atom-Editor-620x297.jpeg\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/06\/Atom-Editor-620x297.jpeg 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/06\/Atom-Editor.jpeg 720w\" alt=\"Atom Editor\" width=\"620\" height=\"297\" aria-describedby=\"caption-attachment-14422\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-14422\" class=\"wp-caption-text\">Atom Editor<\/p>\n<\/div>\n<h4>A Quick Time Travel<\/h4>\n<p><strong>Atom<\/strong>\u00a0project was started by the founder of GitHub, Chris Wanstrath in the mid of year 2008. Nearly 6 years later, the first public beta was released on February 26, 2014. Nearly 15 months later the release of first public beta (and 7 years since the idea was conceived), on June 25, 2015 Atom got a stable release.<\/p>\n<p>Features of Atom text\/source code Editor.<\/p>\n<ol>\n<li>Cross Platform support (Linux\/OS X\/Windows)<\/li>\n<li>Polished edges<\/li>\n<li>Modern and approachable editor that can be customized to core.<\/li>\n<li>Built in Package Manager \u2013 Search and install from within. You may develop your own package.<\/li>\n<li>Smart Approach \u2013 Ensures you write code with speed, flexibility and auto-completion.<\/li>\n<li>Embedded File System Browser \u2013 Browse and open file\/project\/group of projects with ease in one window.<\/li>\n<li>Split Panel \u2013 Multi-panel feature to compare and edit code from single window. No more switching between windows.<\/li>\n<li>Find and replace text in one file or all your projects.<\/li>\n<li>There are some 2,137 Free and open-source Packages, that you can use.<\/li>\n<li>As of Now it supports some 685 themes to pick from.<\/li>\n<li>Plug-ins supported<\/li>\n<li>Can be used as IDE (Integrated Development Environment)<\/li>\n<\/ol>\n<h5>Prerequisite<\/h5>\n<ol>\n<li>C++<\/li>\n<li>Git<\/li>\n<li>node.js version 0.10.x or node.js Version 0.12.x or io.js (1.x) [Any one of three]<\/li>\n<li>npm Version 1.4.x<\/li>\n<li>Gnome Keyring (libgnome-keyring-dev or libgnome-keyring-devel)<\/li>\n<\/ol>\n<h3>How to Install Atom Editor in Linux<\/h3>\n<p>There are binary package available for\u00a0<strong>DEB<\/strong>\u00a0and\u00a0<strong>RPM<\/strong>\u00a0based distributions for 64 bit architecture only, hence no need to compile it from source.<\/p>\n<p>However if you want to compile it from source for any system including DEB and RPM based distribution, follow the below instructions.<\/p>\n<h4>Installing from Binary Packages<\/h4>\n<p>To install\u00a0<strong>Atom<\/strong>\u00a0on Linux, you can download\u00a0<strong>DEB<\/strong>\u00a0or\u00a0<strong>RPM<\/strong>\u00a0binary package for\u00a0<strong>Debian<\/strong>\u00a0and\u00a0<strong>RedHat<\/strong>\u00a0based systems from the main\u00a0<a href=\"https:\/\/atom.io\/\" target=\"_blank\" rel=\"nofollow noopener\">Atom website<\/a>\u00a0or use following wget command to directly download the packages into your terminal.<\/p>\n<pre>$ wget https:\/\/atom.io\/download\/deb\t\t[On Debain based systems]\r\n$ wget https:\/\/atom.io\/download\/rpm\t\t[On RedHat based systems]\r\n<\/pre>\n<p>On\u00a0<strong>Debian<\/strong>\u00a0based systems, use\u00a0<code>dpkg -i<\/code>\u00a0command to install the binary package.<\/p>\n<pre><strong>$ sudo dpkg -i deb<\/strong>\r\n[sudo] password for tecmint: \r\nSelecting previously unselected package atom.\r\n(Reading database ... 204982 files and directories currently installed.)\r\nPreparing to unpack deb ...\r\nUnpacking atom (1.0.0) ...\r\nSetting up atom (1.0.0) ...\r\nProcessing triggers for desktop-file-utils (0.22-1ubuntu1) ...\r\nProcessing triggers for mime-support (3.54ubuntu1) ...\r\n<\/pre>\n<p>On RedHat based systems, use\u00a0<code>rpm -ivh<\/code>\u00a0command to install the binary package.<\/p>\n<pre><strong># rpm -ivh rpm<\/strong>\r\nPreparing...                          ################################# [100%]\r\nUpdating \/ installing...\r\n   1:atom-1.0.0-0.1.fc21              ################################# [100%]\r\n<\/pre>\n<h4>Installing from Source<\/h4>\n<p>If you just want to build Atom from source, you can do by following up-to-date detailed build instructions on Linux systems.<\/p>\n<p>To build Atom from source, you need to have following required packages to be install on the system, before building the Atom from source.<\/p>\n<h5>On Debian \/ Ubuntu<\/h5>\n<pre>$ sudo apt-get install build-essential git libgnome-keyring-dev fakeroot\r\n$ curl --silent --location https:\/\/deb.nodesource.com\/setup_0.12 | sudo bash -\r\n$ sudo apt-get install --yes nodejs\r\n$ sudo apt-get install npm\r\n$ sudo npm config set python \/usr\/bin\/python2 -g\r\n<\/pre>\n<h5>On RHEL, CentOS or Fedora<\/h5>\n<pre># yum --assumeyes install make gcc gcc-c++ glibc-devel git-core libgnome-keyring-devel rpmdevtools\r\n# curl --silent --location https:\/\/rpm.nodesource.com\/setup | bash -\r\n# yum install --yes nodejs\r\n# yum install npm\r\n# npm config set python \/usr\/bin\/python2 -g\r\n<\/pre>\n<p>Once the required packages has been installed, now clone the\u00a0<strong>Atom<\/strong>\u00a0repository from git.<\/p>\n<pre>$ git clone https:\/\/github.com\/atom\/atom\r\n$ cd atom\r\n<\/pre>\n<p>Checkout the latest\u00a0<strong>Atom<\/strong>\u00a0release and build it.<\/p>\n<pre>$ git fetch -p\r\n$ git checkout $(git describe --tags `git rev-list --tags --max-count=1`)\r\n$ script\/build\r\n<\/pre>\n<p><strong>Note<\/strong>: If Atom build process failed with below error message:<\/p>\n<pre>npm v1.4+ is required to build Atom. Version 1.3.10 was detected.<\/pre>\n<p>That means you must have latest version npm (i.e\u00a0<strong>v1.4<\/strong>) installed on the system, to get the latest version of npm you need to add node.js PPA to your system to get the latest version of Nodejs and NPM.<\/p>\n<pre>$ sudo apt-get install python-software-properties\r\n$ sudo apt-add-repository ppa:chris-lea\/node.js\r\n$ sudo apt-get update\r\n$ sudo apt-get install nodejs<\/pre>\n<p>Next, install the atom and apm commands to\u00a0<code>\/usr\/local\/bin<\/code>\u00a0directory by executing following command:<\/p>\n<pre>$ sudo script\/grunt install\r\n<\/pre>\n<h3>Atom Testing and Usage<\/h3>\n<p><strong>1.<\/strong>\u00a0Fire\u00a0<strong>Atom<\/strong>\u00a0from\u00a0<strong>Application Menu<\/strong>, or by typing command \u2018<code>atom<\/code>, in the command prompt.<\/p>\n<pre>$ atom\r\n<\/pre>\n<p>When you launch\u00a0<strong>Atom<\/strong>\u00a0for the first time, you should see a Welcome screen of atom something like below.<\/p>\n<div id=\"attachment_14419\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/06\/Atom-Text-Editor.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-14419\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/06\/Atom-Text-Editor-620x368.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/06\/Atom-Text-Editor-620x368.png 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/06\/Atom-Text-Editor-1024x609.png 1024w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/06\/Atom-Text-Editor.png 1087w\" alt=\"Atom Text Editor\" width=\"620\" height=\"368\" aria-describedby=\"caption-attachment-14419\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-14419\" class=\"wp-caption-text\">Atom Text Editor<\/p>\n<\/div>\n<p>This welcome screen gives you a brief idea about on how to get started with Atom editor.<\/p>\n<p>You may Download your favorite flavor theme and native packages from the links below and install it using\u00a0<strong>Settings Menu<\/strong>.<\/p>\n<ol>\n<li><a href=\"https:\/\/atom.io\/themes\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/atom.io\/themes<\/a><\/li>\n<li><a href=\"https:\/\/atom.io\/packages\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/atom.io\/packages<\/a><\/li>\n<\/ol>\n<h5>Just for Information<\/h5>\n<ol>\n<li>Atom send usages data to\u00a0<strong>Google Analytics<\/strong>. It does so to collect information about those features that are mostly used. These information will be used to enhance the user experience in further release.<\/li>\n<li>GitHub Reports Atom has been downloaded 1.3 million times and is used by more than 350,000 users per month.<\/li>\n<\/ol>\n<h3>Conclusion<\/h3>\n<p><strong>Atom<\/strong>\u00a0is a wonderful source code (and Text) editor. It functions like IDE. Supports of nearly 700 themes, ensures we have a lot to choose from. 2K+ packages makes it possible to customize Atom, as per user\u2019s need. It has been developed by GitHub Founder and other developers\/contributors, so we can expect it to be more than just a normal editor.<\/p>\n<p>Though it be a nightmare for a lots of people since HTML, JavaScript, node.js and CSS have been used in the project. The fact is all these Programming\/scripting languages are not appreciated by advanced users. At times the above languages have shown flaws, attack and even compromised.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/atom-text-and-source-code-editor-for-linux\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>These days\u00a0Atom\u00a0text editor is making a lots of news. Atom is a free and open-source text and source code editor, available for cross platform Operating Systems \u2013 Windows, Linux and Mac OS X. It is released under MIT License, written in C++, HTML, CSS, JavaScript, Node.js and Coffee Script, Atom is based on Chromium. Atom &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/27\/atom-a-hackable-text-and-source-code-editor-for-linux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Atom \u2013 A Hackable Text and Source Code Editor for Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12492","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=12492"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12492\/revisions"}],"predecessor-version":[{"id":12493,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12492\/revisions\/12493"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=12492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=12492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=12492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}