Build Docker image, Install and Run Ubuntu 14.04 inside docker

docker build -t=”dockerfile/ubuntu” You can refer to dockerfile syntax at 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

Installing Django and Django-REST Framework on ubuntu

Django REST framework is a powerful and flexible toolkit for building Web APIs. Some reasons you might want to use REST framework: The Web browsable API is a huge usability win for your developers. Authentication policies including packages for OAuth1a and OAuth2. Serialization that supports both ORM and non-ORM data sources. Customizable all the way … Read more

Booting Androidthings on RaspberryPi3

Follow below steps to boot the Androidthings on Raspberry Pi3 Download the prebuilt image from wget -c unzip 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 enable Wifi with yocto

If you want to have WiFi integrated with yocto root filesystem, follow below mentioned steps, Open file, meta-mylayer/images/ and add below mentioned line, DISTRO_FEATURES += “wifi” This will add wifi into the root filesystem but unless you have a proper network manager and UI, you will not be able to connect to internet. So, we … Read more

How to add locale into embedded yocto root filesystem

Recently we faced some issues with locale and when debugged using strace it shows following error open(“/usr/share/X11/locale/locale.alias”, O_RDONLY) = -1 ENOENT (No such file or directory) open(“/usr/share/X11/locale/locale.dir”, O_RDONLY) = -1 ENOENT (No such file or directory) open(“/usr/share/X11/locale/locale.alias”, O_RDONLY) = -1 ENOENT (No such file or directory) open(“/usr/share/X11/locale/locale.dir”, O_RDONLY) = -1 ENOENT (No such file or … Read more

How to add timezone info to root filesystem using yocto

Recently while debugging some issues we found that we were missing timezone related files into yocto root filesystem, the debugging with strace shown the following error, open(“/usr/share/zoneinfo/UTC”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) The poky has a recipe for compiling the relevant files at poky/meta/recipes-extended/tzdata/ hence you can use below command to … Read more

How to use mtrace to detect memory leaks in executable in Linux

We will create a simple program as below, Note here: if we want to use mtrace to detect the memory leaks, our program should include header “mcheck.h” as done in above program. Then at the start of the program i.e. from main function call the “mtrace” function. [ shown in bold above ] Once a … Read more