Difference between revisions of "Dialup without a dialer"

From ArchWiki
Jump to: navigation, search
(+ i18n)
(Fix, remove double backslash in connect command; Add bulleted point.)
Line 9: Line 9:
 
This page tells you how you can execute pppd directly without using dialer software such as pon/poff, wvdial, kppp, etc. It stays connected through X server shutdowns and is extremely simple, in accordance with Arch philosophy.
 
This page tells you how you can execute pppd directly without using dialer software such as pon/poff, wvdial, kppp, etc. It stays connected through X server shutdowns and is extremely simple, in accordance with Arch philosophy.
  
Install '''ppp'''
+
* Install '''ppp'''
 +
 
 
  # pacman -S ppp
 
  # pacman -S ppp
  
Back up '''/etc/ppp/options'''
+
* Back up '''/etc/ppp/options'''
 +
 
 
  # mv /etc/ppp/options /etc/ppp/options.old
 
  # mv /etc/ppp/options /etc/ppp/options.old
  
Create new '''/etc/ppp/options''' using this template:
+
* Create new '''/etc/ppp/options''' using this template:
 +
 
 
  lock
 
  lock
 
  modem
 
  modem
Line 24: Line 27:
 
  noipdefault
 
  noipdefault
 
  user <USERNAME>
 
  user <USERNAME>
  connect 'chat -t60 \\"\\" ATZ OK ATX3 OK ATDT<NUMBER> CONNECT'
+
  connect 'chat -t60 \"\" ATZ OK ATX3 OK ATDT<NUMBER> CONNECT'
  
Now, take a good look at the next table:
+
Replace </dev/DEVICE> with your modem device. For comparison with another operating system device, take a good look at the next table,
  WINDOW$       GNU/Linux
+
 
 +
  Windows       GNU/Linux
 
   COM1  -->  /dev/ttyS0
 
   COM1  -->  /dev/ttyS0
 
   COM2  -->  /dev/ttyS1
 
   COM2  -->  /dev/ttyS1
Line 33: Line 37:
 
   ...
 
   ...
  
Edit to point device to your modem device, to use your dialup account username, and to dial your ISP's number after the ATDT. You can disable call waiting using ATDT  70,15555555(in North America, anyway).  You may also wish to edit the dialer commands, search http://www.google.com for information on how to do this. If your ISP uses CHAP then next file is '''chap-secrets'''
+
Edit to point device to your modem device, to use your dialup account username, and to dial your ISP's number after the ATDT. You can disable call waiting using ATDT  70,15555555(in North America, anyway).  You may also wish to edit the dialer commands, [http://www.google.com search] for information on how to do this. If your ISP uses CHAP then next file is '''chap-secrets'''
 +
 
 +
* Edit '''/etc/ppp/chap-secrets'''.  See [http://www.tldp.org/HOWTO/PPP-HOWTO/x1005.html The PAP/CHAP secrets file] for more details.
  
Edit '''/etc/ppp/chap-secrets'''. See [http://www.tldp.org/HOWTO/PPP-HOWTO/x1005.html The PAP/CHAP secrets file] for more details.
+
  "USERNAME" * "PASSWORD"
\"USERNAM\" * \"PASSWORD\"
+
  
Now you are ready to connect.  Connect (as root) using '''pppd /dev/modem''' (or whatever device your modem is connected as).
+
* Now you are ready to connect.  Connect (as root) using '''pppd /dev/modem''' (or whatever device your modem is connected as).
  
 
To disconnect, use '''killall pppd'''
 
To disconnect, use '''killall pppd'''

Revision as of 00:13, 14 December 2010

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n links end

Introduction

This page tells you how you can execute pppd directly without using dialer software such as pon/poff, wvdial, kppp, etc. It stays connected through X server shutdowns and is extremely simple, in accordance with Arch philosophy.

  • Install ppp
# pacman -S ppp
  • Back up /etc/ppp/options
# mv /etc/ppp/options /etc/ppp/options.old
  • Create new /etc/ppp/options using this template:
lock
modem
debug
</dev/DEVICE>
115200
defaultroute
noipdefault
user <USERNAME>
connect 'chat -t60 \"\" ATZ OK ATX3 OK ATDT<NUMBER> CONNECT'

Replace </dev/DEVICE> with your modem device. For comparison with another operating system device, take a good look at the next table,

Windows        GNU/Linux
 COM1   -->   /dev/ttyS0
 COM2   -->   /dev/ttyS1
 COM3   -->   /dev/ttyS2
 ...

Edit to point device to your modem device, to use your dialup account username, and to dial your ISP's number after the ATDT. You can disable call waiting using ATDT 70,15555555(in North America, anyway). You may also wish to edit the dialer commands, search for information on how to do this. If your ISP uses CHAP then next file is chap-secrets

"USERNAME" * "PASSWORD"
  • Now you are ready to connect. Connect (as root) using pppd /dev/modem (or whatever device your modem is connected as).

To disconnect, use killall pppd

If you wish to connect as user, you can use sudo. Configure sudo to call the above commands for your user, and you can use the following aliases in your ~/.bash_profile:

alias dial='sudo /usr/sbin/pppd /dev/modem'
alias hang='sudo /usr/bin/killall pppd'

Now you can connect with dial and disconnect with hang