How To Install Atom Text Editor on Ubuntu 18.04

On this short tutorial, we will learn how to install Atom text editor on Ubuntu 18.04 workstation.

Introduction

If we often use a text editor on linux, of course you will be familiar with vi or vim editor. There are several text editors to choose from for use on Linux, one of which is Atom. Atom is an open-source, cross-platform code editor developed by GitHub. Atom text editor has a built-in package manager, embedded Git control, smart autocompletion, syntax highlighting, and multiple panes.

Atom Text Editor Installation on Ubuntu 18.04

The Atom text editor installation on Ubuntu can be done in two ways, namely via snap, apt and via GUI. In this article, we will discuss how to install Atom text editor using apt and snap (via console).

1. Atom Text Editor Installation via APT

By choosing this option, we will use an Atom text editor repository, ubuntu 20.04 has not included the Atom text editor repository in the default repository. Atom installation steps with APT.

  1. Update the packages list and install the dependencies
  2. Import the repository GPG key and enable it
  3. Install Atom text editor
  4. verifty Atom version

Install the Dependencies Packages

The first step is to install dependencies packages, by submitting command line :

$ sudo apt install software-properties-common apt-transport-https wget

Import the repository GPG key and enabling it

The next step is to import Atom text editor repository GPG key and enable it. The task will be performed by submitting command line :

$ wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -
:~$ sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'

Output :

ramans@ubuntu:~$ wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -
[sudo] password for ramans:
OK
ramans@ubuntu:~$ sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'

Install Atom Text editor

After all prerequisite are set, then we will install Atom text editor by submitting command line :

$ sudo apt-get update
$ sudo apt-get install atom

Output :

ramans@ubuntu:/etc/apt/sources.list.d$ sudo apt-get update
Hit:1 http://dl.winehq.org/wine-builds/ubuntu artful InRelease                                
Hit:2 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease                               
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic InRelease                                    
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease                             
Hit:5 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease                            
Hit:6 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease                          
Hit:7 https://download.sublimetext.com apt/stable/ InRelease                                  
Hit:9 http://apt.postgresql.org/pub/repos/apt bionic-pgdg InRelease                           
Get:8 https://packagecloud.io/AtomEditor/atom/any any InRelease [23.2 kB]
Get:10 https://packagecloud.io/AtomEditor/atom/any any/main amd64 Packages [24.3 kB]          
Fetched 47.5 kB in 8s (6,063 B/s)                                                             
Reading package lists... Done

ramans@ubuntu:/etc/apt/sources.list.d$  sudo apt-get install atom
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  gconf-service gconf-service-backend gconf2-common git git-man libcurl3 liberror-perl
  libgconf-2-4 libpython-stdlib python python-minimal python2.7 python2.7-minimal
Suggested packages:
  gir1.2-gnomekeyring-1.0 git-daemon-run | git-daemon-sysvinit git-doc git-el git-email
  git-gui gitk gitweb git-cvs git-mediawiki git-svn python-doc python-tk python2.7-doc
  binfmt-support
The following NEW packages will be installed:
  atom gconf-service gconf-service-backend gconf2-common git git-man libcurl3 liberror-perl
  libgconf-2-4 libpython-stdlib python python-minimal python2.7 python2.7-minimal
0 upgraded, 14 newly installed, 0 to remove and 10 not upgraded.
Need to get 119 MB of archives.
After this operation, 670 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7-minimal amd64 2.7.17-1~18.04 [1,294 kB]
Get:2 https://packagecloud.io/AtomEditor/atom/any any/main amd64 atom amd64 1.42.0 [112 MB]   
. . .
Setting up git (1:2.17.1-1ubuntu0.5) ...
Setting up python (2.7.15~rc1-1) ...
Setting up atom (1.42.0) ...
Setting up gconf-service-backend (3.2.6-4ubuntu1) ...
Setting up gconf-service (3.2.6-4ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...

Verifying Atom text editor version

After installation was completed done, then we will verify its version by submitting command line :

$ atom --version

Output :

ramans@ubuntu:/etc/apt/sources.list.d$ atom --version
Atom    : 1.42.0
Electron: 4.2.7
Chrome  : 69.0.3497.128
Node    : 10.11.0

2. Atom Text Editor Installation Via Snap

The Atom installation on Ubuntu via snap is very simple, just go to terminal and submit the following command line :

sudo snap install atom --classic

The Atom snap package will be automatically updated in the background, whenever the new version is released.

3. Launching Atom Text Editor

There are two options two lauch Atom text editor: GUI and from console. To lauch Atom text editor from GUI, we have to use the Activities then search bar type “Atom” and click on the icon to launch the application. If we want to launch Atom from console, just text atom from the prompt then enter.

When you start the Atom editor for the first time, a window like the following should appear.

Atom text editor first time use
Atom text editor first time use

Conclusion

On this article, we have learnt how to install Atom text editor on Ubuntu 18.04 ubuntuk desktop. I hope it will be helpful.

Add a Comment

Your email address will not be published. Required fields are marked *