Ubuntu – Ubuntu Nexus 7 as USB device does not work

automountfusemtpnexus-7ubuntu-touch

I connected USB cable from Nexus 7 running Ubuntu to my Ubuntu laptop but there is no new USB device found when I run lsusb. Is this function supported?

Best Answer

A blog post by Bilal Akhtar has a supposedly more reliable way to connect to Android 4.0+ devices from Ubuntu. The steps are summarized here:

  1. Install the go-mtpfs library, which you'll be using to connect:

    sudo apt-get install golang fuse git-core libmtp-dev libfuse-dev
    sudo adduser $USER fuse
    mkdir /tmp/go 
    GOPATH=/tmp/go go get github.com/hanwen/go-mtpfs
    sudo mv /tmp/go/bin/go-mtpfs /usr/bin/
    mkdir ~/MyAndroid
    

    Note: At some point during installation, a screen may come up in your terminal asking if you want to share information about public Go packages you install with the developers. Feel free to answer this question however you want.

  2. Mount your Nexus 7 or whatever using this command after plugging it into your USB port:

    go-mtpfs ~/MyAndroid &
    
  3. When you are finished, unmount your device by using this command:

    fusermount -u ~/MyAndroid
    

I would also like to thank James Gifford for pointing this article out to me on Google+. ;)