It seems fitting that my first post for project 52 (albeit a bit late) involves connecting to the internets. 'Cause that is generally the first step on all most of the stuff I do on the computer.
I have a HSD Reliance ZTE datacard/modem which I had been unable to run on Linux till tonight. The interesting bit is, I have had this card for around 7 months now -- and it was forcing me to use Windows Vista (the horror, the agony, the pain!).
As a log (in case my computer gets formatted sometime in the future -- a likely, but not hoped for occurrence -- ) as well as a possible guide to others, here are the steps I followed.
Note: I'm using Ubuntu 9.10 with a Reliance NetConnect ZTE AC8710 modem.
- Connect to the net using some other, temporary connection
- Get usb-modeswitch. Those with access to a repository can simply do
sudo apt-get install usb-modeswitch
Others can get the latest version from http://www.draisberghof.de/usb_modeswitch/ .
- You will also need (do an apt-get as required)
lsusb, libusb-dev, wvdial, modprobe
- Get usb-modeswitch. Those with access to a repository can simply do
- Connect your modem and run
lsusb
You should see one of the usb ports having your modem -- it will probably be classified as ONDA and have a vendor/product id specified. Along the lines of
192d:fff6
The fff6 indicates that it has been detected as a flash drive/cd rom and not as a modem.
- Also do a
dmesg | tail
And observe where the modem has gone -- usbtty0 / 1 / 2/ 3 etc.
- Edit the usb-modeswitch configuration to make your computer recognize it as a modem
sudo vim /etc/usb_modeswitch.conf
Navigate till you find the settings for your vendor id/product id.
######################################################## 568 # ZTE AC8710 569 # 570 # Two ID variants known; check your default 571 # 572 # Contributor: Michael Khurtsiya 573 574 ;DefaultVendor= 0x19d2 575 ;DefaultProduct= 0xfff5 576 577 ;TargetVendor= 0x19d2 578 ;TargetProduct= 0xffff 579 <strong> 580 # No. 2 581 582 ;DefaultVendor= 0x19d2 583 ;DefaultProduct= 0xfff6 584 585 ;TargetVendor= 0x19d2 586 ;TargetProduct= 0xfff1 587 588 # only for reference 589 # MessageEndpoint=0x05</strong> 590 <strong> 591 ;MessageContent="5553424312345678c00000008000069f030000000000000000000000000000"</strong>
And remove the ';' before the required lines. Save and exit.
Run it.sudo usb_modeswitch
- Check whether it's worked -- do another
lsusb
and see that the product id has changed to fff1 (or whatever your target product was).
- Now we need to do a modprobe
modprobe usbserial vendor=0x19d2 product=0xfff1
Replace vendor and prodcut as you require.
- Once that's done, you need to make your wvdial.conf file. To edit the file:
sudo vim /etc/wvdial.conf
Copy paste the following in it.
[Dialer Defaults] Username = <enter your 10 digit modem number here> Password = <enter your 10 digit modem number here> Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Modem Type = Analog Modem Phone = #777 ISDN = 0 SetVolume = 0 FlowControl = Hardware (CRTSCTS) Modem = /dev/ttyUSB0 <modify based on the results of your dmesg> Dial Command = ATDT Baud = 460800 Stupid Mode = 1
- Once that's done, you should be good to go. Simply run
sudo wvdial
And you should be connected. Hopefully this helps someone and prevents them from wasting as much time as I did.
Sources:
Reliance ZTE/ONDA on Linux
- Feeling an extreme case of 'div'-itis while coding up this design. #
- So my mvc framework continues to develop. I should have done this a year ago! #
- Ideally speaking, whenever I need to create a form I should just be able to specify it's structure & validation -- & get reqd php, js & html #
- Making fractals from GIMP; 's fun and adds a nice design element to the site. http://bit.ly/26MhNo #
- Happy New Year! #
- Can finally play the godfather theme on my acoustic! #
- •*¨*•♫♪ HAPPY♪♫•*¨•.¸¸.•**•♫♪ NEW♪♫•*¨•.¸¸.•*¨• YEAR♪♫•*¨*•.♪♫•*¨* #
- Just joined project 52 #p52 . It's going to be tough -- but let's see if I pull through (with a blog re-design somewhere in between). #
Powered by Twitter Tools
- RT@timoreilly Enron, the Iraq War, the financial meltdown, and Tiger Woods in one compelling narrative: http://bit.ly/7Bax2L #fb #
- Firefox 3.5 Now World’s Most Popular Browser http://bit.ly/7mefDk from @gigaom #
- Firefox 3.5 Now World’s Most Popular Browser http://bit.ly/7mefDk from @gigaom #fb #
- Fleshing out my personal MVC framework (with hooks). Let's see how it turns out and how long I use it (atleast 1 site). Good learning exp. #
- Feeling really really sleepy today for some reason. Why? #
- Waiting for the day PHP 5.3 becomes common and I can use closures comfortably. #
- And my search for the perfect gVIM colour scheme goes on. #
- Enjoying myself listening to Advaita early in the morning! #
Powered by Twitter Tools
I get bored very easily.
It may be because I have nothing to do; or I've lost interest in what I was doing for some reason -- it being too repetitive, etc.; I have too little to do; what I'm working on doesn't seem to have any apparent purpose; or even if only some senses are occupied and others left alone.
I try to get over this foible of mine by listening to music -- hence the headphones hanging around my neck or on my ear, 24 by 7 by 4 by 12 by ~20. At least, by keeping my ears occupied I can relax, and possibly not get bored. This has also resulted in my having a 70GB music + video collection on my iPod.
But I digress.
I have come to realize that if I did not get bored so easily -- I would have achieved less than half of what I have today. There would be no reason for me to tread on the fine line of just enough work to do; I could have relaxed a bit more -- and perhaps enjoyed a bit less.
On the other hand, I have abandoned certain projects because I found out that they were no-where near as challenging as I'd imagined and hoped for, and were rather achievable -- and no longer interesting; because I no longer believed that the work I was doing served any purpose.
What pushes me -- and also stops me from working -- is my characteristic of getting bored so quickly. Paradoxically, it makes me give up and move ahead at the same time.
And ever since I've had more to do -- or more that I want to do -- I lose my patience with other things even more quickly. I can no longer comfortably watch a film in a cinema hall -- my hands are unoccupied, and depending on the film -- perhaps even my brain.
Doing only one thing at a time is possible only if it is interesting enough to merit my full concentration. Hence the rabid multi-tasking -- reading a book with lunch while listening to music or maybe watching television. Coding while watching a film or having a conversation. Social Networking while reading a comic. etc. etc.
What about you?
Boredom. My worst nemesis. My best ally.
So I haven't been blogging lately -- to be honest; I had hoped to let this blog die a natural death and so on and move to different (PHP5 supporting) hosting but I was inspired a bit back and am taking baby steps on this blog.
The plans to move this blog are still underway, just a bit blocked by certain other stuff I'm doing right now. How many of these posts survive the transition is a point I have not yet decided. A few certainly; all -- definitely lot.
Back to the point -- from The Ground Beneath Her Feet / Salman Rushdie
These things are bad for you: sex, high-rise buildings, chocolate, lack of exercise, dictatorship, racism! No, au contraire! Celibacy damages the brain, high rise buildings bring us closer to God, tests show that a bar of chocolate a day significantly improves children's academic performance, exercise kills, tyranny is just a part of our culture so I'll thank you to keep your culture-imperialist ideas of my fucking fiefdom, and as for racism, let's not get all preachy about this, it's better out in the open than under some grubby carpet. That extremist is a moderate! That universal right is culturally specific! this circumcised woman is culturally happy! That Aboriginal whistlecockery is culturally barbaric! This image has been faked! Free the press! Ban nosy journalists! The novel is dead! Honor is dead! God is dead! Aargh, they're all alive, and they're coming after us! That star is rising! No, she's falling! We dined at nine! We dined at eight! You were on time! No, you were late! East is West! Up is Down! Yes is No! In is Out! Lies are Truth! Hate is Love! Two and two makes five! And everything is for the best, in this best of all possible worlds.
Another passage, after a long long time
- http://scobleizer.com/2009/12/10/world-brand-building-mistakes-frances-entrepreneurs-make/ Interesting Read #fb #
- I took it and so should you—The Survey For People Who Make Websites, 2009: http://aneventapart.com/survey2009 #
- Switched to firefox 3.6b5. And stopped using chrome. Using with the excellent strata40 themes and associated addons. #
Powered by Twitter Tools
- Finally back in control. #
- I can't believe I hadn't used Windows Task Scheduler for setting a morning alarm till now! #
Powered by Twitter Tools
- Did my first bit of work for foodies.
#red # - Enjoying the widescreen experience! #
- Finally sorting out all my files -- code, music, ebooks, etc. etc. After more than a year! #
- And sorted! Whew; 2 hours of effort. Moved backup from one laptop to the other laptop and then finally to the last one. #
- Designing wireframes for sites I'll be working on. How many will survive first impact? (When I start coding) #fb #
- Upgrading my knowledge in illustrator. Any special tips & suggestions, anyone? #fb #
- I never thought I would say this _ever_, but I <heart> windows 7. The user experience is fantastic! #windows #fb #
Powered by Twitter Tools
- Had one look at the new orkut interface and vomited. Almost. Does google intentionally want people to stop using it? #epicfail #
- A bit too exhausted. #
- An interesting look at Carbon emissions. http://www.sciencedaily.com/releases/2009/11/091123083704.htm #fb #
Powered by Twitter Tools
- Enjoying the rain and great weather tonite. Just wishing i could go and get some coffee without getting drenched. #fb #
- Finally received the retweet beta
. Also, do try google image swirl. #
Powered by Twitter Tools


Recent Comments