特殊:Badtitle/NS100:EvdoNetworking:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/EvdoNetworking}} {{Languages|UbuntuHelp:EvdoNetworking}} === Evdo Networking in Ubuntu === I've started this page to document how I got Sprint Evd... |
小无编辑摘要 |
||
(未显示同一用户的2个中间版本) | |||
第3行: | 第3行: | ||
=== Evdo Networking in Ubuntu === | === Evdo Networking in Ubuntu === | ||
I've started this page to document how I got Sprint Evdo up and running on Ubuntu 6.10 (Edgy Eft). There are several sites scattered around the web that indicate that it's possible to get evdo running on linux, but I was worried that none of these sites would apply to my card. | I've started this page to document how I got Sprint Evdo up and running on Ubuntu 6.10 (Edgy Eft). There are several sites scattered around the web that indicate that it's possible to get evdo running on linux, but I was worried that none of these sites would apply to my card. | ||
Most of these steps probably apply to many cards. I've read that it is common for many cards to have a USB interface regardless of whether they are mini-PCIe or PCMCIAor [[UbuntuHelp:ExpressCard|ExpressCard]]. This was tested on a Dell Lattitude D820 with the "Dell Wireless 5700 Sprint Mobile Broadband Mini-Card". | |||
Most of these steps probably apply to many cards. I've read that it is common for many cards to have a USB interface regardless of whether they are mini-PCIe or PCMCIAor ExpressCard. This was tested on a Dell Lattitude D820 with the "Dell Wireless 5700 Sprint Mobile Broadband Mini-Card". | |||
Most of this probably applies to Verizon as well, but Verizon has a very restrictive Terms-of-Service which prevents you from actually using your networking connection, so I went with Sprint. | Most of this probably applies to Verizon as well, but Verizon has a very restrictive Terms-of-Service which prevents you from actually using your networking connection, so I went with Sprint. | ||
Step 1. Activate your card using Windows. There's likely a way to do it in Linux, I just don't know how. (If you do, please edit this page!) | Step 1. Activate your card using Windows. There's likely a way to do it in Linux, I just don't know how. (If you do, please edit this page!) | ||
Step 2. Figure out what kind of network card you have by looking through your device list for an Evdo card. Anything that says CDMA is a good bet. | Step 2. Figure out what kind of network card you have by looking through your device list for an Evdo card. Anything that says CDMA is a good bet. | ||
<pre><nowiki> | <pre><nowiki> | ||
第21行: | 第17行: | ||
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA | C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA | ||
</nowiki></pre> | </nowiki></pre> | ||
Step 3. Try to load usbserial, using the Vendor & ProdID strings from step #2. | Step 3. Try to load usbserial, using the Vendor & ProdID strings from step #2. | ||
<pre><nowiki> | <pre><nowiki> | ||
$ sudo modprobe vendor=0x413c product=0x8128 | $ sudo modprobe vendor=0x413c product=0x8128 | ||
</nowiki></pre> | </nowiki></pre> | ||
Step 4. If that worked as expected, go ahead and add usbserial to /etc/modules. | Step 4. If that worked as expected, go ahead and add usbserial to /etc/modules. | ||
<pre><nowiki> | <pre><nowiki> | ||
第36行: | 第30行: | ||
usbserial vendor=0x413c product=0x8128 | usbserial vendor=0x413c product=0x8128 | ||
</nowiki></pre> | </nowiki></pre> | ||
Step 5. Save the following file as /etc/ppp/peers/sprint: | Step 5. Save the following file as /etc/ppp/peers/sprint: | ||
<pre><nowiki> | <pre><nowiki> | ||
第64行: | 第57行: | ||
</nowiki></pre> | </nowiki></pre> | ||
(This script is a modified version of the one at http://www.cs.drexel.edu/~kfu22/evdo/.) If you'd like to tweak it, look at the options in 'man pppd'. One thing I've discovered is that I don't believe the speed setting actually affects speed -- you can set it to 230400 or 115200 and it makes no difference. | (This script is a modified version of the one at http://www.cs.drexel.edu/~kfu22/evdo/.) If you'd like to tweak it, look at the options in 'man pppd'. One thing I've discovered is that I don't believe the speed setting actually affects speed -- you can set it to 230400 or 115200 and it makes no difference. | ||
Step 6. Save the following file as /etc/ppp/peers/sprint-connect: | Step 6. Save the following file as /etc/ppp/peers/sprint-connect: | ||
<pre><nowiki> | <pre><nowiki> | ||
第80行: | 第72行: | ||
</nowiki></pre> | </nowiki></pre> | ||
(This script is a modified version of the one at http://www.cs.drexel.edu/~kfu22/evdo/.) | (This script is a modified version of the one at http://www.cs.drexel.edu/~kfu22/evdo/.) | ||
Step 7. Save the following file as /etc/ppp/peers/sprint-disconnect: | Step 7. Save the following file as /etc/ppp/peers/sprint-disconnect: | ||
<pre><nowiki> | <pre><nowiki> | ||
第88行: | 第79行: | ||
</nowiki></pre> | </nowiki></pre> | ||
(This script is a modified version of the one at http://www.cs.drexel.edu/~kfu22/evdo/.) | (This script is a modified version of the one at http://www.cs.drexel.edu/~kfu22/evdo/.) | ||
Step 8. Add the following stanza to /etc/network/interfaces so that your evdo connection will come up at boot-time: | Step 8. Add the following stanza to /etc/network/interfaces so that your evdo connection will come up at boot-time: | ||
<pre><nowiki> | <pre><nowiki> | ||
第95行: | 第85行: | ||
provider sprint | provider sprint | ||
</nowiki></pre> | </nowiki></pre> | ||
Step 9. Restart your networking: | Step 9. Restart your networking: | ||
<pre><nowiki> | <pre><nowiki> | ||
$ sudo /etc/init.d/networking restart | $ sudo /etc/init.d/networking restart | ||
</nowiki></pre> | </nowiki></pre> | ||
Congratulations! You're done! | Congratulations! You're done! | ||
Were your experiences different? Were you able to get a different card working under Ubuntu, or a different provider? Please edit this page and help those who will follow in your footsteps! | Were your experiences different? Were you able to get a different card working under Ubuntu, or a different provider? Please edit this page and help those who will follow in your footsteps! | ||
==== Useful Links ==== | ==== Useful Links ==== | ||
http://kenkinder.com/evdo-pc5740/ | http://kenkinder.com/evdo-pc5740/ |
2007年12月6日 (四) 10:30的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/EvdoNetworking }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/af | • {{#if: UbuntuHelp:EvdoNetworking|Afrikaans| [[::EvdoNetworking/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/ar | • {{#if: UbuntuHelp:EvdoNetworking|العربية| [[::EvdoNetworking/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/az | • {{#if: UbuntuHelp:EvdoNetworking|azərbaycanca| [[::EvdoNetworking/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/bcc | • {{#if: UbuntuHelp:EvdoNetworking|جهلسری بلوچی| [[::EvdoNetworking/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/bg | • {{#if: UbuntuHelp:EvdoNetworking|български| [[::EvdoNetworking/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/br | • {{#if: UbuntuHelp:EvdoNetworking|brezhoneg| [[::EvdoNetworking/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/ca | • {{#if: UbuntuHelp:EvdoNetworking|català| [[::EvdoNetworking/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/cs | • {{#if: UbuntuHelp:EvdoNetworking|čeština| [[::EvdoNetworking/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/de | • {{#if: UbuntuHelp:EvdoNetworking|Deutsch| [[::EvdoNetworking/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/el | • {{#if: UbuntuHelp:EvdoNetworking|Ελληνικά| [[::EvdoNetworking/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/es | • {{#if: UbuntuHelp:EvdoNetworking|español| [[::EvdoNetworking/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/fa | • {{#if: UbuntuHelp:EvdoNetworking|فارسی| [[::EvdoNetworking/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/fi | • {{#if: UbuntuHelp:EvdoNetworking|suomi| [[::EvdoNetworking/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/fr | • {{#if: UbuntuHelp:EvdoNetworking|français| [[::EvdoNetworking/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/gu | • {{#if: UbuntuHelp:EvdoNetworking|ગુજરાતી| [[::EvdoNetworking/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/he | • {{#if: UbuntuHelp:EvdoNetworking|עברית| [[::EvdoNetworking/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/hu | • {{#if: UbuntuHelp:EvdoNetworking|magyar| [[::EvdoNetworking/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/id | • {{#if: UbuntuHelp:EvdoNetworking|Bahasa Indonesia| [[::EvdoNetworking/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/it | • {{#if: UbuntuHelp:EvdoNetworking|italiano| [[::EvdoNetworking/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/ja | • {{#if: UbuntuHelp:EvdoNetworking|日本語| [[::EvdoNetworking/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/ko | • {{#if: UbuntuHelp:EvdoNetworking|한국어| [[::EvdoNetworking/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/ksh | • {{#if: UbuntuHelp:EvdoNetworking|Ripoarisch| [[::EvdoNetworking/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/mr | • {{#if: UbuntuHelp:EvdoNetworking|मराठी| [[::EvdoNetworking/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/ms | • {{#if: UbuntuHelp:EvdoNetworking|Bahasa Melayu| [[::EvdoNetworking/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/nl | • {{#if: UbuntuHelp:EvdoNetworking|Nederlands| [[::EvdoNetworking/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/no | • {{#if: UbuntuHelp:EvdoNetworking|norsk| [[::EvdoNetworking/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/oc | • {{#if: UbuntuHelp:EvdoNetworking|occitan| [[::EvdoNetworking/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/pl | • {{#if: UbuntuHelp:EvdoNetworking|polski| [[::EvdoNetworking/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/pt | • {{#if: UbuntuHelp:EvdoNetworking|português| [[::EvdoNetworking/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/ro | • {{#if: UbuntuHelp:EvdoNetworking|română| [[::EvdoNetworking/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/ru | • {{#if: UbuntuHelp:EvdoNetworking|русский| [[::EvdoNetworking/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/si | • {{#if: UbuntuHelp:EvdoNetworking|සිංහල| [[::EvdoNetworking/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/sq | • {{#if: UbuntuHelp:EvdoNetworking|shqip| [[::EvdoNetworking/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/sr | • {{#if: UbuntuHelp:EvdoNetworking|српски / srpski| [[::EvdoNetworking/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/sv | • {{#if: UbuntuHelp:EvdoNetworking|svenska| [[::EvdoNetworking/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/th | • {{#if: UbuntuHelp:EvdoNetworking|ไทย| [[::EvdoNetworking/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/tr | • {{#if: UbuntuHelp:EvdoNetworking|Türkçe| [[::EvdoNetworking/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/vi | • {{#if: UbuntuHelp:EvdoNetworking|Tiếng Việt| [[::EvdoNetworking/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/yue | • {{#if: UbuntuHelp:EvdoNetworking|粵語| [[::EvdoNetworking/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/zh | • {{#if: UbuntuHelp:EvdoNetworking|中文| [[::EvdoNetworking/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/zh-hans | • {{#if: UbuntuHelp:EvdoNetworking|中文(简体)| [[::EvdoNetworking/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EvdoNetworking | UbuntuHelp:EvdoNetworking | {{#if: | :}}EvdoNetworking}}/zh-hant | • {{#if: UbuntuHelp:EvdoNetworking|中文(繁體)| [[::EvdoNetworking/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:EvdoNetworking|:EvdoNetworking|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :EvdoNetworking/zh | | {{#ifexist: EvdoNetworking/zh | | {{#ifeq: {{#titleparts:EvdoNetworking|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:EvdoNetworking|1|-1|}} | zh | | }}
Evdo Networking in Ubuntu
I've started this page to document how I got Sprint Evdo up and running on Ubuntu 6.10 (Edgy Eft). There are several sites scattered around the web that indicate that it's possible to get evdo running on linux, but I was worried that none of these sites would apply to my card. Most of these steps probably apply to many cards. I've read that it is common for many cards to have a USB interface regardless of whether they are mini-PCIe or PCMCIAor ExpressCard. This was tested on a Dell Lattitude D820 with the "Dell Wireless 5700 Sprint Mobile Broadband Mini-Card". Most of this probably applies to Verizon as well, but Verizon has a very restrictive Terms-of-Service which prevents you from actually using your networking connection, so I went with Sprint. Step 1. Activate your card using Windows. There's likely a way to do it in Linux, I just don't know how. (If you do, please edit this page!) Step 2. Figure out what kind of network card you have by looking through your device list for an Evdo card. Anything that says CDMA is a good bet.
$ less /proc/bus/usb/devices 8 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=413c ProdID=8128 Rev= 0.00 S: Manufacturer=Novatel Wireless Inc. S: Product=Novatel Wireless EXPD CDMA C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA
Step 3. Try to load usbserial, using the Vendor & ProdID strings from step #2.
$ sudo modprobe vendor=0x413c product=0x8128
Step 4. If that worked as expected, go ahead and add usbserial to /etc/modules.
$ sudo nano /etc/modules
and add the line:
# evdo usbserial vendor=0x413c product=0x8128
Step 5. Save the following file as /etc/ppp/peers/sprint:
#the USB serial device of the EVDO PCMCIA card. ttyUSB0 #your login information user [email protected] 230400 # speed #debug defaultroute # use the cellular network for the default route usepeerdns # use the DNS servers from the remote network #-detach # keep pppd in the foreground crtscts # hardware flow control lock # lock the serial port passive # transmit the echo but don't fail if there is no response noauth # don't expect the modem to authenticate itself # do not send lcp echo requests lcp-echo-interval 0 # if the connection fails, try to reconnect, forever persist maxfail 0 connect "/usr/sbin/chat -v -f /etc/ppp/peers/sprint-connect" disconnect "/usr/sbin/chat -v -f /etc/ppp/peers/sprint-disconnect"
(This script is a modified version of the one at http://www.cs.drexel.edu/~kfu22/evdo/.) If you'd like to tweak it, look at the options in 'man pppd'. One thing I've discovered is that I don't believe the speed setting actually affects speed -- you can set it to 230400 or 115200 and it makes no difference. Step 6. Save the following file as /etc/ppp/peers/sprint-connect:
SAY 'Starting Sprint\n' TIMEOUT 120 ABORT 'BUSY' ABORT 'NO ANSWER' ABORT 'NO CARRIER' '' 'ATZ' 'OK' 'AT&F0' 'OK' 'ATE0v1' '' 'AT+CSQ' 'OK' 'ATDT#777' 'CONNECT'
(This script is a modified version of the one at http://www.cs.drexel.edu/~kfu22/evdo/.) Step 7. Save the following file as /etc/ppp/peers/sprint-disconnect:
"" "\K" "" "+++ATH0" SAY "Disconnected from Sprint."
(This script is a modified version of the one at http://www.cs.drexel.edu/~kfu22/evdo/.) Step 8. Add the following stanza to /etc/network/interfaces so that your evdo connection will come up at boot-time:
auto ppp0 iface ppp0 inet ppp provider sprint
Step 9. Restart your networking:
$ sudo /etc/init.d/networking restart
Congratulations! You're done! Were your experiences different? Were you able to get a different card working under Ubuntu, or a different provider? Please edit this page and help those who will follow in your footsteps!
Useful Links
http://kenkinder.com/evdo-pc5740/ http://www.evdoforums.com/viewtopic.php?p=6180#6180 http://www.cs.drexel.edu/~kfu22/evdo/