全部博文(185)
分类:
2009-07-29 10:06:43
There are different tools, which can help you to configure & establish a dialup connection.
Some of them are command line based:
pppconfig & pon/poff
wvdialconf & wvdial),
while others use a graphical interface:
, in System => Administration => Networking
With all these tools, to establish a dialup connection, the user has to be member of the "dip" and "dialout" groups, so put all users who are supposed to connect via dialup into these groups:
$ sudo adduser USERNAME dip
$ sudo adduser USERNAME dialout
where of course USERNAME has to be substituted.
You will also need to know the device node of your modem. The "Installing the driver"-section of this page should have told you about it. In case you don't know it, assume /dev/modem.
that you can find in System => Administration => Networking, will let you set up the ppp connection in a graphical interface. You have to know your device name, ISP phone number, username and password to set it up.
Open Network Manager (System => Administration => Network)
You can also 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.
Note: It has been reported, that connections started with this interface might be very slow, if they work. You can try it, but if this is the case for you, just try one of the other options.
gnome-ppp is a graphical frontend to wvdial and can be installed by $ sudo apt-get install gnome-ppp. You will find it in the Applications menu ( Menu => Internet => Gnome-PPP ) and the configuration is probably straightforward.
Verify that gnome-ppp has correctly detected the modem: click on "Parameters" and later on "Detect"
In the Gnome-ppp window, fill login, password and telephone number of the Internet Service Provider.
If you get an "immediate" disconnection: in "Parameters" / "Options", unmark "check carrier line"
To connect, you must be in the gnome-ppp window. Click in "Connect".
You can also see the connection operations.
When the IPs appear, la connection is established.
When you are connect, appears a little window. You can click in "details" to see information about the connection.
Click in "disconnect".
If wvdial works but you have problems connecting with gnome-ppp, view the wvdial.conf file. This is created in the "Alternate Way 1" section below:
gksudo gedit /etc/wvdial.conf
open the wvdial.conf file that gnome-ppp creates (in a different location):
gksudo gedit $HOME/.wvdial.conf
and compare the settings. Change the settings in the gnome-ppp wvdial so they match the settings in the functioning /etc/wvdial.conf. Do not delete lines--if you need to remove a setting, simply delete the text to the right of the = sign, eg. "Init3 = ". Despite the warning at the bottom of the gnome-ppp wvdial.conf file, you can add lines if necessary, eg. "Stupid Mode = on".
Kppp can be installed and comes with Kubuntu and is a very nice program with all the features you would like from a dialer. It has a nice window showing that it is connected and gives the duration as well. It can also be configured to calculate your telco connection cost. If it is not installed yet, you can install it with your package manager, e. g. $ sudo apt-get install kppp, and find it in the "Internet" section of the menu.
Every user, who is in the dip/dialout groups, can use kppp to configure, connect and manage a connection to an ISP. If you need help with its interface, go to "Help -- Handbook" or use the online handbook here: [WWW]
If you have problems with Authentification, you might want to edit /etc/ppp/peers/kppp-options and activate the line noauth by removing the comment sign.
I prefer wvdial, because it tells you whether your modem is configured or not.
It dials a modem and starts in order to connect to the Internet. The connection started with wvdial can be dropped by switching back to the terminal from where it was started and pressing ctrl-C.
Type in a terminal
$ sudo wvdialconf /etc/wvdial.conf
If it says 'no modem found' or something similar, sorry... the driver for your modem seems not to be installed properly yet. Alternatively, you can try . The lack of a /dev/modem is not supposed to break wvdial's configuration.
If the modem is found, finish the setup with:
$ sudo nano /etc/wvdial.conf
After opening the wvdial.conf file, input your ISP information where needed (look inside the file for fields) and add other options that might be needed for your software modem. You will know what these options are if you asked for help from linmodems.org mailing list. Examples options that you can try to add, if dialling does not work:
add X3 to Init2 (means dial without waiting)
add Carrier Check = no as a new line (useful for Smartlink modems)
add Stupid mode = on as a new line (will start pppd immediately--required by some ISPs)
Typing man wvdial.conf in a separate terminal will give details on options.
Once you are ready, save the file (Ctrl-o) and exit (Ctrl-x), and try to dial:
sudo wvdial
will dial and connect. If you are using the Ubuntu Live CD, you cannot save the file wvdial.conf
Upon connection, it will spit out some information about your connection (local IP, remote IP, DNS address, etc.). Do not close the terminal where wvdial is running. Leave it alone until you want the connection to be terminated, and hit CTRL+C on that terminal once you want to end the connection.
If you lose the connection a short time after connecting (30 sec - 3 min), you might need to edit options for pppd:
gksudo gedit /etc/ppp/options
Find lcp-echo-interval30 and lcp-echo-failure4. Comment out these options by adding a '#' at the start of these lines, eg. # lcp-echo-interval30 and # lcp-echo-failure4.
If you connect successfully but your Internet applications do not function (eg. web pages do not load in Firefox), you might need to add replacedefaultroute as a new line in the pppd option file.
This is a command line based option to manage dialup connections. This makes it very flexible, but maybe not so straightforward to configure.
You will need:
Open a terminal (Applications > System Tools > Terminal) and type
$ sudo pppconfig
Exit the terminal window, type:
$ exit
Log out and back in (for the group setting to take effect). Every "dialout/dip" user will now be able to connect and disconnect with these commands:
$ pon # connect to the ISP configured as "provider"
$ poff # disconnect the ISP configured as "provider"
You can also check the last messages generated by these commands with:
$ plog # shows the (status) messages generated by pon and poff
If you want to configure more ISPs, start pppconfig again, go through the steps, but give it a different name in step 3 (e.g. provider2). You can then (dis)connect by pon provider2 and poff provider2.
If something goes wrong, you can look at the /var/log/ppp.log file to determine what happened.You can also view the log as the connection is being made, by "tailing" it in another window; that is, viewing it as pppd logs the connection's status information. To do this, use the command (as root):
On some systems the PPP output is directed to /var/log/messages, in which case your system may not have a dedicated PPP log file.
The configuration of pppd, the program that maintains the actual connection, is usually contained in two or three separate files. The first is usually /etc/ppp/options, which contains options that all of your system's PPP connections will use. (Yes, you can have more than one; as many as your computer has serial ports, generally.)
You can see an .
To quiet or silence the connection noises (dialing, negotiation, etc.), follow these steps:
Open a terminal (Applications > System Tools > Terminal) and type
$ sudo nano /etc/chatscripts/provider
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.
In a terminal enter:
Use command to set and/or report the configuration information associated with a serial port.
Make sure Linux has detected serial ports. Use command to set and/or report the configuration information associated with a serial port.
The -s option use to setup minicom. Type the following command at shell prompt:
To start minicom, you need to connect your serial device such as router or modem using modem cable. Once connected power on device and type minicom command without -s option:
$ minicom -c on