Install latest nodejs on ubuntu

Note for myself: If you want to “dockerize” latest version of nodejs don’t forget below:


for v5.0

MongoDB 3.2 into xUbuntu 15.10

After I looked over the the steps from:  I wanted to start the service with:

Unfortunately I had below error:

Failed to start mongod.service: Unit mongod.service failed to load: No such file or directory.

This error occurred due to the problem with the new Ubuntu (15 and ahead).

Default init system is systemd which was Upstart previously. So you need to install Upstart, reboot your system and here you go, you can now run mongodb service.

  • Install Upstart

  • Reboot your system

sudo service mongod start mongod start/running, process 3371

As alternative to install mongodb:

Edit: 05.01.2016: Just follow below steps as an alternative to fix mongod.service:

Create a mongod.service into /lib/systemd/system/

Then run the commands:

My /etc/mongod.conf file looks like:



Zsh and themes into Linux Console

Extract Youtube videos/audio

One of my favorite Linux applications is the command-line utility youtube-dl, which I use quite often to download YouTube videos or extract only the audio.

So, let’s install.

Extract the mp3 file from youtube url:

Extract the mp3 file from youtube url at 128k audio quality:

Extract the mp3 file from youtube url at the best audio quality:

Display available video formats:

Extract the video:

Docker – Intro


Docker provides an integrated technology suite that enables development and IT operations teams to build, ship, and run distributed applications anywhere.

“Docker wasn’t on anyone’s roadmap in 2014, it is on everyone’s roadmap for 2015”


  • Docker Images – blueprints of our application
  • Docker Container – created from docker images and are real instances of our application
  • Docker Daemon – building, running and distributing Docker images
  • Docker Client – Run on our local machine and connect to the daemon
  • Docker Hub – a registry of docker images


Quick and easy install script provided by Docker:

If you’re looking for detailed steps or how to install on different Windows / OSX please check

If you’re running docker under Linux you need to run

to avoid: Cannot connect to the Docker daemon. Is the docker daemon running on this host? Log out and log in back. This ensures your user is running with the correct permissions.

On Linux the 3.10.x kernel is the minimum requirement for Docker. For OSX 10.8 “Mountain Lion” or newer is required.

Both OSX and Windows require Docker Toolbox to be installed in order to be able to run docker containers.

Early versions of Docker Toolbox require you to install a VM with Docker Machine using the VirtualBox provider:

However the latest versions of Docker Toolbox will take care of this part. You can check Docker-machine version and status and ip:

Docker Images

Docker at its core is a way to separate an application and the dependencies needed to run it from the operating system itself. To make this possible Docker uses containers and images.

A Docker image is basically a template for a filesystem. When you run a Docker image, an instance of this filesystem is made live and runs on your system inside a Docker container. By default this container can’t touch the original image itself or the filesystem of the host where Docker is running. It’s a self-contained environment.

Let’s search the official Ubuntu docker image.

Limit the search to Ubuntu images with at least 1000 stars/rating:

  • docker run – run and interact with the image:

View previous images and history:


Remove docker instance:


While you can use the docker rmi command to remove specific images, there’s a tool called docker-gc that will clean up images that are no longer used by any containers in a safe manner.

  • docker load loads an image from a tar archive as STDIN, including images and tags (as of 0.7).
  • docker save saves an image to a tar archive stream to STDOUT with all parent layers, tags & versions (as of 0.7).
  • docker history shows history of image.
  • docker tag tags an image to a name (local or registry).



Docker containers wrap up your application in a complete filesystem that contains everything it needs to run: code, runtime, system tools, system libraries – anything you can install on a server. This guarantees that it will always run the same, regardless of the environment it is running in.

Containers are for software, not for data

Docker containers are consumables. Docker containers should be used to scale applications, for firing more app servers with the same setup etc. Data belongs onto the filesystem but not into a container that can neither be cloned in an easy way nor incrementally backed up in a reasonable way. Containers are for software, not for data.

Docker container commands

If you want to map a directory on the host to a docker container, docker run -v $HOSTDIR:$DOCKERDIR. Also see Volumes.

  • docker start starts a container so it is running.
  • docker stop stops a running container.
  • docker restart stops and starts a container.
  • docker pause pauses a running container, “freezing” it in place.
  • docker unpause will unpause a running container.
  • docker wait blocks until running container stops.
  • docker kill sends a SIGKILL to a running container.
  • docker attach will connect to a running container.
  • docker logs gets logs from container. (You can use a custom log driver, but logs is only available for json-file and journald in 1.10)
  • docker inspect looks at all the info on a container (including IP address).
  • docker events gets events from container.
  • docker port shows public facing port of container.
  • docker top shows running processes in container.
  • docker stats shows containers’ resource usage statistics.
  • docker diff shows changed files in the container’s FS.
  • docker stats --all shows a running list of containers.

Additional links:


How to enables SSL on webmail.domain.tld

In order to secure your roundcube webmail with your SSL certificate you need to follow below steps in your Plesk CP.

  1. Go to Server -> SSL Certificates -> Add your SSL certificate here if you haven’t already.
  2. Go to Server -> IP Addresses -> [your public IP] -> Change the SSL certificate to the certificate you added in Step 1
  3. Add

    to /etc/apache2/plesk.conf.d/ somewhere after “RewriteEngine On”

Enjoy your https://webmail.domain.tld.