Friday, September 26, 2008

Setting up Broadband internet in Ubuntu

BSNL Dataone provides different types of ADSL modem/router:

  1. Huawei ADSL modem/router with ethernet and USB port
  2. DareGlobal ADSL modem/router with ethernet port.
  3. Huawei ADSL modem/router with ethernet port, USB port and built-in wireless access point.

You should have a working ethernet card to connect the modem/router. No information is available about connecting using USB (PPPoA).

Instructions

Note: The router/modem would trigger the connection if configured this way.(Router on -> Connected)

Ethernet Connection

  1. Connect the modem/router to the ethernet card
  2. Assign an IP address for the ethernet card; the router has a fixed interface address of 192.168.1.1, so you can use 192.168.1.2 for your ethernet interface.
    $ sudo ifconfig eth0 192.168.1.2
  3. Add 192.168.1.1 as default gateway.
    $ sudo route add default gw 192.168.1.1
  4. Enter the address of some DNS servers in /etc/resolv.conf. These DNS adresses are provided on BSNL's instruction manual.
    $ sudo vi /etc/resolv.conf

    The entry will be of type nameserver 61.1.96.71, where the IP will be the one provided in your DataOne instruction manual.

  5. Access the router's management interface via a browser by typing the address 192.168.1.1. The admin username/password is admin/admin
  • Set the connection type to `PPPoE'. On my MT882 box, this comes under `WAN Settings'
  • Enter your user name and password (username is of the form xyz@dataone)
  • Reset the router. It will take 2-3 minutes for the box to come up again

Steps 2, 3, 4 can also be done from menu System->Administration->Network in GUI

Wireless Connection

  1. Assign an IP address for wireless NIC; the router has a fixed interface address of 192.168.1.1, so you can use 192.168.1.2 for your wireless NIC.
    $ sudo ifconfig wlan0 192.168.1.2

    In some cases you may need to replace wlan0 with with eth0 or eth1.

  2. Add 192.168.1.1 as default gateway.
    $ sudo route add default gw 192.168.1.1
  3. Add network ESSID.
    $ sudo iwconfig wlan0 essid WA1003A

    Default ESSID for the modem/router provided by BSNL are same as model names. You can change it from modem/router's admin console.

  4. Enter the address of some DNS servers in /etc/resolv.conf. These DNS adresses are provided on BSNL's instruction manual.
    $ sudo vi /etc/resolv.conf

    The entry will be of type nameserver 61.1.96.71, where the IP will be the one provided in your DataOne instruction manual.

  5. Access the router's management interface via a browser by typing the address 192.168.1.1. The admin username/password is admin/admin
  • Set the connection type to for PVC0 connection as 'PPPoE'. On WA1003A modem/router, this comes under 'Setup'
  • Enter your user name and password (username is of the form xyz@dataone)
  • Set the modulation to GDMT. On WA1003A modem/router, this comes under 'Setup->Modem Setup'
  • Save and restart the modem/router. On WA1003A modem/router, this can be done under 'Tools->System Commands' It will take 2-3 minutes for the box to come up again

Below is the full detail of all the methods in brief follow here

Wireless security
  • In admin console, 'Advanced->Wireless Security' set security to WEP.
  • Add a 64 bit authentication key, 10 characters in hex format i.e 0-9 and A-F
  • Add this key to wireless NIC configuration.
    $ sudo iwconfig wlan0 key A1B2C3D4E5
  • Save settings in router and restart it. Reactivate the card, probably using ifdown and ifup

One stop instruction for wireless NIC:
  • Add following lines to /etc/network/interfaces
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
wireless-essid WA1003A
wireless-key A1B2C3D4E5

auto eth0

Most of the steps can also be done from menu System->Administration->Network in GUI

(Note: Most of the instructions are based on the document at http://www.calcuttatelephones.com/dataoneinstall/bb008.html)

]

Alternative

Note: Ubuntu would trigger the connection if configured this way.(Router on -> Ubuntu on -> Connected)

  1. Make sure your Ethernet card is configured
  2. Open a Terminal: Applications->Accessories->Terminal
  3. Enter sudo pppoeconf
  4. Follow instructions on the screen. The defaults are fine for most cases. Make sure you enter your username and password carefully. Beware : The password will be visible on the screen.

Checking Usage

Casanova has made a python script for checking dataone usage.
NOTE: For bug reports, feature requests go to http://code.google.com/p/doufs/
Dataone usage script

Todo

What about USB connections to the computer ?

Sify

Obtaining the sify dialer

Download the client from the same place where you got the windows client. This should ideally be http://202.144.65.70:8090 , and at the time of writing the file is can be found at http://210.18.11.199:81/bbandclient/sifyconnect-1.3-bin.tar.gz.

Installing the dialer

Untar the the dialer using your favorite untar program , or do this :

$ tar -xzvf sifyconnect-1.3-bin.tar.gz

Then run the following commands as root :

$ cd sifyconnect-1.3-bin/
$ bash install.sh

Using the dialer

Run the following commands :

$ sifyd
$ sifyconnect -l

This will prompt you for your username & password , give them. Once you do that your as good as logged in , you can now close the terminal and use the internet.

Autologin

Want to automatically login onto sify everytime you switch on the computer. Just write a shell script. Just make a file (something like sify.sh) in "/usr/bin/". The scriptwill be something like this :

$ sifyd
$ echo -e 'accountnamenpassword' | sifyconnect -l

To start this everytime the computer switches on add the following lines to the /etc/rc.local file (untested):

$ bash sify.sh

Troubleshooting

Sometimes the client on trying to log in says something like –

"Login failed : Get the latest version of the client"

This is because after upgrading it's protocol in some places, sify has discontinoued support for the old protocol . It has also stopped development of it's GNU/linux and Mac clients , so you might have to call sify customer care and tell them your problem. They probably just allow you IP and account to use the old protocol It took them about 8 hours to fix the problem when I had it. :D

Another problem that might occur would be like –

"-bash: /etc/init.d/sifybb: No such file or directory"

If that ever happens all you have to do is Broadband_Howto#Installing_the_dialer again.

Airtel Broadband

Adsl Router

PPPoE (non bridged)

In this mode, your router will connect as sson as it is switched on. If you are billed for time connected then you need to use bridged mode

  • Go to System->Administartion->Networking and make sure you have configured an ip (192.168.1.2, for example) and have set your DNS (supplied by Airtel) and Default gateway (192.168.1.1). If your router is handling DHCP then you needn’t configure an ip.
  • Navigate to http://192.168.1.1
  • Enter the username and password (default is admin for both)
  • Click Run Wizard
  • Click Next
  • Select your time zone (+5:30)
  • Click Next
  • Select
  • Click Next
  • Enter your username and password. VPI = 1, VCI = 32, Connection Type = PPPoE LLC
  • Click restart

REFERENCE:-This method is fully adopted from the various user of ubuntu-india that use it n post it on ubuntu-india.All credit goes to them, i simply provide it for you.

Free OS for your windows based system-UBUNTU

I was wondering why should me spend $199 USD (for vista home basic) or $ 259.9 USD (for vista home premium) for a operating system, you must have also thought the same thing. Here is was you were looking for a free linux based os for your windows based hardware.Ubuntu yes this the name of wonderfull OS, you can do mostly every thing you wanted to do in your PC/Laptop. It is even better than the Windows because it have bundeled every necessary software along with OS.It contain mozilla firefox for browsing internet, openoffice.org software for creating document, spread sheet, presentation and email client.

Its add and remove feature is really amazing, it contain list of hundreds of software which you can download and install on just 1 or 2 clicks. This feature is really good and you dont have to search net for new softwares available for your os. You can even download and install other software that are not in list, but have linex ubuntu compatibility.

Even if you have windows OS you can try it By downloading free from the site

www.ubuntu.com/getubuntu/download

read the instructions care fully before installing.

you can order free CD for installing Ubuntu from their website.

Thursday, September 25, 2008

HTC G-1 with Android OS launched

Soon after iphone was launched this year in july Google announced a Gphone and time has come now 2 day before google launched it's most awaited Gphone. Gphone have hardware of HTC and linex based OS of google Android.

for more information and photogallery click www.htc.com/www/product/g1/overview.html

How it is different from Iphone.
  • We can open multiple application.
  • 3 mega pixel camera.
  • Real QWERTY keybord.
  • Not a multi touch like Iphone.
Whats lacking in Gphone
  • No vedio recording ability.
  • No vedio playing capability.
Whats good in Gphone
  • Real keyboard.
  • 3 mega pixel camra is good but is really slow.
  • Google maps.
  • Direct shortcut to google search.
price is $200 in US.

Wednesday, September 24, 2008

Today i was searching for a software that could clean the registry entry (unused crap) and i found this freeware ccleaner.
download it from http://www.filehippo.com
This site is really a amazing site, it contain link to all common softwares.
try this software and comment....