<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>tech-onesto-info</title>
	<atom:link href="http://tech.onesto.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.onesto.info</link>
	<description>honest comments on tech info</description>
	<lastBuildDate>Wed, 15 Feb 2012 09:00:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Galaxy Nexus and Ubuntu 10.04 &#8211; MTP</title>
		<link>http://tech.onesto.info/2012/02/15/galaxy-nexus-and-ubuntu-10-04-mtp/</link>
		<comments>http://tech.onesto.info/2012/02/15/galaxy-nexus-and-ubuntu-10-04-mtp/#comments</comments>
		<pubDate>Wed, 15 Feb 2012 06:20:19 +0000</pubDate>
		<dc:creator>vang</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[galaxy nexus]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://tech.onesto.info/?p=66</guid>
		<description><![CDATA[See the previous article about Ubuntu 10.04 and Galaxy Nexus. In one of the links listed there there are some explanations on why do we need this new MTP (Media Transfer Protocol) stuff instead of our good-old USB mass storage &#8230; <a href="http://tech.onesto.info/2012/02/15/galaxy-nexus-and-ubuntu-10-04-mtp/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>See the <a href="http://tech.onesto.info/2012/02/13/galaxy-nexus-and-ubuntu-10-04-part-1/">previous article </a>about Ubuntu 10.04 and Galaxy Nexus. In one of the links listed there there are some explanations on why do we need this new <em>MTP (Media Transfer Protocol)</em> stuff instead of our good-old USB mass storage style.</p>
<p>In order to have the Galaxy Nexus recognized by Ubuntu 10.04 we have to rebuild <em>libmtp</em> and <em>mtpfs</em> from newer sources and this is how I did it. While those are not exactly copy-paste instructions they are good enough for an experienced user:</p>
<ul>
<li>download the latest libmtp from <a href="http://sourceforge.net/projects/libmtp/files/libmtp/" target="_blank">sourceforge</a>.</li>
<li>remove old mtp stuff
<pre>sudo dpkg --purge mtp-tools mtpfs libmtp8</pre>
</li>
<li>install some build prequisites
<pre>apt-get install libusb-dev</pre>
</li>
<li>build and install, i&#8217;m using <em>checkinstall</em> tool instead of the the simple <em>make install </em>in order to have a dpkg package:
<pre>./configure --prefix=/usr; make; sudo checkinstall</pre>
</li>
</ul>
<p>If all went ok, you may nou use the<em> mtp-detect</em> command to see if you device is recognized when connected. And proceed with mtpfs:</p>
<ul>
<li>get the sources
<pre>svn checkout http://mtpfs.googlecode.com/svn/trunk/ mtpfs-read-only</pre>
</li>
</ul>
<ul>
<li>install some build prerequisites
<pre>sudo apt-get install libid3tag0-dev libmad0-dev libglib2.0-dev libfuse-dev
sudo apt-get install automake autoconf</pre>
</li>
</ul>
<ul>
<li>build and install it:
<pre>aclocal; autoconf; automake -a
./configure; make; sudo checkinstall</pre>
</li>
</ul>
<p>Then, check the file /etc/fuse.conf for a single line containing:</p>
<pre>user_allow_other</pre>
<p>Now, for the final trick:</p>
<ol>
<li>disable <em>USB debugging</em> on your phone</li>
<li>connect the cable</li>
<li>and run</li>
</ol>
<pre>mtpfs -o allow_other SOME-EXISTING-EMPTY-DIRECTORY</pre>
<p>If everything is ok, you&#8217;ll see under that directory the content of the phone and you can manipulate the files there (hint: rsync backup). To <em>umount</em> the directory, use this command:</p>
<pre>fusermount -u THAT-DIRECTORY</pre>
<p>Yeah, I know it&#8217;s ugly like hell and the previous <em>USB mass storage</em> was so nice and easy but hopefully the next versions of Ubuntu will make this article obsoleted and the things will work again by default.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.onesto.info/2012/02/15/galaxy-nexus-and-ubuntu-10-04-mtp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>android ICS screenshots</title>
		<link>http://tech.onesto.info/2012/02/14/android-ics-screenshots/</link>
		<comments>http://tech.onesto.info/2012/02/14/android-ics-screenshots/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 13:01:29 +0000</pubDate>
		<dc:creator>vang</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[galaxy nexus]]></category>

		<guid isPermaLink="false">http://tech.onesto.info/?p=63</guid>
		<description><![CDATA[Unless you need something very special, a screenshot application is no longer needed in the new Android 4.x. Just press VolDown + Power hardware buttons and voila, your screenshot is in the gallery Google, we&#8217;re still waiting for screencasts! &#160; &#8230; <a href="http://tech.onesto.info/2012/02/14/android-ics-screenshots/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Unless you need something very special, a <em>screenshot</em> application is no longer needed in the new Android 4.x. Just press <em>VolDown + Power</em> hardware buttons and voila, your screenshot is in the gallery <img src='http://tech.onesto.info/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Google, we&#8217;re still waiting for screencasts!</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.onesto.info/2012/02/14/android-ics-screenshots/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Galaxy Nexus and Ubuntu 10.04 &#8211; adb</title>
		<link>http://tech.onesto.info/2012/02/13/galaxy-nexus-and-ubuntu-10-04-part-1/</link>
		<comments>http://tech.onesto.info/2012/02/13/galaxy-nexus-and-ubuntu-10-04-part-1/#comments</comments>
		<pubDate>Mon, 13 Feb 2012 12:15:05 +0000</pubDate>
		<dc:creator>vang</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[galaxy nexus]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://tech.onesto.info/?p=47</guid>
		<description><![CDATA[This combination is not working by default, there is work to be done. But first, why I&#8217;m using Ubuntu 10.04 and not upgrading? Because 10.04 is long term support (LTS) and for me stability is more important than features, even &#8230; <a href="http://tech.onesto.info/2012/02/13/galaxy-nexus-and-ubuntu-10-04-part-1/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This combination is not working by default, there is work to be done. But first, why I&#8217;m using Ubuntu 10.04 and not upgrading? Because 10.04 is long term support (LTS) and for me stability is more important than features, even on desktop/laptop.</p>
<p>I have finally succeeded to see my Galaxy Nexus when connected with USB cable but it wasn&#8217;t easy. Here are some links that helped me:</p>
<ul>
<li>http://www.omgubuntu.co.uk/2011/12/how-to-connect-your-android-ice-cream-sandwich-phone-to-ubuntu-for-file-access/</li>
<li>http://ohheyitslou.blogspot.com/2011/12/galaxy-nexus-enable-mtp-file-transfer.html</li>
<li>https://answers.launchpad.net/ubuntu/+source/util-linux/+question/183144</li>
<li>http://www.reddit.com/r/Android/comments/ne6ud/mount_your_new_galaxy_nexus_from_the_unity/</li>
</ul>
<p>The first step is to have <em>adb (Android debug interface)</em> working. In case you didn&#8217;t have already installed adb, you&#8217;ll have to do it:</p>
<ul>
<li>http://forum.xda-developers.com/showpost.php?p=10746225&amp;postcount=1</li>
<li>or search google <em>install adb ubuntu</em></li>
</ul>
<p>When you connect the Galaxy Nexus with the USB cable and run <em>adb devices </em>you&#8217;ll something with many question marks. This can be easily repaired by adding a line to udev rules: edit (as root or with sudo) the file <em>/etc/udev/rules.d/99-android.rules</em> and add</p>
<pre>SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="plugdev"</pre>
<p>then restart udev (<em>sudo service udev restart</em>).  Now, pay attention:</p>
<ol>
<li>run <em>adb kill-server</em></li>
<li>pull the phone out</li>
<li>on the phone, under settings, developer options, tick <em>USB debugging</em></li>
<li>insert the cable again</li>
<li>run <em>adb devices</em></li>
</ol>
<p>If everything is ok, you should see your phone listed WITHOUT ?????:</p>
<pre style="padding-left: 30px"> adb devices
 * daemon not running. starting it now on port 5037 *
 * daemon started successfully *
 List of devices attached
 01498B3016013017    device</pre>
<p>Why is all this adb stuff usefull? Just run <em>adb help</em> and you&#8217;ll see:</p>
<ul>
<li>adb shell ls -la # list files</li>
<li>adb push &lt;local&gt; &lt;remote&gt; # copy file/dir to device</li>
<li>adb pull &lt;remote&gt; [&lt;local&gt;] # copy file/dir from device</li>
<li>adb install file.apk # push this file and install it (how can you otherwise do this if you don&#8217;t have a file manager and the market isnt setuped yet?)</li>
</ul>
<p>In the next article I&#8217;ll describe how I have managed to setup <em>MTP</em>, but until then you can start copying files with adb push/pull <img src='http://tech.onesto.info/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  One last thing here, I wonder if a <em>fuse-adb</em> would be usefull.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.onesto.info/2012/02/13/galaxy-nexus-and-ubuntu-10-04-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

