Friday, December 6, 2013

Find, xargs, split2flac split everything in a directory.

find ./ -maxdepth 1 -type d | xargs -I{} split2flac {}

Thursday, December 5, 2013

How I updated my rooted nexus 5 with a custom kernel to kitkat 4.4.1


  1. Download the 4.4.1 image (7ed504f678cea49ecf0974e8cd956e2974e3f943.signed-hammerhead-KOT49E-from-KRT16M.7ed504f6.zip)
  2. Download the stock image (hammerhead-krt16m-factory-bd9c39de.tgz).
  3. Copy the updated image to the phone

    $ adb push ~/Downloads/7ed504f678cea49ecf0974e8cd956e2974e3f943.signed-hammerhead-KOT49E-from-KRT16M.7ed504f6.zip  /mnt/sdcard/

  4. Reboot into fastboot (power and volume down when booting).
  5. Extract the stock image.

    $ tar zxvf hammerhead-krt16m-factory-bd9c39de.tgz

  6. Unzip the image

    $ unzip image-hammerhead-krt16m.zip

  7. Flash the boot img

    $ fastboot flash boot boot.img

  8. Reboot into bootloader

    $ fastboot reboot-bootloader

  9. Flash the system img.

    $ fastboot flash system system.img

  10. Go into recovery (TWRP for me) and flash the 4.4.1 update copied over earlier. 
  11. Flash custom kernel on sdcard.
  12. Let twrp install supersu and reboot.
  13. Not rooted - download the latest twrp (openrecovery-twrp-2.6.3.4-hammerhead.img)
  14. Reboot into fastboot mode again.
  15. Flash the twrp image

    $ openrecovery-twrp-2.6.3.4-hammerhead.img

  16. Boot into recovery mode.
  17. Download latest supersu (UPDATE-SuperSU-v1.80.zip)
  18. Copy supersu over to card.

    $ adb push UPDATE-SuperSU-v1.80.zip  /sdcard/update-supersu-v1.80.zip

  19. Install it from TWRP.
  20. Done.




Tuesday, December 3, 2013

Android 4.4 trying to resolve local domains with dhcp server on server 2003.

My android 4.4 device would not resolve local domains.

Ex:
sv00004 - could not resolve
sv00004.blah.com - resolved.

Solution:
* start->-run-> mmc
* Add/remove snap in-> DHCP
* Right click DHCP "Add server"
* Select the DHCP server.
* Expand to server options.
* Right click server options

I added my two DNS servers to "006 DNS Servers" and my domain blah.com to "015 DNS Domain Name".

Seems to resolve fine now - at least from chrome.