How To Install Ruby and Set Up a Local Programming Environment on Ubuntu 16.04
In this tutorial, you’ll set up a Ruby programming environment on your local Linux machine via the command line. Then you’ll test your environment out by writing a simple Ruby program. This tutorial explicitly covers the installation procedures for Ubuntu 16.04, but the general principles should apply to any Debian-based distribution.