Difference between revisions of "Dialup without a dialer"

From ArchWiki
Jump to: navigation, search
 
Line 5: Line 5:
 
http://bbs.archlinux.org/viewtopic.php?t=4753
 
http://bbs.archlinux.org/viewtopic.php?t=4753
  
# Install <code>pppd</code>
+
Install '''pppd'''
   <verbatim>
+
   <pre>
 
   pacman -S pppd
 
   pacman -S pppd
   </verbatim>
+
   </pre>
  
# Back up <code>/etc/ppp/options</code>
+
Back up '''/etc/ppp/options'''
   <verbatim>
+
   <pre>
 
   mv /etc/ppp/options /etc/ppp/options.old
 
   mv /etc/ppp/options /etc/ppp/options.old
   </verbatim>
+
   </pre>
  
# Create new <code>/etc/ppp/options</code> using this template:
+
Create new '''/etc/ppp/options''' using this template:
   <verbatim>
+
   <pre>
 
   lock
 
   lock
 
   modem
 
   modem
Line 26: Line 26:
 
   user <USERNAME>
 
   user <USERNAME>
 
   connect 'chat -t60 \\"\\" ATZ OK ATX3 OK ATDT<NUMBER> CONNECT'
 
   connect 'chat -t60 \\"\\" ATZ OK ATX3 OK ATDT<NUMBER> CONNECT'
   </verbatim>
+
   </pre>
  
 
   Now, take a good look at the next table:
 
   Now, take a good look at the next table:
   <verbatim>
+
   <pre>
 
   WINDOW$        GNU/Linux
 
   WINDOW$        GNU/Linux
  <code></code><code></code><code></code><code></code><code></code><code></code><code></code><code></code><code></code><code></code><code></code><code></code>=
 
 
   COM1  -->  /dev/ttyS0
 
   COM1  -->  /dev/ttyS0
 
   COM2  -->  /dev/ttyS1
 
   COM2  -->  /dev/ttyS1
 
   COM3  -->  /dev/ttyS2
 
   COM3  -->  /dev/ttyS2
 
   ...
 
   ...
   </verbatim>
+
   </pre>
  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 <code>ATDT'''70,15555555</code> (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, search http://www.google.com for information on how to do this. If your ISP uses CHAP then next file is '''chap-secrets*
  
 
# Edit <code>/etc/ppp/pap-secrets</code>
 
# Edit <code>/etc/ppp/pap-secrets</code>

Revision as of 09:53, 24 July 2005

Dialup Sans Dialer

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.

http://bbs.archlinux.org/viewtopic.php?t=4753

Install pppd

  pacman -S pppd
  

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'
  
 Now, take a good look at the next table:
  WINDOW$        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 ATDT70,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*

  1. Edit /etc/ppp/pap-secrets
 <verbatim>
 \"USERNAM\" * \"PASSWORD\"
 </verbatim>
  1. Now you are ready to connect. Connect (as root) using pppd /dev/modem (or whatever device your modem is connected as).
  1. To disconnect, use killall pppd
  1. 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:
 <verbatim>
 alias dial='sudo /usr/sbin/pppd /dev/modem'
 alias hang='sudo /usr/bin/killall pppd'
 </verbatim>
 Now you can connect with dial and disconnect with hang