How to install atom editor on Ubuntu 17.10 artful

Atom editor seems to be the most popular Editor out there, and seems to be more of a following than Sublime text which is a paid alternative (nagware).

To install the latest Atom editor on Ubuntu 17.10 artful, and to keep it updated, you need to import keys, and the repository for Atom editor. In this way, each time Atom editor gets updated, or you upgrade your OS from Ubuntu 17.10 artful, you can still get the latest Atom text editor.


curl -L | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] any main" > /etc/apt/sources.list.d/atom.list'
sudo apt-get update
sudo apt-get install atom

If you need the beta version:

sudo apt-get install atom-beta

How to use python3 by default:

You probably want to use python3 for your scripts. So, once installed, you may need to add the following alias in ~/.bashrc:

alias python=python3

Each python script you write should also have the following as the first line:

#!/usr/bin/env python

You can source it for the current shell using:

. ~/.bashrc