Build Docker image, Install and Run Ubuntu 14.04 inside docker

docker build -t=”dockerfile/ubuntu” github.com/dockerfile/ubuntu You can refer to dockerfile syntax at https://github.com/dockerfile/ubuntu/blob/master/Dockerfile sudo docker ps -l CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b034e8ed6edb dockerfile/ubuntu “bash” 10 minutes ago Up 8 minutes brave_engelbart sudo docker container start b034e8ed6edb This will start the docker container with ubuntu 14.04 as base image, You can login to … Read more

Installing Docker and Ubuntu Image shell

The steps below shows how to install docker on x86_64 bit ubuntu desktop and have independent ubuntu shell inside docker. [ Note: docker works only with 64 bit ubuntu, hence if you have 32 bit ubuntu machine, it will not work ] If you have any nonworking traces of cocker, remove it using below command, … Read more

Finding list of installed files from a package in Linux

Recently we installed one package, but couldn’t understood which all files it installed on Ubuntu. You can use the command as, dpkg-query -L PACKAGE_NAME So, lets say, you want to identify which are files “openssh-server” package installed, then run the command as below, dpkg-query -L openssh-server /. /etc /etc/ufw /etc/ufw/applications.d /etc/ufw/applications.d/openssh-server /etc/pam.d /etc/pam.d/sshd /etc/init /etc/init/ssh.conf … Read more

Booting Androidthings on RaspberryPi3

Follow below steps to boot the Androidthings on Raspberry Pi3 Download the prebuilt image from https://developer.android.com/things/preview/download.html wget -c https://dl.google.com/dl/androidthings/rpi3/devpreview/1/androidthings_rpi3_devpreview_1.zip unzip androidthings_rpi3_devpreview_1.zip this will unzip and create iot_rpi3.img image which we need to install on SD card. sudo dd bs=1M if=./iot_rpi3.img of=/dev/sdb where /dev/sdb is assumed to be device name of SD card which we needs … Read more

How to check which header belongs to which package in ubuntu

In Ubuntu, there is a way to identify which header file belongs to which package so if you encountered an error as “header file not found” you can install the package to resolve the error, Just follow below steps, sudo apt-get install apt-file sudo apt-file update Now lets try to identify which packages contain “sys/types.h” … Read more

Create a Dual Partition SD Card with Linux / Ubuntu

Start ‘fdisk’. For me, the SD card reader/writer has the SD card show up on /dev/sdc. I recommend you insert a properly formatted card and execute ‘mount’ or ‘df’ to figure out what device your SD card shows up under. You’ll need to ‘umount’ the drives before you can run ‘fdisk’. Be sure to choose … Read more

Solved: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

When you are installing some package or compiling some code which is depending on “npm” , you may get an error as below, SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:374:25) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Function.Module.runMain (module.js:442:10) at … Read more

How to upgrade / install latest version of npm on Ubuntu

npm is the package manager for the Node JavaScript platform. When we used installed npm on Ubuntu using following command $ sudo apt install npm By default ubuntu unstalled npm version 3.5.2, which you can check as, $ npm -version 3.5.2 But the software, we were trying to compile required npm version more than 3.5.2, … Read more

Use repo on Windows to download android source

Android had developed repo tool to download huge android source code, primarily keeping in mind of development on Ubuntu / Linux and MacOS, but there are lot of people who just has access to Windows, so this post is to help those people with Windows, who can use below steps to download / repo sync … Read more

How to install Minicom on Linux / Ubuntu

Minicom is a text-based serial port communications program. It is used to talk to external RS-232 devices such as mobile phones, routers, and serial console ports. We can install minicom using below command, $ sudo apt-get install minicom Once you install minicom successfully, Connect Serial to USB cable to ubuntu laptop/desktop and type “dmesg” command … Read more