Reliance/TATA Broadband data card on Linux

I am going to collect my past postings and new findings related to using Reliance/TATA Broadband card on Linux here. Here is a posting of mine from rimweb.in in Nov 2009:

“I have tested two Reliance Broadband card on offer right now for connectivity on Linux. I have tested this on Fedora 11 and it uses Linux 2.6.29 Kernel.

1. Huawei 1261 card – Works right away – once you insert it, it gets recognized as a USB device connected to one of the ports as a serial device. You can use normal RConnect package for Linux with slight modification for device name to make it work. On older version of Linux kernel, this may get recognized as a storage device and one may have to use usb_modeswitch to put it into modem mode.

2. LG LXU 800 – For this card, I had to insert usbserial module with vendor and device number as follows to get it to work.

login as root and run

#modprobe -r usbserial
#modprobe usbserial vendor=0xeab product=0x9357

Now insert the device and look at the /var/log/messages file or use “dmesg” command to see, if it gets attached to a serial device.”

yesterday I again had to try using a new Broadband Data Card from Reliance. It is from ZTE (Probably ZTE 2726). If you insert this in USB drive, you get the following message from Kernel on FC11 running Kernel 2.6.32:
=====
Aug 27 17:05:00 ranjan kernel: usb 2-2: new full speed USB device using uhci_hcd and address 4
Aug 27 17:05:01 ranjan kernel: usb 2-2: New USB device found, idVendor=19d2, idProduct=fff5
Aug 27 17:05:01 ranjan kernel: usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 27 17:05:01 ranjan kernel: usb 2-2: Product: USB Storage
Aug 27 17:05:01 ranjan kernel: usb 2-2: Manufacturer: ZTE, Incorporated
Aug 27 17:05:01 ranjan kernel: usb 2-2: SerialNumber: 000000000002
Aug 27 17:05:01 ranjan kernel: usb 2-2: configuration #1 chosen from 1 choice
Aug 27 17:05:01 ranjan kernel: scsi13 : SCSI emulation for USB Mass Storage devices
Aug 27 17:05:06 ranjan kernel: scsi 13:0:0:0: CD-ROM ZTE USB Storage FFF1 2.31 PQ: 0 ANSI: 2
Aug 27 17:05:06 ranjan kernel: sr1: scsi-1 drive
Aug 27 17:05:06 ranjan kernel: sr 13:0:0:0: Attached scsi generic sg2 type 5
Aug 27 17:05:07 ranjan kernel: sr1: CDROM (ioctl) error, command: Xpwrite, Read disk info 51 00 00 00 00 00 00 00 02 00
Aug 27 17:05:07 ranjan kernel: sr: Sense Key : Hardware Error [current]
=====

The way to get this to work is to use usb_modeswitch available at

http://www.draisberghof.de/usb_modeswitch/

usb_modeswitch is not much easier to use and comes with support for large number of USB data modem having mass storage built in. Unlike earlier version of this, here you just need to install software package and its data package and it works all by itself:

Download

(1) http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-1.1.4.tar.bz2 (or its newerversion, if available)
(2) http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-20100826.tar.bz2 (or newer version)

Install these after extracting by using “make install” command. You have to make sure that you have ‘tcl’ package installed. You have to also make sure, you have libusb-devel package or its equivalent installed for successful installation. Once you install, your device would get detected as a DATA Modem and you can use it to connect to Internet.

Growing Wheat Grass and Juicing

(Please read updated version first at https://ranjan.in?p=74 )

Recently I came across benefits of drinking wheat grass juice and I was amazed with what nature has in store. I searched extensively (as usual!) on net and went through lot of material to understand the complication of growing it. In USA lot of support from commercial entity is available to support those, who want to grow it. There are kits available and supplies along with various tools are available to make it easy. I thought I would still write out my experiences in trying to grow and giving other people a hope that one can do it without much problem in India as well. I am very lazy person and If I can do it, so can you!

Some one may ask why wheat grass is so special. It turns out that it is not so very different from many other grasses. For example, maize or barley grass are also quite good and so are many others. However among them what grass juice is more beneficial. I would not want to go into those details since there is plenty of material available on net.

Let me try to put rest of the information in form of FAQ!

  1. How much time it takes to grow what grass for juicing? – It takes about 6-7 days to grow to about 6 inches, when it should be harvested for juicing. This depends on climatic conditions and so on.
  2. How to organize this so that I can get juice every day? – What is important is to have this juice fresh. Ideally it should be consumed within 20 minutes of juicing.  So what is best is to have seven containers in which to grow this. It should be sowed every day in a different one so that after six to seven days, you start to get fresh grass every day. Once you harvest from one container, you can reuse that and continue doing that. It is also possible to reuse the same plant once or twice more.
  3. What should be the size of container? – For one person the round pot here seems sufficient, whereas the larger rectangular one is sufficient for three persons(see my comments in the next Blog on this).
    Pots for one person
  4. What should be depth of soil in the pot? – One to two inch depth is enough. So one could have more shallow pot. My larger rectangular pots are better that way.
  5. What soil to add ? – One can add good gardening soil. First time I went to local nursery and asked them to fill it in the pots and had some extra too. While buying the larger pots, I got it filled with the persons selling the pot itself. Soil should not be soggy and should not stick together. One can spread it to dry faster before using it. One should add compost fertilizer before sowing. It has been suggested to not use any chemical fertilizers or pesticides etc.(See my comments in next Blog about this)
  6. Which wheat to use? – I bought it from local grocery shop. They did not have any choice so used whatever they had. If there is choice, one can use bigger grains.
  7. What quantity of seeds should be used? – I use two and half table spoons full of wheat for smaller pot and six table spoon for larger one.But you can adjust as per your experience, this is just initial guess.
  8. What preparation to do before sowing? – Wash and soak wheat for about 12 hours or overnight. Then tie it in thick damp cloth for another 8-10 hours. In Indian warm weather, you should see wheat sprouting by this time. Once is has sprouted a little, it is ready to be sowed.
  9. How to sow? – Spread the wheat in single layer touching each other so that it is as dense as possible without overlapping. Spread a very thin layer of soil on the top of this. Now spray very small amount of water to just make tit damp. More water can be bad here. Cover the pot with damp newspaper sheets so that damp environment is maintained inside. If it  is too hot cover with a plastic sheet or some other thing to keep the seeds in damp environment. Respray twice a day or so to keep it damp. Once you see little sprouts coming out, you can start to expose it to fresh air. Direct strong sunlight for long time may not be good for plants in early stage.
  10. When it is ready to be harvested ? – Keep spraying water every morning and evening and plants should keep growing. Once it has reached a height of 6 inch or so, it is ready to be harvested.
  11. How to harvest? – I use a pair of scissors with long enough blade to cut the wheat grass as close to soil as possible. I bought a sturdy Tailors all metal scissors for this as cheap ones with plastic handle do not last long.
  12. How to Juice? – Wash the grass properly and juice it in spice grinder by adding little water. It would become like a paste in this and now one can strain it through a thin cloth to get juice out of the pulp. It is suggested to use a low RPM machine to do this to keep temperature low during this. Higher temperature destroys  some beneficial enzymes.  One could use other means of extracting juice as well. I could not find a low RPM machine in India, but they are available abroad though expensive. I am using normal spice grinder for the time being. However I have ordered a hand juicer from eBay (India) for something that looks like this(one below that is on Amazon.com) :
  13. How to drink? – It is best taken in morning on empty stomach. It is suggested to not gulp it down at once but consume it slowly as if you are eating it.
  14. What to do after harvesting? – One can reuse the plant couple of times more after which it starts to get little harder. I am still experimenting with this.
  15. Can I freeze grass? – One can keep it upto 2-3 days in freeze but Juice should be consumed within 20-30 minutes of making it.

There is lot of material on the web and you can go through it. I am a learner and not an expert! See my comments in next Blog on this.

Joomla Media Manager image upload fail

One of my websites, which uses Joomla as CMS got hacked as I had not paid attention to securing the site properly. After this I did go through the site carefully trying to remove any possible loopholes.

Recently I realized that Uploading images through Media Manager or any other means were failing to upload. I tried various things but nothing was helping. I am listing some of them here:

1. Checking the Directory permissions. Even tried changing the unsafe mode of 777 to all the relevant directory. Did not help.

2. Tried disabling Flash based uploader – did not  help.

What it did was to give an error message of following kind:

JFile::read: Unable to open file: ”
Warning: Failed to move file!
Error. Unable to upload file.

3. I followed up on this and eventually found that If I do not use the “open_basedir” feature in php.ini to make it more secure by commenting it out in php,ini file, it works fine.

;open_basedir = /home/www

4. As of now, I do not understand why this happened and would like to understand if I can still use this feature to keep site safer.