Skip to content

Instantly share code, notes, and snippets.

@iraycd
Created April 22, 2013 18:41
Show Gist options
  • Save iraycd/5437429 to your computer and use it in GitHub Desktop.
Save iraycd/5437429 to your computer and use it in GitHub Desktop.
Connect an Android 4.0+ phone/tablet to Ubuntu
## Bootstrap for the ubuntu
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 ~/AndroidPhone
## Mouthing
go-mtpfs ~/AndroidPhone &
## Unmounting
fusermount -u ~/AndroidPhone
## The folder will appear in the home page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment