Home > Backtrack 4 > cara menyetting modem xlunlimited di Backtrack 4

cara menyetting modem xlunlimited di Backtrack 4

langkahnya:

1. ketik perintah di konsole nano /etc/wvdial.conf

2.  tambahkan list berikut di wvdial.conf

[Dialer Defaults]
Phone = *99#
Username = xlunlimited
Password = PPP
New PPPD = yes
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 230400
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
Auto DNS = 1
Stupid Mode = 1
Auto Reconnect = on


note: ttyUSB0 bisa anda rubah tergantung jenis modem anda
3. tekan ctrl + X lalu save.
4. buat script APN (Aksess Point Name) nya dengan cara ketik nano dial di konsole, lalu isikan script dibawah ini didalam nano dial lalu tekan Ctrl + X  lalu save
#!/bin/sh

APN=”xlunlimited”
USER=””
PASSWD=””

printf “APN [$APN] “
read USERAPN

if [ -z $USERAPN ]
then
USERAPN=$APN
fi

printf “USERNAME [$USER] “
read USERUSER

if [ -z $USERUSER ]
then
USERUSER=$USER
fi

printf “PASSWORD [$PASSWD] “
read -s USERPWD
echo “”

if [ -z $USERPWD ]
then
USERPWD=$PASSWD
fi

DEF_GW=`route -n | awk ‘{ if ($1==”0.0.0.0″) print “route add default gw ” $2 ” dev ” $8 }’`
route del default

cat wvdial.conf.template | \
sed s/@APN@/”$USERAPN”/g | \
sed s/@USERNAME@/”$USERUSER”/g | \
sed s/@PASSWORD@/”$USERPWD”/g > /etc/wvdial.conf

wvdial

$DEF_GW

5. Buat file template wvdial conf bersama dengan file dial (usahakan dalam 1 folder) dengan cara copy file wvdial.conf di /etc/wvdial.conf lalu rename menjadi wvdial.conf.template
7. ketik dikonsole chmod 777 dial
8. ketik ./dial masukan APNnya lalu username dan password jika ada.

Have fun😉

Categories: Backtrack 4
  1. No comments yet.
  1. No trackbacks yet.

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