Difference between revisions of "Dialup without a dialer"

From ArchWiki
Jump to: navigation, search
 
(Redirect to merged page.)
(18 intermediate revisions by 14 users not shown)
Line 1: Line 1:
====Dialup Sans Dialer====
+
#REDIRECT [[Direct Modem Connection#Dialup without a 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 <code>pppd</code>
 
  <verbatim>
 
  pacman -S pppd
 
  </verbatim>
 
 
 
# Back up <code>/etc/ppp/options</code>
 
  <verbatim>
 
  mv /etc/ppp/options /etc/ppp/options.old
 
  </verbatim>
 
 
 
# Create new <code>/etc/ppp/options</code> using this template:
 
  <verbatim>
 
  lock
 
  modem
 
  debug
 
  </dev/DEVICE>
 
  115200
 
  defaultroute
 
  noipdefault
 
  user <USERNAME>
 
  connect 'chat -t60 \\"\\" ATZ OK ATX3 OK ATDT<NUMBER> CONNECT'
 
  </verbatim>
 
 
 
  Now, take a good look at the next table:
 
  <verbatim>
 
  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
 
  COM2  -->  /dev/ttyS1
 
  COM3  -->  /dev/ttyS2
 
  ...
 
  </verbatim>
 
  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 <code>/etc/ppp/pap-secrets</code>
 
  <verbatim>
 
  \"USERNAM\" * \"PASSWORD\"
 
  </verbatim>
 
 
 
# Now you are ready to connect.  Connect (as root) using <code>pppd /dev/modem</code> (or whatever device your modem is connected as).
 
 
 
# To disconnect, use <code>killall pppd</code>
 
 
 
# 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 <code>~/.bash_profile</code>:
 
  <verbatim>
 
  alias dial='sudo /usr/sbin/pppd /dev/modem'
 
  alias hang='sudo /usr/bin/killall pppd'
 
  </verbatim>
 
  Now you can connect with <code>dial</code> and disconnect with <code>hang</code>
 

Revision as of 07:30, 16 August 2012