How to tether your Nokia N95s Internet connection to your laptop via USB in Linux如何系绳诺基亚N95s您的Internet连接到您的膝上型电脑通过USB在Linux

by Ken Murray on October 27, 2008 肯穆雷 2008年十月27日

Linux操作系统Symbian的

Sometimes you end up somewhere with your laptop where you just can’t find any open WiFi.有时候,你到的地方你的笔记本电脑在那里你就不能找到任何公开的WiFi 。 Luckily you have a Nokia N95 and a USB data cable.幸运的你有诺基亚N95和USB数据线。 I’m going to show you how to tether your N95 to your laptop via USB the quick and dirty command line way, as well as the prettier GUI way.我要告诉您如何系绳您的N95型到您的膝上型电脑通过USB快速和肮脏的命令行方式,以及漂亮的GUI方式。 In these examples I am running Fedora 9 and Gnome.在这些例子我运行的Fedora 9日和Gnome 。

Warning: You probably only want to do this if you have a decent data plan. 警告:您可能只想要做到这一点如果您有一个体面的数据计划。 Using 3G data can result in a very large bill!利用3G数据可能会导致一个非常大的法案!

  1. You need have the ppp package and the wvdial package installed.您需要有购买力平价包和wvdial软件包进行安装。 If you don’t, you can simply run, as root in a terminal window, yum install ppp wvdial (or use the package manager for your Linux distro).如果您没有,您只需运行,根在一个终端窗口, 百胜餐饮集团购买力平价wvdial安装 (或者使用软件包管理器为您的Linux发行) 。
  2. Start by plugging your phone into the computer with a USB data cable.开始由堵您的手机到计算机的USB数据线。 When the phone prompts you to select the connection mode, select PC Suite .当手机提示您选择连接模式,选择PC套件
  3. Now open a terminal window and check your dmesg output.现在,打开一个终端窗口,并查看您的dmesg输出。 You should see something similar to the following:您应该会看到类似以下内容:

    [user@radon ~]$ dmesg [用户@氡〜 ] $ dmesg
    usb 4-2: new full speed USB device using uhci_hcd and address 16 USB接口4-2 :新的全速USB设备使用uhci_hcd和地址16
    usb 4-2: configuration #1 chosen from 1 choice USB接口4-2 :配置# 1选择1选择
    cdc_acm 4-2:1.10: ttyACM0: USB ACM device cdc_acm 4-2:1.10 : ttyACM0 :含石棉材料的USB设备
    usb 4-2: bad CDC descriptors USB接口4-2 :坏中华网描述
    usb 4-2: bad CDC descriptors USB接口4-2 :坏中华网描述
    usb 4-2: New USB device found, idVendor=0421, idProduct=0070 4-2 USB接口: USB设备的新发现, idVendor = 0421 , idProduct = 0070
    usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 USB接口4-2 :新的USB设备的字符串:生产商编号= 1 ,产品= 2 , SerialNumber = 0
    usb 4-2: Product: Nokia N95 8GB USB接口4-2 :产品:诺基亚N95 8GB容量
    usb 4-2: Manufacturer: Nokia USB接口4-2 :推出日期:

    Note the line that says cdc_acm 4-2:1.10: ttyACM0: USB ACM device .请注意行cdc_acm 4-2:1.10: ttyACM0 :含石棉材料的USB设备。 This tells us that the phone’s modem is at /dev/ttyACM0.这就告诉我们,手机的调制解调器在/ dev/ttyACM0 。

Now we move on to the quick and dirty command line setup.现在,我们进入快速和肮脏的命令行安装。 Feel free to skip to the随时跳到 GUI setup界面设置 below if you aren’t very comfortable with the command line.下面如果你不很舒服的命令行。

  1. Edit /etc/wvdial.conf and make it look like this:编辑/ etc / wvdial.conf并使它看起来就像这样:
  2. Modem = /dev/ttyACM0调制解调器= / dev/ttyACM0
    Baud = 460800波特率= 460800
    SetVolume = 0 SetVolume = 0
    Dial Command = ATDT拨号命令= ATDT
    Init1 = ATZ Init1 = ATZ
    Init3 = ATM0 Init3 = ATM0
    FlowControl = CRTSCTS FlowControl = CRTSCTS

    [Dialer USB] [拨号的USB ]
    Username = user用户名=用户
    Password = pass密码=通行证
    Phone = *99***1#电话= * 99 *** 1 #
    Stupid Mode = 1愚蠢的模式= 1
    Init1 = ATZ Init1 = ATZ
    Inherits = Modem0继承= Modem0

  3. I’m using Rogers Wireless in Canada and the above is the minimum configuration that works for me.我使用的Rogers无线公司在加拿大和上面的最低配置,为我的作品。 Literally Username = user and Password = pass.毫不夸张=用户帐号和密码=通行证。 You may need to make changes to the Username, Password, and Phone lines.您可能需要更改使用者名称,密码和电话线。 Contact your wireless provider for the correct details.联系您的无线服务提供商正确的细节。
  4. I also had to create a script called /etc/ppp/ip-up.local to make the automatic DNS configuration work.我还创建一个脚本所谓的/ etc / ppp中/ IP的up.local使自动DNS配置工作。 Here’s my ip-up.local:这是我的IP up.local :
  5. #!/bin/bash # ! /斌/庆祝
    #

    PATH=/sbin:/usr/sbin:/bin:/usr/bin路径= / sbin :是/ usr / sbin : /斌:是/ usr /斌
    export PATH出口路径
    echo “# created by pppd” > /etc/resolv.conf回声“ #创建参见pppd ” “的/ etc / resolv.conf的
    echo “nameserver ${DNS1}” >> /etc/resolv.conf回声“域名$ ( DNS1 ) ” “ ”的/ etc / resolv.conf的
    echo “nameserver ${DNS2}” >> /etc/resolv.conf回声“域名$ ( DNS2 ) ” “ ”的/ etc / resolv.conf的
    chmod go+r /etc/resolv.conf属性去+的R /等/ resolv.conf的

    Don’t forget to chmod 755 /etc/ppp/ip-up.local不要忘记属性755的/ etc / ppp中/ IP的up.local

  6. Unfortunately I have not been able to connect as a normal user in this configuration so you’ll have to connect as root.不幸的是,我一直无法连接作为一个普通用户在此配置,让您有连接的根源。

    [root@radon ~]# wvdial USB [根@氡〜 ] # wvdial USB接口
    –> WvDial: Internet dialer version 1.60 -> “ W vDial:互联网拨号1 .60版本
    –> Cannot get information for serial port. -> “无法获取信息的串行端口。
    –> Initializing modem. -> “初始化调制解调器。
    –> Sending: ATZ -> “发送: A TZ
    ATZ
    OK俄克拉何马州
    –> Sending: ATM0 -> “发送: A TM0
    ATM0
    OK俄克拉何马州
    –> Modem initialized. -> “调制解调器初始化。
    –> Sending: ATDT*99***1# -> “发送: A TDT* 9 9* **1 #
    –> Waiting for carrier. -> “等待承运人。
    ATDT*99***1# ATDT * 99 *** 1 #
    CONNECT连接
    ~[7f]}#@!}!} } }2}#}$@#}!}$}%\}”}&} }*} } g}%~ 〜 [ 7楼]}#@!}!} ) ) 2 }#}$@#}!}$}% \ }"}&} ) * ) )克) % 〜
    –> Carrier detected. -> “载波检测。 Starting PPP immediately.按购买力平价立即开始。
    –> Starting pppd at Sun Oct 19 16:48:56 2008 -> “启动参见p ppd在S un1 0月1 9日1 6时4 8分5 6秒2 008年
    –> Pid of pppd: 8028 -> “的P ID参见p ppd: 8 028
    –> Using interface ppp0 -> “使用界面p pp0
    –> local IP address 172.28.53.106 -> “本地I P地址1 72.28.53.106
    –> remote IP address 10.6.6.6 -> “远程I P地址1 0.6.6.6
    –> primary DNS address 207.181.101.4 -> “主D NS地址2 07.181.101.4
    –> secondary DNS address 207.181.101.5 -> “次要D NS地址2 07.181.101.5

  7. I removed the lines containing unprintable characters, but otherwise you should see something very similar to above.余行删除含有芹菜字符,否则您应该看到的东西非常相似以上。 Note that wvdial stays in the foreground.请注意, wvdial留在前台。 This is so you can disconnect by simply pressing Ctrl-C.这是您可以通过简单地断开迫切按Ctrl - C 。
  8. You can verify that you are online by switching to a new terminal window and running ifconfig.您可以验证您是在线切换到一个新的终端窗口和运行ifconfig 。

    [root@radon ~]# ifconfig [根@氡〜 ] # ifconfig
    lo Link encap:Local Loopback罗连封装:本地环回
    inet addr:127.0.0.1 Mask:255.0.0.0 Inet电子地址: 127.0.0.1面膜: 255.0.0.0
    inet6 addr: ::1/128 Scope:Host inet6地址: : : 128分之1范围:主机
    UP LOOPBACK RUNNING MTU:16436 Metric:1向上回路运行的MTU : 16436公制: 1
    RX packets:12767 errors:0 dropped:0 overruns:0 frame:0接收的数据包: 12767错误: 0下跌: 0超支: 0画面: 0
    TX packets:12767 errors:0 dropped:0 overruns:0 carrier:0德克萨斯州的数据包: 12767错误: 0下跌: 0超支: 0承运人: 0
    collisions:0 txqueuelen:0碰撞: 0 txqueuelen : 0
    RX bytes:714652 (697.9 KiB) TX bytes:714652 (697.9 KiB)接收字节: 714652 ( 697.9 KiB )德克萨斯州字节: 714652 ( 697.9 KiB )

    ppp0 Link encap:Point-to-Point Protocol ppp0链路封装:点对点协议
    inet addr:172.28.53.106 PtP:10.6.6.6 Mask:255.255.255.255 Inet电子地址: 172.28.53.106和平之路: 10.6.6.6掩码: 255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 POINTOPOINT向上运行NOARP组播的MTU : 1500公制: 1
    RX packets:4 errors:0 dropped:0 overruns:0 frame:0接收的数据包: 4错误: 0下跌: 0超支: 0画面: 0
    TX packets:5 errors:0 dropped:0 overruns:0 carrier:0德克萨斯州包: 5错误: 0下跌: 0超支: 0承运人: 0
    collisions:0 txqueuelen:3碰撞: 0 txqueuelen : 3
    RX bytes:64 (64.0 b) TX bytes:94 (94.0 b)接收字节: 64 ( 64.0二)德克萨斯州字节: 94 ( 94.0二)

    [root@radon ~]# ping simplehelp.net [根@氡〜 ] #平simplehelp.net
    PING simplehelp.net (74.52.95.42) 56(84) bytes of data.平simplehelp.net ( 74.52.95.42 ) 56 ( 84 )字节的数据。
    64 bytes from 2a.5f.344a.static.theplanet.com (74.52.95.42): icmp_seq=1 ttl=46 time=110 ms 64字节从2a.5f.344a.static.theplanet.com ( 74.52.95.42 ) : icmp_seq = 1的TTL = 46时间= 110毫秒
    64 bytes from 2a.5f.344a.static.theplanet.com (74.52.95.42): icmp_seq=2 ttl=46 time=102 ms 64字节从2a.5f.344a.static.theplanet.com ( 74.52.95.42 ) : icmp_seq = 2的TTL = 46时间= 102毫秒
    64 bytes from 2a.5f.344a.static.theplanet.com (74.52.95.42): icmp_seq=3 ttl=46 time=164 ms 64字节从2a.5f.344a.static.theplanet.com ( 74.52.95.42 ) : icmp_seq = 3的TTL = 46时间= 164毫秒
    64 bytes from 2a.5f.344a.static.theplanet.com (74.52.95.42): icmp_seq=4 ttl=46 time=130 ms 64字节从2a.5f.344a.static.theplanet.com ( 74.52.95.42 ) : icmp_seq = 4的TTL = 46时间= 130毫秒
    64 bytes from 2a.5f.344a.static.theplanet.com (74.52.95.42): icmp_seq=5 ttl=46 time=149 ms 64字节从2a.5f.344a.static.theplanet.com ( 74.52.95.42 ) : icmp_seq = 5的TTL = 46时间= 149毫秒
    ^C ^ ç
    — simplehelp.net ping statistics — -s implehelp.net平统计数字-
    5 packets transmitted, 5 received, 0% packet loss, time 4513ms第5包转发, 5收到0 %丢包,时间4513ms
    rtt min/avg/max/mdev = 102.061/131.349/164.376/23.190 ms内河码头民/平均/最大/ mdev = 102.061/131.349/164.376/23.190毫秒

  9. Once you are finished online, don’t forget to switch back to the terminal where you ran wvdial and press Ctrl-C.一旦您完成在线,不要忘记切换回终端,您跑wvdial和按Ctrl - C上升。

    ^CCaught signal 2: Attempting to exit gracefully… ^ CCaught信号2 :尝试退出优雅...
    –> Terminating on signal 15 -> “终止信号1 5
    –> Connect time 4.7 minutes. -> “连接时间四点七分钟。
    –> Disconnecting at Sun Oct 19 18:24:32 2008 -> “断开S un公司1 0月1 9日1 8时2 4分3 2秒2 008年


GUI Method 桂方法

Now, if all that command line stuff scares you, here’s how to make it work using Gnome’s GUI:现在,如果所有的命令行的东西吓跑你,这里如何使它工作使用Gnome公司的图形用户界面:

  1. Click System -> Administration -> Network点击系统 -> “管理- >”网络
  2. You will be asked to enter your root password.您将被要求输入您的root密码。 Enter it and click OK .输入然后单击确定。
  3. Now you can see a list of installed network devices.现在,你可以看到一个安装的网络设备。 Click on the Hardware tab.点击硬件选项卡。

  4. click to enlarge点击放大


    click to enlarge点击放大

  5. Now click the New button, select Modem , and click OK .现在点击新建按钮,选择调制解调器,然后单击确定。
  6. Change the Modem Device to /dev/ttyACM0.变化的现代装置 / dev/ttyACM0 。 If /dev/ttyACM0 is not available in the list, just type it in. Click OK .如果/ dev/ttyACM0不提供的名单,只需键入它进来单击确定。
  7. Now click the Devices tab.现在单击设备选项卡。

  8. click to enlarge点击放大


    click to enlarge点击放大

  9. Click the New button, select Modem connection, and click Forward . 单击新建按钮,选择调制解调器连接 ,然后按一下前进

  10. click to enlarge点击放大

  11. All I needed to do to make my Rogers Wireless connection work was enter *99***1# as the Phone Number, user as the Login Name, and pass as the Password.我需要做使我的罗杰斯无线上网的工作进入* 99 *** 1 #的电话号码用户的登录名, 通过作为密码。 I also chose to name this connection USB.我也选择了这方面的名字USB接口。 Click Forward .按一下前进

  12. click to enlarge点击放大

  13. I left these options at their defaults.我离开这些选项在默认。 Click Forward .按一下前进

  14. click to enlarge点击放大

  15. We’ve finished creating the connection.我们已经完成建立连接。 Click Apply . 单击应用。

  16. click to enlarge点击放大

  17. Click the X in the top right corner to close this window.点击 X右上角关闭此窗口。

  18. click to enlarge点击放大

  19. Click Yes to save the changes. 单击是保存更改。
  20. Click OK . 单击确定。 No, we won’t need to restart the computer.不,我们将不再需要重新启动计算机。

  21. click to enlarge点击放大

  22. So, let’s use our newly created connection.所以,让我们使用我们新创建的连接。 Click System -> Administration -> Network Device Control .点击系统 -> “管理- >”网络设备控制。
  23. Select the USB connection you just created and click Activate .选择USB连接您刚刚创建并点击激活

  24. click to enlarge点击放大

  25. Notice how the USB connection has changed from Inactive to Active .请注意USB连接,改变了从主动无效

  26. click to enlarge点击放大

  27. Open Firefox and visit http://www.simplehelp.net.打开Firefox ,并参观http://www.simplehelp.net 。

  28. click to enlarge点击放大

  29. When you are finished online, go back to the Network Device Control window, select the Active USB connection and click Deactivate .当您完成在线,请返回网络设备控制窗口中,选择主动USB连接,然后点击停用

  30. click to enlarge点击放大

  31. Verify that the USB connection is indeed Inactive , then close the Network Device Control window.确认USB连接确实是无效然后关闭网络设备控制窗口。

  32. click to enlarge点击放大

Some of you may be wondering why I chose not to use Network Manager.你们有些人可能不知道我为什么选择不使用网络管理员。 It’s quite simply due to the fact that mobile broadband support in Network Manager is in it’s infancy and I found it to be virtually unusable.这是很简单原因是,移动宽带支持网络管理器是在它的初创阶段,我发现这是几乎无法使用。 Once Network Manager’s mobile broadband support becomes better, I’ll rewrite this tutorial based on it.一旦网络管理员的移动宽带支持变得更好,我会重写本教程的基础上它。

Related Posts: 相关文章:
  • How to tether your Nokia N95s Internet connection to your laptop via Bluetooth in Linux如何系绳诺基亚N95s您的Internet连接到您的膝上型电脑通过蓝牙在Linux
  • How to share the GPS in your N95 with your laptop via Bluetooth in Linux如何分享全球定位系统在您的N95型与你的笔记本电脑通过蓝牙在Linux
  • Use Adeona to help recover a lost or stolen laptop使用Adeona ,以帮助恢复丢失或被盗的笔记本电脑
  • Technology and Lifestyle技术和生活方式
  • How to mount a remote filesystem in Ubuntu如何装入一个偏远的Ubuntu的文件
  • Get Simple Help tutorials just like this one in your email inbox every day - for free!获取简单的帮助教程就这样一个在您的电子邮件收件匣每一天-是免费的! Just enter your email address below:只要输入您的电子邮件地址如下:

    You can always opt out of this email subscription at any time.您可以随时退出这个邮件订阅在任何时候。


    Bookmark and Share 书签和共享

    { 0 comments… 0评论... add one now现在添加一个 }

    Leave a Comment发表您的评论

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用这些HTML标记和属性: href="" title="">的<a <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <del datetime="">的<em> <i> <q cite=""> <strike>的<strong>