特殊:Badtitle/NS100:BluetoothSetup
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/BluetoothSetup }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/af | • {{#if: UbuntuHelp:BluetoothSetup|Afrikaans| [[::BluetoothSetup/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/ar | • {{#if: UbuntuHelp:BluetoothSetup|العربية| [[::BluetoothSetup/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/az | • {{#if: UbuntuHelp:BluetoothSetup|azərbaycanca| [[::BluetoothSetup/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/bcc | • {{#if: UbuntuHelp:BluetoothSetup|جهلسری بلوچی| [[::BluetoothSetup/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/bg | • {{#if: UbuntuHelp:BluetoothSetup|български| [[::BluetoothSetup/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/br | • {{#if: UbuntuHelp:BluetoothSetup|brezhoneg| [[::BluetoothSetup/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/ca | • {{#if: UbuntuHelp:BluetoothSetup|català| [[::BluetoothSetup/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/cs | • {{#if: UbuntuHelp:BluetoothSetup|čeština| [[::BluetoothSetup/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/de | • {{#if: UbuntuHelp:BluetoothSetup|Deutsch| [[::BluetoothSetup/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/el | • {{#if: UbuntuHelp:BluetoothSetup|Ελληνικά| [[::BluetoothSetup/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/es | • {{#if: UbuntuHelp:BluetoothSetup|español| [[::BluetoothSetup/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/fa | • {{#if: UbuntuHelp:BluetoothSetup|فارسی| [[::BluetoothSetup/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/fi | • {{#if: UbuntuHelp:BluetoothSetup|suomi| [[::BluetoothSetup/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/fr | • {{#if: UbuntuHelp:BluetoothSetup|français| [[::BluetoothSetup/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/gu | • {{#if: UbuntuHelp:BluetoothSetup|ગુજરાતી| [[::BluetoothSetup/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/he | • {{#if: UbuntuHelp:BluetoothSetup|עברית| [[::BluetoothSetup/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/hu | • {{#if: UbuntuHelp:BluetoothSetup|magyar| [[::BluetoothSetup/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/id | • {{#if: UbuntuHelp:BluetoothSetup|Bahasa Indonesia| [[::BluetoothSetup/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/it | • {{#if: UbuntuHelp:BluetoothSetup|italiano| [[::BluetoothSetup/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/ja | • {{#if: UbuntuHelp:BluetoothSetup|日本語| [[::BluetoothSetup/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/ko | • {{#if: UbuntuHelp:BluetoothSetup|한국어| [[::BluetoothSetup/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/ksh | • {{#if: UbuntuHelp:BluetoothSetup|Ripoarisch| [[::BluetoothSetup/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/mr | • {{#if: UbuntuHelp:BluetoothSetup|मराठी| [[::BluetoothSetup/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/ms | • {{#if: UbuntuHelp:BluetoothSetup|Bahasa Melayu| [[::BluetoothSetup/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/nl | • {{#if: UbuntuHelp:BluetoothSetup|Nederlands| [[::BluetoothSetup/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/no | • {{#if: UbuntuHelp:BluetoothSetup|norsk| [[::BluetoothSetup/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/oc | • {{#if: UbuntuHelp:BluetoothSetup|occitan| [[::BluetoothSetup/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/pl | • {{#if: UbuntuHelp:BluetoothSetup|polski| [[::BluetoothSetup/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/pt | • {{#if: UbuntuHelp:BluetoothSetup|português| [[::BluetoothSetup/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/ro | • {{#if: UbuntuHelp:BluetoothSetup|română| [[::BluetoothSetup/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/ru | • {{#if: UbuntuHelp:BluetoothSetup|русский| [[::BluetoothSetup/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/si | • {{#if: UbuntuHelp:BluetoothSetup|සිංහල| [[::BluetoothSetup/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/sq | • {{#if: UbuntuHelp:BluetoothSetup|shqip| [[::BluetoothSetup/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/sr | • {{#if: UbuntuHelp:BluetoothSetup|српски / srpski| [[::BluetoothSetup/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/sv | • {{#if: UbuntuHelp:BluetoothSetup|svenska| [[::BluetoothSetup/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/th | • {{#if: UbuntuHelp:BluetoothSetup|ไทย| [[::BluetoothSetup/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/tr | • {{#if: UbuntuHelp:BluetoothSetup|Türkçe| [[::BluetoothSetup/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/vi | • {{#if: UbuntuHelp:BluetoothSetup|Tiếng Việt| [[::BluetoothSetup/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/yue | • {{#if: UbuntuHelp:BluetoothSetup|粵語| [[::BluetoothSetup/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/zh | • {{#if: UbuntuHelp:BluetoothSetup|中文| [[::BluetoothSetup/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/zh-hans | • {{#if: UbuntuHelp:BluetoothSetup|中文(简体)| [[::BluetoothSetup/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothSetup | UbuntuHelp:BluetoothSetup | {{#if: | :}}BluetoothSetup}}/zh-hant | • {{#if: UbuntuHelp:BluetoothSetup|中文(繁體)| [[::BluetoothSetup/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:BluetoothSetup|:BluetoothSetup|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :BluetoothSetup/zh | | {{#ifexist: BluetoothSetup/zh | | {{#ifeq: {{#titleparts:BluetoothSetup|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:BluetoothSetup|1|-1|}} | zh | | }}
Introduction
Bluetooth is finally emerging as a robust and widely supported local area communications technology for short-distance wireless data transfer. Bluetooth is being used for communications with cellphones, cameras, headsets and microphones, keyboards, mice, PDA's and storage devices.
See also BluetoothRemoteControl and BluetoothAudio on Ubuntu.
Devices
A lot of newer laptops come with Bluetooth support built right in. If you are using a desktop or do not have Bluetooth support built in, you can use a USB Bluetooth dongle to get Bluetooth support.
A list of Bluetooth devices supported under Linux is listed here. If your device has an HCI version listed, it should work under Linux.
Installation and Configuration
For Gutsy Gibbon (7.10) most of the instuctions below are obsolete. For 7.10, just plug in your supported adapter and an icon appears in the top right. Right click to setup your preferences. Devices will auto connect to your PC and you can setup security as you connect each device, eg your phone.
To send files to your phone, in synaptic, install gnome-bluetooth. It will be in the accessories menu, click it to run it. Now sending a file is as easy as right clicking the file and select Send-to. To make this run every time you re-boot, select System-->Preferences--Sessions. Add a Startup program. Call it, lets say, "Bluetooth File Transfer" and in the Command box, enter "gnome-obex-server". Click on OK.
Follow the text below for Version 7.04 or earlier or for facilities that this small section does not add.
Open up a terminal window, and install the requisite packages and their dependencies:
sudo apt-get install bluez-utils
Then, connect your Bluetooth device if you are using one. Restart the Bluetooth services by doing:
sudo /etc/init.d/bluez-utils restart (On some machines - 7.04 feisty at least - it may be sudo /etc/init.d/bluetooth restart)
Verify that your Bluetooth device has been detected, and the appropriate modules loaded by viewing the lsusb (in case of usb device) output.
lsusb output:
Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Also, view the output of the command hcitool dev which will give you a listing of Bluetooth devices on your computer.
hcitool output:
Devices: hci0 00:11:95:00:1A:CF
{i} Your Bluetooth device will have a different id.
If you get all zeros, then try restarting the bluez-utils service and try again.
Setup Devices
Find Device Addresses
To connect to a Bluetooth device, you will need to find the address of the device. Make the device discoverable (look for a "Connect" button on many keyboards and mice or look in the device's manual) and then search for the device with this command:
sudo hidd --search (If that command doesn't work, try this one:) hcitool scan
Each device should have its own address in a aa:bb:cc:dd:ee:ff format.
Hint: If no devices are being shown and you are using Edgy Eft (6.10), you may try
sudo hciconfig hci0 inqmode 0
See bug #70718. If this helps, you may add the hciconfig command (without "sudo") to your /etc/rc.local file for a permanent workaround.
Connect Devices for Current Session Only
To temporarily connect to a device, use this command where 'aa:bb:cc:dd:ee:ff' is the address of the device you want to connect to:
sudo hidd --connect aa:bb:cc:dd:ee:ff
Your device should now be connected for the current session.
<!> If you get a "Can't create HID control channel: Connection refused"
error message, most likely the discovery period for the device timed out. Make the device discoverable and enter the above command again, but more quickly.
Connect Devices at Startup
To connect the device at startup every time, use the following commands to edit the configuration file:
sudo cp /etc/default/bluetooth /etc/default/bluetooth_backup sudo nano /etc/default/bluetooth
Look for the following line:
HIDD_ENABLED=0
Change it to:
HIDD_ENABLED=1
Next, look in the same file for a line similar to:
HIDD_OPTIONS="--master --server"
{i} You can leave the "--master" command or remove it, depending on the device. If you have problems with "--master", try removing it or vice versa.
Add additional "--connect" arguments for each device that you want connected at startup so that it looks like this:
HIDD_OPTIONS="--connect aa:bb:cc:dd:ee:ff --connect aa:bb:cc:dd:ee:ff --connect aa:bb:cc:dd:ee:ff --server"
Save the file.
Finally, add HIDP to /etc/modules:
echo hidp | sudo tee -a /etc/modules
Your Bluetooth devices should now be connected at startup.
Using devices as modems
Refer to page BluetoothDialup
Using audio devices
Refer to page BluetoothAudio
Comments
No mention of bluez-gnome??