[wiki]DialupModemHowto

参与到Ubuntu的翻译中来
回复
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

[wiki]DialupModemHowto

#1

帖子 oneleaf » 2005-09-12 12:04

Connecting to the Internet with a dialup (analog) modem

{This page supplies essential information if you are using the older Warty (4.10) release, where the Administration => Networking gui setup tools don't work well for dialup and pppconfig works well. However, under Hoary (5.04) my experience is that the gui tools now work, so you should try them first. (System => Administration => Networking). Use the Gnome Modem Monitor and Network Monitor panel applets if you want to stop, start and monitor modem connections without opening the Networking gui every time. Some people have had a problem with the modem dialing during bootup. This may be related to setting the modem as default route to the internet on the Options tab of Interface properties. Neil Woolford.}

My first (unsuccessful) attempt at getting online was through Computer > System Configuration > Networking. After doing some research, I found this alternate way of getting online. It has worked out well, because it's even easier to connect and disconnect than it would have been through the Networking dialog.
Collecting Information

You will need:

*

Your ISP's phone number
*

Your username and password on the ISP
*

The name of the modem device (/dev/...)

If your modem connects to the serial port and you know the COM port, the device name is /dev/ttySx, where x is one less than the COM port number. For example, if your modem is on COM2, the device is /dev/ttyS1, or if your modem is on COM1, the device is /dev/ttyS0.

If you have an internal modem then /dev/modem is worth a try.
Setting up ppp

1) Open a terminal (Applications > System Tools > Terminal).

2) Type:

sudo pppconfig

3) You will be on the main menu. Choose 'Create Create a connection'.

4) Leave the name as 'provider', hit 'Ok'.

5) Select 'Dynamic Use dynamic DNS', hit 'Ok'.

6) Select 'PAP Peer Authentication Protocol', hit 'Ok'.

7) Enter your user name for the ISP, hit 'Ok'.

8) Enter your password for the ISP, hit 'Ok'.

9) Leave the speed at 115200 as recommended, hit 'Ok'.

10) Choose Tone or Pulse dialing, hit 'Ok'.

11) Enter the phone number to your ISP (do not use any dashes), hit 'Ok'.

12) You can try to have your modem detected automatically, but it did not work for me, even on my easily detectable external modem.

13) If the modem wasn't detected, it will ask you for the port your modem is on. Enter the device name for your modem, hit 'Ok'.

14) A summary screen will appear and give you the opportunity to make changes if needed. We're almost done with this program. The next steps allow your normal user account to connect and disconnect without needing sudo (so you don't have to type a password to connect). Choose 'Advanced Advanced Options'.

15) Choose 'Add-User Add a ppp user'.

16) Remove any stray characters from the input box by pressing Backspace (as needed), then type in your Ubuntu user account username, hit 'Ok'.

17) Choose 'Previous Return to previous menu' on the Advanced Settings screen.

18) Choose 'Finished Write files and return to main menu.'.

19) Choose 'Quit Exit this utility'.

20) Exit the terminal window, type:

exit

Restart your computer (for the group setting to take effect). Alternately, you can test out your connection right away by typing:

sudo pon

To disconnect, type:

sudo poff

After the reboot, simply typing 'pon' or 'poff' should be adequate.
Changing speaker volume

To quiet or silence the connection noises (dialing, negotiation, etc), follow these steps:

1) Open a terminal (Applications > System Tools > Terminal).

2) Type:

sudo gedit /etc/chatscripts/provider

3) Locate the line marked 'OK-AT-OK'.

4) Change 'ATDT' to 'ATxxDT', where 'xx' is one of the following:

*

M0 Silence the speaker
*

L1 Low volume
*

L2 Medium volume
*

L3 High volume

For example: ATM0DT

Leave the rest of the line unchanged.

5) Save the file and exit.
Troubleshooting

In case of connection problems, be sure to have the correct driver loaded for the modem chipset. With winmodems, the "lspci" command doesn't always report enough information. A script (see [WWW] http://linmodems.technion.ac.il/) allows you to precisely identify the chipset.
Using Modem Lights panel-application

While it's good to be able to get online, it'd be nice to have a single way to either connect or disconnect.

The easiest way is by using Modem Lights. Right click on the top panel, select 'Add to panel', and choose 'Modem Lights'. If your modem device is other than ttyS0, you'll have to configure the app. Right-click Modem Lights, choose Preferences -> Advanced, and change the lock file to point to your modem device.

For example, if you have an internal modem on /dev/modem, the Device would be ppp0 and the Lock File /var/lock/LCK..modem

Besides allowing you to connect and disconnect with a single click, Modem Lights also gives you information on how long you've been connected, and a graphical view of your modem's activity.

https://wiki.ubuntu.com/DialupModemHowto
当净其意如虚空,远离妄想及诸取,令心所向皆无碍
韦涛
帖子: 27
注册时间: 2005-06-16 5:29

#2

帖子 韦涛 » 2005-09-13 19:37

拨号调制解调器操作方式

使用模拟拨号调制解调器连接到互联网

{这个页面包含了基本的信息,如果你使用的是旧的4.10版本Warty的话,因为系统管理=>网络gui设置工具对于拨号来说工作的并不是很好,而pppconfig工作的却不错。然而,在5.04 Hoary版本下,我的经验是,现在gui工具已经能够工作了,因此,你应该先试一下他们。(系统 系统管理 联网)。使用Gnome调制解调器监视器和网络监视器面板,如果你想停止,启动和监控调制解调器的链接,而不需要每次都打开联网设置界面。一些人以前在启动时会遇到调制解调器拨号的问题。这可能是和借口属性选项中的把调制解调器设置为连接互联网的默认路由器有关。eil Woolford.}

我第一次(没有成功)尝试通过 电脑 系统设置 联网 来上网。在尝试了几次之后,我发现了这个上网的新途径。它工作的非常好,因为通过网络对话框它可以很容易的联网和断网。

收集到的信息

你需要:

 *你的因特网服务提供商的电话号码
 *你在因特网服务提供商上的用户名和密码
 *调制解调器设备的名称(/dev/...)

如果你的调制解调器连接到了串行接口,并且你知道COM接口,设备的名称是/dev/ttySx,在这里,x是比你的COM接口低一位的数字。例如:你的调制解调器是在COM2,设备就是/dev/ttyS1,如果你的调制解调器是在COM1,那么设备就是/dev/ttyS0。

如果你有一个内部的调制解调器,那么请尝试使用/dev/modem。

设置ppp

1)打开一个终端窗口(应用程序 系统工具 终端)。

2) 输入

代码: 全选

sudo pppconfig
3) 你现在看到主菜单,选择“创建一个连接”。

4) 输入一个名称,比如说:“provider”,点击“确认”。

5) 选择“Dynamic Use dynamic DNS”,点击“确认”。

6) 选择“PAP Peer Authentication Protocol”点击“确认”。

7) 输入你在因特网服务提供商上的用户名称,点击:“确认”。

8)输入你在因特网服务提供商上的密码,点击“确认”。

9) 使用推荐的速度115200,点击“确认”。

10) 选择双音频拨号或者脉冲拨号,点击“确认”。

11) 输入因特网服务提供商的电话号码(不要使用破折号),点击“确认”。

12) 你可以尝试让你的调制解调器自动检测,但对我来说,却不行,甚至对我早期的可以检测到的外接调制解调器也不行。

13) 如果你的调制解调器没有被检测出来,它就会询问你的调制解调器的端口,输入你的调制解调器的设备名称,点击“确认”。

14) 一个简要的屏幕将会出现,给你机会来更改,如果你需要的话。目前为止我们差不多已经完成了程序。下一步可以让你的普通用户来连接和断开而不需要使用sudo(这样你就不必输入密码来连接了)。选择“高级 高级选项”。

15) 选择“添加用户 添加一个ppp用户”。

16) 使用退格键删除掉输入框内所有的字符(如果有必要的话),然后输入你的Ubuntu用户帐号名称,点击“确认”。

17) 在高级设置屏幕上选择“退到上一个菜单”。

18) 选择“写入文件并退回主菜单”。

19) 选择“退出 退出这个程序”。

20) 输入下列命令来退出终端窗口:

代码: 全选

exit
重新启动你的电脑(为了使组设置生效)。可选的,你也可以输入下列命令来马上检测你的连接:

代码: 全选

sudo pon
使用下列命令来断开连接:

代码: 全选

sudo poff
在重新启动之后,只需要简单的输入“pon”或者“poff”就可以了。

改变扬声器的音量

要使连接(拨号,连接,等)的时候的噪音消失或者降低,参考下列步骤:

1) 打开一个终端窗口(应用程序 系统工具 终端)

2) 输入

代码: 全选

sudo gedit /etc/chatscripts/provider
3)定位到有“OK-AT-OK”字样的这一行

4) 把'ATDT'改成'ATxxDT',其中'xx'是下列中的一个:

 *M0 静音
 *L1 低音
 *L2 中音
 *L3 高音

例如:ATM0DT

剩下的请保留不要变动

5) 保存文件退出

疑难解答

在连接有问题的时候,请确认调制解调器芯片组上安装了正确的驱动器。对于winmodems,命令“lspci”并不能够提供足够的信息。

使用调制解调器的指示灯

现在能够上网了自然不错,不过要是用一种简单方法就能连接或断开(网络)那就更好了。


最简单的方法是使用调制解调器的指示灯。右击上部面板,选择“添加到面板”,然后选择“调制解调器指示灯”。如果你的调制解调器不是ttyS0,那么你必须要设置app。右击调制解调器指示灯,选择 首选项 高级,改变上锁文件来指向你的调制解调器设备。

例如,如果你有一个内部的调制解调器在/dev/modem,那么这个设别应当是ppp0,锁定文件是/var/lock/LCK..modem

出了能够让你点击一下就能够连接或者断开网络,调制解调器指示灯还能够告诉你连接的时间,和一个表示你调制解调器状态的图像。

https://wiki.ubuntu.com/DialupModemHowto
上次由 韦涛 在 2005-09-14 14:06,总共编辑 1 次。
头像
leal
帖子: 1119
注册时间: 2005-08-29 14:49
来自: 杭州
联系:

#3

帖子 leal » 2005-09-13 21:31

因为能够上网是非常不错的,所以能够以一个简单的方式来连接或者断开连接是很不错的。
现在能够上网了自然不错,不过要是用一种简单方法就能连接或断开(网络)那就更棒(好)了。

仅供参考 :) 其它没细看。

ISP、Modem不译也可,第一次出现时加以注解,后面原文出现,这样会清爽一些,还有Modem Lights等。
用心×恒 | 豆瓣 | 门户 | Blog
韦涛
帖子: 27
注册时间: 2005-06-16 5:29

#4

帖子 韦涛 » 2005-09-13 23:12

leal 写了:
因为能够上网是非常不错的,所以能够以一个简单的方式来连接或者断开连接是很不错的。
现在能够上网了自然不错,不过要是用一种简单方法就能连接或断开(网络)那就更棒(好)了。

仅供参考 :) 其它没细看。

ISP、Modem不译也可,第一次出现时加以注解,后面原文出现,这样会清爽一些,还有Modem Lights等。
Modem Lights是什么意思阿?我没有用过拨号上网的工具,所以都不知道这个名词 :D
头像
yang119345
帖子: 570
注册时间: 2005-06-19 14:22
来自: 上海
联系:

#5

帖子 yang119345 » 2005-09-14 1:48

Modem的灯? :o
头像
leal
帖子: 1119
注册时间: 2005-08-29 14:49
来自: 杭州
联系:

#6

帖子 leal » 2005-09-14 9:33

韦涛 写了:
leal 写了:
因为能够上网是非常不错的,所以能够以一个简单的方式来连接或者断开连接是很不错的。
现在能够上网了自然不错,不过要是用一种简单方法就能连接或断开(网络)那就更棒(好)了。

仅供参考 :) 其它没细看。

ISP、Modem不译也可,第一次出现时加以注解,后面原文出现,这样会清爽一些,还有Modem Lights等。
Modem Lights是什么意思阿?我没有用过拨号上网的工具,所以都不知道这个名词 :D
那就不用翻译了:),第一次出现时注上 Modem指示器 之类即可
用心×恒 | 豆瓣 | 门户 | Blog
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#7

帖子 oneleaf » 2005-09-22 11:09

头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#8

帖子 millenniumdark » 2006-07-30 14:54

这篇文章已经过时了。
新的文章变化特别大
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#9

帖子 millenniumdark » 2006-07-30 15:25

yang119345 写了:Modem的灯? :o
是gnome面板上的一个小程序,指示modem状态的,相当于email notifier
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#10

帖子 millenniumdark » 2006-07-30 15:32

这篇翻译部分用的上,但是现在的文档变化太大了
http://wiki.ubuntu.org.cn/DialupModemHowto
回复