特殊:Badtitle/NS100:BluetoothDialup/zh:修订间差异
第283行: | 第283行: | ||
* Re-enable <code><nowiki>NetworkManager</nowiki></code>'s connections, if you use <code><nowiki>NetworkManager</nowiki></code><br>如果你使用 <code><nowiki>NetworkManager</nowiki></code> 的話,將 <code><nowiki>NetworkManager</nowiki></code> 的連接再次設為可用 | * Re-enable <code><nowiki>NetworkManager</nowiki></code>'s connections, if you use <code><nowiki>NetworkManager</nowiki></code><br>如果你使用 <code><nowiki>NetworkManager</nowiki></code> 的話,將 <code><nowiki>NetworkManager</nowiki></code> 的連接再次設為可用 | ||
* Re-enable any other connections, as needed<br>如果需要的話,將其它的連接再次設為可用 | * Re-enable any other connections, as needed<br>如果需要的話,將其它的連接再次設為可用 | ||
Ab fab my godloy man. | |||
2011年7月5日 (二) 03:09的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/BluetoothDialup }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/af | • {{#if: UbuntuHelp:BluetoothDialup|Afrikaans| [[::BluetoothDialup/zh/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/ar | • {{#if: UbuntuHelp:BluetoothDialup|العربية| [[::BluetoothDialup/zh/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/az | • {{#if: UbuntuHelp:BluetoothDialup|azərbaycanca| [[::BluetoothDialup/zh/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/bcc | • {{#if: UbuntuHelp:BluetoothDialup|جهلسری بلوچی| [[::BluetoothDialup/zh/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/bg | • {{#if: UbuntuHelp:BluetoothDialup|български| [[::BluetoothDialup/zh/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/br | • {{#if: UbuntuHelp:BluetoothDialup|brezhoneg| [[::BluetoothDialup/zh/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/ca | • {{#if: UbuntuHelp:BluetoothDialup|català| [[::BluetoothDialup/zh/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/cs | • {{#if: UbuntuHelp:BluetoothDialup|čeština| [[::BluetoothDialup/zh/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/de | • {{#if: UbuntuHelp:BluetoothDialup|Deutsch| [[::BluetoothDialup/zh/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/el | • {{#if: UbuntuHelp:BluetoothDialup|Ελληνικά| [[::BluetoothDialup/zh/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/es | • {{#if: UbuntuHelp:BluetoothDialup|español| [[::BluetoothDialup/zh/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/fa | • {{#if: UbuntuHelp:BluetoothDialup|فارسی| [[::BluetoothDialup/zh/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/fi | • {{#if: UbuntuHelp:BluetoothDialup|suomi| [[::BluetoothDialup/zh/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/fr | • {{#if: UbuntuHelp:BluetoothDialup|français| [[::BluetoothDialup/zh/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/gu | • {{#if: UbuntuHelp:BluetoothDialup|ગુજરાતી| [[::BluetoothDialup/zh/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/he | • {{#if: UbuntuHelp:BluetoothDialup|עברית| [[::BluetoothDialup/zh/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/hu | • {{#if: UbuntuHelp:BluetoothDialup|magyar| [[::BluetoothDialup/zh/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/id | • {{#if: UbuntuHelp:BluetoothDialup|Bahasa Indonesia| [[::BluetoothDialup/zh/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/it | • {{#if: UbuntuHelp:BluetoothDialup|italiano| [[::BluetoothDialup/zh/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/ja | • {{#if: UbuntuHelp:BluetoothDialup|日本語| [[::BluetoothDialup/zh/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/ko | • {{#if: UbuntuHelp:BluetoothDialup|한국어| [[::BluetoothDialup/zh/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/ksh | • {{#if: UbuntuHelp:BluetoothDialup|Ripoarisch| [[::BluetoothDialup/zh/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/mr | • {{#if: UbuntuHelp:BluetoothDialup|मराठी| [[::BluetoothDialup/zh/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/ms | • {{#if: UbuntuHelp:BluetoothDialup|Bahasa Melayu| [[::BluetoothDialup/zh/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/nl | • {{#if: UbuntuHelp:BluetoothDialup|Nederlands| [[::BluetoothDialup/zh/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/no | • {{#if: UbuntuHelp:BluetoothDialup|norsk| [[::BluetoothDialup/zh/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/oc | • {{#if: UbuntuHelp:BluetoothDialup|occitan| [[::BluetoothDialup/zh/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/pl | • {{#if: UbuntuHelp:BluetoothDialup|polski| [[::BluetoothDialup/zh/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/pt | • {{#if: UbuntuHelp:BluetoothDialup|português| [[::BluetoothDialup/zh/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/ro | • {{#if: UbuntuHelp:BluetoothDialup|română| [[::BluetoothDialup/zh/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/ru | • {{#if: UbuntuHelp:BluetoothDialup|русский| [[::BluetoothDialup/zh/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/si | • {{#if: UbuntuHelp:BluetoothDialup|සිංහල| [[::BluetoothDialup/zh/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/sq | • {{#if: UbuntuHelp:BluetoothDialup|shqip| [[::BluetoothDialup/zh/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/sr | • {{#if: UbuntuHelp:BluetoothDialup|српски / srpski| [[::BluetoothDialup/zh/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/sv | • {{#if: UbuntuHelp:BluetoothDialup|svenska| [[::BluetoothDialup/zh/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/th | • {{#if: UbuntuHelp:BluetoothDialup|ไทย| [[::BluetoothDialup/zh/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/tr | • {{#if: UbuntuHelp:BluetoothDialup|Türkçe| [[::BluetoothDialup/zh/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/vi | • {{#if: UbuntuHelp:BluetoothDialup|Tiếng Việt| [[::BluetoothDialup/zh/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/yue | • {{#if: UbuntuHelp:BluetoothDialup|粵語| [[::BluetoothDialup/zh/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/zh | • {{#if: UbuntuHelp:BluetoothDialup|中文| [[::BluetoothDialup/zh/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/zh-hans | • {{#if: UbuntuHelp:BluetoothDialup|中文(简体)| [[::BluetoothDialup/zh/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BluetoothDialup | UbuntuHelp:BluetoothDialup | {{#if: | :}}BluetoothDialup/zh}}/zh-hant | • {{#if: UbuntuHelp:BluetoothDialup|中文(繁體)| [[::BluetoothDialup/zh/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:BluetoothDialup|:BluetoothDialup/zh|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :BluetoothDialup/zh/zh | | {{#ifexist: BluetoothDialup/zh/zh | | {{#ifeq: {{#titleparts:BluetoothDialup/zh|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:BluetoothDialup/zh|1|-1|}} | zh | | }}
原文出处:
原文作者:
授权许可:
翻译人员:
校正人员:
贡献人员:
适用版本:
文章状态:等待校正
This page describes how to configure PPP dialup through a Bluetooth-compatible mobile phone. The emphasis is on using GPRS/EDGE services. These instruction were compiled and tested on Ubuntu 6.06 (Dapper Drake) on an IBM ThinkPad T40p
with a Samsung T809 phone using T-Mobile's "Unlimited Internet VPN" plan.
本页介绍如何在一个具有蓝牙功能的移动电话上面配置PPP拨号。这里主要的上网方式为GPRS/EDGE。以下介绍都是通过 IBM ThinkPad T40p
撰写以及测试的,上网方式为通过三星的T809利用T-Mobile的“无限制因特网虚拟私有网络”。
Configure mobile phone data profiles(配置手机数据档案)
Getting the data access profile(得到数据访问档案)
T-Mobile
T-Mobile accounts generally require separate data profiles for WAP and general data access. (Some people have had success running a regular data connection over the WAP profile.) Getting access to general data access requires a data access plan. Currently, the "Unlimited Internet VPN" is the best deal, as it costs the same as the "Unlimited Internet" plan but gives you a real, public IP address. Incoming connections are blocked on any T-Mobile data plan. T-Mobile does not seem to offer metered data plans anymore.
T-Mobile用户通常需要分别设置WAP以及普通的数据连接。(有些人可以成功通过他们的WAP设置来连接普通的网络连接)普通的数据连接需要一个数据连接的套餐。目前,“无限制因特网虚拟私有网络”是最好的选择。它的费用只比“可无限制使用的因特网”贵出少许,但却可以拥有一个真实的公网IP。外部发动的连接在T-Mobile的一些数据套餐上是不被允许的。T-Mobile目前没有提供有限制流量的数据套餐。
There are two ways to get the data service profile on your phone. Manual configuration is probably faster and better.
在手机上设置数据连接有两种方式。手动配置通常又快又好。
T-Mobile
T-Mobile用户
Automatic 自动设置
T-Mobile can send the data services profile directly to your phone via SMS. Only the "wireless data" customer service people can send the data services profile to your phone. The regular service people can only send the WAP data profile, which will not work for general use. You will have to be transferred once or twice to reach the wireless data division. Once there, simply request that the data service profile for your plan be sent to your phone. (Of course, you'll need to be signed up for a data plan.)
T-Mobile可以通过短信向你的手机发送数据服务的配置。只有“无线数据”的客户才可以发送数据服务配置给你的手机。普通的客户只能收到WAP的数据配置。而这并不能用于通常的网络。你应当转换到可以接受无线数据连接的基站。只有这样,你才可以通过基本的请求以收到数据服务配置。(当然,你应当事先申请一个数据服务套餐。)
Once you receive the plan information, your phone will ask you where you want to store it. T-Mobile uses profile 1 for the WAP profile, so don't overwrite it. I recommend using profile 2, as it's usually the first empty profile.
當你收到套餐信息的時候,你的手機會詢問你是否要存儲它。T-Mobile 的WAP設置選項是第一類設置選項。所以你不要覆寫它。我建議你使用第二類設置,它通常是空選項中的第一個。
After storing the data services profile, your phone will probably set it as the default. This will probably cause your WAP (T-Zones/T-Mobile Internet) to fail for your on-phone browser. Set the WAP data profile (profile 1) to default fix this. See the configuration section below for your phone's brand. Setting the default profile is usually fairly obvious once you've reach the data services configuration screen.
在儲存數據服務設置之後,你的手機通常會將其作為默認設置。這很可能使你手機上瀏覽囂的WAP (T-Zones/T-Mobile Internet)變成不可用。將WAP數據選項(選項1)設為默認可以修復這個問題。查看設置中關於你的手機品牌的部分下面。在你使用數據服務設置界面的時候設置默認選項通常是不錯的選擇。
Manual(手動設置)
Access the data profiles configuration for your phone's brand using the instructions under the configuration section below. The order and name for settings is for a Samsung T809. These settings are modified from the SMS T-Mobile sends Unlimited Internet VPN plan users. By adding the DNS and proxy information, you can use this profile for either T-Zones or general web browsing.
你可以通過設置部分以下的說明來查看你擁有的該品牌的手機的數據設置選項。下面是三星T809的設置選項。這些設置是由無限制的“无限制因特网虚拟私有网络”的用戶通過短信息方式收到的設置選項。通過加入DNS及代理信息,你可以在“T-Zones”及“常規網頁訪問”的套餐中使用它。
Use the following settings for the Unlimited Internet VPN plan:
“无限制因特网虚拟私有网络”套餐的設置
- Name:
T-Mobile VPN
- Home URL:
http://www.t-mobile.com
- Bearer:
GPRS only
- Proxy use:
Enable
- GPRS settings
- Proxy:
216.155.165.50
- Proxy Port:
8080
- DNS1:
216.155.175.105
- DNS2:
216.155.175.106
- APN:
internet3.voicestream.com
- Login ID: Empty
- Password: Empty
- Proxy:
Other companies(其它公司)
Call your mobile service provider and request information about data plans. Many charge by the megabyte, but unlimited plans are increasingly available. Most of the instruction for T-Mobile will probably apply.
向你的移動運營商要求提供關於數據套餐的相關信息。其中有些是根據流量計算費用的,但是無限制流量的套餐比較受歡迎。許多與T-Mobile相似的說明也會繼續適用。
Configuration(配置)
索尼愛立信 GSM
This is from my memory of using a T610, but it should apply to any Sony Ericsson phone. Choose the lower-left icon from the main menu. 這是我曾經使用T610的設置,但它應當也適用於部分索尼愛立信的手機。在主菜單中選擇左下角的圖標。
Samsung GSM(三星 GSM)
This is tested on a T809, but should apply to any Samsung GSM phone. Enter code *#87927#
from the main screen. Select "Current profile" to choose the default profile. Select "Profile settings" to manage profiles. 這在T809上測試通過,可能適合於部分三星的GSM的手機。在主屏幕中輸入號碼 *#87927#
。點擊“當前選項”選擇默認設置。選擇“選項設置”來修改選項。
Installing Bluetooth and dialup packages(安裝藍牙及撥號包)
- If you have the
ubuntu-desktop
package installed, you can skip to the next section
如果你已經安裝了ubuntu-desktop
,你可以跳過下一步。 - Otherwise, run the following at a shell prompt; this should install the basic Bluetooth and PPP packages
否則,在終端中運行下述命令;這將安裝基礎的藍牙及PPP包。
sudo apt-get install bluez-utils bluez-pin ppp
Listing Bluetooth devices(列出藍牙設備)
- Make your phone Bluetooth discoverable.
使你的电话藍牙可见 - Run the following at a shell prompt:
在終端中運行下述命令
hcitool scan
- Copy the MAC address (the text with the capital letters, numbers, and ':'s) somewhere convenient. You'll need it many times.
拷貝MAC地址(其中包含A-F,數字,及':' 號),你要在之後多次用到它。
Pairing(配對)
You can skip this section if you've already paired your phone with your computer. However, consider the final optional step, as your phone might otherwise nag you every time you use if for dialup.
如果你的電腦和你的手機的藍牙已經匹配過了。你可以跳過這一段。當然,這一步,是你的電腦和手機每次撥號連接都所必須的。
- Run the following, replacing your-phone-mac-address with the proper data
執行下面的命令,將”你手機的MAC地址“替換成你自己的.
sudo hcitool cc 你手機的MAC地址
- Run the following, replacing your-phone-mac-address with the proper data
執行下面的命令,將”你手機的MAC地址“替換成你自己的.
sudo hcitool auth 你手機的MAC地址
- If this command doesn't work, try the pairing instructions on other Bluetooth wiki pages; it seems 5.10 and older have issues with the PIN wrapper
如果這個命令不起作用,嚐試其它藍牙WIKI頁面上的配對說明; 5.10或是更老的版本可能需要PIN wrapper。 - Enter a numeric code into the dialog box that pops up
在彈出的對話框中輸入數字 - Accept the pairing from your phone handset
在你的手機中接受配對 - Enter the same number on your phone
在你的手機中輸入相同的數字 - Run the
hcitool auth your-phone-mac-address
command again if it fails
如果失敗的話請再次運行hcitool auth your-phone-mac-address
- You can remove your handset's Bluetooth discoverability now
現在你可以取消你手機的藍牙發現功能 - Some phones (notably Samsungs) require further authorization for certain Bluetooth activities, including dialup; consult your phone's user manual to avoid confirming your computer's dialup action on your phone every time
某些手機(特別是三星)需要當前藍牙活動的更多驗證。包括撥號; 請查閱你手機的用戶手冊以使得當你的電腦在你的手機上執行撥號行為的時候無需確認。
Configuring the rfcomm device(配置 rfcomm 驱动)
- Get the channel number for your phone's dialup service by running the following, replacing your-phone-mac-address with the proper data[[BR]運行下述命令以得到您手機撥號服務的頻道號。注:將“您手機的MAC地址”替換成實際值
sdptool browse 您手機的MAC地址
- Look under "Service Name: Dial-up Networking"
查看位於"Service Name: Dial-up Networking"下面的部分 - Under "Protocol Descriptor List:" and "RFCOMM", there should be a number after "Channel:"
在 "Protocol Descriptor List:" 及 "RFCOMM"下面,應該存在一個"Channel:",它後面跟著一個數字值 - Remember that number; you'll need it for the rfcomm configuration
將這個數值記下來,你將要在未來的 rfcomm 配置過程中用到它 - Run
運行命令
sudo gedit /etc/bluetooth/rfcomm.conf
- Paste the following into the file, replacing your-phone-mac-address and your-phone-rfcomm-channel with appropriate values
將下面的內容粘貼到文件中,記得將“您手機的MAC地址”及“您手機的 rfcomm 頻道號”替換成實際值
rfcomm0 { bind yes; device 您手機的MAC地址; channel 您手機的rfcomm頻道號; comment "Bluetooth PPP Connection"; }
- Save and close the
rfcomm.conf
file
保存並關閉rfcomm.conf
- Run the following, which will create the rfcomm0 device
運行下述命令,這將生成一個名為 rfcomm0 的設備
sudo /etc/init.d/bluez-utils restart
Configuring PPP(配置 PPP)
- Run the folloring
運行下述命令
sudo gedit /etc/ppp/peers/BluetoothDialup
- Paste the following into the file (the file should start out blank)
將下列內容粘貼到文件中(這個文件應該是一個空文件)
debug noauth connect "/usr/sbin/chat -v -f /etc/chatscripts/BluetoothDialup" usepeerdns /dev/rfcomm0 115200 defaultroute crtscts lcp-echo-failure 0
- Save and close the
BluetoothDialup
file
保存並關閉BluetoothDialup
文件 - Run the following
運行下列命令
sudo gedit /etc/chatscripts/BluetoothDialup
- Paste the following into the file (the file should start out blank), replacing your-apn-here with the APN from your data services profile (probably "internet3.voicestream.com" if you're on T-Mobile) and your-data-profile-number-here with the number you stored the profile into on the phone (probably 2)
將下列內容粘貼到文件中(這個文件應該是一個空文件),將“你的APN”替換成你數據服務設置選項中的APN(如果你是T-Mobile用戶,這個值通常是"internet3.voicestream.com")以及將“你的數據服務選項號”替換成你將要存儲在手機中的選項號(通常是2)
TIMEOUT 35 ECHO ON ABORT '\nBUSY\r' ABORT '\nERROR\r' ABORT '\nNO ANSWER\r' ABORT '\nNO CARRIER\r' ABORT '\nNO DIALTONE\r' ABORT '\nRINGING\r\n\r\nRINGING\r' '' \rAT OK 'AT+CGDCONT=2,"IP","你的APN"' OK ATD*99***你的數據服務選項號# CONNECT ""
- Save and close the
BluetoothDialup
file
保存並關閉BluetoothDialup
文件
Authorizing dialout(驗證撥號)
- Run the following at a shell prompt, replacing your-username-here with your username:
在終端模式中運行下述命令,記得將“你的用戶名”替換成你自己的用戶名:
sudo adduser 你的用戶名 dialout
- This concludes the one-time setup
這將會進行一次性設置
Connecting(連接)
Begin here on subsequent connections.
現在進行下一步的連接
- If you have
NetworkManager
installed, right-click the applet and uncheck "Enable Wireless"; this will keep it from hopping onto wireless networks and botching your dialup DNS and default route settings
如果你已經安裝了NetworkManager
,右擊圖標並將"Enable Wireless"的勾打掉; 這一步讓你不使用無線網絡而使用默認的DNS及網關。 - Run the following
運行下列命令
pon BluetoothDialup
- Wait about 30-60 seconds
等待大約30-60秒 - You should now be able to ping
ubuntu.com
; expect latencies of around one second for most GPRS services
你現在可以pingubuntu.com
; 注意多數GPRS服務的時延在一秒左右 - If pinging fails, see the troubleshooting section below
如果沒有ping通,請查閱下面的問題部分 - See the disconnect section below when you're finished using the connection
當你不需要繼續使用連接的時候,查閱下面的關閉連接部分
PPP and TCP/IP troubleshooting(PPP 與 TCP/IP 問題)
Try these troubleshooting sections in order.
在需要的時候嚐試這些問題部分
Using the correct data plan(使用正確的數據套餐)
- Check that you're indeed using a real data profile, as WAP-only profiles generally disallow pinging, instant messaging, file sharing, and some web browsing
確認你使用的是正確的數據選項,比如只使用WAP的選項通常不允許ping,即時通信,文件共享,以及一些網頁訪問 - Try setting the unrestricted data profile as your default data profile on your phone
嚐試在你的手機上將未暫住證的數據選項作為默認設置- This will only work if the profile has proper DNS settings
只有當你設置正確的DNS的時候它才能正常工作- If you use the T-Mobile automatic profile setup listed above, it will not have proper on-phone DNS settings
如果你使用上面據說的T-mobiler的自動選項的時候,它沒有設置正確的DNS - The manual method will work for T-Zones
這份手冊上所說的方法將適用於T-Zones
- If you use the T-Mobile automatic profile setup listed above, it will not have proper on-phone DNS settings
- Use the built-in WAP browser to test the profile
使用手機內置的瀏覽囂來測試選項- If it works, it's probably not your data plan (though it could be); continue troubleshooting below
如果它能夠正常工作,這可能不是你的數據套餐的問題(不然可能是);請繼續查閱下面的問題部分
- If it works, it's probably not your data plan (though it could be); continue troubleshooting below
- This will only work if the profile has proper DNS settings
PPP connection(PPP 連接)
- Monitor
/var/log/syslog
for dialup status information
使用/var/log/syslog
來查閱當前的撥號信息- The following indicates PPP success, where
xxx
s can be anything
下面的內容顯示正確的PPP,這裡的xxx
可以是任意內容
- The following indicates PPP success, where
xxx localhost pppd[xxx]: Script /etc/ppp/ip-up finished (pid xxx), status = 0x0
Solution if problem(解決方法)
- Make sure there's not a PPP connection with
rfcomm0
already in session; runpoff BluetoothDialup
to disconnect one in session
確信在rfcomm0
設備上沒有一個PPP連接;請運行poff BluetoothDialup
命令來斷開當前連接 - Find where the error is in either the chatscripts or peers file
尋找對話描述及連接文件中的錯誤- Consult other help sources and update this page
尋找其它幫助並更新這個頁面
- Consult other help sources and update this page
IP address configuration(IP 地址配置)
- Run
ifconfig
to check your PPP connection
運行ifconfig
來檢查你的PPP連接- The
ppp0
section should be as below, wherexxx
is anythingppp0
下面的內容應該像下面這樣,xxx
可以是任意內容
- The
ppp0 Link encap:Point-to-Point Protocol inet addr:xxx.xxx.xxx.xxx P-t-P:xxx.xxx.xxx.xxx Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:xxx errors:0 dropped:0 overruns:0 frame:0 TX packets:xxx errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:xxx RX bytes:xxx (xxx b) TX bytes:xxx (xxx b)
P-t-P:xxx.xxx.xxx.xxx
should match the address on the/var/log/syslog
linexxx localhost pppd[xxx]: remote IP address xxx.xxx.xxx.xxx
P-t-P:xxx.xxx.xxx.xxx
中的IP地址應當和/var/log/syslog
中的xxx localhost pppd[xxx]: remote IP address xxx.xxx.xxx.xxx
的IP地址相對應inet addr:xxx.xxx.xxx.xxx
should match the address on the/var/log/syslog
linexxx localhost pppd[xxx]: local IP address xxx.xxx.xxx.xxx
inet addr:xxx.xxx.xxx.xxx
中的IP地址應當和/var/log/syslog
中的xxx localhost pppd[xxx]: local IP address xxx.xxx.xxx.xxx
的IP地址相對應- If the addresses match, then your IP address configuration is probably fine
如果地址相同的話,你的IP地址配置一般是對的
Solution if problem(解決方法)
- If a
/var/log/syslog
line seems absent, try reconnecting viapoff BluetoothDialup
andpon BluetoothDialup
如果/var/log/syslog
中的內容是錯誤的,請運行poff BluetoothDialup
和pon BluetoothDialup
來重新連接 - Make sure you're using the right data profile on your phone
確信你在手機上使用的是正確的數據選項
Default route configuration(默認網關配置)
- Ping a valid public hostname on a connected computer, then (if it worked) try pinging the actual IP address from your PPP-connected computer
* 在一台已經連上網絡的電腦上Ping一個存在的公開域名,然後(如果可行的話)嚐試在你使用PPP連接的電腦上ping實際的IP地址- If it didn't work, try pinging a different hostname; some block pings
如果這個方法行不通,嚐試Ping其它的域名;有的域名不允許別人Ping它 - If this works, then your routing table is probably fine
如果這個方法可以正常工作,說明你的路由表一般是正確的
- If it didn't work, try pinging a different hostname; some block pings
- Check the routing table by running
route -n
通過運行route -n
命令來檢查路由表- Your routing table should look like the following, where
xxx
is anything
你的路由表應當看上去像下面的樣子,xxx
可以是任意內容
- Your routing table should look like the following, where
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface xxx.xxx.xxx.xxx * 255.255.255.255 UH 0 0 0 ppp0 default * 0.0.0.0 U 0 0 0 ppp0
- The
xxx.xxx.xxx.xxx
should match theP-t-P:xxx.xxx.xxx.xxx
in theifconfig
command'sppp0
block above
這裡的xxx.xxx.xxx.xxx
應當和運行ifconfig
命令中的ppp0
部分上面的部分中的P-t-P:xxx.xxx.xxx.xxx
地址相對應 - If the routing table checks out, routing is probably not the problem
如果路由表檢查正確,路由通常不存在問題
Solutions if problem(解決方法)
Preferred method: Manually fix routing table(推薦方法:手動修復路由表)
This needs instructions, as it should be the preferred method
這需要更多說明,但這應該是更為推薦的方法
Alternate method: Remove other interfaces(備選方法:刪除其它的界面)
- Run the following
運行下述命令
poff BluetoothDialup
- Remove any non-loopback and
ppp0
connections by running the following, replacing your-extra-interface with the appropriate names
通過運行下列命令來移除那些無法回退的及ppp0
連接,記得將『你的多餘的界面』替換為實際值
sudo ifconfig 你的多餘的界面 down
- Run the following
運行下列命令
pon BluetoothDialup<br>
DNS configuration(DNS 配置)
- Try pinging the DNS servers
嘗試Ping通DNS服務器 - Try running
dig hostname-here
, wherehostname-here
is a valid hostname
嘗試運行dig hostname-here
,這里的hostname-here
是一個可用的域名- If it resolves, DNS is probably not the problem
如果它可以解析,DNS通常不存在問題
- If it resolves, DNS is probably not the problem
- Check
/etc/resolv.conf
to check your DNS configuration
檢查/etc/resolv.conf
以查驗你的DNS配置- Your routing table should look like the following, where
xxx
is anything
你的路由表應當看起來像下面的樣子,這里的xxx
可以是任意東西
- Your routing table should look like the following, where
nameserver xxx.xxx.xxx.xxx nameserver xxx.xxx.xxx.xxx
- The lines above should match the
/var/log/syslog
lines like the following
上面顯示的IP地址應該和/var/log/syslog
中的對應的IP地址相對應
xxx localhost pppd[xxx]: primary DNS address xxx.xxx.xxx.xxx xxx localhost pppd[xxx]: secondary DNS address xxx.xxx.xxx.xxx
Solution if problem (解決方法)
- If a
/var/log/syslog
line seems absent, try reconnecting viapoff BluetoothDialup
andpon BluetoothDialup
如果/var/log/syslog
中的內容不正確,請嘗試使用poff BluetoothDialup
和pon BluetoothDialup
來重新連接 - Manually configure
/etc/resolv.conf
to point to your provider's DNS servers (or a public DNS server)
手動配置/etc/resolv.conf
來指定你的網絡提供商的DNS服務器(或是其它的公共DNS服務器)- Try pinging the manually-configured DNS servers; if it fails only on the Bluetooth dialup machine, double-check the routing configuration
嘗試通過手動配置的DNS服務器來Ping;如果這在藍牙撥號的設備上不能正常工作,但在其它設備上可以正常工作,請再次檢查路由配置
- Try pinging the manually-configured DNS servers; if it fails only on the Bluetooth dialup machine, double-check the routing configuration
Disconnecting(斷開連接)
- Run the following
運行下列命令
poff BluetoothDialup
- Re-enable
NetworkManager
's connections, if you useNetworkManager
如果你使用NetworkManager
的話,將NetworkManager
的連接再次設為可用 - Re-enable any other connections, as needed
如果需要的話,將其它的連接再次設為可用
Ab fab my godloy man.