nexus / 未分类 · 2014年3月12日

How To Mount The Google Nexus 5 on Ubuntu

Complete Guide to Mount Google Nexus 5 on Ubuntu:
sudo add-apt-repository ppa:langdalepl/gvfs-mtp
sudo apt-get update

1. Enable Developer options and enable USB debugging.
2. Install necessary MTP modules to your computer:
sudo apt-get install mtp-tools mtpfs
3. Configure 51-android.rules
sudo gedit /etc/udev/rules.d/51-android.rules
paste the following at the end of the file (if the file does not exist then just paste):
#– Nexus 5
evan@evan-laptop:~$ lsusb
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 006: ID 18d1:4ee2 Google Inc.
so
evan@evan-laptop:~/ cat /etc/udev/rules.d/51-android.rules
SUBSYSTEM==”usb”, ATTR{idVendor}==”18d1", MODE=”0666"
4. Make the file executable:
sudo chmod +x /etc/udev/rules.d/51-android.rules
5. Restart udev
sudo service udev restart
6. Create mount point and set permissions
sudo mkdir /media/nexus5
sudo chmod 755 /media/nexus5

7. Plug in the Nexus 5 and make sure MTP is enabled.
8. Paste following command whenever you PLUG-IN nexus5
sudo mtpfs -o allow_other /media/nexus5
9. When you have completed your work you must unmount:
sudo umount /media/nexus5
Note:
Repeat step8 every time you connect your nexus to your ubuntu OS and then step9 when you are done completing your work.
from http://www.omgubuntu.co.uk/2013/06/mount-nexus-4-on-ubuntu