Accessing photos and music in the Mobile Phone Ubuntu Linux
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:
- sudo sh-c "echo deb http://repository.debuntu.org/ dapper multiverse>>/etc/apt/sources.list"
- sudo apt-get update
- sudo apt-get upgrade
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:
- sudo apt-get remove libopenobex-1.0-0 # remove the version that comes with the dapper
- sudo dpkg-i *. deb # install the three packages downloaded
- sudo mknod-m 666 /dev/fuse c 10 229
- sudo gedit /etc/rc.local
- mknod-m 666 /dev/fuse c 10 229
Testing
Connect the phone. Run the command (in the terminal):
- Obexftp-u 0-l # L tiny
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:
- mkdir /media/nokia
- sudo chmod 777 /media/nokia
- sudo sh-c "echo obexfs #-u0 /media/nokia fuse defaults, user 0 0>>/etc/fstab"
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