Wednesday, May 2, 2012

running micromax 352g modem on ubuntu 12.04


This blog covers how to run the micromax 352g usb modem on ubuntu 12.04. The basic problem that arise is the device is detected as an usb device not as a modem.
So for that you have to configure it using usb_modeswitch which is installed by default or if you have an external internet connection via dsl then install the following packages....

usb_modeswitch::: sudo apt-get install usb-modeswitch
wvdial::: sudo apt-get install wvdial

if you are using ubuntu 12.04 download wvdial from the link below

download wvdial.deb

next fire up terminal and enter ...
$ watch lsusb
it will show something like this ...
Bus 002 Device 007: ID 1c9e:9605

which is your device, where 1c9e is the vendor id and 9605 is the device id...
make changes to usb_modeswitch configuration file...
$ sudo gedit /lib/udev/rules.d/40-usb_modeswitch.rules
nter some text below the line that said
LABEL="modeswitch_rules_begin"
It looks something like this :-
LABEL="modeswitch_rules_begin" 
 
#Micromax MMX352G USB 3G MODEM
ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9605", RUN+="usb_modeswitch '%b/%k'"
 
save and then exit the editor.
 
next create a new file using ..
$ sudo gedit /etc/usb_modeswitch.d/1c9e\:9605
 
and add the following lines....


######################################################### Micromax MMX 352G USB 3G Modem
DefaultVendor= 0x1c9e
DefaultProduct=0x9605
TargetVendor= 0x1c9e
TargetProduct= 0x9605
CheckSuccess=20
MessageContent="55534243123456780000000000000606f50402527000000000000000000000"
 
finally we have to work out with usbserial module (that is what drivers are referred to in UNIX)

$ sudo gedit /etc/modules
 
Add the below mentioned line at the end of the file.
#MICROMAX 352G 3G USB MODEM
usbserial vendor=0x1c9e product=0x9605
 
note ::: remove lp if there in last line...

reboot and voila the connect through mobile broadband option shows up in the network connections icon... select ur country, network and enjoy....

Saturday, March 3, 2012

getting tomcat 6 to work on ubuntu 10.04

Finally after an hour of experiment got the tomcat to run successfully ... hoping will help u too ... 

Apache Tomcat is a free and open source software implementation for JavaServlets, providing support for Java Server Pages (JSP). Many popular web-based applications use servlets. You may choose to run Tomcat with either Sun’s Java implementation or the OpenJDK implementation of Java.
Because Tomcat version 6 was included in Ubuntu 10.04, installing a working Tomcat server is reasonably straightforward. However, before we can start installing Tomcat itself, we must first install Java.

First Install Sun Java in ubuntu 10.04

Install tomcat 6 in ubuntu


sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples
 
Start tomcat server


sudo /etc/init.d/tomcat6 start
 
Stop tomcat server

sudo /etc/init.d/tomcat6 stop
 
Restart tomcat server

sudo /etc/init.d/tomcat6 restart
 
Get tomcat server status


sudo /etc/init.d/tomcat6 status
 
After installation type http://localhost:8080 or http://serverip:8080/examples/servlets/ in your browser.Now you should see tomcat welcome page

* To enable admin web based features add the following lines to your /etc/tomcat6/tomcat-user.xml


<role rolename="manager"/>
<role rolename="admin"/>
<user name="admin" password="secret_password" roles="manager,admin"/>
 
* you should be able to see your manage page here http://your_ip_goes_here:8080/manager/html

* log in with the name and password you just set in /etc/tomcat6/tomcat-users.xml

* ls /var/lib/tomcat6 directory.

* you should see these directories conf, logs, webapps, work

* webapps is where your servlets will go ( or at least a xml file that points to them )

* as a test download this war file http://simple.souther.us/SimpleServlet.war

* then use the tomcat management page and select war file to deploy ( in the deploy section) to upload this file to your server

* optionally just wget http://simple.souther.us/SimpleServlet.war directly to the webapps folder

* tomcat should recognize the war file and expand it with everything you need

* browse to http://serverip:8080/SimpleServlet/

Change tomcat server to run on port 80
If you want to Change tomcat server to run on port 80 follow this procedure
You need to edit the /etc/tomcat6/server.xml file

nano /etc/tomcat6/server.xml
 
Now replace the part that says Connector port=”8080? with Connector port=”80?

Save and exit the file
Restart tomcat server with the following command

sudo /etc/init.d/tomcat6 restart

Friday, December 30, 2011

hacking an ubuntu system ...

This is a simple hack and works on systems where the root password has not been set by the user, which is hardly a thing a normal user does. You start by entering the recovery mode on system startup and and select the option that allows you to enter the root prompt. Once there simply type ....

>> passwd

and you will be asked to set the new root password.
Now login using the ...

username as root and the password just set.
Enjoy the root privileges ...










Saturday, November 5, 2011

using apt-get behind a proxy server ...

Although synaptics provides a easy way to configure a network all you need to do is goto settings-->preferences-->network, this works good for newbees and if actually don't know what you are searching for and also is inevitable if the number of individual packages is large. Well i prefer it doing through terminal with apt-get but the problem is if you are on a college network which allows you to access internet through an intermediate proxy server then you'll find that the usual 
sudo apt-get install abc
won't be able to fetch the required packages ...
so here comes the solution ... all thats required is you create a file apt.conf in /etc/apt/ and add the following lines to it ...

Acquire::http::proxy "http://proxyserver:port/";
Acquire::ftp::proxy "ftp://proxyserver:port/";
Acquire::https::proxy "https://proxyserver:port/";

here are the complete steps ... 
  • open the terminal 
  • sudo gedit /etc/apt/apt.conf
  • now add these lines here the proxyserver is at 10.1.1.4 and uses port 8080 ...
Acquire::http::proxy "http://10.1.1.4:8080/";
Acquire::ftp::proxy "ftp://10.1.1.4:8080/";
Acquire::https::proxy "https://10.1.1.4:8080/";

  • and if are assigned a username and password use the following syntax ...
Acquire::http::proxy "http://username:password@proxyserver:port/";
Acquire::ftp::proxy "ftp://username:password@proxyserver:port/";
Acquire::https::proxy "https://username:password@proxyserver:port/";

  • let username is abc and password is 123 ... then u'll enter ...
Acquire::http::proxy "http://abc:123@10.1.1.4:8080/";
Acquire::ftp::proxy "ftp://abc:123@10.1.1.4:8080/";
Acquire::https::proxy "https://abc:123@10.1.1.4:8080/";

thats all use apt-get the way u used to be ... enjoy !!!

Wednesday, October 12, 2011

a reason ...


This is a weird feeling, but I've been living with it for quite sometime now. Recently read an article in the times of india and realized I am indeed not an alien, not many but most of the indians today are facing this problem. So what's it, sounds quite strange but we have somehow forgotten to enjoy, to feel oneself as a part of the society, we need a reason to be happy. And we won't celebrate because first, I need to accomplish that, finish this and a hell lot of worries. Our feelings now have more intricate relation with out work and desires. In here, people are willing to do overtime just to have some free time, employees want holidays, they need a break. But wait! No one's forcing you and you really don't have to do the extra work, it's your life have fun. Don't know if its our present lifestyle or we've lost something important as we matured. Now, will you have a good sleep depends on whether someone wishes you a good night …

When we were kids, there was never a second thought that the homework needs to be finished first, there was never a no when a friend asked for playing cricket. Time was never wasted having hours long gossips. Some would say grow up life's not the same as it used to be, you are no longer a kindergarten boy or a careless teenager, you'll have to make something for yourself, be responsible. And that's when I really get boiled up …

Shut up!!! I know what I've to do and I'll do it when I want to, just stop reminding me.

That's said, the question is do I actually have some plans for my future, do I know how im going to get the work finished by deadline. The point is most of us just can't get out of this situation, even if someone claims, still they have overburdened themselves with endless goals and desires. Most of us are will follow up what others are doing, follow up with the working protocol and you'll get somewhere . While many, including me finds this simply awkward how can you be doing something you can't get your heart into.
For a computer science student, there, are, always some nasty neurons signaling …

Hey! u've got to learn html5, and network programming and what about tweaking kernel and ircs and subversioning and get some good project and blah and blah!!! …

Well this never ends and I still haven't found a way to get out of it …

These are lines from Steve Jobs during an annual commencement speech at Stanford(2005) …

" Your time is limited. So don't waste it living someone else life. Don't be trapped by dogma, which is living with the results of other peoples thinking. Don't let the noise of others opinion drown out your own inner voice and most important have the courage to follow your heart and intuition. They somehow already know what you truly want to become, everything else is secondary. "

It may seem that I am going of the hook now, but if we want to(not have to) end this endless quest of not doing something coz we already have a lot to do, we will have to create a bridge and the time is now... 

Saturday, July 9, 2011

surrender to calmness ....

This is the second entry in this section and this one's about a person who had a friend (or a close relation ) but somehow the other person just disappears they are no longer together and how the society forgets the real him and how he is lost in this surrender to calmness ...


it has always been about you, not me ...
its O.K. coz everything seems perfect around you, not me ...

you were the hope, you were the cause ...
now everything's a mess coz you are gone ...

they need a reason, im the one to blame ...
surprised and startled, i lit the flame ...

i wanted the answers, adsorbed by emotions ...
i know they are rare, but for now ...
i know the exceptions ...

Don't ever ...
i hear the warning sounds ...
hunched for a moment ...
Don't worry ...
i had a habit to make them calm ...

Saturday, May 28, 2011

Are Strings The Answer … ???



Albert Einstein’s dream of a single theory to explain every event of the universe from atoms to galaxies is what string theory aims at. According to string theory point particles like electrons, quarks etc. are not spheres but (around 10-35  m) vibrating loops of energy. They are billions and billions of times smaller than an atom, this could be imagined from the fact that if an atom is increased to the size of the solar system, a string would not be bigger than a tree. It all started with a search for a mathematical framework that which could describe the strong forces but it showed physicists a completely new face of the universe.
The idea was first put forward by Leonard Susskind(Stanford University) in 1968. But it was in 1985 that Michael B. Greene(Cambridge University) and his co-worker John H. Schwarz(Cal Tech) brought the theory in light. They were successful to remove the  mathematical anomalies. The sub-atomic particles ‘tachyons’ which travels faster than light can have an existence according to the string theory. The difference in pattern of vibrations in the strings is responsible for the formation of different particles and their properties. The theory was later divided into 5 new theories which once seemed to challenge its validity. It was Edward Witten from the Institute for Advanced Studies, Princeton who in 1995 put a view, that the 5 theories were a result of looking differently towards the same aspect of the single theory. He named it the ‘M Theory’ where M (for mother of all or whatever) is still a mystery.


We generally experience only three dimensions of space but string theory believes that the there are 10 dimensions including time whereas according to M Theory there exists 10 spatial plus one time. Physicists believes that these hidden dimensions were not able to expand after the big bang. M theory changed the view from strings to branes or membranes which can be more than 3 dimensional. It shows that our own universe is like a slice and there may be many beyond our own and there exists a possibility of there existence just at distance of 1 mm from us. One can’t see them as they are rolled up in a very complicated manner. The theory also says that gravitons(the spin 2 subatomic particles) which are responsible for the existence of gravitational force are closed branes and may leave the slice(much like sound waves leaving from a pool table), this explains the weak nature of the gravity. The theory also agrees with the creation of the worm holes, which according to the general relativity are impossible as the formation of the space and time cannot be distorted.The success of string theory can be very useful in understanding the black holes where a very heavy mass constricts to a very smaller size. It could also solve the mystery of what the universe would have been in the first 10-43 s after the big bang theory. It showed that the big bang was not a very special event. According to one idea the bang took place when the parallel universes collided and the same may occur again and again.

The concept of hidden dimensions goes all the way back to 1919, when the Polish mathematician Theodor Kaluza came close successfully extending general relativity to include electromagnetism by postulating an extra dimension to provide a structure to every point in ordinary space. Kaluza’s proposal was further developed by the Swedish Physicist Oskar Klein, but some conclusions of the resulting theory, such as the ratio between charge and mass of the electron, disagreed with measurements. Consider an electric wire at a considerable distance from you, to you its only a one dimensional line. But now consider the situation from from the perspective of an ant, for ant there is an additional spacial dimension excluding the known three that surrounds the wire just like a circle, the ant can move in it either clockwise or anticlockwise. If we constrict to the size of sub-atomic particles, we will find an extra circular dimension at each point in space.