Bluetooth - How to browse files on a device?
- Create a folder in `/media/mountpoint with root rights
- Install
obexfs
- pair the phone with the PC
Get the device MAC and mount it with
obexfs
:sudo mkdir /media/mountpoint sudo apt-get install obexfs hcitool scan
Scanning ...
8F:77:17:77:44:16 My Android Phone
obexfs -b 8F:77:17:77:44:16 /mountpoint
To unmount the device:
fusermount -u /mountpoint
ok then try this:
test before, if your usb dongle was recognized you test it with this command:
lsusb | grep Bluetooth
if you get this message, its successfuly recognized:
Bus 003 Device 004: ID 1310:0001 Roper Class 1 Bluetooth Dongle
then install an another browser for ubuntu:
sudo apt-get install bluez-utils libopenobex1 bluez-tools
after the installation, you must restart the bluetooth dongle with this command:
sudo /etc/init.d/bluetooth restart
or with this command
sudo service bluetooth restart
Details of the Bluetooth device is obtained with the command:
hciconfig --all
if all is ok, install bluetooth applet
Have a look to https://wiki.archlinux.org/index.php/Blueman and install the packages obexftp and obexfs.
Mounting Bluetooth devices
The instructions below describe a method for using different file managers with Blueman. The examples in this section focus on Thunar. If you are using a different file manager, substitute thunar with the name of the file manager you are using.
Create a file obex_thunar.sh
with the following content:
#!/bin/bash
[ ! -d ~/Bluetooth ] && mkdir ~/Bluetooth
fusermount -u ~/Bluetooth
obexfs -b $1 ~/Bluetooth
thunar ~/Bluetooth
Now you will need to move the script to an appropriate location (e.g., /usr/local/bin
). After that, mark it as executable with
chmod +x /usr/local/bin/obex_thunar.sh
The last step is to change the line in
Blueman tray icon → Local Services → Transfer → Advanced
to obex_thunar.sh %d
. Done.