About Me

header ads

How to connect Android smartphone Ice Cream Sandwich to Ubuntu to browse files and for File Access!


How to connect our Android to Ubuntu? One of the many innovations Ice Cream Sandwich we will see soon on many smartphones,like the Samsung Galaxy Nexus ,Is the transition from USB Mass Storage Protocol to the Media Transfer Protocol (MTP) making it impossible to browse the files of our Android, simply connecting it via USB.

Before we can do this we need make a simple process that will simplify the future for ever any connection ... let's see together how to do it.

Please note that Only if you have a Android Ice Cream Sandwich device You can perform this procedure.

Let's start!
  • Let us go into the terminal and type
sudo apt-get install mtp-tools mtpfs
  • We connect our Android smartphone, open the center of the tray and select MTP option
  • Still in terminal type
mtp-detect | grep idVendor
mtp-detect | grep idProduct
  • Numbers will appear, the two different ID that we need mark on a sheet because there will be used
  • Dial me even g
ksu gedit /etc/udev/rules.d/51-android.rules
  • Will open Gedit a screen, to edit a text file
  • We type in the text SUBSYSTEM=="usb", ATTR{idVendor}=="VENDORID", ATTR{idProduct}=="PRODUCTID", MODE="0666"
  • This writing must be placed in a 'single line and instead of ProductID and VendorID, we insert the numbers previously marked
  • Save the file and disconnect your smartphone
  • Termnale by type (by entering the name of your device instead of GalaxyNexus and in place of YOURUSERNAME enter the name that we use with Ubuntu)
sudo service udev restart
sudo mkdir /media/GalaxyNexus sudo chmod a+rwx /media/GalaxyNexus
sudo adduser YOURUSERNAME fuse
  • We type
gksu gedit /etc/fuse.conf
  • This will open a new text file Gedit: Here we remove the "#" has to 'start of the' last line, "#user_allow_other" will become "user_allow_other"
  • Close and restart the pc
  • After the 'power, we type in the terminal
echo “alias android-connect=\”mtpfs -o allow_other /media/GalaxyNexus\”” >> ~/.bashrcecho “alias android-disconnect=\”fusermount -u /media/GalaxyNexus\”” >> ~/.bashrcsource ~/.bashrc
  • Now connect your smartphone, and type Android-connect
  • To disconnect we type Android-disconnect
  • From now on, every time we have to connect and disconnect and the our Android smartphones, simply connect it via USB and type these two commands, respectively
A procedure is certainly not fast, but once made, we will forever!

Post a Comment

0 Comments