How to set up Ruby on Rails on Ubuntu 18.04 Bionic Beaver Linux

Objective

The objective is to install Ruby on Rails on Ubuntu 18.04 Bionic Beaver Linux. First we will perform a standard installation from Ubuntu 18.04 repositories. The second part of this tutorial will show you how to use Ruby Version Manager (RVM) to install the latest Ruby.

Operating System and Software Versions

  • Operating System: – Ubuntu 18.04 Bionic Beaver Linux

Requirements

Privileged access to your Ubuntu 18.04 Bionic Beaver is required to install Ruby on Rails on Ubuntu 18.04 and/or prerequisites.

Difficulty

EASY

Conventions

Read more

bash scripting

How to modify scripts behavior on signals using bash traps

Objective

The objective of this tutorial is to describe how to use the bash shell trap builtin to make our scripts able to perform certain actions when they receive a signal or in other specific situations.

Requirements

  • No special requirements

Difficulty

EASY

Conventions

  • # – requires given linux commands to be executed with root privileges either
    directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Introduction

bash scriptingWhen writing scripts that are meant to run for a considerable time, it’s very important to increase their robustness by making them able to react to system signals, executing specific actions when some of them are received. We can accomplish this task by using the bash trap builtin.

Read more