Saturday, June 13, 2009

Setting Huawei E220 Modem in Ubuntu 9.04

I know that Ubuntu 9.04 already detect Huawei E220 modem. So we can just plug the modem, configure the APN, and use it to surf. But, how to do it from terminal. Previous version of Ubuntu didn't support Huawei E220 modem yet, so we have to install manually from terminal.
I'm still using this config manually from terminal, even with ubuntu 9.04.

This is how I usually do.

1. Search from google, and look for "huaweiAktBbo-i386.out". Download that file because we're going to use it.

2. Plug the modem, and check if Ubuntu has detected it. Don't forget to log in as root from terminal.

EC@ubuntu:~$ lsusb
Bus 007 Device 004: ID 04f2:b017 Chicony Electronics Co., Ltd
Bus 007 Device 001: ID 0000:0000
Bus 006 Device 001: ID 0000:0000
Bus 005 Device 003: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 005: ID 08ff:2580 AuthenTec, Inc.

3. Give permission to the file.
EC@ubuntu:~$ chmod +x huaweiAktBbo-i386.out

4. Execute that file using command:
EC@ubuntu:~$ ./huaweiAktBbo-i386.out

5. Make wvdial.conf file
EC@ubuntu:~$ wvdial.conf

6. Edit wvdial.conf to match your ISP settings
EC@ubuntu:~$ nano /etc/wvdial.conf

This is an example for my ISP settings in my country:
[Dialer Tsel]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,”IP”,”telkomsel”
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

7. Let's connect to the Internet using this command. Press Ctrl+C to disconnect.

EC@ubuntu:~$ wvdial {dialer name}
Example:
EC@ubuntu:~$ wvdial Tsel

That's about it, and you're ready to surf the Internet.

-EC-

Sunday, May 25, 2008

Basic Commands and Configs for your Linux (Updated)

There are so many commands for configuring Linux distro. They are slightly different with each distro, but most of them are the same. These are some basic commands that people often used. I'm using "nano" as an editor. You can use another that suit you best, such as vi or vim.

Commands and Configs :

1. Interface Configuration
You can configure your interface in :

# nano etc/network/interfaces

We can edit the interface to use DHCP or static.

Example:
iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.254

auto eth1
iface eth0 inet dhcp

2. Sources List Configuration
You can configure your repository list in :

# nano etc/apt/source.list

edit your sources list and change it with local repository (if there is one available near your country)

3. rc.local Configuration

# nano etc/rc.local

edit the file and put some commands. Whenever you reboot, those commands will be executed.
Note: sometimes, commands must be put in order for them to be executed.

4. Update database and search for files from the database

# updatedb
# locate {file that you're looking for} |less

Those are for now. These commands and configs will be updated.

-EC-