Content:

一、查看上网卡信息

# pacman -S usbutils

插入上网卡前后比对,我的信息如下

#lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 04fc:2801 Sunplus Technology Co., Ltd 
Bus 001 Device 004: ID 20b9:1682  
Bus 002 Device 003: ID 192f:0916 Avago Technologies, Pte.

# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 04fc:2801 Sunplus Technology Co., Ltd 
Bus 001 Device 005: ID 05c6:1000 Qualcomm, Inc. Mass Storage Device
Bus 002 Device 003: ID 192f:0916 Avago Technologies, Pte.

可以看出 Bus 001 Device 005: ID 05c6:1000 Qualcomm, Inc. Mass Storage Device 这个就是上网卡的信息了

看到上网卡的 idVendor 05c6 和 idProduct 1000,格式是 idVendor:idProduct

二、把上网卡从cd-rom设备转换到modem设备

# pacman -S usb_modeswitch

安装好后到/etc/usb_modeswitch.d/目录运行

#head -n 2 * 就可以看到当前版本usb_modeswitch支持的3g上网卡的型号了

# usb_modeswitch -c /etc/usb_modeswitch.setup

试试成功不,如果不成功,那么试试这个

# usb_modeswitch -v 05c6 -p 1000 -M 5553424312345678000000000000061b000000020000000000000000000000 -R 1
# modprobe usbserial vendor=0x05c6 product=0x1000
# ls /dev/tty*

看能不能看的到ttyUSB0这些,如果有则继续,如果无请另寻它法

三、开始拨号

# pacman -S wvdial

# wvdialconf

会自动生成 /etc/wvdial.conf

再添加下面几行进去

(电信cdma的例子,电话号码:#777 用户名:(或是card) 密码: vnet.mobi (或是card))

Phone = #777
Username = 
Password = vnet.mobi
Stupid Mode = 1

#wvdial