How To Internet Connection Using Haier CE100 and Ubuntu 9.04
Nowadays I’m using Haier CE100 modem with SMART for my internet connection. As a default, Ubuntu 9.04 just know Haier CE100 as a storage device. But using small trick, everything you can do with Ubuntu :) .
This is my system : Ubuntu Jaunty Jackalope (9.04) Kernel 2.6.28-15 Intel Core2duo T6400
So, let’s begin…
Plug in your modem to your computer. Check out that Ubuntu can read your modem by typing : lsusb in your terminal and you will see a line like this :
Bus 006 Device 003: ID 201e:2009
Run this command in your terminal :
sudo su apt-get install linux-source linux-headers-generic build-essential cd /usr/src tar xjf linux-source-2.6.28.tar.bz2 cd linux-source-2.6.28 gedit /usr/src/linux-source-2.6.28/drivers/usb/serial/option.c
In line 297, you will see a line like this :
#define BENQ_PRODUCT_H10 0x4068
and in line 515, you will see a line like this :
{ USB_DEVICE(0x1da5, 0x4515) }, /* BenQ H20 */
Edit this file by adding this 2 lines in line 298 (below a line : #define BENQ_PRODUCT_H10 0×4068) :
+#define HAIER_VENDOR_ID 0x201e +#define HAIER_PRODUCT_ID 0x2009
Edit this file by adding this line in line 516 (below a line containing : { USB_DEVICE(0×1da5, 0×4515) }, /* BenQ H20 */):
+ { USB_DEVICE(HAIER_VENDOR_ID, HAIER_PRODUCT_ID) },
If you get confuse, you can using my option.c file here.
Back to your terminal, and continue your command by running the following command :
cp /boot/config-$(uname -r) /usr/src/linux-source-2.6.28/.config make menuconfig make -C /lib/modules/$(uname -r)/build M=/usr/src/linux-source-2.6.28/drivers/usb/serial cp /usr/src/linux-source-2.6.28/drivers/usb/serial/option.ko /lib/modules/$(uname -r)/kernel/drivers/usb/serial/ depmod -a gedit /usr/share/hal/fdi/information/10freedesktop/10-modem.fdi
Add this file content in line 10 or you can using my 10-modem.fdi here.
Update Oct 18, 2009 : Create a new file /etc/udev/rules.d/99-haier-ce100.rules, and fill it with :
SYSFS{idVendor}=="201e", SYSFS{idProduct}=="2009", RUN+="/usr/bin/eject %k"
That’s all. Restart your computer, plug in your modem, you should automatically connected!
Referensi
- http://tantos.web.id/blogs/how-to-internet-connection-using-haier-ce100-and-ubuntu-9-04
- http://skyisgrey.org/blog/mengoptimalkan-koneksi-modem-smart-zte-2726.html
- http://blankblondtank.wordpress.com/2009/09/04/mengoptimalkan-koneksi-modem-haier-ce-100-cdma-di-linux/