[linux] Re: Script Linux untuk ISP saya

Chairil K. Kartakusuma (chairil@indo.net.id)
Tue, 27 Aug 1996 20:17:35 +0700 (JVT)

Dalam surat yang lalu, H. M. Alvon Sibarani bersabda:
>
> Yth. Pak Chairil,
>
> Saya mau minta tolong (bila tidak keberatan... :))
> Saya ingin melakukan koneksi ke ISP saya (Indosat Net) tetapi melalui Linux.
> Dulu saya pernah baca di id.milis.linux tentang script melalui Linux yang
> bapak buat. Sudah saya coba melakukan dial-up ke Kalawarta, UI,
> dan berhasil. Kebenaran scriptnya sangat mirip dengan yang bapak
> buat. Jadi sekali coba langsung jalan.
>
> Kali ini Indosat Net memiliki login script yang tidak standar. Harus ada
> tahapannya. Di sini saya sertakan login script untuk Windows 95.
>
> Script begin: ----------------------------------------
> This is a simple script to make a PPP link in Windows '95:
>
> ;This will begin the script
> proc main
>
> ;Enable the folowing to delay for 5 seconds first to
> ;allow host time to send initial characters
> delay 5
>
> ;INDOSATnet need a carriage return to initiate the
> ;login proc
> transmit "^M"
> delay 1
> transmit "^M"
> delay 1
> transmit "^M"
> delay 1
>
> ;Wait for the login prompt before entering the User
> ;ID and Password
> waitfor "sername:"
> transmit $USERID
> transmit "^M"
>
> waitfor "assword:"
> transmit $PASSWORD
> transmit "^M"
>
> waitfor "indo-ts-1 :"
> transmit "2^M"
> delay 2
> transmit "^M"
>
> ;Finish the script
> endproc
>
> Script end: ----------------------------------------
>
> Mungkin bapak bisa memberitahu saya perubahan apa saja yang harus saya buat
> terhadap script yang dulu, supaya saya bisa masuk ke ISP saya melalui linux.
>
> Atas perhatian dan balasannya saya ucapkan terima kasih.
>
> Alvon Sibarani.
> ~~~~~~~~~~~~~~~
>
>
>

Salam kenal Pak Alvon,

Saya sudah lupa script yang mana yg saya post dulu. Ini saya lampirkan
PPP script yang baru yang terbagi dalam 2 file. namakan yang pertama
dialppp dan yang kedua ppp-dial. Kemudian di chmod +x semua tentunya.
Script ini lebih aman karena password tidak akan tampil apa bila
menjalankan ps -aux.

Script ini adalah untuk modem USR V.34 28.8kbps, jadi init string
silakan dirubah sesuai dgn kebutuhan.

Semoga berhasil.
Tolong di share dgn pengguna Linux lain.

PS:
Apa anda pengelola ISP indosat ?

--------- cut here --(dialppp)---------------
#!/bin/sh
#
case "$1" in
"") echo "Usage: dialppp phone-number"; exit 1 ;;
esac
# These are the parameters. Change as needed.
TELEPHONE=$1
LOGIN_ID=your_login_id
PASSWORD=your_password

# We don't use these if remote assigns local & remote IP
LOCAL_IP=
REMOTE_IP=
NETMASK=255.255.255.0
#
# Export them so that they will be available at 'ppp-on-dialer' time.
export TELEPHONE LOGIN_ID PASSWORD
#
# Make sure the path is correct for ppp-dial script.
DIALER=~/bin/ppp-dial
#
# Initiate the connection
#
# Make sure pppd is in /usr/sbin or change the path
# cua1 is COM2, COM1 use cua0
exec /usr/sbin/pppd debug lock modem crtscts /dev/cua1 115200 \
asyncmap 20A0000 escape FF kdebug 0 \
noipdefault netmask $NETMASK defaultroute connect $DIALER

--------- cut here ----(ppp-dial)------------
#!/bin/sh
#
# Make sure chat is in /usr/sbin, too, or change the path.
/usr/sbin/chat -v \
ABORT "NO CARRIER" \
ABORT BUSY \
"" ATZ \
OK "AT&FE1V1Q0X4B0&B1&H1&R2&N0&A3S11=55" \
OK "ATS10=255" \
OK ATDT$TELEPHONE \
CONNECT "" \
sername:--sername: $LOGIN_ID \
assword: \\q$PASSWORD \
indo-ts-1 2

--------- cut here --------------------------

-- 
Chairil K. Kartakusuma, M.Sc.                     ______    |\/\/\/\/|
PRINTIS Information Systems Consultant,          /      \   |        |
UNIX & Multi-Platform Client/Server Integrator  |        |  |        |
Jakarta, INDONESIA                              |   (O)(O)  |    (o)(o)
E-mail: chairilk@indo.net.id (primary)          @    .---_) @        _)
        chairil@ibm.net, chairil@sns.com         |  |\___|   |   '___|
                                                 |   \__/    |     /
                                                	
--
STOP-LANGGANAN: 'unsubscribe' ke: linux-request@indovax.csc.ui.ac.id
START-LANGGANAN:  'subscribe' ke: linux-request@indovax.csc.ui.ac.id