Dial-Up dengan modem Smartfren ConneX AC682 (ZTE) di Linux (Ubuntu, Backtrack)

Posted: March 24, 2012 in LINUX

1. Install “wvdial” seperti yang sudah di bahas di Sini Buka /etc/wvdial.conf, lalu copy-paste code ini:

[Dialer smart]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
ISDN = 0
Username = smart
Init1 = ATZ
Password = smart
Modem = /dev/ttyUSB0
Baud = 460800
Command Line = ATDT
Stupid Mode = 1

2. Lalu buat file baru dengan extensi “.sh”,  inilah Dialernya

3. Copy-paste code ini pada File .sh tersebut lalu save, simpanlah dengan nama “smartfren.sh”

#!/bin/bash
PS1="\e]2;Smartfren Connex AC682 EVDO\a\u@\h:\$ "
setterm -term linux -back white -fore black -clear
clear
echo "Smartfren AC682 Internet"
echo "USB Modem EVDO Rev A"
echo "Now Executing Smartfren USB Modem.."
echo "by Ares TheHopeBuster"
sudo eject /dev/sr1
sudo ifconfig eth0 down
sudo modprobe usbserial vendor=0x19d2 product=0xffdd
echo "please wait..."
function countdown
{
local OLD_IFS="${IFS}"
IFS=":"
local ARR=( $1 )
local SECONDS=$(( (ARR[0] * 60 * 60) + (ARR[1] * 60) + ARR[2] ))
local START=$(date +%s)
local END=$((START + SECONDS))
local CUR=$START
while [[ $CUR -lt $END ]]
do
CUR=$(date +%s)
LEFT=$((END-CUR))
printf "\r%02d:%02d:%02d" \
$((LEFT/3600)) $(( (LEFT/60)%60)) $((LEFT%60))
sleep 1
done
IFS="${OLD_IFS}"
echo " "
}
countdown "00:00:15"
lsusb
sudo ln -b /dev/ttyUSB0 /dev/modem
sudo wvdialconf
sudo wvdial smart
$@
/bin/bash

4. Oke! Dialernya slesai Mari kita coba”./smartfren.sh”

5. Kalo nggak berhasil Cabut, Colok Kembali dan Klik Lagi

 

Sumber : http://forum.indonesianbacktrack.or.id/showthread.php?tid=896

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s