SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Pastimes : Linux OS.: Technical questions -- Ignore unavailable to you. Want to Upgrade?


To: Elmer who wrote (125)11/21/1998 3:52:00 PM
From: Mitch Blevins  Read Replies (1) | Respond to of 484
 
Some distributions have a setup utility that attempts to make it easier. Which distro are you using?



To: Elmer who wrote (125)11/21/1998 4:01:00 PM
From: Mitch Blevins  Respond to of 484
 
Also, try out
appindex.freshmeat.net



To: Elmer who wrote (125)11/21/1998 8:16:00 PM
From: E. Charters  Respond to of 484
 
# this file will start a ppp session. DIP should be in /sbin
# go to /sbin and do this: "dip -v thisfile.dip" name your file the
# name of your ISP and .dip then come back with the errors and
# go from there. Replace the stuff where it says and leave the
# hash marks in #> stuff needs replacing --> that is your stuff<--
# other things may need modification, to find out your settings
# try running dip -tv with no script, this will give you the
# stuff your ISP sends you, such as login or password. You
# have to put in the modem commands and the other commands by
# hand.
# If you need help with your resolv.conf file and /etc/hosts
# file it is real simple. Linux Secrets is a good book on basics.
#
# ppp.dip Dialup IP connection support program.
# This file (should show) shows how to use the DIP
# scripting commands to establish a link to a
# static or dynamic IP PPP server.
#
main:
# You should set other pppd options in /etc/ppp/options.
# Set the desired serial port and speed.
# Our modem port is /dev/modem.
port cua2
#speed 57600
# Go higher if your modem supports it.
speed 57600
# Reset the modem and terminal line.
# This seems to cause trouble for some people!
reset
# This is our local IP address. That should only be used for static
# IP.
# get $local xxx.xxx.xxx.xxx
# That should work on both static and dynamic IP. PPP should know
# how to get the local and remote IP address.
get $local 0.0.0.0
get $remote XXX.XXX.XX.XX #>should be the actual address of your ISP

# Note! "Standard" pre-defined "errlevel" values:
# 0 - OK
# 1 - CONNECT
# 2 - ERROR
#
# You can change those grep'ping for "addchat()" in *.c...
redial:
# Prepare for dialing.
# Put your own modem initialization string here. (this will do USR)

send ATZ\r
wait OK 1
send AT&F1\r
wait OK 1
if $errlvl != 0 goto modem_trouble
# Here is the PPP server dial-up number.

send ATDT555-5555\r #> nos should be the phone number of your ISP

if $errlvl != 0 goto modem_trouble
wait BUSY 14
if $errlvl == 0 goto redial

wait CONNECT 60
if $errlvl != 0 goto redial

# We are connected. Login to the system.
login:
sleep 2
# Wait for login prompt "sername" and "ogin" could be different.
# some places "login" is "passwd"
wait sername: 20
if $errlvl != 0 goto login_error
# Send the login ID.
send yourname\n #> you do know your username?
# Wai for passwd prompt
wait assword: 20
if $errlvl != 0 goto password_error
# Send the password.
# This is for SecureID.
#securidfixed xxxx
#securid
send password\n # your password replaces password here
loggedin:
# We are now logged in.
# wait enable 15
# if $errlvl != 0 goto prompt_error
# Say hello and fire up!

#wait annex 15 'any other choices in your usual login?
#send 2\n

done:
print CONNECTED to the remote PPP server
sleep 3

print $remote ----> $local

mode PPP

goto exit
prompt_error:
print TIME-OUT waiting for the PPP server to fire up...
goto error
login_error:
print Trouble waiting for the Login: prompt...
goto error
password_error:
print Trouble waiting for the Password: prompt...
goto error
modem_trouble:
print Trouble ocurred with the modem...
error:
print CONNECT FAILED to the PPP server.
quit
exit:
reset
exit



To: Elmer who wrote (125)11/23/1998 10:12:00 AM
From: Judd  Read Replies (2) | Respond to of 484
 
I read it :) I use a script similar to the one E.C. posted and dip to get PPP running. dip is the old way though, chat I think seems to be the newer way. Also, if you use CompuServe, you need to switch to 7 bits do the password stuff and then switch to 8 bits. I use dip because I couldn't figure out how to get chat to do 7 bits. Also, make sure that your modem is set up right. You should have a symbolic (or hard) link from /dev/modem to /dev/cua0 if your modem is on com port 1. /dev/cua1 if com2, and so on. Sorry, I am speaking geekeze now. It really is good to know a little about your hardware. With Linux you have the control over your computer , not an OS which guesses half of everything wrong and won't let you configure it yourself. That is the benefit of going through the pain of reading and getting it working.