Index List

09 November 2007

Accessing Mobile Phone Ubuntu Linux


Accessing photos and music in the Mobile Phone Ubuntu Linux

Introduction

She was looking for a way to transfer the files (pictures, music, ringtones, etc.) of the cell for the pc and vice versa. Although it had not found anything in Linux for that. Until had seen the gnokii, but it only serves to synchronize the calendar. I have a Nokia 6230 connected via cable DKU-2 (usb). These instructions have been tested with this equipment. The linux is the Ubuntu Dapper - 6.06.

Update Package

The software that we use makes use of libfuse. But the libfuse which comes in Ubuntu Dapper is defasada therefore we have to update it. In the terminal, enter:
  1. sudo sh-c "echo deb http://repository.debuntu.org/ dapper multiverse>>/etc/apt/sources.list"
  2. sudo apt-get update
  3. sudo apt-get upgrade
That must update its package libfuse to version 2.5.3 or higher. For more information about this archive, please visit http://repository.debuntu.org

Adjusting the libusb

To access the phone via cable DKU-2, it is necessary to root. To avoid this, and can access it as a normal user, we have to make a small change in the /etc/udev/rules.d/40-permissions.rules. In the terminal, enter:

sudo gedit /etc/udev/rules.d/40-permissions.rules
Look for a line containing:


SUBSYSTEM == "usb_device", MODE = "0664"


And a substitute for:


SUBSYSTEM == "usb_device", GROUP = "plugdev", MODE = "0664" Save and

close the gedit.


Installing the packages

The software that we use is the openOBEX, which signal, already exists in Ubuntu Dapper. The problem is that the version that comes with it is too old and there is no support for the newest models of mobile phone. It is necessary then download the most current version of openOBEX and compile. To avoid the retrabalho, I did this and gerei three files. Deb, which can be installed without major difficulties. Baixem the files to follow in a temporary folder: In the terminal, go to the folder where you saved and enter:
  1. sudo apt-get remove libopenobex-1.0-0 # remove the version that comes with the dapper
  2. sudo dpkg-i *. deb # install the three packages downloaded
Execute the following commands in the terminal:
  1. sudo mknod-m 666 /dev/fuse c 10 229
  2. sudo gedit /etc/rc.local
In that opened editor, add this line at the end of the file (before the line "exit 0" if any):
  1. mknod-m 666 /dev/fuse c 10 229
Save and close the file.

Testing

Connect the phone. Run the command (in the terminal):
  1. Obexftp-u 0-l # L tiny
He should return an exit (XML) of the folders inside the cell. In my case, the output was as follows:

If USB setup permissions does not work in udev or run as superuser.
Connecting done ...
Receiving "(null)" ... \
Done
Disconnecting ... done

If in your case the output was similar, then tá everything right. Let us for the next step. Otherwise, you should review the steps. Can I ask, too. Inside of my possibilities can help.


Terminating

Finally, we adjust the fstab so that we can mount a "virtual disk" with the contents of the cell. In the terminal, enter:
  1. mkdir /media/nokia
  2. sudo chmod 777 /media/nokia
  3. sudo sh-c "echo obexfs #-u0 /media/nokia fuse defaults, user 0 0>>/etc/fstab"
Ready! Take a look at the menu or Local Computer. It must have appeared an icon for the folder Nokia. Between it and be happy!

Remarks
  • Could not eject the "virtual disk" from the gnome, or even by umount. The solution is the command (the terminal): fusermount-u /media/nokia
  • Through the nautilus unable to copy the files from the pc for the phone, he always says that there is no disk space. The way was copying the terminal.
  • These procedures were tested using a Nokia 6230 and the cable DKU-2