My teleco has provided Internet facility in which you can put data SIM card in a USB dongle and use Internet. Its call Ncell Connect . In neighboring country like India, some of them are called Reliance Netconnect+ . In such data SIM card you can only use SMS and Internet. You can't make phone calls. So to recharge or to know about the balance or data balance you have to send SMS. For Windows the software to do all of these comes bundled with the USB dongle. For Linux we'll find our own way. Let us use awesome program called gammu . For Ubuntu, click here to install. After pluging in the USB dongle open terminal and type: dmesg | grep tty This will tell you where your USB dongle is connected. For example mine is ttyUSB0 . Make note of this. Now run gammu-config to configure gammu. You only have to change one thing here. In Port the value should be /dev/ttyUSB0 where ttyUSB0 is what you noted above. Press OK and now we are ready to run gammu.
Showing posts from February, 2012
- Other Apps
Using following simple bash command we can generate words with random characters. tr -dc a-z < /dev/urandom | head -c 10 | xargs This will generate a word with 10 random characters (letter). The random characters will be from a-z. To add other characters as seed, for eg: A-Z, run tr -dc a-zA-Z < /dev/urandom | head -c 10 | xargs As you might have figured out, you can add characters as parameters to tr command. And hence, tr -dc a-zA-Z0-9 < /dev/urandom | head -c 10 | xargs will generate words that will include digits as well. Similarly we can include underscore or other symbols as tr -dc a-zA-Z0-9_- < /dev/urandom | head -c 10 | xargs To generate different number of characters we can change the parameter to head command. In all of the above examples value 10 was given and hence 10 characters word. tr -dc a-zA-Z0-9_- < /dev/urandom | head -c 5 | xargs will generate 5 random characters word. We can even put this command in a script file and give