Thursday, August 21, 2014

how to install DWM-156 for linux server (ubuntu)





first

change usb modem mode ( from cd to modem)

mkdir /media/cdrom
mount /dev/srX /media/cdrom
X is 0,1,2,3...

install dlinkusbmodem.deb

sudo dpkg -i dlinkusbmodem.deb 

run that file 


usbdeviceswitchdlink

setting usb modem mode

 sudo modprobe usbserial vendor=0x2001 product=0x7D00

Note make sure already install wvdial

sudo apt-get install wvdial

Setting wvdial.conf

wvdialconf

sudo vi /etc/wvdial.conf

remove ; in wvdial.conf
Example of file

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","internet"
Phone = *99#
Modem Type = Analog Modem
Stupid Mode = 1
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
Password = ;
Username = ;


and start dial by

sudo wvdial


setting gateway

route add default gw 192.168.1.254 eth0