Docker getting started – part 2

If we want to install docker on a different linux distributions, then the best way is to check the instruction in the docker website: https://docs.docker.com/engine/installation/ It has a specific instructions for the different distributions. After installing docker, we should check the docker version by running: docker -v And we will see the docker version and … Continue reading Docker getting started – part 2

Docker getting started – part 1

Docker is a software that allow us to do operating system visualization. It uses the  Linux kernel to isolate process  from their host machine and other process. The docker itself is written with Go. You can install docker on windows and Macintosh, but it in order to work on those system, it will install a linux VM. … Continue reading Docker getting started – part 1

Linux type command – knowing what will be executed

In Linux, you can check what will run when you execute command. The first information you need is the type of the command, if it is a built-in shell, alias, or an executable file. The type command gives that information: type <command> And it will tell you the command type: In the example below, we run type … Continue reading Linux type command – knowing what will be executed

Linux ssh-keygen and openssl commands

ssh-keygen This command will create a pair of private and public keys. It will ask for the location of the key and whether to use passphrase. [oren@localhost ~]$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/oren/.ssh/id_rsa): /home/oren/.ssh/id_rsa already exists. Overwrite (y/n)? y Enter passphrase (empty for no passphrase): Enter … Continue reading Linux ssh-keygen and openssl commands

Allowing process to bind to port lower than 1024 in Linux

In Linux by default process  has no permission to bind themselves to any port lower than 1024 (unless you are the root user of course). So if for example we want our node js application to listen on port 80, the default port for http, we will probably get the following exception: events.js:160 throw er; … Continue reading Allowing process to bind to port lower than 1024 in Linux