Sunday, June 16, 2013

Get Your Galaxy S3 Working With UBUNTU 12.04 +





ES File Explorer
Ever since I bought my Galaxy SIII, about a year ago, I've been trying to get it to work with Ubuntu with limited success.  I'd mostly given up on getting the phone to connect through the USB cable because I'd found a great Android App that connected to my Ubuntu Box through WiFi and SMB File Shares.

That program is called ES File Explorer and is a very useful, free, Android App.  It will connect to Ubuntu SMB Shares, Window Workgroup Shares, Windows Domain Shares, FTPs and Cloud Storage Services (Gdrive, Box, DropBox, and even SkyDirve) allowing file transfers between your portable device (phone) and your remote storage options.  I highly recommend it as an Android File Manager.

Well I thought I'd try to get my Galaxy S3 to connect with the USB cable again.  Here's the problem, Android 4 + uses MTP protocol (Media Transfer Protocol) instead of just mounting as a removable drive (like a USB Thumb Drive or Camera SD Card).  The MTP protocol was created by Microsoft so we can blame them :-)

Here's what we need to do, we need to get Ubuntu to use the MTP protocol.  We will need to use GVFS, the Gnome Virtual File System, which is built into Ubuntu 13.04 (I think) but has been backported to Ubuntu 12.04 and 12.10.  Lets Add GVFS.

1.  Open a Terminal Window

2.  TYPE   sudo add-apt-repository ppa:langdalepl/gvfs-mtp (hit enter)

3.  TYPE   sudo apt-get update (hit enter)

4.  TYPE  sudo apt-get upgrade (hit enter)

5.  Reboot your Computer.  I REPEAT, REBOOT YOUR COMPUTER !!!

PHONE CHANGES

6.  Turn the USB Debugging Mode ON in your Android Phone/Device.
      a.  On your phone/device goto SETTINGS.
      b.  Scroll down to DEVELOPER OPTIONS and select it.
      c.  About the 4th item down will be a check block labeled USB DEBUGGING
      d.  Check USB DEBUGGING (turn it on)

Done!  Plug your Android 4 + Device into your Ubuntu 12.04 + box and you should now be able to access your Android Device with Nautilus (File Manager).

If your phone memory card doesn't show up, make sure it's on and UNLOCKED. (enter your pass code while your phone is connected)  

NOTE:  Although I've used these steps to connect a Samsung Galaxy S3 on the Sprint Network running Android 4.1.2 to an Ubuntu 12.04 box, this method should work with other Android 4+ devices  like tablets (Nexus 7, 10s) and other Android 4+ phones (HTC One, etc...) and will work on Ubuntu 12.10.  The only thing is, this is about the 3rd time I've tried to do this and I did not Undo the other attempts before trying this.  The other attempts got my phone to show up in Nautilus and listed the file structure but not any files and did not allow file transfers. Some of the prior attempts may have changed things that I did not list here. 



7 comments:

Mokrayz said...

Thank Freakin You!!! Ive been searching and trying my butt off to get this to work. One method I tried even messed up my Ubuntu and had to install again. Cant believe it was so simple. Thank you again!!!

Jeff M. said...

MOKRAYZ: I had the same problem trying to get tablets and phones to work with Ubuntu. I figured I couldn't have been the only one having problems so when I finally figured it out, I had to share.

Unknown said...

working on Mint Maya with my Samsung Note 2 - many thanks

Unknown said...

working on Mint Maya with my Samsung Note 2 - many thanks

Enos Straitt said...

Did this get fixed on more current versions of Ubuntu?

Camilo Rada said...

Awesome!! works like charm! thanks

Anonymous said...

Thanx after wasting all my morning searching finally i found your page many thanks