【請教】如何在Ubuntu11.10設定中華電信行動3G [論壇 - 新手村]
正在瀏覽:
1 名遊客
回覆: 【請教】如何在Ubuntu11.10設定中華電信行動3G |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
1. 哈! 先告訴你 可能是已經找到 答案
Ah ha! Marking that bug as not affecting usb-modeswitch, but affecting libjim0debian2 0.73-1 and fixed in 0.73-2. 2. 這個 bug report 跟你貼上來的 sudo cat /var/log/usb_modeswitch_3-1:1.0 幾乎 一模一樣 3. 這裏有他們打包好的最新 usb-modeswitch 版本 你可以下載來試試看 [i386] usb-modeswitch_1.2.2-1-1~bugfix0_i386.deb [amd64] usb-modeswitch_1.2.2-1-1~bugfix0_amd64.deb 4. 安裝上面的 usb-modeswitch 發現還是不行 最後找到答案 問題出在 libjim0debian2 有問題的是 0.73-1 已經在 0.73-2 解決了這個問題 從終端機 sudo dpkg -l | grep libjim0debian2 看看你的版本是 0.73-1 還是 0.73-2
2012/2/6 20:33
|
||||||||||
![]() |
回覆: 【請教】如何在Ubuntu11.10設定中華電信行動3G |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員三級
![]() ![]() 註冊日期:
2011/12/30 18:14 所屬群組:
已註冊使用者 等級: 12
HP : 0 / 287
![]() |
哇哇哇感覺好像快破解了。。。。。
poloshiao 寫到: 下載了3.看到4.還沒下指令,就回去查檔名,果然。。。。。 libjim0debian2_0.73-1_i386.deb 然後印證結果如下: ii libjim0debian2 0.73-1 small-footprint implementation of Tcl - shared library 哇咧咧。。。買樂透這麼準就好了。。。。。XD 所以很開心的先移除: libjim0debian2 sudo apt-get purge libjim0debian2 然後,古狗不到libjim0debian2_0.73-2_i386.deb呀。。。。。 唯一找到的連結無效了。。。。。嗚。。。殘念。。。
2012/2/6 23:26
|
||||||||||
![]() |
回覆: 【請教】如何在Ubuntu11.10設定中華電信行動3G |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員三級
![]() ![]() 註冊日期:
2011/11/13 1:05 所屬群組:
已註冊使用者 等級: 12
HP : 0 / 293
![]() |
2012/2/7 0:16
|
||||||||||
![]() |
回覆: 【請教】如何在Ubuntu11.10設定中華電信行動3G |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員三級
![]() ![]() 註冊日期:
2011/12/30 18:14 所屬群組:
已註冊使用者 等級: 12
HP : 0 / 287
![]() |
那個,今天進度,仍然上網不能。。。。。Orz
guestX 寫到: 感謝G大,已下載安裝啦~~~ poloshiao 寫到: 感謝P大,所以,就安裝了 usb-modeswitch_1.2.2-1-1~bugfix0_i386.deb 結果,還是一樣。。。。。 會自動抓到,但不能設定,也不能上網。。。。。 poloshiao 寫到: 所以,再打一次,結果如下。。。 user:~$ sudo cat /var/log/usb_modeswitch_3-1:1.0 [sudo] password for user: USB_ModeSwitch log from Tue Feb 07 20:08:52 CST 2012 Raw args from udev: /3-1:1.0 Using global config file: /etc/usb_modeswitch.conf Using top device dir /sys/bus/usb/devices/3-1 ---------------- USB values from sysfs: manufacturer HUAWEI Technologies product HUAWEI Mobile serial ---------------- bNumConfigurations is 1 - don't check for active configuration Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz SCSI attributes not needed, moving on checking config: pack/12d1:1003 ! matched. Reading config data Extracting config 12d1:1003 from collection /usr/share/usb_modeswitch/configPack.tar.gz Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1 Command to be run: usb_modeswitch -I -W -D -s 20 -u -1 -b 3 -g 2 -v 12d1 -p 1003 -f $configBuffer Verbose debug output of usb_modeswitch and libusb follows (Note that some USB errors are to be expected in the process) -------------------------------- Reading long config from command line * usb_modeswitch: handle USB devices with multiple modes * Version 1.2.1 (C) Josua Dietze 2011 * Based on libusb0 (0.1.12 and above) ! PLEASE REPORT NEW CONFIGURATIONS ! DefaultVendor= 0x12d1 DefaultProduct= 0x1003 TargetVendor= not set TargetProduct= not set TargetClass= 0xff TargetProductList="" DetachStorageOnly=0 HuaweiMode=1 SierraMode=0 SonyMode=0 QisdaMode=0 GCTMode=0 KobilMode=0 SequansMode=0 MobileActionMode=0 CiscoMode=0 MessageEndpoint= not set MessageContent="" NeedResponse=0 ResponseEndpoint= not set InquireDevice disabled Success check enabled, max. wait time 20 seconds System integration mode enabled Use given bus/device number: 003/002 ... Looking for default devices ... No devices in default mode found. Nothing to do. Bye. -------------------------------- (end of usb_modeswitch output) Now checking for newly created ports ... new ports found, device is known to driver All done, exiting user:~$ poloshiao 寫到: 確定是0.73-2哩。。。 user:~$ sudo dpkg -l | grep libjim0debian2 [sudo] password for user: ii libjim0debian2 0.73-2 small-footprint implementation of Tcl - shared library user:~$ ------ 然後,熊熊想到古狗一下E220,發現了一堆苦主。。。。。XD 有人推vodafone-mobile-connect 就在下載來裝:https://forge.betavine.net/frs/download.php/626/vodafone-mobile-connect_2.25.01-1_all.deb user:~$ sudo dpkg -i vodafone-mobile-connect_2.25.01-1_all.deb [sudo] password for user: 選取了原先未被選取的套件 vodafone-mobile-connect。 (正在讀取資料庫 ... 206856 files and directories currently installed.) 正在解開 vodafone-mobile-connect (從 vodafone-mobile-connect_2.25.01-1_all.deb)... dpkg:因相依問題,不能設定 vodafone-mobile-connect: vodafone-mobile-connect 相依於 hal﹔然而: 未曾安裝套件 `hal'。 vodafone-mobile-connect 相依於 ozerocdoff﹔然而: 未曾安裝套件 `ozerocdoff'。 vodafone-mobile-connect 相依於 python-gnome2﹔然而: 未曾安裝套件 `python-gnome2'。 vodafone-mobile-connect 相依於 python-twisted﹔然而: 未曾安裝套件 `python-twisted'。 vodafone-mobile-connect 相依於 python-tz﹔然而: 未曾安裝套件 `python-tz'。 vodafone-mobile-connect 相依於 wvdial﹔然而: 未曾安裝套件 `wvdial'。 dpkg:在處理 vodafone-mobile-connect (--install) 時發生錯誤: 相依問題 - 保留為未設定 正在進行 desktop-file-utils 的觸發程式 ... 正在進行 gnome-menus 的觸發程式 ... 正在進行 bamfdaemon 的觸發程式 ... Rebuilding /usr/share/applications/bamf.index... 在處理時有錯誤發生: vodafone-mobile-connect 檔案已是2008的老檔,相依套件缺很大。。。。。 在中華電信網頁下載linux驅動程式 http://www.emome.net/channel?chid=270 結果是fodora版的。。。。。 麻瓜新手囧很大呀。。。。。囧oz
2012/2/7 21:51
|
||||||||||
![]() |
回覆: 【請教】如何在Ubuntu11.10設定中華電信行動3G |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
DefaultVendor= 0x12d1 12d1 Huawei Technologies Co., Ltd. DefaultProduct= 0x1003 1003 E220 HSDPA Modem / E230/E270/E870 HSDPA/HSUPA Modem 資料來源 List of USB ID's Success check enabled, max. wait time 20 seconds 其實 你應該是已安裝成功了 重來一次 1. 把你曾經安裝過的 套件全部移除 sudo apt-get purge 套件名稱 # 全部一個一個移除 2. 重新開機 你重新下載這三個檔案下來 2-1. usb-modeswitch_1.2.3+repack0-1_i386.deb 2-3. usb-modeswitch-data_20111023-1_all.deb 2-3. libjim0debian2_0.73-2_i386.deb 用 2-4. sudo dpkg -i usb-modeswitch_1.2.3+repack0-1_i386.deb 2-5. sudo dpkg -i usb-modeswitch-data_20111023-1_all.deb 2-6. sudo dpkg -i libjim0debian2_0.73-2_i386.deb 安裝完後 重開機後 3. 把 usb 插上 3-1. sudo lshw -C network 3-2. lshw -C usb 3-3. sudo ifconfig -a 貼上來 其它事暫時不必動 4. 把 usb 插上 sudo ls -l /dev | grep sr 再把 usb 拔出 sudo ls -l /dev | grep sr 看看除了原來的 /dev/sr0 以外 還會多出來一個 /dev/sr1 嗎 如果不會 就對了 如果還會 就還有問題
2012/2/7 22:12
|
||||||||||
![]() |
回覆: 【請教】如何在Ubuntu11.10設定中華電信行動3G |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員三級
![]() ![]() 註冊日期:
2011/12/30 18:14 所屬群組:
已註冊使用者 等級: 12
HP : 0 / 287
![]() |
感謝P大~~~Q_Q
移除重新安裝後, 情況如下: poloshiao 寫到: user:~$ sudo lshw -C network [sudo] password for user: *-network description: Ethernet interface product: RTL-8139/8139C/8139C+ vendor: Realtek Semiconductor Co., Ltd. physical id: 0 bus info: pci@0000:02:00.0 logical name: eth0 version: 10 serial: 00:c0:9f:b6:ec:45 size: 10Mbit/s capacity: 100Mbit/s width: 32 bits clock: 33MHz capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=8139too driverversion=0.9.28 duplex=half latency=64 link=no maxlatency=64 mingnt=32 multicast=yes port=MII speed=10Mbit/s resources: irq:16 ioport:3000(size=256) memory:e0206800-e02068ff user:~$ lshw -C usb WARNING: you should run this program as super-user. WARNING: output may be incomplete or inaccurate, you should run this program as super-user. user:~$ sudo lshw -C usb user:~$ sudo ifconfig -a eth0 Link encap:Ethernet HWaddr 00:c0:9f:b6:ec:45 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:16 Base address:0x3000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:648 (648.0 B) TX bytes:648 (648.0 B) poloshiao 寫到: user:~$ sudo ls -l /dev | grep sr lrwxrwxrwx 1 root root 3 2012-02-08 21:49 cdrom -> sr0 lrwxrwxrwx 1 root root 3 2012-02-08 21:51 cdrom1 -> sr1 lrwxrwxrwx 1 root root 3 2012-02-08 21:49 cdrw -> sr0 lrwxrwxrwx 1 root root 3 2012-02-08 21:49 dvd -> sr0 srw-rw-rw- 1 root root 0 2012-02-08 21:49 log lrwxrwxrwx 1 root root 3 2012-02-08 21:49 scd0 -> sr0 lrwxrwxrwx 1 root root 3 2012-02-08 21:51 scd1 -> sr1 brw-rw----+ 1 root cdrom 11, 0 2012-02-08 21:49 sr0 brw-rw----+ 1 root cdrom 11, 1 2012-02-08 21:51 sr1 poloshiao 寫到: user:~$ sudo ls -l /dev | grep sr lrwxrwxrwx 1 root root 3 2012-02-08 21:49 cdrom -> sr0 lrwxrwxrwx 1 root root 3 2012-02-08 21:49 cdrw -> sr0 lrwxrwxrwx 1 root root 3 2012-02-08 21:49 dvd -> sr0 srw-rw-rw- 1 root root 0 2012-02-08 21:49 log lrwxrwxrwx 1 root root 3 2012-02-08 21:49 scd0 -> sr0 brw-rw----+ 1 root cdrom 11, 0 2012-02-08 21:49 sr0 看樣子,應該還是有問題。。。。。T_T
2012/2/8 22:13
|
||||||||||
![]() |
回覆: 【請教】如何在Ubuntu11.10設定中華電信行動3G |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
再詳細研究一下 usb_modeswitch 的記錄檔
sudo cat /var/log/usb_modeswitch_3-1:1.0
2012/2/8 22:22
|
||||||||||
![]() |
回覆: 【請教】如何在Ubuntu11.10設定中華電信行動3G |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員三級
![]() ![]() 註冊日期:
2011/12/30 18:14 所屬群組:
已註冊使用者 等級: 12
HP : 0 / 287
![]() |
poloshiao 寫到: 長這樣哩。。。。。 好像停留在昨天? USB_ModeSwitch log from Tue Feb 07 20:08:52 CST 2012 Raw args from udev: /3-1:1.0 Using global config file: /etc/usb_modeswitch.conf Using top device dir /sys/bus/usb/devices/3-1 ---------------- USB values from sysfs: manufacturer HUAWEI Technologies product HUAWEI Mobile serial ---------------- bNumConfigurations is 1 - don't check for active configuration Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz SCSI attributes not needed, moving on checking config: pack/12d1:1003 ! matched. Reading config data Extracting config 12d1:1003 from collection /usr/share/usb_modeswitch/configPack.tar.gz Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1 Command to be run: usb_modeswitch -I -W -D -s 20 -u -1 -b 3 -g 2 -v 12d1 -p 1003 -f $configBuffer Verbose debug output of usb_modeswitch and libusb follows (Note that some USB errors are to be expected in the process) -------------------------------- Reading long config from command line * usb_modeswitch: handle USB devices with multiple modes * Version 1.2.1 (C) Josua Dietze 2011 * Based on libusb0 (0.1.12 and above) ! PLEASE REPORT NEW CONFIGURATIONS ! DefaultVendor= 0x12d1 DefaultProduct= 0x1003 TargetVendor= not set TargetProduct= not set TargetClass= 0xff TargetProductList="" DetachStorageOnly=0 HuaweiMode=1 SierraMode=0 SonyMode=0 QisdaMode=0 GCTMode=0 KobilMode=0 SequansMode=0 MobileActionMode=0 CiscoMode=0 MessageEndpoint= not set MessageContent="" NeedResponse=0 ResponseEndpoint= not set InquireDevice disabled Success check enabled, max. wait time 20 seconds System integration mode enabled Use given bus/device number: 003/002 ... Looking for default devices ... No devices in default mode found. Nothing to do. Bye. -------------------------------- (end of usb_modeswitch output) Now checking for newly created ports ... new ports found, device is known to driver All done, exiting
2012/2/8 22:44
|
||||||||||
![]() |
回覆: 【請教】如何在Ubuntu11.10設定中華電信行動3G |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
從你的記錄檔 (如果是新產生的)
可能還是有問題 sudo lshw -C network 還是沒有偵測到網路 sudo lshw -C usb 還是沒有偵測到 usb 裝置 sudo ifconfig -a 還是沒有啓動寬頻界面 sudo ls -l /dev | grep sr 還是辨識成光碟機 (這是 windows 的機制) 建議你 去找 中華電信 客服 幫忙能否 把 Hwawei E220 換掉 Huawei E160G Huawei E1550 Huawei E226 Huawei E156G 都可以考慮 (不必安裝 usb-modeswitch )
2012/2/8 23:11
|
||||||||||
![]() |
回覆: 【請教】如何在Ubuntu11.10設定中華電信行動3G |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員二級
![]() ![]() 註冊日期:
2011/10/7 0:22 所屬群組:
已註冊使用者 等級: 7
HP : 0 / 157
![]() |
感覺從#63的那些附圖看來好像是可以連線的。在猜會不會是DNS沒有設定好?
輸入完PIN碼之後,或許可以靠著下面的指令測試是否有連線成功: ping -c 3 168.95.1.1 如果有,那可以檢查/etc/resolv.conf 這個檔案是否有如下的內容: nameserver 168.95.1.1 nameserver 168.95.192.1 如果不是上述原因,也或許可以試用 wvdial 這個文字介面的軟體。 一般的作法是: 1.安裝wvdial之後,插上USB 3.5G行動網卡,用下面的指令配置設定檔: sudo wvdialconf 2.然後,運行下面的指令: sudo wvdial 這個方式,我沒在Ubuntu上試過,但印象中在Debian和CentOS使用是成功的。 在Ubuntu上,是直接挪用在別的作業系統已經配置好的設定檔: 位置及名稱:/etc/wvdial.conf 檔案內容如下: [Dialer Defaults] Modem = /dev/ttyUSB0 Baud = 460800 [Dialer PIN] Init1 = AT+CPIN=這裡填自己的PIN碼。 [Dialer provider] APN = Init2 = ATZ Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Init4 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Init5 = AT+CGDCONT=1,"ip","internet" Stupid Mode = 1 Modem Type = Analog Modem Phone = *99# ISDN = 0 Username = username Dial Command = ATDT Password = password 這個設定適合中華電信使用,別家電信通常會在Init5 = AT+CGDCONT=1,"ip","internet"這個項目有所不同。 上網步驟如下: 1. sudo wvdial PIN 等它全部跑完。 2. sudo wvdial provider 如果有成功,它大概會輸出如下的訊息: --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 OK --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 OK --> Sending: AT+CGDCONT=1,"ip","internet" AT+CGDCONT=1,"ip","internet" OK --> Modem initialized. --> Sending: ATDT*99# --> Waiting for carrier. ATDT*99# CONNECT --> Carrier detected. Starting PPP immediately. --> Starting pppd at Mon Jan 30 22:33:47 2012 --> Pid of pppd: 3464 --> Using interface ppp0 --> local IP address 111.80.62.249 --> remote IP address 10.64.64.64 --> primary DNS address 168.95.1.1 --> secondary DNS address 168.95.192.1 這時可以按Crl+z然後下指令: bg %1把這個工作丟到背景執行。(但是虛擬終端機不能關。) 如果不成功,那請把網卡拔起再插入,重新執行 sudo wvdial PIN 和 sudo wvdial provider 最後,打開瀏覽器還是不能上網,那可以執行之前提到的檢查步驟: ping -c 3 168.95.1.1 cat /etc/resolv.conf 以下是參考資料: http://www.splitbrain.org/blog/2009-03/10-huawai_3g_umts_stick_on_arch_linux http://laughing-note.blogspot.com/2010/04/vpn.html
2012/2/9 2:32
|
||||||||||
![]() |
您可以查看帖子.
您不可發帖.
您不可回覆.
您不可編輯自己的帖子.
您不可刪除自己的帖子.
您不可發起投票調查.
您不可在投票調查中投票.
您不可上傳附件.
您不可不經審核直接發帖.