Send and receive files via Bluetooth
Using Bluetooth, you can transfer data to basically any other desktop or mobile (particularly phones) device having a Bluetooth interface. Doing so in Ubuntu is a simple operation once you’re finished with the configuration.
Configuration
- First install the required packages from the shell by executing:
sudo apt-get install gnome-bluetooth bluez-utils - Make sure the Bluetooth adapter is enabled on your machine. That is make sure your USB adapter is connected, or the Bluetooth switch on your laptop is set on. To be certain, you can execute
hcitool devwhich will tell you if any Bluetooth interfaces exist on your machine. - Now restart the Bluetooth interface by executing:
sudo /etc/init.d/bluetooth restart - Enable the
Bluetooth File Sharingservice by simply executing it from the Gnome menu. It can be found underApplications -> Accessories -> Bluetooth File Sharing. This will startgnome-obex-serverwhich allows you to receive files as well as facilitates the sending operation.

Receiving a file
Once the configuration completed, you’ll be able to receive files via Bluetooth.
- You just need to make sure your interface is visible so that other devices can find you. Visibility can be configured in the Bluetooth Preferences which can be found under
System -> Preferences -> Bluetooth Preferences. Set theMode of operationtoVisible and connectable for other devices. - Your machine is now discoverable, and external devices are able to send you data. Once you receive a file, a window will popup to notify you this is the case.

- You are advised to change back the visibility settings once the transmission is complete.
Sending a file
Bluetooth File Sharing makes it quite easy to send data accross Bluetooth. Simply right click on the file you wish to send, then select Send to.... In the new window:
- Set the
Send asfield toBluetooth (OBEX Push) - Set the
Send tofield to destination Bluetooth device - Click
Sendand you’re done!

Alternative method to send files using the shell:
- Execute
hcitool scanto scan for Bluetooth devices within range. Something similar will be displayed:
Scanning ...
00:11:24:B1:11:05 iMac G5
00:11:9F:BE:47:CB michael-phone
The hexadecimal series (eg.00:11:9F:BE:47:CB) displayed near the device name (eg.michael-phone) is the mac address associated with the Bluetooth device. - Send the file by executing the following (replace the file and the mac address appropriately):
gnome-obex-send sample/file.txt --dest=00:11:9F:BE:47:CB


December 14th, 2008 15:25
Спасибо классная статья
January 29th, 2009 09:22
Can this be also done in Ubuntu Server 8.10?