Thursday, December 30, 2010

adb not detecting adroid device

OS: Ubuntu 10.04 Lucid Lynx
Kernel: 2.6.32.26-generic
Date: December 30th, 2010

 I'm sure there must be tons of posts on this particular issue, however I had hard time finding solution so here it is.
 I got my android phone and can't be happier well after first few days wanted to tinker with it, so I got an android SDK extracted and ran android from tools directory to pull all required features. Then time to enter few udev rules so the USB device can be detected (consider it as installing drivers in windows system) Developer page explains how-to and provides Vendor-IDs for each device.

for e.g. I've Samsung Epic 4g and command lsusb provides following output

  • lsusb:
  • Bus 002 Device 006: ID 04e8:681c Samsung Electronics Co., Ltd
  • 04e8 is my vendor ID
however even after following all directions for adb devices output is
  • adb devices
  • List of devices attached 
          ???????????? no permissions

 which is not very helpful
so the workaround is starting adb server with super user permissions. as follows:
  • adb kill-server
  • sudo adb start-server
and then 
  • adb devices
  • List of devices attached 
          D70029974153 device
    yey I got it detected and working

    Wednesday, December 29, 2010

    Converting RAW Nikon camera files to jpg

    OS: Ubuntu 10.04 Lucid Lynx
    Kernel: 2.6.32.26-generic
    Date: December 29th, 2010

    Hi everyone,
     If you are wondering how to convert raw image files from Nikon cameras to jpg files, then here is a trick.

    •  Install ufraw sudo apt-get install ufraw
    • ufraw or ufraw gimp plugin can be used to manipulate the image, however just for conversion,
    • convert [filename].NEF [filename].jpg is sufficient
    I've not tested it on raw files by any other camera but I assume it should work as long as raw file format is supported by ufraw