(mm) | A PPP dialer for Linux | ||||||||||||||||||||||||||||||||
Home | Software | Count | |||||||||||||||||||||||||||||||||
Software: GWT GWTOAuthLogin X/Motif ansi xterm grabc mdgclock miv mplaymidi mppp mxascii mcmap mxcmap mxconsole mxkill mxshowfont qtip xmastm yrolo Web mhttpd web counter upload.pl TimeTrack.pl mod_auth_ldap Games fltkmm iphonemm Java cdcl cdclgwt jdgclock Libraries libcalen libmcfg libsll libmsock Misc bangla font dpr genmake hod smtp.pl vhtml phones_ldap showpic_ldap mbasecalc fluid_hack kdialppp strip2csv googlecode-upload MS Windows mwinclip.pl mbasecalc mailsend wiv |
ppp dialers for Linux by Muhammad A Muquit
Table of Contents
Note: I'm on broadband for quite a while. So I don't maintain or use this
program anymore.
Introduction
Changes
Download
$ tar -xvzf mppp1.1b.tar.gz or $ tar -xvzf mppp1.1b_static.tar.gz $ cd mppp1.1bHow to compile If you want to compile with debug on, add -DDEBUG=1 in Makefile.no-moitf and Xmppp.tmp.
Compiling mppp $ make clean $ make -f Makefile.no-motifThe name of the binary is mppp. copy it somewhere in your path.
Compiling xmppp $ xmkmf $ make clean $ makeThe name of the binary is xmppp. copy it somewhere in your path. Appropriate fallback resorces are used at compile time. That means, the xmppp program will have a nice look without the app-defaults file. However if you insist on changing the resources, please look the file Xmppp.ad. Copy this file to /usr/lib/X11/app-defaults or (to your home direcoty) as Xmppp. If you change any resource, make sure that you do it right, otherwise xmppp will not look right. Even a empty resources file screw things up. I suggest not to install application resources file. If you get error message about undefined constants B57600, B115200, B230400, and B460800, you have an old kernel. Remove the flag -DHIGH_SPEED=1 from Makefile.no-motif and Xmppp.tmpl. mppp [options] xmppp [options] Where, the options include: -config config_file specifies the config file -h shows this help -verbose verbose mode on -V shows Version -quit minutes exits keeping ppp connection open (only for mppp). If the value of minutes is 0, then the ppp connection will stay up until it is disconnected manually. If a value is specified then the pppd will be killed after the time is elapsed. For xmppp, all standard X toolkit command line options are available.
How to use $ mkdir $HOME/.mpppdir $ cp ./dotmpppdir/* $HOME/.mpppdir $ cd $HOME/.mpppdir $ /bin/ls -lNow you must edit the file mppp.cfg and fccc.scr using your favorite text editor. The file fccc.scr is the script file which holds the send-expect string sequence for establishing ppp connection. You can change the name/path of this file by editing mppp.cfg file.
Configuration file ######################################################################### # Config file for mppp and xmppp 1.1b # This file contains all necessary information in order to make a ppp # connection to a ISP or to a PPP server running on a host. # # URL: http://www.fccc.edu/users/muquit # email: ma_muquit@fccc.edu # May-03-1997 (a vacation hack) ######################################################################### # # Version Current mppp version. This must be present # MpppVersion 1.1b # # PPPcommand full path of pppd # PPPCommand /usr/sbin/pppd # #PPPdargs pppd arguments. ALL in one line, no line break is allowed! # pppdargs asyncmap 0 lock -detach defaultroute crtscts # # MpppLogfile The file keeps the connection records # #MpppLogfile /users/muquit/.mpppdir/mppp.log MpppLogfile mppp.log # #MpppLockfile The dotlock file to prevent multiple # invocation of mppp. MpppLockfile mppp.lck # # Location A smal description of your PPP server # # Location Fox Chase Cancer Center PPP server # # MaxRedial Maximum Number of attemts to dial a specific number if the # Number is busy or dialing fails for some reason. MaxRedial 3 # # MaxLoop Loop throught the list of numbers this many times # MaxLoop 5 # # Numbers The phone numbers. The syntax is Number1:baud|Number2:baud.. # If the first number is busy after MaxRedial, the second # number is tried MaxRedial time and so on. # Numbers 1111111:57600|2222222:38400|3333333:38400|4444444:38400 # # Script The name of the file which holds the send-expect sequence. # If the filename does not start with /, the file must be # located at $HOME/.mppdir directory # #Script /users/muquit/.mpppdir/fccc.scr Script fccc.scr # # Device The name of the modem device # Device /dev/modem # #InitString Modem Init string # InitString AT&F1M0 # #InitOKResponse Expected ok response from modem sending # the InitString # InitOKResponse OK # # DialString Modem Dialing string # DialString ATX4DT # # DialOKResponse Expect OK response from modem after connecting # DialOKResponse CONNECTAnd the following is the script file specified by the directive Script ###################################################################### # a Script file for mppp # ma_muquit@fccc.edu, May-31-1997 # # The format of this file is send expect sequence, one in each line. # #Connect to your ppp server using minicom or some other dialing software #and keep a note of the prompts and the string you responded with. You can #use a full or a partial string in the sequence. Try to avoid confusing #specification. This is what I need to make a ppp connection, it may very #significantly for you. # # Three characters are considered special, they are: ^cr, ^crlf and ^lf. # ^cr indicates Carriage Return (\r) # ^crlf indicates Carriage Return-Line Feed (\r\n) # ^lf indicates Line Feed (\n) # # NOTE: ^ is the literal ^ character, not a control character, that is # you'll type it as Shift+6 (Press shift and 6 key) # # DO NOT add ^cr or ^crlf or ^lf after any expect-send line. If you # need any of those, add each one on a separate line. # ###################################################################### send ^cr send ^cr expect Userid: send <Your login> expect ssword send <Your password> send ^cr expect > send ppp send ^cr
If you use this program to connect to your ISP, you might consider sending me the script file you use. It would be helpful to others who subscribe to the same ISP and do not know how to write the script file. Do not forget to remove your password before sending it to me.
How it works mppp -config /some/path/abcd.cfg or xmppp -config /some/path/abcd.cfgxmppp locates the configuration file exactly the same way, only difference with mppp is that xmppp reads the file when the Connect button is clicked.
It is possible to run mppp -quit 30 > /dev/null 2>&1 mppp will disconnect after 30 minutes.
Screen shots $ mppp Attempt (1/3), Loop (1/5), ph # 1111111, baud 57600 Initializing Modem ...initialized Dialing 1111111, Speed 57600 ... -done- Initiating send-expect sequence ... -done- Negotiating ppp handshake... -done- --- Press Enter to close connection --- Connected! (Number 1111111) (Baud 57600) Sun Mar 22 15:21:02 1998 -> 00:00:37
The red indicator changes color from red to yellow to green as the state of connection progresses. The first red indicator changes to yellow as the modem initialization starts. It becomes green after the initialization succeeds. The second indicator goes to yellow as the dialing starts and becomes green as the connection is established with the ppp server. The third indicator becomes yellow as the send-expect sequence starts and becomes green as the send-expect sequences finishes by starting the ppp at the other side. The fourth indicator goes yellow as the pppd starts at the local machine and goes green as handshakes succeeds with the other side.
If the Hangup button is clicked, the pppd daemon gets killed and modem device gets closed and initialized back to its original state. A log of the connection is written to the file specified by MpppLog directive in the config file.
The default icon is shown on the left and the icon changes like the one on the right after the ppp connection is established. After the connection, the icon name acts as a timer (hr:min:sec) which shows the elapsed time. If you use fvwm95 or some other kind of window manager which do not display icons, then the icons won't be much useful to you. I use CDE, so I can tell right away if ppp is up or down just by looking at the icon. 1. After writing the message "Initiating send- expect sequence ...", the program just waits for ever. What's going on?
|
||||||||||||||||||||||||||||||||
back | Page updated: Sun Mar 31 01:59:56 2013 GMT Copyright © 2013 muquit@muquit.com. |