Reliance Data Card in Ubuntu 8.04

Reliance data card ( Huawei ) works really well in Ubuntu, and getting it to work is very easy.

All that one must do is to plug in the USB modem and edit the /etc/wvdial.conf file:

Step 1: Edit the /etc/wvdial.conf file by typing in the following lines

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
ISDN = 0
New PPPD = yes
Phone = #777
Modem = /dev/ttyUSB0
Username = **********
Password = **********
Baud = 460800
stupid mode = 1

The username and password generally would be the Reliance number.

Step 2: Run (as root) the following command from terminal:

wvdial /etc/wvdial.conf

The output will be similar to the following:

--> WvDial: Internet dialer version 1.56
--> Warning: section [Dialer /etc/wvdial.conf] does not exist in wvdial.conf.
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
CONNECT 230400
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sun Nov 30 09:34:55 2008
--> Pid of pppd: 11854
--> Using interface ppp0
--> pppd: h?[06][08]p?[06][08]
--> pppd: h?[06][08]p?[06][08]
--> pppd: h?[06][08]p?[06][08]
--> pppd: h?[06][08]p?[06][08]
--> pppd: h?[06][08]p?[06][08]
--> local IP address
--> pppd: h?[06][08]p?[06][08]
--> remote IP address
--> pppd: h?[06][08]p?[06][08]
--> primary DNS address
--> pppd: h?[06][08]p?[06][08]
--> secondary DNS address
--> pppd: h?[06][08]p?[06][08]

Now you can browse the internet…

OSUM @ NIT Trichy – What’s happening inside

Many students have the habit of planning in advance what they must do during the holidays. Some decide they must learn a programming language, some might be planning to sharpen their problem solving skills, and a few others might be planning to bring out their creativity by trying their hand at designing.

But how many succeed in doing what they planned, at least partially? Most of them end up setting for themselves goals that are unreachable and framing timetable, adhering to which is practically impossible. The reason? Lack of proper guide. Without knowing what is in store for them within the pages of the book, goals cannot be set, timetables cannot be framed. Students end up wasting the precious time of theirs, grazing through arbitrary topics, which evaporate from the brain faster than the time they took to settle in. The result? ‘I have studied A to Z, but I don’t know which is the starting and which marks the end’. Confusion prevails.

The Open Source University Meetup (OSUM) at NIT Trichy is functioning as a guide for students of NIT-Trichy, helping them to set realistic targets, and providing them with necessary resources to achieve the targets. Students who have registered are given guidance in their own fields of interest.

Five fields have been chosen:
• Algorithms
• Java ME
• Networking and Distributed Systems
• Web Designing
• 2D Designing

Students have varied levels of understanding and experience in these topics. So, the activities have been planned to help everyone set individual goals and work towards them. Individual guidance is given for students who are enthusiastic.

With respect to Algorithms, the activities have been targeted at three different levels, Beginners, Intermediate and Advanced. Clear demarcation is provided for students to judge themselves. Books and other materials including self-written ones have been shared with the students. Assignments with thought-provoking and challenging questions have been shared with everyone.

Creativity is the main requirement for design. Creativity starts within the mind. The computer is only an aid to convert the virtual image in the mind into a real one on screen. Photoshop and Flash Programming courses have been planned for the winter, along with web designing courses starting from HTML, PHP, CSS, Ajax, JavaScript, etc. Sample designs have been sent to the students so that they get a fair idea about the field of design.

Most students are new to Java ME and Networking. So, guidance is given right from the basics. This involves sharing books and simple programs elucidating the basic concepts required to start a detailed course on these topics. A Java ME workshop has also been planned for the benefit of students, and will be conducted during the third week of January.

Google Docs is being extensively used for student registration and for efficient and secure means of sharing the resources. An SMS group has been created at SMSGupShup for sending instant group messages regarding latest progress.

There has been an overwhelming response with over 45 students registered for the programme. The programme will get bigger and better in the future. The student community will be immensely benefited by such programmes. If activities on similar lines are conducted in every college or university, the entire student community will be able to achieve their goals and excel in life.

To join the vibrant community, “OSUM @ NIT Trichy”, log on to .

Suggestions and ideas are always welcome…

Configuring Cygwin with Netbeans in Windows

Netbeans IDE can be used to create C/C++ Applications. Netbeans running on Linux Platforms dont require any additional configuration if the compilers are already available in the Linux distribution. But to get it working in Windows, a Linux-like environment will be required. 

Cygwin is a Linux-like environment for Windows.

Here is a step by step guide to configure Cygwin with Netbeans in Windows.

Step 1: Installing Netbeans

  • Install JDK. The latest version can be downloaded here
  • Download and install Netbeans. The latest version is Netbeans IDE 6.5. The latest version can be downloaded from Make sure you download the bundle that has all technologies.
  • Select C/C++ option while installing. ( It is better to select all the options )

Step 2: Installing Cygwin

  • Cygwin can be downloaded from
  • Run the setup file.
  • Install from internet. Specify C:\cygwin as the root directory.
  • In the Select Packages dialog box, select the packages required. gcc-coregcc-g++gdb, and make packages are most important. These are the C core, C++ core, the GNU Debugger and the GNU version of ‘make’ utility. These packages will be under the ‘Devel’ category.
  • Complete the installation.

Step 3: Testing Cygwin

  • To test whether Cygwin was installed properly, try the following by opening the bash shell:
  • cygcheck -c cygwin
    gcc --version
    g++ --version
    make --version
    gdb --version
  • If the version details are displayed for all these commands, the installation of Cygwin has been successful.

Step 4: Setting PATH

  • Right click on My Computer and select Properties. Goto Advanced System Settings.
  • Click on Environment Variables.
  • In system variables’ frame choose “Path” and click “edit” button.
  • Now in the variable value textbox give the path of your cygwin/bin directory. (i.e., probably c:\cygwin\bin)
  • Click OK

The setup is done.

Now new C/C++ Projects can be started:

  • Open Netbeans IDE
  • CLick New Project –> C/C++ –> C/C++ Application
  • Choose a Project Name and Location. Then select ‘Finish’.
  • Right click on Source Files under the current Project in the Projects pane on the left side.
  • Select New –> Empty C++ File
  • Type in the C++ Program.
  • Now go to Run –> Run Main Project or press F6 to run the program.

Cygwin has been successfully configured with Netbeans.


Had there been a rewind button…

Many a times we might have pondered over why God failed to create a rewind button for our lives. A peep into our own past might bring back the treasured memories from the pages of our lives. If every human is given a chance to go back to his past, make some changes and come back to the present, would life be any better?

Life is a mixture of happiness and sorrow, anger and calmness, friends and foes, good and bad. The challenge is to have the right mix of all these, with the ability to cherish the good and brave the bad. A life without challenges is not worth living. To emerge a winner, we need to adapt and evolve. We need to have a good control of everything that our life provides us. Losing confidence over ourselves just indicates that we have surrendered to our own life.

Some say that there exists a hypothetical parallel universe; a correlation between mind and matter. Is there an option for us to co-exist in a different universe? Can we modify the other life of ours so that the present life is accordingly influenced? Something like an alternate reality? Probably it might give us a different perspective of our own life? The time travel, the alternate history, the bending of space – all these might seem like a fantasy, an imagination of a mind craving for change, longing for a new past. But we are forced to accept the fact that there is only one reality – the present. The past cannot be changed, but the present will change the future. The history books are not going to be changed, neither are our memories. Our past is permanent, the present is temporary and the future is undefined.

We always want everyone around us to be happy, to be cheerful. We always try to make sure our loved ones are happy. We love to see a smile on their faces. But then, things do not always happen the way we expect them to. We might have hurt others. We might have made our loved ones cry. We might have caused pain. But, if we are given a chance to rectify our errors, we would embrace the opportunity, go back to those days and redesign our lives. But God gives us no such option. We are not given an option to forget either. The memories haunt us, remind us about our mistakes. The tears might have dried, the pain might have subsided, but the scars would remain.

God made human a ‘Creator’. We create our own life. We shape ourselves. We have moulded this world into what it is today. Every human shares the responsibility for the past, present and the future. But we were never meant to be ‘Editors’. Words spoken and actions done cannot be changed. The moments that have passed are the moments we have lost. There isn’t a second chance. Life has no trial run.

In the end, it is always chaos. Randomness exists everywhere. But there emerges a pattern – a chain of events revolving around us. We have been directing the events during different phases of our life. We have been bending them to suit our needs. But are we really in control of it? If everyone transforms the world to his own needs, there might have been millions of worlds today – A divide between every single person, a boundary for our minds, a wall around us. What we are bending is our own perception of the world. We have the power of imagination. We have the ability to dream. Our world, our imagination, and our dreams – everything is virtual. They occupy no space or volume, but are powerful enough to change our lives and our destiny.

Every piece on a chess board stands on its own. A glance at the chess board while the game is in progress will give us very little clue about the random arrangement of the pieces. But, every game has a similar start and every move is based on a strategy. Our life is like a chess game. The events happening in our present might seem to be unrelated. But the game of life depends upon every move of ours, every strategy we adopt and every step we advance. Our thoughts decide our actions. Our actions determine our fate. Our fate crafts our destiny. But we must always remember that there is never a step backward…