using im2 with huawei modem in slackware 13.1

Linux/ Slackware can use vary of modems without a hard install. Slackware provides wvdial dan wvstream command/ setting for wireless connection. First let’s download these two programs.

1. wvdial
2. wvstreams

Install those programs using installpkg as root privileges

root@darkstar:/# installpkg wvdial-1.61-x86_64-1ponce.txz

root@darkstar:/# installpkg wvstreams-4.6-x86_64-1ponce.txz

Edit /etc/wvdial.conf as follow

root@darkstar:/# nano /etc/wvdial.conf

[Dialer Defaults]
Init1 = AT+CPIN=****
Init2 = AT^SYSCFG=14,2,3FFFFFFF,2,4
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+CGDCONT=1,”IP”,”indosatm2″
Password = *******
Check Def Route = on
Phone = *99#
Idle Seconds = 0
Auto DNS = 1
Abort on Busy = 0
Abort on No Dialtone = 0
Modem Type = Analog Modem
Stupid Mode = 1
Baud = 9600
New PPPD = yes
Dial Command = ATDT
Modem = /dev/ttyUSB0
ISDN = 0
Username =
Carrier Check = 0


Init1 = AT+CPIN= fill with 4 digits im2 pin
password = with password
Username = Your username

Restar rc.udev service
root@darkstar:/# chmod +x /etc/rc.d/rc.udev
root@darkstar:/# /etc/rc.d/rc.udev force-restart
Run wvdial
root@darkstar:# wvdial
–> WvDial: Internet dialer version 1.61
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: AT+CPIN=****
–> Sending: AT^SYSCFG=14,2,3FFFFFFF,2,4
–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
–> Sending: AT+CGDCONT=1,”IP”,”indosatm2″
–> Modem initialized.
–> Sending: ATDT*99#
–> Waiting for carrier.
–> No Carrier! Trying again.
–> Sending: ATDT*99#
–> Waiting for carrier.
–> Carrier detected. Starting PPP immediately.
–> Starting pppd at Mon Jun 28 10:01:04 2010
–> Pid of pppd: 2717
–> Using interface ppp0
–> pppd: æ[7f]
–> pppd: æ[7f]
–> pppd: æ[7f]
–> pppd: æ[7f]
–> pppd: æ[7f]
–> pppd: æ[7f]
–> local IP address
–> pppd: æ[7f]
–> remote IP address
–> pppd: æ[7f]
–> primary DNS address
–> pppd: æ[7f]
–> secondary DNS address
–> pppd: æ[7f]

After it connected we need to write the dns applied by im2
root@darkstar:/#nano /etc/resolv.conf

Restart the network (if necessary)
root@darkstar:/#/etc/rc.d/rc.inet1 restart

Next time you connect to im2, just execute  wvdial in the terminal.

Sumber :

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.