Feb 16, 2011

Dyndns over NCELL Connect

Setting up NCELL Mobile Broadband & Dynamic DNS on OLPC School Server (NEXS)

(Senario: Fedora 9-0.6 , OLPC School Server, Network Manager can not be run for there is no GUI, so dial using wvdial on Terminal)

Steps:
1. Installed following 2 packages (Had to compile from source)

# rpm -ivh usb_modeswitch-data-20101222-1.fc9.noarch
# rpm -ivh usb_modeswitch-1.1.6-1.fc9.i386


2. Check to see if the Modem(Datacard) is being detected :Huawei E160/E220 USB Stick

# wvdialconf

Found a modem on /dev/ttyUSB0

3. It may be necessary write a following udev rule if the modem doesn't get switched to modem mode automatically

# cat > /etc/udev/rules.d/99-ncell-connect.rules <# Ncell Connect switch mode to usbserial (E1550 device id => 12d1:1446)
SUBSYSTEM=="usb", ATTRS{idProduct}=="1446", ATTRS{idVendor}=="12d1", RUN+="/lib/udev/modem-modeswitch --vendor 0x12d1 --product 0x1446 --type option-zerocd"
EOT


4. Write a wvdial dailer file

# vi /etc/wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Modem = /dev/ttyUSB0
Username = web
Dial Command = ATDT
Password = web
Baud = 460800


5. Run the dialer

# wvdial

Now, Setting up Dyndns

1. Get a free dyndns domainname, its free, signup and on dyndns.com. you can get upto 5 free domainnames.

2. Install dyndns.org client package.

# yum install ipcheck
( The above didn't work for me, I went to my debian machine and did following to get rpm out of ipcheck deb package)

# apt-get install ipcheck
# cd /var/cache/apt/archieve
# alien -r ipcheck_0.233-1_all.deb

Then,

copied ipcheck-0.233-2.noarch.rpm over to server and installed using

#rpm -ivh ipcheck-0.233-2.noarch.rpm


3. Get the domainname, username and password ready and do following

# python /usr/sbin/ipcheck.py --makedat -i ppp0 username password hostname

(Eg. python /usr/sbin/ipcheck.py --makedat -i ppp0 ole ole lal.homelinux.org)


4. Wait for a minute and ping lal.homelinux.org, it should resolve to the IP address of your ppp0 interface.




Feb 2, 2011

NCELL Connect in Linux, Ubuntu

sudo su
# apt-get install usb-modeswitch
# cat > /etc/udev/rules.d/99-ncell-connect.rules <# Ncell Connect switch mode to usbserial (E1550 device id => 12d1:1446)
SUBSYSTEM=="usb", ATTRS{idProduct}=="1446", ATTRS{idVendor}=="12d1", RUN+="/lib/udev/modem-modeswitch --vendor 0x12d1 --product 0x1446 --type option-zerocd"
EOT