Difference between revisions of "Dialup configuration"

From FreekiWiki
Jump to navigation Jump to search
 
(26 intermediate revisions by 11 users not shown)
Line 1: Line 1:
 +
{{cleanup}}{{Migrated}}
 +
[https://docs.google.com/document/d/1EAmMweafQyww4MBCJ8IlQiWFDr4viBXsFTG0i1cknE8/edit?usp=sharing Link]
 +
 +
'''Keep in mind that our testing username is '''freegeek@whiz.to''' (must include both the username and domainname)'''
 +
 +
 +
'''N.B. When testing/setting up Whiz.to accounts always use the Gresham Number: 503-465-4055. The Portland numbers listed do not work reliably (at all).'''
 
This page is relevant to both the Ubuntu boxen and the Freekbox3
 
This page is relevant to both the Ubuntu boxen and the Freekbox3
  
== pppconfig ==
+
 
 +
==Getting gnome-ppp to run properly==
 +
First make sure that gnome-ppp is installed by typing in 'gnome-ppp' into the terminal. If not installed, type 'sudo apt-get install gnome-ppp'. Once installed certain permissions need to be set to enable it to connect properly. Open the System menu, select Administration, then Users and Groups. Select Advanced Settings and enter the account password when requested. In the Advanced Settings window select the User Privileges tab and enable "Connect to Internet using a modem" and "Use modems".
 +
 
 +
==Ubuntu Help==
 +
*Also see: [https://help.ubuntu.com/community/DialupModemHowto/SetUpDialer https://help.ubuntu.com/community/DialupModemHowto/SetUpDialer]
 +
* NOTE: Passwords are located [http://securewiki.freegeek.org/index.php/Passwords here]
 +
 
 +
==Installing a dial up modem==
 +
'''If using a Free Geek test number/password for testing do not forget to erase them from Gnome PPP before giving the computer back to the customer'''
 +
#Find a modem that works in linux (get one from tardis if you cant find one in tech support). And plug it in.
 +
#Using a wired ethernet connection install gnome-ppp
 +
apt-get install gnome-ppp
 +
#run gnome-ppp (applications>internet>gnome-ppp) and click on setup then detect, to tell it to look for the modem. If gnome-ppp does not detect the modem it will give an error, in which case you should try a different modem.
 +
#Get the user's ISP information (user/password/local phone number), and enter it into gnome-ppp. If the user does not yet have an ISP, we can sign them up for whiz to coho in tech support (to do, make a page on this).
 +
#Make sure that "save password" is checked or things will not work.
 +
#do a test run and make sure the modem is able to connect properly, user and password is correct, ect.
 +
#Open firefox, in the URL enter "about:config"
 +
#search the about config page for "networkmanager" (the full line is "toolkit.networkmanager.disable) set this to true. This will prevent firefox from always opening in offline mode.
 +
#Create a shortcut to gnome-ppp on the desktop or panel (or both) and show the user where it is and how to connect.
 +
#DONE!
 +
 
 +
==Alternatives==
 +
 
 +
===Network Manager===
 +
This should work fine in Ubuntu 8.04, but not in newer versions.
 +
 
 +
First, you need to determine the device your modem is called by the OS.  Open a terminal and run "wvdialconf".  That program will probe for modems and report its findings.  If a modem is found it will be in the form of "/dev/<device>", e.g. /dev/ttyS1 or /dev/ttyACM0.
 +
 
 +
#Open the network manager
 +
#Click "Unlock" and put in your password
 +
#select the point to point connection and edit
 +
#put a check in "enable this connection"
 +
#on the modem tab, make sure the device is set to what you found with wvdialconf
 +
#on the options tab, make sure you are using the ISP's nameservers, and to set the connection as the default route
 +
#on the general tab, fill in the information the isp gave you (username, password, phone number)
 +
 
 +
=== pppconfig ===
 
This program is always present on a Debian or Ubuntu box as part of the default install.
 
This program is always present on a Debian or Ubuntu box as part of the default install.
 
;Advantages
 
;Advantages
Line 10: Line 54:
 
* requires root to create new connection and to debug
 
* requires root to create new connection and to debug
 
* not obvious to someone used to a gui interface
 
* not obvious to someone used to a gui interface
===Configuration===
+
====Configuration====
* open a terminal, become root, type pppconfig
+
* open a terminal, become [[root]], type pppconfig
 
* Use the defaults for most things
 
* Use the defaults for most things
 
* The modem may be autodetected if it is a ISA modem but if it is not, or the modem is a PCI modem, manually enter /dev/modem
 
* The modem may be autodetected if it is a ISA modem but if it is not, or the modem is a PCI modem, manually enter /dev/modem
  
===Use===
+
====Use====
 
* to start a connection, type "pon" (if you created a connection with a name other than "provider", you must use "pon <name>")
 
* to start a connection, type "pon" (if you created a connection with a name other than "provider", you must use "pon <name>")
 
* to close a connection, type "poff"
 
* to close a connection, type "poff"
Line 21: Line 65:
 
* to tell if you are connected type "netstat -nr" and look for the ppp0 interface.
 
* to tell if you are connected type "netstat -nr" and look for the ppp0 interface.
  
== gnome-ppp ==
+
=== kppp ===
This program is present on all Free Geek Ubuntu boxen in the Internet menu or as a red teleophone on the upper panel.  It is not present on default Ubuntu installs.
 
;Advantages
 
*Graphical interface
 
*Easy to configure, defaults mostly good
 
*Excellent logging, easy to tell when and how failure happens
 
*Auto detection of many kinds of modems, including PCI modems on ttyS14 (if MAKEDEV has been run) and linmodems (if the appropriate package has been run)
 
 
 
;Disadvantages
 
*no ATI query
 
 
 
===Configuration===
 
Generally the only thing needed is to put in your username, password and the phone number (make sure you check the "Remember password" box).  You may need to detect the modem.  To do this, click the setup button and click the "Detect" button on the page that comes up.  It should find the modem and put it in the Device window.  If it does not find a modem, there is a basic hardware or hardware configuration issue.
 
 
 
== kppp ==
 
 
Part of the KDE desktop system, kppp is present on all freekboxen 2 and 3 but is not present on Ubuntu boxen.
 
Part of the KDE desktop system, kppp is present on all freekboxen 2 and 3 but is not present on Ubuntu boxen.
 
;Advantages
 
;Advantages
Line 45: Line 75:
 
*buggy
 
*buggy
 
*Often need to edit pap-secrets anyway
 
*Often need to edit pap-secrets anyway
 
==Ubuntu network configuration==
 
Ubuntu includes a network configuration tool which can dial a connection, but it frequently fails to work and gives no log or even an error message when it fails.  We recommend against using this tool.
 
  
  
==See also==
+
===See also===
  
 
* http://www.virtual-cafe.com/modeminit.html for handy modem initialization strings
 
* http://www.virtual-cafe.com/modeminit.html for handy modem initialization strings
Line 56: Line 83:
  
 
==Problems==
 
==Problems==
 +
 +
===If "permission error" is written to modem log when attempting to connect===
 +
 +
open - system --> administration --> users and groups
 +
open - advanced settings
 +
open - user privileges tab
 +
check - connect to internet using a modem
 +
 +
 +
AND REBOOT
 +
 +
if that doesn't work try
 +
sudo chown root:dip /usr/sbin/pppd
 +
sudo chmod 4754 /usr/sbin/pppd
 +
sudo chmod 777 /etc/ppp/pap-secrets
 +
sudo chmod 777 /etc/ppp/peers
 +
 +
and reboot.
 +
 +
==If command string is not accepted by modem and modem is a 3com modem==
 +
 +
Should see error 'invalid dial command' in terminal after starting gnome-ppp from there. If you are receiving this error, go into 'Options' on the Gnome PPP GUI and choose 'low' or 'none' for the Volume option.
 +
 
===password problems===
 
===password problems===
 
With some ISP's using the default configurations of kppp and gnome-ppp does not work. In those cases, you can generally get the account going by editing the pap-secrets file.
 
With some ISP's using the default configurations of kppp and gnome-ppp does not work. In those cases, you can generally get the account going by editing the pap-secrets file.
Line 62: Line 112:
  
 
You need to open a terminal and su to root.  Then type the following line:
 
You need to open a terminal and su to root.  Then type the following line:
  nano /etc/ppp/pap-secrets
+
  nano /etc/ppp/pap-secrets  
 +
(or use your favorite text editor)
 +
 
 
Add your username and password on the last line of the file in the following format:
 
Add your username and password on the last line of the file in the following format:
  username * password
+
  "username" * "password"
The "*" is necessary.
+
The "*" is necessary, as are the double quotes.
  
 
Save by typing ctrl+o, then enter, then exit with ctrl+x.
 
Save by typing ctrl+o, then enter, then exit with ctrl+x.
 +
 +
If you have a persistent error code 19 though the customers authentication information seems correct, try
 +
 +
chmod a+rw /etc/ppp/pap-secrets
 +
 +
Worked on a customer with att.net [[User:Luiz|Luiz]] 20:06, 17 August 2010 (UTC)
 +
 
====pppconfig====
 
====pppconfig====
 
pppconfig adds the username and password to pap-secrets.  This is an easy way to fix password problems and gives you another dialer.
 
pppconfig adds the username and password to pap-secrets.  This is an easy way to fix password problems and gives you another dialer.
Line 73: Line 132:
 
[[Category:Tech support]]
 
[[Category:Tech support]]
 
[[Category:modems]]
 
[[Category:modems]]
 +
[[Category:Needs updating]]

Latest revision as of 13:55, 9 May 2014

This page or section appears to be out of date or otherwise inaccurate.
Please edit as seems necessary, removing the {{cleanup}} tag when you are through.

deletion

This page has been migrated to a document on Free Geek's Google Drive.

Information remaining behind may no longer be relevant.

MIGRATOR:

When you have tagged this page as migrated,
please add a link to the new document on Google Drive.

(Link to new page immediately below.)


Link

Keep in mind that our testing username is freegeek@whiz.to (must include both the username and domainname)


N.B. When testing/setting up Whiz.to accounts always use the Gresham Number: 503-465-4055. The Portland numbers listed do not work reliably (at all). This page is relevant to both the Ubuntu boxen and the Freekbox3


Getting gnome-ppp to run properly

First make sure that gnome-ppp is installed by typing in 'gnome-ppp' into the terminal. If not installed, type 'sudo apt-get install gnome-ppp'. Once installed certain permissions need to be set to enable it to connect properly. Open the System menu, select Administration, then Users and Groups. Select Advanced Settings and enter the account password when requested. In the Advanced Settings window select the User Privileges tab and enable "Connect to Internet using a modem" and "Use modems".

Ubuntu Help

Installing a dial up modem

If using a Free Geek test number/password for testing do not forget to erase them from Gnome PPP before giving the computer back to the customer

  1. Find a modem that works in linux (get one from tardis if you cant find one in tech support). And plug it in.
  2. Using a wired ethernet connection install gnome-ppp
apt-get install gnome-ppp
  1. run gnome-ppp (applications>internet>gnome-ppp) and click on setup then detect, to tell it to look for the modem. If gnome-ppp does not detect the modem it will give an error, in which case you should try a different modem.
  2. Get the user's ISP information (user/password/local phone number), and enter it into gnome-ppp. If the user does not yet have an ISP, we can sign them up for whiz to coho in tech support (to do, make a page on this).
  3. Make sure that "save password" is checked or things will not work.
  4. do a test run and make sure the modem is able to connect properly, user and password is correct, ect.
  5. Open firefox, in the URL enter "about:config"
  6. search the about config page for "networkmanager" (the full line is "toolkit.networkmanager.disable) set this to true. This will prevent firefox from always opening in offline mode.
  7. Create a shortcut to gnome-ppp on the desktop or panel (or both) and show the user where it is and how to connect.
  8. DONE!

Alternatives

Network Manager

This should work fine in Ubuntu 8.04, but not in newer versions.

First, you need to determine the device your modem is called by the OS. Open a terminal and run "wvdialconf". That program will probe for modems and report its findings. If a modem is found it will be in the form of "/dev/<device>", e.g. /dev/ttyS1 or /dev/ttyACM0.

  1. Open the network manager
  2. Click "Unlock" and put in your password
  3. select the point to point connection and edit
  4. put a check in "enable this connection"
  5. on the modem tab, make sure the device is set to what you found with wvdialconf
  6. on the options tab, make sure you are using the ISP's nameservers, and to set the connection as the default route
  7. on the general tab, fill in the information the isp gave you (username, password, phone number)

pppconfig

This program is always present on a Debian or Ubuntu box as part of the default install.

Advantages
  • reliable
  • easy to configure for someone familiar with command line
  • can be used by normal user
Disadvantages
  • requires root to create new connection and to debug
  • not obvious to someone used to a gui interface

Configuration

  • open a terminal, become root, type pppconfig
  • Use the defaults for most things
  • The modem may be autodetected if it is a ISA modem but if it is not, or the modem is a PCI modem, manually enter /dev/modem

Use

  • to start a connection, type "pon" (if you created a connection with a name other than "provider", you must use "pon <name>")
  • to close a connection, type "poff"
  • to debug (as root) type "plog". this shows the tail of the ppp log.
  • to tell if you are connected type "netstat -nr" and look for the ppp0 interface.

kppp

Part of the KDE desktop system, kppp is present on all freekboxen 2 and 3 but is not present on Ubuntu boxen.

Advantages
  • Graphical windows-like
  • Easy to configure, defaults mostly good
  • Easy to get ATI command responses
Disadvantages
  • Very flaky, fails to work at reasonable speed on good modems
  • buggy
  • Often need to edit pap-secrets anyway


See also

Problems

If "permission error" is written to modem log when attempting to connect

open - system --> administration --> users and groups
open - advanced settings
open - user privileges tab
check - connect to internet using a modem


AND REBOOT

if that doesn't work try

sudo chown root:dip /usr/sbin/pppd
sudo chmod 4754 /usr/sbin/pppd
sudo chmod 777 /etc/ppp/pap-secrets
sudo chmod 777 /etc/ppp/peers

and reboot.

If command string is not accepted by modem and modem is a 3com modem

Should see error 'invalid dial command' in terminal after starting gnome-ppp from there. If you are receiving this error, go into 'Options' on the Gnome PPP GUI and choose 'low' or 'none' for the Volume option.

password problems

With some ISP's using the default configurations of kppp and gnome-ppp does not work. In those cases, you can generally get the account going by editing the pap-secrets file.

by hand

You need to open a terminal and su to root. Then type the following line:

nano /etc/ppp/pap-secrets 

(or use your favorite text editor)

Add your username and password on the last line of the file in the following format:

"username" * "password"

The "*" is necessary, as are the double quotes.

Save by typing ctrl+o, then enter, then exit with ctrl+x.

If you have a persistent error code 19 though the customers authentication information seems correct, try

chmod a+rw /etc/ppp/pap-secrets

Worked on a customer with att.net Luiz 20:06, 17 August 2010 (UTC)

pppconfig

pppconfig adds the username and password to pap-secrets. This is an easy way to fix password problems and gives you another dialer.