I write about

    Automagically execute a bash function/cmd upon entering a directory.

    Automagically execute a bash function/cmd upon entering a directory. After growing tired of sourcing Petalinux/Yocto-project settings everytime I needed to create/config a project, I decided to compile a script/code that resides under my ~/.bashrc , the only thing the code/script does it automagically source my settings upon entering the directory else it will just list the contents of that directory. source $HOME/.opt/Xilinx/Vivado/2017.2/settings64.sh export YOCTODIR=$HOME/Documents/Xilinx/EmbeddedLinux/Yocto/poky export PETADIR=$HOME/Documents/Xilinx/EmbeddedLinux/Petalinux function cd { #... [Read More]

    Xilinx PetaLinux 2017.2 installation on Ubuntu 16.04.3

    Xilinx PetaLinux 2017.2 installation on Ubuntu 16.04.3 The user guide for Xilinx PetaLinux 2017.2 installation is UG1144. It is best used together with Xilinx Vivado 2017.2 version (see my last post about how to install Vivado). More info about PetaLinux embedded OS can be found on Xilinx Products page, and on the Xilinx Wiki site. Firstly, we will to the Xilinx Downloads page to obtain the installer. Select version 2017.2 on the left sidebar. Choose “PetaLinux 2017.2... [Read More]

    My first experience with the ZedBoard SoC board.

    My first experience with the ZedBoard SoC board. I recently registered my Masters and part of my research includes the use of an FPGA for real-time network communications between smart grids. So I am faced with 2 things - learning a new environment as well as a different engineering field which is Power Systems. Coming from an Electronics and Computer engineering background this seemed like an obstacle but worry not. I... [Read More]

    How do I change the hostname without a restart?

    How do I change the hostname without a restart? Without restart: Update new hostname sudo vim /etc/hostname also update sudo vim /etc/hosts accordingly sudo sysctl kernel.hostname=mynewlocalhost When done check your current hostname with hostname -f

    Docker: Remove all images and containers

    Docker: Remove all images and containers Problem: You use Docker, but working with it created lots of images and containers. You want to remove all of them to save disk space. Solution: Warning: This will destroy all your images and containers. It will not be possible to restore them! Run those commands in a shell: # Delete all containers $ sudo docker rm $(docker ps -a -q) # Delete all images $ sudo docker rmi $(docker images -q) This solution... [Read More]

    Create a global git commit hook

    Create a global git commit hook Recently found out about these git hooks and they work flawlessly but my only worry was that I had to copy all my hooks over every repo such that I could use them, which was a pain sometimes. Then started reading about this so called global git hooks, and found a fix. Usually the default template library is found at /usr/share/git-core/templates and we are going to... [Read More]

    Why am I getting 'Errno(105): No buffer space available' when subscribing to multicast addresses?

    Why am I getting "Errno(105): No buffer space available" when subscribing to multicast addresses? I have been experiencing multicast subscription errors on my linux box when trying to subscribe to more that 20 IP's via smcroute and Python-Socket module. See below image to get an idea of the kind of errors I was getting, after multiple Googling attempts I finally found a fix. Linux OS, limit the number of multicast... [Read More]

    Using Git bisect to find out when a bug was introduced!

    Using Git bisect to find out when a bug was introduced! ----Simplified explanation---- Here's how to use git bisect , step-by-step! Step 1: Find a commit where things were working. ... Step 2: Find a commit where things are not working. ... Step 3 - N: Use git bisect to find the problem commit. ... Step 4: Get back to a working state. Using Git bisect to figure out when... [Read More]