Sunday, December 06, 2009

K850i as modem for EEE PC in Xandros using wvdial

Bagai nak rak! Itu yang aku rasa bila stranded kat exchange ni dgn EEE PC. Bila network UTP port 80 down dan network wireless hanya clear bila aku keluar bangunan. Satu-satu harapan aku hanyalah K850i. Dia sendiri canggih habis, HSDPA 3.5G punya connection. Tapi OS aku Ubuntu dan original Linux Xandros. Takkan aku nak reinstall dengan XP semata-mata nak surf internet? Kayalah Bill Gates kalau semua orang fikir macam aku. Itu sebab aku cuba juga crack Xandros ni supaya boleh terima K850i ni sebagai modem.

My reference:
http://forum.eeeuser.com/viewtopic.php?id=21456
http://eeepcrepos.tuxfamily.org/

My setup:
Sony Ericsson K850i, Xandros based EEEPC, USB Port/Cable and Celcom Broadband Package (Malaysian Mobile Service Provider)
Bluetooth still doable, but never try
Ubuntu is doable, couple of guys manage to do


Install wvdial

The vdial is quite hard to find, some of the repository is defect. Try add this repository

sudo -s
(Let assume that we stay in root mode)

kwrite /etc/apt/sources.list

add this repository
deb http://download.tuxfamily.org/eeepcrepos/ p701 main

Add key if you want to make sure

wget http://download.tuxfamily.org/eeepcrepos/key.asc -O - | sudo apt-key add -

Mine is 4G EEE PC, so make sure you change p701 to 901 or whatever EEE PC you have

Update: You might want to add few more repos just to make sure

deb http://xnv4.xandros.com/xs2.0/upkg-srv2 etch main contrib non-free
deb http://dccamirror.xandros.com/dccri/ dccri-3.0 main
deb http://www.geekconnection.org/ xandros4 main
deb http://download.tuxfamily.org/eeepcrepos/ p701 main

Update the overall repository
sudo apt-get update


Install the wvdial
sudo apt-get install wvdial


If OK then continue

kwrite /etc/wvdial.conf

Change the configuration file according to your country
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Modem Type = USB Modem
Baud = 115200
New PPPD = yes
Modem = /dev/ttyACM0
ISDN = 0
Phone = *99***1*#
Password = blank
Username = blank
Ask Password = 0
Stupid Mode = 1
Compuserve = 0
Auto DNS = 0

Here I set Auto DNS to zero so that the wvdial will look at the resolv.conf
kwrite /etc/resolv.conf
nameserver 10.44.1.33
nameserver 202.188.0.133
nameserver 202.188.1.5

At your K850i, connect to USB, set to Phone mode

At console, simply type sudo wvdial. Try to browse the net now!

If you have more than 1 phone, create a new section similar to '[Dialer Defaults]' let say
[C902 Dialer] and at console, type wvdial C902 Dialer

No comments: