Two last week I've a chance to suscribe Celcom Broadband for RM 68 package for maximum 384kbps speed (thats it what salesgirl telling me). I'm not buying together with dongle modem like from Huawei or Bluecube, so I'm just using my spare Nokia N80 handphone as a modem. From Shakir dan Irwan experience, i got some clue to setup this modem. So using Debian GNU/Linux and default 2.6.18 kernel here my journey begin...
See what a messages from the kernel
cosmos:~# tail -f /var/log/messages
Apr 21 02:02:12 cosmos kernel: usb 5-2: new full speed USB device using uhci_hcd and address 3
Apr 21 02:02:13 cosmos kernel: usb 5-2: configuration #1 chosen from 1 choice
Apr 21 02:02:13 cosmos kernel: usbcore: registered new driver cdc_ether
Apr 21 02:02:13 cosmos kernel: usb%%d: unregister 'rndis_host' usb-0000:00:1d.0-2, RNDIS device
Apr 21 02:02:13 cosmos kernel: rndis_host: probe of 5-2:1.10 failed with error -32
Apr 21 02:02:13 cosmos kernel: usbcore: registered new driver rndis_host
Apr 21 02:02:13 cosmos kernel: cdc_acm 5-2:1.8: ttyACM0: USB ACM device
Apr 21 02:02:13 cosmos kernel: usbcore: registered new driver cdc_acm
Apr 21 02:02:13 cosmos kernel: drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters
Then, edit wvdial.conf file and just put *99***1# as a phone number, the others just use a default. You can using wvdialconf or just do manual edit.
cosmos:~# more /etc/wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyACM0
ISDN = 0
Phone = *99***1#
Password = pass
Username = user
Then, start connecting...
cosmos:~# wvdial
--> WvDial: Internet dialer version 1.56
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> Carrier detected. Waiting for prompt.
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> PPP negotiation detected.
--> Starting pppd at Mon Apr 21 02:04:48 2008
--> Pid of pppd: 3710
--> Using interface ppp0
--> pppd: h[08][06][08]p[0f][06][08]
--> pppd: h[08][06][08]p[0f][06][08]
--> pppd: h[08][06][08]p[0f][06][08]
--> pppd: h[08][06][08]p[0f][06][08]
--> pppd: h[08][06][08]p[0f][06][08]
--> local IP address 10.164.246.62
--> pppd: h[08][06][08]p[0f][06][08]
--> remote IP address 10.6.6.6
--> pppd: h[08][06][08]p[0f][06][08]
--> primary DNS address 202.188.0.133
--> pppd: h[08][06][08]p[0f][06][08]
--> secondary DNS address 202.188.1.5
--> pppd: h[08][06][08]p[0f][06][08]
Then, you just connected. See what ifconfig output
cosmos:~# ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.164.39.45 P-t-P:10.6.6.6 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:6659 errors:0 dropped:0 overruns:0 frame:0
TX packets:6036 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:6780079 (6.4 MiB) TX bytes:675119 (659.2 KiB)
So, thats it... although the speed using this Nokia N80 as a modem a bit slow compare to Streamyx broadband, but its ok to check your daily email. I'll prepare to buy a new dedicate modem for the next time. I'm thinking Huawei E220 right now.
Wednesday, April 16, 2008
Connecting to Celcom Broadband using Nokia N80 on Debian GNU/Linux
Wednesday, April 9, 2008
Seminar Keselamatan ICT 2008
Lega rasanya sebaik sahaja tamat Seminar Keselamatan ICT 2008 yang telah diadakan pada 3 April 2008 hari tu. Aku yang bertindak sebagai pengerusi atau pengarah seminar ini betul-betul lega kerana seminar ini telah berlansung dengan jayanya seperti mana yang dirancang.
Seminggu dua sebelum tu macam-macam perkara aku kena tengok terutama bab jemputan para penceramah, bajet, perasmian, jemputan VVIP dan sebagainya. Tapi yang paling aku risau ialah takut-takut penceramah yang dijemput membatalkan jemputan pada last minit, takde plan B. Target bilangan peserta adalah sekitar 200 orang tetapi kehadiran peserta pada hari tu adalah sekitar 170 orang, kira ok la tu.
Sasaran utama peserta seminar ini adalah untuk semua tenaga pengajar atau personel IT dari Institut Latihan Kemahiran Awam (ILKA) dari seluruh negara seperti ILP, IKBN, MARA dan sebagainya. Tetapi seminggu sebelum seminar berlansung, aku dimaklumkan bilangan peserta adalah begitu kurang dari sasaran. Aku megambil pendekatan untuk membuat announce di forum ITTutor , memandang aku biasa berada pada forum ini. Walaupun announcement tersebut hanya 3 hari tetapi sambutan dari ahli forum tersebut cukup menggalakkan. Terima kasih diatas kehadiran semua.
Para penceramah yang dijemput boleh dikatakan orang-orang lama yang terlibat dengan bidang security seperti En Kamal Hilmi (ex NISER), En Mahmud (CyberSecurity), En Saidi (SCAN) dan En Nawawi (GCERT MAMPU). Walaupun terdapat penceramah yang membincangkan topik-topik yang agak advanced tetapi secara keseluruhan topik-topik mereka menarik minat peserta seminar.
Topik-topik yang dibawakan pada seminar ini ialah:
1. Pengurusan Keselamatan ICT di Agensi Awam - En Nawawi GCERT MAMPU
2. Web Application Security - En Saidi SCAN Associates
3. Introduction to Malware - En Kamal Hilmi Defenxis
4. Network Forensic - en Mahmud CyberSecurity
Kepada mereka yang berminat untuk mendapatkan softcopy nota penceramah boleh download disini.
Wednesday, April 2, 2008
How to setup Atheros chipset (wireless) in Debian
For those of you who are not familiar how to setup wireless or wifi in linux, i'll show the simple way to do that. The first thing, you need to know your wifi hardware cards, whether PCI or USB, your chipset is support or not. If your chipset is support with linux driver, you're safe, if not get ready to scratch your head. I try to show here specific using Atheros chipset, but it may can apply in other chipset, just change the chipset name. Firstly install all the needed package using assistant-module. Please put non-free in your /etc/apt/source.list
# aptitute install module-assistant madwifi madwifi-tools
# module-assistant a-i madwifi
Done!
unpack
Get your hardware information.
#lspci -nn
01:02.0 Ethernet controller [0200]: Atheros Communications, Inc. AR5212 802.11abg NIC [168c:0013] (rev 01)
From the information above, i know i'm using Atheros chipset, in kernel module they known as ath_pci. Please refer this.
#modprobe ath_pci
# lsmod | grep ath_pci
ath_pci 83008 0
ath_rate_sample 12992 1 ath_pci
wlan 173820 4 wlan_scan_sta,ath_pci,ath_rate_sample
ath_hal 191664 3 ath_pci,ath_rate_sample
Then you need configure your card. The most commonly used command in wireless tools is iwconfig, which you can use to configure most of the wireless parameters, including the SSID and the wireless mode. For the wireless mode, Managed means that there is a wireless access point (WAP) on the network and Ad-hoc signifies that there is none. For example my NIC is named ath0 and my ESSID is yournetwork.
#iwconfig ath0 mode Managed
#iwconfig ath0 essid yournetwork
# iwconfig ath0
ath0 IEEE 802.11g ESSID:"yournetwork"
Mode:Managed Frequency:2.427 GHz Access Point: 00:1C:F0:62:9E:21
Bit Rate:24 Mb/s Tx-Power:14 dBm Sensitivity=0/3
Retry:off RTS thr:off Fragment thr:off
......................
But you need to put all those above setting permanently in your network config setting. For Red Hat/Fedora user, you can put those setting in /etc/sysconfig/network-scripts/ifcfg-ath0. For Debian user you can put those network setting in /etc/network/interfaces. Because i'm using Debian, here my setting
# File /etc/network/interfaces
#The loopback network interface
auto lo
iface lo inet loopback
#My Wifi
iface ath0 inet static
address 192.168.1.1
netmask 255.255.255.0
wireless-essid yournetwork
gateway 192.168.1.1
In this example interface eth0 uses an ESSID of yournetwork. This is the basic step to configure Wifi on your network. I'll show you how to configure WEP and WPA encryption in next the post. Restart your network /etc/init.d/networking restart and now your can start surfing using wifi :)