Monthly Archives: January 2017

Getting UUID of a partition for use in /etc/fstab

To get UUID of a partition use the command blkid /dev/sdXX Example me@ubuntudevmach:~/$ blkid /dev/sdb1 /dev/sdb1: UUID=”405d2966-6826-4942-baa4-244f24aa31c3″ TYPE=”ext4″ PTUUID=”775559d3″ PTTYPE=”dos” This is useful when editing /etc/fstab to direct a partition to a folder Example of directing a partition to be … Continue reading

Posted in Linux commandline | Tagged , , | Leave a comment

Copying more files to an existing rootfs image

Check rootfs image e2fsck -f myimage.ext2 Resize it resize2fs myimage.ext2 400M mount it mkdir myimage mount myimage.ext2 myimage copy new content cp newcontent myimage

Posted in Linux commandline | Tagged , , | Leave a comment

Using your Linux host as a opkg package server

It is very useful to have your computer working as a opkg package server in the sence that you can install packages built and test instantly instead of rebuilding the entire image. To enable this I did the following: Install … Continue reading

Posted in Yocto | Tagged , , | Leave a comment

Adding ssh password to raspberry pi

Create ssh-key ssh-keygen -t rsa -b 4096 -C “your_email@example.com” Add id_rsa.pub content to the raspberry pi .ssh/authorized_keys echo ~/.ssh/id_rsa.pub | ssh pi@192.168.1.5 “cat >> .ssh/authorized_keys Add new login part in your .ssh/config file vi .ssh/config Host pi Hostname 192.168.1.5 User … Continue reading

Posted in Yocto | Tagged , , | Leave a comment

Gerrit workflow using git-repo

This is the workflow I use when working with gerrit and git-repo Create a git-repo branch cd ~/myrepo repo start mybranch myproject Make changes and commit vim myclass.cpp git add myclass.cpp git commit -s Push to gerrit to master branch … Continue reading

Posted in Yocto | Tagged , , | Leave a comment

cntlm proxy and docker

It can be troublesome to use Linux and docker from within a Windows based IT infrastructure. To achieve this I did the following: Get the user name user=`getent passwd 1000 | cut -d ‘:’ -f1` Get the docker interface ip … Continue reading

Posted in Yocto | Tagged , , , , | Leave a comment

Replacing busybox-httpd with nginx in yocto

To replace busybox webserver with nginx follow these steps: 1. Remove CONFIG_HTTPD and CONFIG_FEATURE_HTTPD from the busybox defconfig 2. Remove any special considerations made in your busybox_XXX.bbappend regarding httpd webserver. 3. Add meta-webserver layer to your bblayers.conf BBLAYERS ?= ” … Continue reading

Posted in Yocto | Tagged , , , | Leave a comment