Anda di halaman 1dari 3

Install wvdial ketikan sudo apt-get install wvdial kalo mau instalasi offline ,download bahannya dimari http://www.ziddu.

com/downlo ad/17865667/wvdialtools.zip.html ekstrak , simpan di home buka terminal , masuk ke directory home ketikan dpkg -i dpkg -i dpkg -i dpkg -i dpkg -i dpkg -i dpkg -i code dibawah satu persatu libwvstreams4.6-base_4.6-2_i386.deb libwvstreams4.6-extras_4.6-2_i386.deb libxplc0.3.13_0.3.13-2ubuntu2_i386.deb usb-modeswitch_1.0.2-1_i386.deb libuniconf4.6_4.6-2_i386.deb libnss3-1d_3.12.6-0ubuntu0.8.04.1_i386.deb wvdial_1.60.1+nmu2ubuntu1_i386.deb

kalo sudah , ketikan di terminal nano /etc/wvdial.conf/ ubah isi conf dengan code di bawah [Dialer smart] Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Stupid Mode = 1 Modem Type = Analog Modem Command Line = ATDT ISDN = 0 New PPPD = yes Phone = #777 Modem = /dev/ttyUSB0 Username = smart Password = smart Baud = 460800 save ctrl+x buat ekstensi .sh buka notepad / kwriter #!/bin/bash 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 " " } echo -e "Halo, siapa nama mu?: \c " read word echo "Jadi? Nama mu adalah ?: $word " countdown "00:00:03" echo "nama saya Faisal, senang bertemu dengan anda $word " countdown "00:00:07" choice=4 echo "1. Esien" echo "2. Khedira" echo "3. Pepe" echo -n "Siapa orang paling ganteng di Real Madrid ? [1,2 atau 3]? " # Loop while the variable choice is equal 4 # bash while loop while [ $choice -eq 4 ]; do # read user input read choice # bash nested if/else if [ $choice -eq 1 ] ; then echo "Jadi anda suka dengan Esien, wah anda $word terdeteksi homo!" else if [ $choice -eq 2 ] ; then echo "Jadi anda suka dengan Khedira, wah anda $word terdeteksi homo!" else if [ $choice -eq 3 ] ; then echo "Jadi anda suka dengan Pepe, wah $word kalau mau ho mo selektif dong mas!" else echo "Ngak ada orang ke empat keatas dasar sinting !" echo "1. Esien" echo "2. Khedira" echo "3. Pepe" echo -n "Jawaban anda ? [1,2 atau 3]? " choice=4 fi fi fi done file="/etc/wvdial.conf" if [ -e $file ]; then echo "File config terdeteksi, apakah setinganya sudah benar sesuai modem ?" else echo "File tidak terdeteksi, tolong instal wvdial" fi

countdown "00:00:07" PS1="\e]2;Smartfren CE682 \a\u@\h:\$ " setterm -term linux -back white -fore black -clear clear echo "Smartfren CE682" echo "USB Modem EVDO Rev A" echo "Dialer sekaligus belajar bash" echo "by NoseTrave, Dialer by Ares The-hopebuster" sudo eject /dev/sr1 sudo ifconfig eth0 down sudo modprobe usbserial vendor=0x201e product=0x1022 echo "please wait..." countdown "00:00:15" lsusb sudo ln -b /dev/ttyUSB0 /dev/modem sudo wvdialconf sudo wvdial smart $@ /bin/bash save dengan nama smart.sh di home buka terminal , masuk ke directory home ketikan chmod +x smart.sh install menggunakan perintah ./smart.sh enjoy bro

Anda mungkin juga menyukai