Pages

Tuesday, December 23, 2008

My Teachers !!

ASN Murthy sir:

I was most inspired by ASN sir in my life. As his bahaviour, rules, discipline indicates he has army school background. In fact he was physics teacher in some Army school. He was our principal so was most respected person in school. His values & level of thought was always inspiring for us.
The guy in late 40s was always full of enthuse & inspiration for others. Matter of fact I too got vital experience of his strict nature 2-3 times in college era. Once I was caught for taking sugar-canes from nearby farms. Our princy gave me 2 slaps and told not to repeat such things again in life… So, I never did it in such sloppy way. I did it many times later but with great care not to get caught. There is great saying, “Do whatever u want but never get caught in crime of it if what u r doing is got goodness of anybody”. Usually “anybody” use to be myself. Later on in school days I was more sincere towards studies & discipline.
His kids Chaitanya & Siddhardh were good friends of us. They were never been like princy’s kids. Late on, we came to know princy got transferred. We were very tense on that, as we were losing one of good teacher. Being class X students, were more responsible to changes in school. I use to keep in touch with Chaitanya now a days. Princy is doing well in one of Andhapradesh JNV school. Best luck.


M S Sheikh :

Die heard fan of Biology. Bio was at his heart. He always wished every student should become doctor or medical expert. We always make sure he thinks we are also interested in Biology stuff. I still remember the day he demonstrated mice & frog dissection. He shown the testis & male reproductive system is inside body of frog. I saw, heart beat was still on. I never forget he killed a frog & mice in two practical. He was vice princy of our school.


Ashok Sali :

Last princy when I passed out the school. We nick named him as Mendeleev. Name was coined from Mendileevs’ periodic table. Guy was short & fatty, sorry to say sir. I did well in Chemistry which made my classmates to nick name me Mendileev. Sali sir‘s interest in art was discovered when he started writing painted “good thoughts” on walls of school building. I helped him a lot in the process. He was hard worker who earned for basic living & learing in his childhood. Infact he did small job related to painting & art. We shared good amount of thoughts in school. That was good pastime we had in common. I still remember his cute daughter. She was so cute & small. He had habit of saying “isn’t it?” I had counted in one of his lecture. It was 73 times in period of 1 hour, that was very good score.

My JNV School batch till 12th Science!

I just want to name of school batch mates name with their nick name, lets see how many I remembered.
My School top view Thanks to GMap

1. Mahendra Tipale (me)
2. Balasaheb Darade (Balya)
3. Rameshwar Rakhlawe. - (No more)
4. Murlidhar Shide. (murali)
5. Gajanan Kachgunde (Pahelwan)
6. Gajanan Kamble (Chota Kamble)
7. Gajanan Bokhare. (Gajya 1)
8. Gajanan Delmade (dillan)
9. Gajendra Jogdand - Gajya
10. Satish Raut - Satya
11. Rahul Muley – Owl. As R should be silent ;)
12. Sakharam Rede – Redya
13. Jankidas Sugave – Chakkar - Unknown.
14. Tukaram Waghmare – Tukya (No more)
15. Manohar Zate
16. Shashikant Magar. - Sashi.

Only girls in our batch
16. Apeksha Dhoke
17. Sapna Rathi
18. Jyoti Kadam
19. Vinita Bhayekar

…. I might have missed some. It’s my class 12 th Science batch @ JNV, Basmathnagar

A mere friend will agree with you, but a real friend will argue.

Russian Proverb
more famous quotes

Worst day in my life !!!

This is my very first blog reminding my school days memories, Inspired by "Shala" - a book by Mr Milind Bokil. It’s a marathi book, the story almost applies to every mischief child of mid school days...

I was studying in standard/grade 8. Not yet understandable and matured about facts of life. My school- a residential/boarding school Jawahar Navodaya Vidyalaya is located in Basmathnagar tehsil, district: Parbhani, now changed to Hingoli, in states of Maharashtra, India http://www.wikimapia.org/#lat=19.3251459&lon=77.1278&z=17&l=0&m=h&v=2 . Place is located near banana, sugarcane & mango farms with beauty of nature. Grown up listening pea-cocks’ "mauuu-mauuu" along with torturing whistle in early morning. Story bangs in ears….
Our class teacher - Mr Kadole, hanged a half yearly exam timetable on notice board. It’s starting just after 15 days. Being average student in batch was barely prepared for that. Better side of this was, we‘ll not be have morning PT & more relaxation in physical exercise is boon to every student in school. I started studyinh in more deapth. I choose to start with Social science to finish first.
Time 7pm, was reading a book in eveining study hours. Suddenly, a guy Waghmare came to me. Being my class-mate, I thought it would be regular book sharing or note/note-book sharing. But that wasn’t the case.
He said, "Hey buddy, this is my pen. Where did you found this one?" I was surprised. So said, "dude, you have some misconception. It’s my & my father have given it to me."
Waghmare got bit furious "But, this pen has marking at bottom end. And I know for sure, its mine. Give me right now, or I’ll straight way complain to Principal Sir."
We were always scared to meet our Principal sir- Mr ASN Murthy. He would have given me 10 slaps & some more punishment without listening to me anymore. But I was confident on my side.
I said to Waghmare, "Do whatever you want to do. Go to hell! I don’t care, it’s my pen".
Now it became big deal. It was a precious gel pen by Luxary which was gifted to be from my father. It would have cost 25 Rs in market to buy new one. I just banged him away.
The sticky guy Waghmare, we use to call him mosquito, as he was so small in size & had very sticky, never give up attitude. He came back with 2 more common friends, asked them to have a look on pen. Even they too agreed it’s his pen.
Now, I was bit low in confidence, case started moving out of my hands. He asked me to come to come and meet Principal sir. I was blushed, bit scared of meeting Principal. But I had no choice. Study hall was full of students from grade 5th to grade 10th. Complete silence. Out of sudden, Principal came in our lane. He called us, as we were doing discussiong on the issue.

With in 2 minute of discussion and arguments, fire stuck on chicks, banging right below ear! Sound killed the silence. Everybody was looking at the scene. Slap had stuck on my face. I was blushed, eye sight down to toes, nervous. Shamed of what had happened all of sudden. Feeling was like, world ate me alive! Hell, pick me up before I become conscious of what happening!!
Sobbing, weeping with hick ups. I was staring at social science book. Chapter was same with drops of tears poring on it. Cyclone started in my brain, how this happened. I got to prove this. Who cheated me? I walked back to hotel. I didn't go my dinner. I sat alone in dark, thinking to crack the case & prove that to Principal.
Our hostel was divided in to four houses, each house had two blocks & each block had 40 students of various grades, ages and behavior. I was totally confused from where to start? I looked for other angle. Splashed a thought, Is that pen really belongs to me? I knew, that wasn’t my pen, somebody had replaced It with other one… Somebody had cheated me.
I analyzed things people lost in last few months. There was good amount of stuff robbed in a month. Somebody lost pen, wrist watch, refill, note-books and small things. I got idea, to stay at hostel in study hours to check luggage of some suspicious students. There is some thief in hostel; who is after such things. There were few minor incidences of complete robbery of money. But students never mind it. We use to contribute the money & fill up the losses. Many of issues use to resolve after minor fights & end up with complaining teacher or house master. Night was not easy to pass in such situation. I manage to get sleep in early morning.
I did inspection in morning PT hours. I figured out luggage of Balaji Awale who was my classmate. In fact, he had things more than one expect with him. I saw some of the duplicate pens & books on his bed. This was striking revelation for me. Balaji was below average student with keen interest in music & arts, although he didn’t had any special quality in music or arts. I use to have good contact with him. Being residential school student, more often we use to share books, notes & many of stationeries. He was my prime suspect. But I was looking for more detailed proofs so, he could feed guilty before ASN (Our Principal sir). I never had doubt on him; eventually I decided to keep eye on him to make him accept his mistake. My close friends always had faith in me. They proposed a plan to catch him. We planned to have common checking of house for finding some stolen things. House captain Rajesh was a good student. He accepted our proposal to go ahead with complete checking.
Evening hours was best time to do checking. We sealed the door for checking, so no one should be able to through stolen thing out from window. I took Rajesh & my trusted senior guys to go ahead for checking. Balaji’s bed was second in left row. So, I insist them to start from left row. My bed was in first row on left side so, I completed my checking first. We turned to Balaji’s luggage. He showed us all things with more care, so some stolen things should not come up. I asked Balaji to come down & let me do checking. I opened his box. There were many small thing placed inside box. I started picking & showing it to everybody. It was enough to break confidence of Balaji. For first 2-3 things, he keeps on saying. "I borrowed this Raj; I took it from Sandeep & so on… Sometimes he said its mine & all". I asked my friend to call Sandeep to confirm whether he had given this book to him. Here we got success to crack him. But he never cried. I called other house mates, shown all stuff present in Balaji’s box. We involved our house master in matter. He was shocked to see such thing first time. Balaji had collected almost 200 Rs things. We even had no idea about where he had stolen money before. He accepted, "I have stolen these stuff & will not do such thing again in my life". His eyes were filled with tears with fear. We had tradition to bit the robber then hand him over to principal or house master.

My friends also asked me to bit him. But that meant nothing to me. I asked Balaji, "Come with me tomorrow to meet ASN, he should know I’m not the one who stole Waghmare’s pen.". He had no choice then accepting.
Next morning, 9.00 am; it was free hour. I took Balaji to ASN’s cabin. We waited outside as ASN was not in cabin. After 15 min sir came, he was accomplished by our PT teacher Mr Mulik. So, we need to wait another 10-15 min. I turned to Balaji; confirmed whether he is ok to accept everything before principal? He already had accepted. Mulik sir came out in 10 min, he saw me; asked Tipale, what happened? What are you doing here? No class?. I replied "No sir, it’s off hour, so we had some issue to asked Principal Sir". He left us. I moved to ASN’s cabin door.
"May I come in sir?"
ASN was bit busy with reading some notice, "what happened man? Come in".
Being south India, he had habit of adding "man" in any place. I said, "Sir, I’m with Balaji. He wants to say something on thing what had happened day before yesterday"
Sir said, "Where is he? Call him inside". I called Balaji to come in.
Balaji came inside. His eyes were staring his toes. He was ashamed of what had happened. I said,"Balaji, please, share the truth?"
He started, "Sir, actually I had exchanged Mahendra’s pen with other pen, which I had stolen from Waghmare. This was actually Waghmare’s pen so Mahendra got caught because of me. He is innocent. He had no idea about these details." His eyes were filled with tears. ASN was looking in shocked. His face was saying "Sorry, I should have done more inquiry in case". I had no words to say. I was almost crying. My eyes were filled with tears. ASN couldn’t control himself to say, "Sorry my friend. Hey man, it happens many times. Forget the crap. Take this banana as gift". He gave two bananas to me. I guess, fruit supplier usually keeps two piece of banana for quality check on ASN’s desk. I took banana and came to my class. Trauma was now over. I was feeling life I’ve won battle. I was very happy. My status, my value was restored. I was feeling like a heaven. That day was once of the happiest day of my life.

But Why???

This is story of my close friend Ramesh – Ramesh Pawar. Real genuine guy with average look, but extra-ordinary way of thinking. Ramesh was one of the talented student with great pro efficiency in languages, especially in English. He was worst in Mathematics, so use to mug up his mathematical calculations, proofs & formulas. He managed to do mug up like anything. We use to call him "Rattu Ramu".
One day evening, he took one A4 page of drawing book and made bold mark labeled with text "But Why?". He was always thinking something. May be about the society, nation, politics, evaluation of languages, why maths is difficult & bla bla bla. I guess, we were not enough mature to understand him or he was extra matured, God knows! My bed was across to his bed, so I just saw his board & asked him why you made this thing. What is your attitude about this message?. He explained briefly, "Its very valid answer to any answer OR question". I was surprised. But if you think for a while you 'll agree to this. It looks insane to think by "But Why?". Ultimately, you'll end up with its question whether to live or die?
Psychologically he was one one of the strong candidate in our team. But some where down the line he was distracted from bottom of heart. May be, he was not aware of fact of living. We use to lengthy discussions on philosophy & how things should be. Be it a political affair or minor natural behavior of mosquito. We always to crack the magic behind the screen. We were classmates so, seen each other growing for 7 years. Major time of transaction between young man to adult is major to make difference in your thinking and makes a vivid mark in mind. This was what had happened with him.
He lost the track of education. Eventually, he joined some teaching institude to work as assistant & minor office work. I met him in person for after 2nd year of engineering degree. He was same Ramesh, as it was before 2 year. Mingled in questions of Physics and Biology. Mathematic was never close him. He use to discuss same old questions of grade XII th. I keep on meeting him for next 2 year. He keeps on changing but in wrong direction. He was never been close to reality. He was in love with a lady 3-4 year older than him. In fact, she was a teacher in same institute. They came close & finally they got to close it. Affair was inter cast & would have never accepted by society & thier parents.
Ramesh was totally out of living. I lost keeping track on him. Neven been able to call him regularly. It was 4 O'clock morning, my mobile banged; I was in deep sleep. The man calling me was Ramesh's boss. He asked me, Whether I've any idea about Ramesh? I had eloped from institute with some money & other stuff. I suggested him to call at his home. I had no idea.

After 2 year, one of friend; Purbha Zamre called me. This guy was doing his MBBS degree from last 6 year. He had great plans, but no time to accomplish them. Purbha said. "Tipale, you know; I met Ramesh last evening. He has shifted to this place. He started his own business.". I was glad to know it. Was happy to see Ramesh is going on some stable & right track. I asked Purbha to bring him on call. He accepted. They were meeting after 2-3 days. Purbha called me. I knew, I'll be able to talk with Ramesh. But, this Ramesh was not like my friend Ramesh. He was changed. More business oriented, focused on target to get money for livelihood. Thinking was very matured. I was surprised to know it. But it was just an another story to direct us on wrong way.
After six months, I got the news from my friend Gaju Bokhare. Its was shocking news, "Ramesh did suicide at his home. He hanged himself" A drop of tear came to on eyelids. I never understood this guy. Puzzle of "But Why?" was not suppose to end up in this manner. Its was too coward way to face such huge question !!!
I made a painting in Ramesh's memories. The painting only had text lable "But Why?" in bold red color !

Friday, November 14, 2008

Sudha Murthy- Lady with vision

Recently gone through a book called "Wise or otherwise". It was translation of kannad/english stories in Marathi. Author have put every experience of life to the make meaning collection of stories.

I recommend the book to house wives & young to understand the feeling of a great woman & her thoughts to improve social barriers from life of every Indian.

Wish her all the best !!

Thursday, November 13, 2008

Singapore !

Had been to Singapore on business trip. Its wonderful city with very strict rules & discipline. One can't imagine to pay $500 for eating food in MRT station or in MRT. Specially its indigestible for Indian staying in populated city like Mumbai. Same goes for me.

Fortunately, I like the food. Being non-veggie, it went easy for me. Thanks to Singaporean team to guide in choosing right food. Curry chicken was my most favorite one, it was made in small food place with pure Singaporean herbs & masala.

Being Indian I visited little India & Mustafa market. Its huge market with most of India stuff available. Its all cool to have every India thing in Singapore. In fact, many traffic rules are followed in Little India area. Its more like poss area of Mumbai, rather Chennai; as more south India population. I was surprised to know, they even teach Malyalum or Tamil as one of primary language in school.

As most beautiful place of Singapore, I visited Fultron hotel, Marylion statue & River side hotel (Banque Queue). Loved walking on road rather than traveling by bus or taxi. Thanks to Rishit, my friend who helped to get proper food on weekends.

I also met my CDAC buddy, Ajay. Dude was non-veggi before shifting to S'pore. Unfortunately, he ate burger in MacD which was cheesed with pig cheese (which never eaten in India or any Hindu guy will never like to have it). Now he is pure vegie in S'pore. He is doing very well with one of the mobile app developer company.

Most memorable thing was roaming testing done with Starhub team. We actually went for outing on east coast. It was great fun. Testing was a nominal thing. Team had planned for lunch in coastal area Indian Hotel. I was accompanied by Sabrina (The lady boss), Rachel (The cute lightweight girl), Fiona (Fairly family lady), Gek Choo (Elderly religious vegetarian lady). All ladies with Chinese origin/look but very caring attitude. We placed the order, I still remember the order :

1. Dal Makhani - Sabrina asked to have bucket full of daal after seeing same on next table
2. Butter chicken- As it was must to have non-veg
3. Naan- 1 Mango, 1 cheese, 2 butter.
4. Veg rice + some spicy sup for Gek Choo.

I went to wash my hands as Indian culture. Ladies were confused, why this guy went away.. when lunch is ready. I started eating with right hand.. cutting piece of naan with fore finger & support of mid finger & thumb.. as typical roti eater does. It was amazing thing for ladies. Sabrina tried cut roti with fingers but couldn't.
And Rachel was cutting her naan with fork & spoon. Some how she managed to finish her stuff but couldn't digest it. As on next day she told she had bad stomach & had to go bathroom many times. Gek Choo had ordered some spicy rice which to too much hot to eat. She keep on drinking water along with sup & rice.


Will look forward to see the place again...
Will always keep friends & their memories in safer side heart. ;)

Wednesday, November 12, 2008

Some sketch work !

Here is one of sketch & charcoal stick work. It was very first of this kind for me.


I was very fascinated by the her lusty face, bubble eyes....
Still thought to have one figurative ...




She looks like shy gal, hiding from her face; her smooth back curve makes her more interesting... a fast work to express figurative beauty. I liked her even I don't see her face ;)

Tuesday, November 11, 2008

Accessing same email account & mails from windows & Linux

This blog is in extension to the earlier blog http://mahendratipale.blogspot.com/2008/09/thunderbird-mail-backupmovingshifting.html mentioning backup & moving of mails on linux machine.

If you a dual boot & want to see same mails on both OS. Here is the solution !

Being power user of Linux & windows, I need mails & all other services to work smoothly on both most popular environments. Ater exploring in thunderbird capabilities, I figured out the way to access my company mail account in Linux & Windows using Thunderbird.

C:\Documents and Settings\Administrator\Application Data\Thunderbird\Profiles\jzk0qj4u.default\Mail\Local Folders

Config your mail account in windows.

Boot :
Reboot your system to linux.

Install Thunderbird :
Install thunderbird. Version 1.5+ is good enough.

Mount C:\
Now mount the C:\ drive on linux using mount command.
Same can be done to mount auto on every boot :
Edit /etc/fstab & add similar line as below
/dev/sda2 /home/mahendra/D_drive vfat gid=501,uid=501 1 1
/dev/sda1 /mnt/c ntfs defaults 0 0

pls check your device name /dev/sda_ , its file system & mount directory.

Now open thunderbird, config data directory path to : C:\Documents and Settings\Administrator\Application Data\Thunderbird\Profiles\jzk0qj4u.default\Mail\Local Folders

Restart your thunderbird. I have been using this from last few days. It works smooth. Pls make sure you mount c:\ before opening thunderbird. Otherwise you'll see blanck thunderbird account as mail directory is not accessible.

Comments & Suggestions welcome !!!! :)

Wednesday, October 22, 2008

शाळा -- मिलींद बोकील

I was in ABC- Appa Balwant Chouk in Pune on last Satureday. Was there to buy a book "Yugandhar" by V. S. Khandekar. Its based on mytho life of Shree Krushna. My friend Avinash was interested in it.
Started conversation with one Marathi novel book seller. His name was Rupesh. Asked about the book & started bargainaing as usual style in Pune. His proposal was to give 80% discount on sell of Rs 800+ . I thought to buy few more books. Rupesh recommended some more historical mytho stuff. I wasn't really interested in it. Eventually he shown me book called " शाळा -- मिलिंद बोकील ". He said its almost based on your life.

"तya दिवशी मला कळलं की शाळेची मजा कशात आहे ते। वर्ग आहेत,बाकं आहेत, पोरंपोरी आहेत,सर आहेत,गणित आहे, भूगोल आहे,नागरिकशास्त्रसुध्दा; पण आपण त्यात कशातच नाही. आपण त्या गाईंच्या पाठीवर बसणार्‍या पांढर्‍या पक्ष्यांसारखे मुक्त आहोत.त्यांच्या शाळेत बसलेलो असलो तरी आपल्या मनात एक वेगळीच शाळा भरते.खास एकट्याचीच . त्या शाळेला वर्ग नाहीत,भिंती नाहीत,फ़ळा नाही,शिक्षक नाहीत; पण त्यातलं शिकणं फार सुंदर आहे."

Started reading it for next 2-3 hours. It started as if its my life. Wonderful way to express journey from childhood days of 14-16 yr to bit matured 17 yr man.

Its really suites well to a Maharatrian boy in Kokan or near by area of Mumbai. Would like to characters of story :

Me : Mukund Joshi , a nature lover , small but casual in studies, chess player, knows movie names very well, finally becomes a broken heart lover.
Shirodkar : My's line/chavi/beloved - My classmate, a cute aadarshwadi girl. I loved her character. The way writer put it.
Ambabai - My elder sis, my permanent headache at home
Aaisaheb - Aai, Mother
Surya - Suresh Mhatre. My friend in class. But a looser in matter of girls & studies. So his papa bit him like anything. Its in his caste - "Aagree".
Chitrya - Another scientist close friend. Very talented but pissed of due to his parent's fights & Devki.
Fawadya - My friend with v poor economic conditions.

Anyway, I didnt like the end. Its a tragic end. Mukund didn't get his girl. Vijay & his friend in jail. Surya & Fawadya failed. Chitrya lost his love kewada. Naru mama married to some girl, whom he't liked.

Milink Bokil saheb gosti cha shewat changala zala aasata tar bare watale aasate.

Wednesday, October 1, 2008

My New timepass sunset painting !




Here is small water color painting made on the fly.
I changed shade in water & boat with black char-coal after taking this pic.
Will be doing some more stuff in future !

Suggestions welcome :-)

3 Mistakes of my life

Here is brief of 3 mistakes of my life ---- Chetan Bhagat

Started with Govind Patel.
Story moves to Ishant, Om then... Vidya, Ali, Bitoo mama, Parekh, Godhra violence and end goes well like a movie ... Every part of story dosn't look real.

I nice to book to read for a youngsters...

Yayati -- V.S. Khandekar

दोन दिवस पासून एक कादंबरी वाचत आहेत आम्ही। नाव आहे "ययाति" - वि स खांडेकर यांची १९५९ ला प्रकशित।

महाभारत नुसार -
खुप वर्षा पूर्वीची गोष्ट आहे। एक रजा होता "नहुष"। त्याला दोन सक्खी मुले होती - यती आणि ययाति , आणि बाकि सावत्र भाऊ होते - संयति , अयति , वियति आणि कीर्ति।

दूसरा संधर्ब -
नहुष ला दोन मुले होती- यती आणि ययाति । राजा ला एक महान र्हुह्शी ने शाप दिला असतो। "नहुष ची मुले कधी ही सुखी होणार नाहीत... " आणि तसेच होते॥ यती लहान पानी घर सोडून सन्यासी होतो॥ त्याची सिद्धि प्राप्त करायची इच्चा इतकी वाढते की तो सर्वा काही विसरून जातो।
ययाति - एक महान योद्धा बनतो। अस्वमेघ करतो, आई - वाडिला साठी सगळे करतो॥ त्याचे दुर्भाग्य - त्याला देवयानी नावाची शुक्रचार्याची मुलगी भेटली आहे आणि ते पानी ग्रहण करून विवाह बद्ध होतात

देवयानी - एक हट्टी, फारच खोचक बुद्धि ची मुलगी॥ ययाति तिच्या बरोअब्र कधीच खुश होत नाही
बिचारा ययाति दारू आणि बाकि च्या घान सवयी चा बळी पडतो। दारू , नशा आणि काम सुखा मागे पागल होतो...
त्याला हे सुद्धा कळत नाही की समोर ची व्यक्ति कोण आहे।

आणि कहानी मधे बरेच नविन पात्र येतात...
कच - देवगुरु चा मुलगा॥ आणि एक हुशार, कर्तात्वावन व्यक्ति
शर्मिश्ता - ययाति ची दूसरी पत्नी आणि ॥ कर्तात्वावन व्यक्ति , कचाची बहिन
देवयानी - ययाति ची पहिली पत्नी आणि कचाची बहिन
पुरु - शर्मिश्ता चा मुलगा।
अलका (2) - ययाति ची बल मैत्रीं आणि सोनेरी केसाची मुलगी...
मंदार, मुकुलिका , अंगराज बरेच जन...

Tuesday, September 23, 2008

Formating a undetectable flash drive

Here some more recent RnD done on one of flash drive of friend - Rishit. He was about to dump harddisk data to professional data recoverer.. Eventually settled down on party ;-)

A Transiant flash drive of 120GB space, which was undetectable on WindowsXp.
Condition :
  • Drive undetected on Windows
  • Mounted on Linux-FC6, but could not delete dirty partition sectors
  • Nor move corrupted data to other location.
  • Drive was almost in condition to dump


===========================================
[root@localhost ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
23520588 20259704 2046832 91% /
/dev/sda3 101105 16544 79340 18% /boot
tmpfs 512748 0 512748 0% /dev/shm
/dev/sda2 30701264 25927728 4773536 85% /home/mahendra/D_drive
/dev/sda1 20972824 15270744 5702080 73% /mnt/c
/dev/sdb1 117218240 3006620 114211620 3% /media/Rishit Shah
[root@localhost ~]# mkfs /dev/sdb1
mke2fs 1.39 (29-May-2006)
/dev/sdb1 is mounted; will not make a filesystem here!
[root@localhost ~]# mkfs -t vfat /dev/sdb1
mkfs.vfat 2.11 (12 Mar 2005)
mkfs.vfat: /dev/sdb1 contains a mounted file system.
[root@localhost ~]# mkfs -t vfat /dev/sdb1
mkfs.vfat 2.11 (12 Mar 2005)
mkfs.vfat: /dev/sdb1 contains a mounted file system.
[root@localhost ~]# mkfs /dev/sdb1
mke2fs 1.39 (29-May-2006)
/dev/sdb1 is mounted; will not make a filesystem here!
===========================================

[root@localhost ~]# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2611 20972826 7 HPFS/NTFS
/dev/sda2 2612 6435 30716280 c W95 FAT32 (LBA)
/dev/sda3 6436 6448 104422+ 83 Linux
/dev/sda4 6449 9729 26354632+ 5 Extended
/dev/sda5 6449 9729 26354601 8e Linux LVM

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 14593 117218241 7 HPFS/NTFS
[root@localhost ~]# fdisk /dev/sd
sda sda1 sda2 sda3 sda4 sda5 sdb sdb1
[root@localhost ~]# fdisk /dev/sdb1

The number of cylinders for this disk is set to 14592.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdb1: 120.0 GB, 120031478784 bytes
255 heads, 63 sectors/track, 14592 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

This doesn't look like a partition table
Probably you selected the wrong device.

Device Boot Start End Blocks Id System
/dev/sdb1p1 ? 13578 119522 850995205 72 Unknown
Partition 1 does not end on cylinder boundary.
/dev/sdb1p2 ? 45382 79243 271987362 74 Unknown
Partition 2 does not end on cylinder boundary.
/dev/sdb1p3 ? 10499 10499 0 65 Novell Netware 386
Partition 3 does not end on cylinder boundary.
/dev/sdb1p4 167628 167631 25817+ 0 Empty
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order

Command (m for help): d
Partition number (1-4): 1

Command (m for help): d
Partition number (1-4): 2

Command (m for help): d
Partition number (1-4): 3

Command (m for help): d
Selected partition 4
Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.

===========================================
Tried deleting all partitions but w command in fdisk dosnt work. Its bad man.

[root@localhost ~]# mkfs.vfat -F 16 /dev/sdb1
mkfs.vfat 2.11 (12 Mar 2005)
mkfs.vfat: /dev/sdb1 contains a mounted file system.

Final try for umounting & then formating the drive

umount -f /dev/sdc1
[root@localhost ~]# mkdosfs -F32 -I /dev/sdc1
mkdosfs 2.11 (12 Mar 2005)
[root@localhost ~]#



Wow !!! I removed the drive & reconnected

[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
23G 20G 2.0G 91% /
/dev/sda2 30G 25G 4.6G 85% /home/mahendra/D_drive
/dev/sda3 99M 17M 78M 18% /boot
tmpfs 501M 0 501M 0% /dev/shm
/dev/sda1 21G 15G 5.5G 73% /mnt/c
/dev/sdc1 112G 16K 112G 1% /media/disk-1

It works !


Thursday, September 18, 2008

Remote Printer on Linux - FC6

Had encounter with printer configuration on Dell laptop. I did it myself as we had no system admin for linux

Lets see how we can install/config remote printer :
  1. Make sure cup daemon is running
  2. /etc/init.d/cups restart , u can check by ps -eaf | grep cup
  3. Add printer from System-->Administration-->printing
  4. Select valid driver/model. General linux printer driver list/ dtd file list comprise most of standard printers. If some printer name is not available, select closed cousin of it. Eg HP Deskjet 5500 is not present in FC6, select Deskjet 3300. It works !
  5. Select host-name (ip addr) of printer machine. Put port 9100 as its default port.
  6. Device URL should look like socket://<-ip->:9100
  7. Do finish once u see correct URL.
  8. Try printing test page
  9. Wow ! It works!!!
First time opening printer adding wizard may hang your machine. May be due to huge resource use.

I got +ve results on FC6 on Dell D520 and CentOS 5.0 on Dell D630

Problems welcome !!!


Monday, September 15, 2008

Thunderbird mail backup/moving/shifting to other machin

Hi All,

Another post to save your mails.

Mozilla - Thunderbird always get installed at its location but keeps mails & configs in user's home.

On Linux/Unix system :
/home/mahendra/.thunderbird

while on windows :
C:\\Document & Se...\mahendra\.Thunderbird\

structure in /home/mahendra/.thunderbird :
[mahendra@localhost .thunderbird]$ pwd
/home/mahendra/.thunderbird
[mahendra@localhost .thunderbird]$ ls -1
17jgza7q.default
appreg
profiles.ini
[mahendra@localhost .thunderbird]$
17jgza7q.default is directory for default mail address.

[mahendra@localhost .thunderbird]$ cd 17jgza7q.default/
[mahendra@localhost 17jgza7q.default]$ ll
total 5936
-rw-rw-r-- 1 mahendra mahendra 0 Apr 14 15:39 abook-1.mab
-rw-r--r-- 1 mahendra mahendra 202839 Sep 15 17:29 abook.mab
-rw-r--r-- 1 mahendra mahendra 248 May 28 11:22 blocklist.xml
-rw------- 1 mahendra mahendra 65536 Sep 15 11:17 cert8.db
-rw------- 1 mahendra mahendra 144 Apr 7 10:33 compatibility.ini
-rw-rw-r-- 1 mahendra mahendra 169297 Apr 7 10:34 compreg.dat
-rw------- 1 mahendra mahendra 235 Aug 22 2007 cookies.txt
-rw-r--r-- 1 mahendra mahendra 4118 Sep 15 15:55 downloads.rdf
drwxr-xr-x 6 mahendra mahendra 4096 Jan 24 2008 extensions
-rw-r--r-- 1 mahendra mahendra 604 Apr 7 10:34 extensions.cache
-rw-r--r-- 1 mahendra mahendra 527 Apr 7 10:34 extensions.ini
-rw-r--r-- 1 mahendra mahendra 8889 Apr 7 10:34 extensions.rdf
-rw-r--r-- 1 mahendra mahendra 1438 Aug 20 2007 history.mab
drwxr-xr-x 3 mahendra mahendra 4096 Aug 20 2007 ImapMail
-rw------- 1 mahendra mahendra 16384 Sep 15 11:17 key3.db
-rw-r--r-- 1 mahendra mahendra 33265 Sep 15 17:29 localstore.rdf
lrwxrwxrwx 1 mahendra mahendra 15 Sep 15 11:22 lock -> 127.0.0.1:+6722
drwxr-xr-x 5 mahendra mahendra 4096 May 27 18:29 Mail
-rw-r--r-- 1 mahendra mahendra 477 Jan 17 2008 mailViews.dat
-rw-r--r-- 1 mahendra mahendra 8161 Jul 22 13:05 mimeTypes.rdf
-rw-r--r-- 1 mahendra mahendra 46531 Sep 15 17:52 panacea.dat
-rw-r--r-- 1 mahendra mahendra 45 Aug 7 20:11 persdict.dat
-rwxr-xr-x 1 mahendra mahendra 14641 Sep 15 11:17 prefs.js
-rw------- 1 mahendra mahendra 16384 Jan 17 2008 secmod.db
-rw------- 1 mahendra mahendra 269 Jul 21 11:26 signons.txt
-rw-r--r-- 1 mahendra mahendra 18922 Aug 29 16:39 training.dat
-rw-r--r-- 1 mahendra mahendra 0 Aug 20 2007 urlclassifier2.sqlite
drwxr-xr-x 2 mahendra mahendra 4096 Aug 20 2007 US
-rw-r--r-- 1 mahendra mahendra 10 Sep 15 11:17 virtualFolders.dat
-rw-r--r-- 1 mahendra mahendra 1083041 Feb 28 2008 XPC.mfasl
-rw-rw-r-- 1 mahendra mahendra 109260 Apr 7 10:34 xpti.dat
-rw-r--r-- 1 mahendra mahendra 4144667 Sep 2 18:23 XUL.mfasl



Actual mails are present in :
/home/mahendra/.thunderbird/17jgza7q.default/Mail/Local Folders


Whenever u want to change the machine/laptop OR want to backup state of mails at that pertucular time. Zip the /home/mahendra/.thunderbird/17jgza7q.default/Mail and save it to backup locations.

To replicate the mails on other machine. Install Thunderbird & unzip the Mail folder at same location.
Similar stuff is also possible for other Mozilla products like Firefox...
Addons, Plug-ins , bookmarks can be saved in similar fashion.

C U :)

Friday, September 12, 2008

Twittering with world!!

We would always love to be in touch with all. Here is the asap way to be updated & to update other about what you are doing?

Yes. I'm talking about "Twitter" with Widset http://www.widsets.com/

I 've been using Widset from last 2 months. It been always in very frequently used programs.

My updates : http://twitter.com/mahenT
Somemore details http://friendfeed.com/mahent

I'm sure you 'll love to be connected & updated with your mobile phone. :)
There 1000 things u can do with your widset. You can create own widset, rss feed reader, whether updates, games, list is huge....

Wednesday, September 10, 2008

SSH connection reuse

It really speedup my ssh connection & never prompt passwd for second connection to same host.
Very handy to use.

Open ~/.ssh/config file (ssh client configuration file). If you need system wide settings add to /etc/ssh/ssh_config file:
$ vi ~/.ssh/config
Append following code to reuse ssh connection for all hosts:

host *
controlmaster auto
controlpath /tmp/ssh-%r@%h:%p

Where,

  1. controlmaster auto: Set controlmaster to auto
  2. controlpath /tmp/ssh-%r@%h:%p: Specify the path to the control socket used for connection sharing. In the path, ‘%h will be substituted by the target host name, %p the port, and %r by the remote login username. It is recommended that any ControlPath used for opportunistic connection sharing include at least %h, %p, and %r. This ensures that shared connections are uniquely identified.

You can also match any host in the 192.168.0.[0-9] network range with following pattern:

Host 192.168.0.?
controlmaster auto
controlpath /tmp/ssh-%r@%h:%p

For any host in the ".co.in" set of domains, reuse the connection:

Host *.co.in
controlmaster auto
controlpath /tmp/ssh-%r@%h:%p

Save and close the file. Now connect as usual,
$ ssh vivek@vpn.nixcraft.co.in
Next, time you connect again it will use connection socket /tmp/ssh-vivek@vpn.nixcraft.in:22 to speed up things. You don't have to input password or anything else. You need one connection to be active for the second to be accelerated. This also works with scp / sftp etc:
$ scp /path/to/file.txt vivek@vpn.nixcraft.co.in:/tmp


Welcome if still its not working on your machine.


You can have ~/.ssh/config file configured as
===============================================

host lin
hostname 172.16.13.20
user root
port 22

host Lin
hostname 172.16.13.20
user mahendra
port 22

host *
controlmaster auto
controlpath /tmp/ssh-%r@%h:%p

===============================================

Comments welcome !!!

Friday, September 5, 2008

Getting Hardware information without opening Box on LInux

With Linux- FC6 running on Dell machine, How can I get hardware info of my machine?

"dmidecode " is the key command to fetch such info.

Command is readily available on most of Linuxes

Here is some more details on same command :
-t, --type TYPE
Only display the entries of type TYPE. TYPE can be either a DMI type number, or a comma-separated of type numbers, or a keyword from the following list: bios, system, baseboard, chassis, pro cessor, memory, cache, connector, slot. Refer to the DMI TYPES section below for details. If this option is used more than once, the set of displayed entries will be the union of all the given types. If TYPE is not provided or not valid, a list of all valid keywords is printed and dmidecode exits with an error. Mutually exclusive with --string.

[root@localhost drive_c]# dmidecode -t1
# dmidecode 2.7
SMBIOS 2.4 present.

Handle 0x0100, DMI type 1, 27 bytes.
System Information
Manufacturer: Dell Inc.
Product Name: Latitude D520
Version: Not Specified
Serial Number: DV9SQ1S
UUID: 44454C4C-5600-1039-8053-C4C04F513153
Wake-up Type: Power Switch
SKU Number: Not Specified
Family:


We can use type in below format :
Type Information
----------------------------------------
0 BIOS
1 System
2 Base Board
3 Chassis
4 Processor
5 Memory Controller
6 Memory Module
7 Cache
8 Port Connector
9 System Slots
10 On Board Devices
11 OEM Strings
12 System Configuration Options
13 BIOS Language
14 Group Associations
15 System Event Log
16 Physical Memory Array
17 Memory Device
18 32-bit Memory Error
19 Memory Array Mapped Address
20 Memory Device Mapped Address
21 Built-in Pointing Device
22 Portable Battery
23 System Reset
24 Hardware Security
25 System Power Controls
26 Voltage Probe
27 Cooling Device
28 Temperature Probe
29 Electrical Current Probe
30 Out-of-band Remote Access
31 Boot Integrity Services
32 System Boot
33 64-bit Memory Error
34 Management Device
35 Management Device Component
36 Management Device Threshold Data
37 Memory Channel
38 IPMI Device
39 Power Supply

Keywords can be used instead of type numbers with --type. Each keyword is equivalent to a list of type
numbers:

Keyword Types
------------------------------
bios 0, 13
system 1, 12, 15, 23, 32
baseboard 2, 10
chassis 3
processor 4
memory 5, 6, 16, 17
cache 7
connector 8
slot 9

Keywords are matched case-insensitively. The following command lines are equivalent:

· dmidecode --type 0 --type 13

· dmidecode --type 0,13

· dmidecode --type bios

· dmidecode --type BIOS



Here is some more command info , very frequently used :

top - I guess u know ;)
vmstat - Virtual memory stats
iostat - I/O stats
uptime - load avg
sar - system activity report
lspci - show all PCI peripherals attached to system


Welcome !!!

Monday, June 16, 2008

Finding a home on rent in Pune

Social

One can't imagine how much effort one need to take for getting a good 3-4 room residential flat on rent in city like Pune or Mumbai. Indian cities are getting denser and denser with major population moving from village to urban area.


Day 1 :

I was full of enthusiasm to get a proper broker/agent and hence proper flat in area I wished. Yesterday, I ad searched a lot on Internet to get rented flat in Pune. I found magic bricks and other sites helpful to get contact info of agent & other flat owner. While leaving office I made a long list with mobile numbers & names of brokers who can help me in last moment

I moved from Mumbai in early morning (in my case its 9.00 am). Got a travels vehicle of Konduskar (famous tours & travels in Maharashtra) with a window sit wort Rs 280/- . Person sitting next to me : Mr Satyajit was cool dude like me. He wasn't feeling well. Had fever and improper health. But was good in chit-chatting while traveling. We shared good amount of each others domain knowledge. He was working in garment industry working for brands like Zodiac & Pentloon. Shared good memories of interests, carriers, society, fashion and fun.

By the grace of rain fall and mild traffic conditions I reached Pune at 1.00 o'clock in noon. First thing I targeted was Shivaji nagar. Met the first person in the list Mr Rajesh, a typical Punekar in early 40's , blackish complexion with very strong voice and commitment.


Questions asked for searching :

Name :

1BHK or 2 BHK (bedroom, hall & Kitchen)

who's living family/bachelors :

No. family members :

Who/ What they do:

Is family vegetarian or non-veggi :

Rent budget :

When to take keys and give token money :

I felt very embarrassing when he asked me my surname & cast, here comes the bad human nature in Pune. More due to some Brahman community in Pune.

Pune has been well known for culprits who prefer to see surname (which very good indication of the somebodies cast in India). Thats what is in NAME and its not what great Shakasphere had said, “ Whats in name”, rather I would say its all revolves around your name.

Let me proceed from cyclone of religion and cast ism. Mr Gosavi shown me few flats around the area, varying from 8K to 13K. I like one of them, but still rent around was more as compare to my budget. The day went on traveling and contacting new people/ agents and finally ended with nothing decided at last moment.

At 9.00 pm, I was dropped to Kothrud by Mr Gosavi. Thanks a lot for the same. I met my friend Mangesh, Satyawan & Nilesh, who were waiting for me eagerly to have party meet. As usually we celebrate with toss of pegs of Royal Stag. I don't remember when I felt sleepy and went off. I remember I had good time chatting with Nilesh. He really explained how he searched his girl for marriage. We shared very good moments of our last few bachelor parties. I also had talk with his fiancee. I shared very core memories my & Nilesh friendship with her. She understood me very well. Lucky chap Nilya. With my best wishes. Just before sleeping, I had very serious talk with Mangesh about life and stuff like that. I can't recollect such thoughts & chats again. That was pretty volatile. Anyways enjoyed the evening after very hectic day.


Day 2 :

Again wake up early in morning at 8.30 am. Met my cousin Mr Arjun, nick named Bandu daji (big brother). He introduced me very interesting character called Mr Ashok. A typical Beed kar, very talkative, pheku (who lies many things), a aspirational MBA passout from Bharati Vidyapith (as he said, I still doubt whether he had or not) but works as a sales person for Idea Tel com. He had good contat with other brokers & friends around the place.

Day went on calling other brokers, looking few more new locations. Finally decided one near Bharati Vidyapith on Satara road.

Friends, by the end of the day I was drained out of energy. Bandu daji arranged fish in evening. I took lot of time in filtering out the thorns from fins of fish. Slept in midnight. It was Sunday night. I was suppose to be in office on Monday morning.


Day 3:

Wake up too early at 7.30 am. Got ready to go Mumbai. But plan changes as we were still not finished with perfect place to stay in Pune. I was suppose to be in office, took urgent leave for a day. Thanks my company provide such facility. I called up one more broker.

I was badly screwed with the rain and conditions. Finally I fixed a place in Upper -Sukhsagar area with help of Bandu daji..

It was overall good experience rather adventure i would say...


Worst part of it was, when the agent ask from surname,cast, veg/non-veg like things..I don't think anybody 'll like such things. Would you still say India is a non-racial, cast independent country?
Best part is, many people help you around without any money expectations.

Thank a ton to all...

Thursday, June 5, 2008

Stay Connected to the world

These days, it's all about staying connected. Sometimes you're stuck at your desk and you need to ask someone an urgent question. Sometimes you're on unfamiliar turf and you need a guide. This month, we look at an improved instant messenger and a Wi-Fi service that helps you find local businesses from your laptop or mobile. Both are as free as air.

nimbuzz
twitter
ebuddy
meebo
yahoo online chat for mobile


The Loki Toolbar allows you to do location-based search and navigation right from your browser. The Toolbar combines GPS-like location, local search and one-button access to location-based content, making the Internet revolve around you

www.loki.com

How media going more n more vulgar

Can you imagine kids watch (don't read) English newspapers to see sexy babes..
I could remember 6-7 years before, things were different. We could hardly see some really vulgar stuff in any news paper. One has to go n get something very relevant magazine or paper.

Pic from TOI : date 5 June '08 , Mumbai News Paper release, Second-last page of main print.

On daily basis I can see at least 2-3 such semi-nude pics. This is good enough to ignite small minds.

I would say : rather then just blaming TOI or some other news agency. We should think of how society
is liking.

Its not only TOI, rather we as nation should think to change the way people think

Don't you think some portion of blame also come to us. After all its your child who is gonna suffer.


Pls think why something is so?
comments Welcome !!!

Wednesday, May 28, 2008

My Mobile surfing

I Hope this 'll be of great help when you are alone at some lonely place. You can go ahead and get in touch with help of WAP portal which are helping mobile user in great extend. I feel it's more like a Internet of Mobile world, which is growing like anything.


Google http://wap.google.com/
Google http://mobile.google.com/
Gmail - http://www.nodrm.com/gmail
Google Maps http://wap.mgmaps.com/
Yahoo http://us.m.yahoo.com/?tsrc=rawfront
Yahoo - http://wap.yahoo.com
Yahoo Messenger - http://mm.yahoo.com
Rediff - http://mobile.rediff.com
Cellfun http://wap.cellufun.com/
GCalSync http://wap.gcalsync.com/
WAP community http://www.wap.com/
Mobiile Content http://wap.mobile9.com
Mobile Softwares Download wap.getjar.com
Send Email Anonymously - http://webcab.de/sm.wml#WSM
Live Cricket Scores - http://wap.ananova.com/sport
Dictionary - http://dictionary.reference.com/wml/#dict
Free Greeting cards - http://www.wapcardz.com
Hotmail - http://mobile.msn.com
MSN Messenger - http://mob.e-messenger.net
Symbian Softwares - http://wap.my-symbian.com/wap
Pocket Doctor - http://wap.pocketdoctor.co.uk
BBC UK - http://bbc.co.uk/mobile
Browser Spy - http://wap.gemal.dk
BSE India - http://wap.bseindia.com
Check Domain Name - http://wap.checkdomain.com

AOL wap.aol.com/
JIMM wap.jimm.org/
USA Today wap.usatoday.com
Swiss Info wap.swissinfo.org/
MLB wap.mlb.com/
http://www.getjar.com/software/
http://www.mobile9.com/

And list goes on increasing...

Monday, March 31, 2008

Squid on Linux FC6

Make a simple Proxy server configuration using squid...

Best control over internet access in NAT / Cafe or for home usage on multiple computers..

Here are some steps :
yum -y install squid

Open config file :
vi /etc/squid/squid.conf

Most of setting are done as default + lot of commented advance config

Your squid.conf abstractly looks like :

================================================================
http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY

acl apache rep_header Server ^Apache
broken_vary_encoding allow apache

#logging details
access_log /var/log/squid/access.log squid

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl CONNECT method CONNECT

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

acl our_networks src 10.10.10.0/24 172.16.12.0/24
http_access allow our_networks

http_access allow localhost
http_access deny all

http_reply_access allow all

icp_access allow all
coredump_dir /var/spool/squid
================================================================

We can add/remove network series by adding ==>

acl our_networks src 10.10.10.0/24 172.16.12.0/24
http_access allow our_networks


Single IP access can be manipulated acl list

Most important thing is : complete logging. (Not available in case of NAT)
We can monitor it to produce Artificial intenllegence

Now start squid ::::::::
service squid start

Set Proxy server IP & port to browser settings .. its working

Monday, March 10, 2008

Internet on FC6 linux with Airtel GPRS DKU2.0


First, you got to install wvdial if not present on your linux system.( Comes with OS on FC, Redhat and CentOS)

u can try

#yum install wvdial

I used Airtel as GPRS carriers with Nokia N72 phone on Dell D520 Laptop running with FC6 Linux

username & password is taken as service provider. Other setting same as given below

File /etc/wvdial.conf :
[root@ ~]# more /etc/wvdial.conf
[Modem0]
Modem= /dev/ttyACM0
Baud= 115200
SetVolume= 0
DialCommand= ATDT
FlowControl= Hardware(CRTSCTS)
[Dialer gprs]
Username=airtelgprs.com
Password=airtelgprs.com
Phone=*99***1#
Stupid Mode= 1
Inherits= Modem0

[root@mahendra ~]# wvdial gprs
--> WvDial: Internet dialer version 1.54.0
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Mon Mar 10 21:28:06 2008
--> pid of pppd: 12348
--> Using interface ppp0
--> pppd: s.com
--> pppd: s.com
--> pppd: s.com
--> pppd: s.com
--> local IP address 117.98.48.238
--> pppd: s.com
--> remote IP address 10.6.6.6
--> pppd: s.com
--> primary DNS address 202.56.230.5
--> pppd: s.com
--> secondary DNS address 202.56.240.5
--> pppd: s.com

:) Now you are connected,


[root@ ~]# more /etc/resolv.conf
#airtel gprs access DNS IPs
nameserver 202.56.230.5
nameserver 202.56.240.5


Now check

##ifconfig


add p-t-p IP as default gateway to system using :

route add default gw <-IP->

Dear you can browse internet from your favorite browser.

Enjoy.

Tuesday, February 19, 2008

J2ME+Polish+Netbeans+Linux Is possible ...

Dear all,

If somebody doubt "How linux can be used for proffesional J2ME development?" But , I would say "Yes, Its very much feasible"

Netbeans & Mobility Pack Instalation :

First of all get your copy of Netbeans mobility pack.

Get free CD from Netbean containing JDK, Latest Netbeans ( IDE & Mobility plugin )
http://www.netbeans.org/about/media.html
OR
download mobility pack & Netbeans IDE

wtk 2.2 download for Linux - Worked great with FC6 ;)
http://java.sun.com/products/sjwtoolkit/download-2_2.html

Latest wtk and jdk are available :
http://java.sun.com/javame/downloads/index.jsp

If you dont like to use emulator provided by wtk, we can also use microemulator(see on source forge)

J2me-Polish integration with Netbeans

Get j2me-polish latest jar , run it using
java -jar j2me-polish.jar

start a new installation procedure for j2me-polish

Follow below steps to make polish working with netbeans :

For integrating J2ME Polish with NetBeans 4.0 create a new project and copy the sample project from ${polish.home}/sample into your new project with a filemanager.
Rightclick the build.xml and choose "Run Target" > "j2mepolish" for running the example.
• Create a new project:
Go to "File" >"New Project" and select "Mobile" >"Mobile Application"
as your project type. Give the project any name and choose any folder as the
project's home. Deselect the "Create Hello MIDlet"option and select "Finish" to create the
project.
• Copy the sample project: Navigate to the "${polish.home}/sample" directory with your filemanager (e.g. Windows Explorer on Windows or Finder on Mac OS X). Select the "resources", "resources2" and "src" folders as well as the "build.xml" file and copy all into the folder of your NetBeans project. Overwrite any existing files.
• Return to NetBeans, rightclick
your new project in the "Projects" view and select "Refresh
Folders". You can now view the sample application in the "de.enough.polish.example" package.
• Right click your project again and select "Properties". Go to "Build" and select "Libraries and
Resources". Select "Add Jar/Zip" and add the "${polish.home}/import/enoughj2mepolishclient.jar" file to your project.
• Now switch to the "Files" view and right click the "build.xml" file. Select "Run Target" >
"Advanced". Write "test, j2mepolish" in the following dialog, so that the "test" target is executed first, followed by the "j2mepolish" target. J2ME Polish now executes and starts the WTK emulator



I hope , once you get above things installed , we can proceed for any kind of development of J2ME..

:)

Enjoy.

Wednesday, February 13, 2008

Reliance Huwai - Data Card on FC6 Linux


To configure Reliance data card (Huwai) on Dell D520 with FC6, hope it works in same manner on other laptops and linux too

Just follow below steps after adding data card inside slot.


After inserting data card see
# cat /proc/bus/usb/devices

.....
.....
T: Bus=02 Lev=01 Prnt=01 Port=05 Cnt=02 Dev#= 4 Spd=12 MxCh= 0
D: Ver= 1.01 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs= 1
P: Vendor=12d1 ProdID=1001 Rev= 0.00
S: Manufacturer=Huawei Technologies
S: Product=Huawei Mobile
S: SerialNumber=HUAWEI EC3X1
C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=pl2303
E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=128ms
E: Ad=8a(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=0b(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
I: If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=pl2303
E: Ad=83(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms

If you cant see, Use grep

Now modprobe the driver

Code:
# modprobe usbserial vendor=0x12d1 product=0x1001
Should get something like this with dmesg
Code:
# dmesg
[ 2315.412106] usbcore: registered new interface driver usbserial
[ 2315.412508] drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
[ 2315.461938] usbcore: registered new interface driver usbserial_generic
[ 2315.461945] drivers/usb/serial/usb-serial.c: USB Serial Driver core
[ 2315.480382] drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
[ 2315.480414] pl2303 2-6:1.0: pl2303 converter detected
[ 2315.480608] usb 2-6: pl2303 converter now attached to ttyUSB0
[ 2315.480620] pl2303 2-6:1.1: pl2303 converter detected
[ 2315.480691] usb 2-6: pl2303 converter now attached to ttyUSB1

Now edit your wvdial.conf file

Code
# vi /etc/wvdial.conf
[Modem0]
Modem = /dev/ttyUSB0
Baud = 115200
SetVolume = 0
Dial Command = ATDT
Init1 = ATZ
FlowControl = Hardware (CRTSCTS)
[Dialer cdma]
Username = You Phone Number Here
Password = Your Password ... usually same as your phone number
Phone = #777
Stupid Mode = 1
Inherits = Modem0


In my case , it looks like this


#more /etc/wvdial.conf
[Modem0]
Modem= /dev/ttyUSB0
Baud= 115200
SetVolume= 0
DialCommand= ATDT
FlowControl= Hardware(CRTSCTS)
[Dialer cdma]
Username=
Password=

Phone=#777
Stupid Mode= 1
Inherits= Modem0


One more thing, add nameserver to
/etc/resolv.conf

[root@localhost ~]# more /etc/resolv.conf
# generated by NetworkManager, do not edit!
nameserver 202.138.103.100
nameserver 202.138.97.193
nameserver 127.0.0.1




Code:
# wvdial cdma
--> WvDial: Internet dialer version 1.56
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT 230400
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sat Mar 3 22:55:20 2007
--> Pid of pppd: 24314
--> Using interface ppp0
--> local IP address 220.226.50.126
--> remote IP address 97.239.2.10
--> primary DNS address 202.138.103.100
--> secondary DNS address 202.138.96.2

Thats it ... you are now connected

U can now check ifconfig

[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:19:B9:81:69:DE
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:181361 errors:0 dropped:0 overruns:0 frame:0
TX packets:17751 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19484952 (18.5 MiB) TX bytes:1573958 (1.5 MiB)
Interrupt:17

eth1 Link encap:Ethernet HWaddr 00:1B:77:81:44:FE
inet addr:172.16.13.81 Bcast:172.16.13.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:188454 errors:0 dropped:4871 overruns:0 frame:0
TX packets:21426 errors:0 dropped:0 overruns:0 carrier:685
collisions:0 txqueuelen:1000
RX bytes:16911463 (16.1 MiB) TX bytes:2128728 (2.0 MiB)
Interrupt:17 Base address:0xe000 Memory:efdff000-efdfffff

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3124 errors:0 dropped:0 overruns:0 frame:0
TX packets:3124 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4018312 (3.8 MiB) TX bytes:4018312 (3.8 MiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:220.224.115.210 P-t-P:220.224.134.73 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:828 errors:1 dropped:0 overruns:0 frame:0
TX packets:1151 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:421748 (411.8 KiB) TX bytes:119826 (117.0 KiB)

ppp0 is ur n/w connection

Once you see above o/p of # ifconfig

Add default gateway as below
#route add default gw
220.224.134.73 netmask 0.0.0.0

Now We can see

[root@localhost ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
220.224.134.73 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
172.16.13.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 220.224.134.73 0.0.0.0 UG 0 0 0 ppp0

For more info
http://fedorahacks.com/node/7
http://www.linuxquestions.org/questions/linux-laptop-and-handheld-25/configuring-datacard-on-my-laptop-601597/
http://www.rimweb.in/forums/lofiversion/index.php/f4.html
http://www.linuxquestions.org/questions/linux-laptop-and-handheld-25/configuring-datacard-on-my-laptop-601597/

Wireless on Dell D520 with Linux-FC6

Dear FC users,

Please refer to
http://forums.fedoraforum.org/showthread.php?t=148278
follow steps to get your wireless working.

file /etc/sysconfig/network-scripts/ifcfg-eth1
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
IPV6INIT=no
ONBOOT=yes
TYPE=Wireless
DEVICE=eth1
HWADDR=00:1b:77:81:44:fe
#BOOTPROTO=none
BOOTPROTO=dhcp
ESSID=
RATE=Auto
MODE=Managed
CHANNEL=1
USERCTL=yes
PEERDNS=yes

For Wired connection, you may be having something like this at eth0
[root@localhost network-scripts]# more ifcfg-eth0
# Broadcom Corporation BCM4401-B0 100Base-TX
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:19:B9:81:69:DE
ONBOOT=yes
TYPE=Ethernet

Start NetworkManager in background, it automatically searches and get the available networks in range.
command NetworkManager

Meanwhile also monitor /var/log/message
You 'll be asked for some password/key, just put 123 or something.
I got it working on my machine.

For winamp & Other Media Plyers on FC-6

Install Media player
Xmms:
yum resolvedep xmms
yum install xmms xmms-check xmms-plugin
yum -y install xmms xmms-mp3 xmms-faad2 gstreamer-plugins-ugly libmad libid3tag

Xine :
yum -y install xine xine-lib xine-skins

Vlc Player :
yum -y install videolan-client

command xmms will play mp3 for you.



I feel above information 'll be helpful for you to configure Wireless.
Thanks.

Cheers,