iTerm3 and docker startup

If you open iTerm2 and try to run docker ps you’ll probably receive below error:

Cannot connect to the Docker daemon. Is the docker daemon running on this host?

The solution to use iTerm2 instead of Docker QuickStart Terminal is relatively simple:

That will generate below output:

You then need to run:

The output of it is:

All you need to do now is to run:

That’s all 😉


Vagrant – Intro

Vagrant makes it possible to quickly create a virtual environment for development. It is different than cloning or snapshots in that it uses minimal base OSes and provides a provisioning mechanism to setup and configure the environment exactly the way you want for development.


  • All developers work in the exact same environment
  • Developers can get a new environment up in minutes
  • Developers don’t need to be experts at setting up the environment.
  • System details can be versioned and stored alongside code.

You need to create a single Vagrantfile and everything will be configured as you requested.

Vagrant is using different provides but by default VirtualBox is the free and easy to use.

We’ll use a separate work folder to keep things together.

You can download any vagrant image and keep it locally for future instantiation.

A huge list of vagrant images are available on HashiCorp’s Atlas box catalog.

The above script includes the fix for


If vagrant image is running you need to use

You can see the vagrant instance by browsing http://localhost:8000/

To share (you need to register to

You can see it via

To stop the VM:


Samsung M2020 on xUbuntu

Open gnome-terminal via xUbuntu dash or via shortcut ctrl+alt+t and paste following commands:

  1. Download driver from Samsung site:

2. Unpack the driver:

3. Install driver, with sudo command you need to enter your root password:

4. Now, you should be able to to add your printer via Printers program. Add it as network printer or simply plug it in via USB and it should work.



How to set up your github repository in Ubuntu

Setting up on Ubuntu

Creates a new ssh key using the github email address:

Then copy it to the clipboard:

Then go to and click “Add another public key” and paste the clipboard and press “Add” Key”.

And now try to connect to github to see if everything is working:

If everything goes fine you should have something similar:

Then you should install git (it should be already installed by default):

Now you can configure git:

Now get your token at GitHub -> Click “Settings” > Click “Personal Access Token”

You can create a github repository and clone locally.


How to add existing project to GitHub

Here is how you add an existing project to Github without cloning it first. One quick option is to create the repository on Github, clone it locally and then copy all the files across.

Go to your project

Initialize the repository:

You should see the following message:

Add all your files to the repo:

Check to see that there are changes to be committed:

You should see something like this:

In this case, and my_project.module are the files I have in my project.

Commit the files.

Go to Github and create a new project repository and get the repo url:

Add Github as remote origin

Now we need to push our changes to Github.

Add this as the remote origin:

Pull from Github to local:

And finally, push the code to Github:

Additional references: