Tag Archives: shell

Pivos – Rebuild and Sign .img file

Finally you have to rebuild the image, to do this first compress the new image file with zip: zip -r update-unsigned.img * And then you have to sign that update-unsigned.img java -Xmx1024m -jar signapk.jar -w testkey.x509.pem \ testkey.pk8 update-unsigned.img update.img I extracted the signapk.jar, testkey.x509 and testkey.pk8 from the buildroot. Have fun with this!

Kernel Cleanup

The ulimate Linux kernal clean up command for Debian based systems. dpkg -l | grep ^ii | grep “linux-image-[0-9]” | awk -F’ ‘ ‘{ print $2 }’ | \grep -v `uname -r` | sed ‘$d’ | sed ‘$d’ | sed ‘s/linux-image//’ | \xargs -i echo “linux-image{} linux-headers{}” | xargs aptitude -y purge  

Bad Behavior has blocked 59 access attempts in the last 7 days.