<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3504031549738676713</id><updated>2011-07-30T12:51:37.211-07:00</updated><category term='Connect BSNL&apos;s CDMA WLL clarity phone in ubuntu jaunty 9.04'/><title type='text'>Ubuntu Tips</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ubuntu9-04tips.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3504031549738676713/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ubuntu9-04tips.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>kuriakose</name><uri>http://www.blogger.com/profile/08550313279666243689</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3504031549738676713.post-1987555282076869545</id><published>2010-01-05T03:29:00.000-08:00</published><updated>2010-01-05T03:31:49.072-08:00</updated><title type='text'></title><content type='html'>&lt;HTML&gt;&lt;br /&gt;    &lt;HEAD&gt;&lt;br /&gt;        &lt;TITLE&gt;JSP page Counter&lt;/TITLE&gt;&lt;br /&gt;    &lt;/HEAD&gt;&lt;br /&gt;&lt;br /&gt;    &lt;BODY&gt;&lt;br /&gt;        &lt;H1&gt;JSP page Counter&lt;/H1&gt;&lt;br /&gt;        &lt;%&lt;br /&gt;    &lt;br /&gt;&lt;br /&gt;        Integer applicationCount = (Integer)application.getAttribute("applicationCount");&lt;br /&gt;        if (applicationCount == null) {&lt;br /&gt;            applicationCount = new Integer(1);&lt;br /&gt;        } else {&lt;br /&gt;            applicationCount= new Integer(applicationCount.intValue() + 1);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        application.setAttribute("applicationCount", applicationCount);&lt;br /&gt;        %&gt;&lt;br /&gt;&lt;br /&gt;        &lt;br /&gt;        &lt;BR&gt;&lt;br /&gt;        Visitors to this page so far &lt;%=applicationCount%&gt; (visitor).&lt;br /&gt;    &lt;/BODY&gt;&lt;br /&gt;&lt;/HTML&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3504031549738676713-1987555282076869545?l=ubuntu9-04tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ubuntu9-04tips.blogspot.com/feeds/1987555282076869545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ubuntu9-04tips.blogspot.com/2010/01/jsp-page-counter-jsp-page-counter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3504031549738676713/posts/default/1987555282076869545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3504031549738676713/posts/default/1987555282076869545'/><link rel='alternate' type='text/html' href='http://ubuntu9-04tips.blogspot.com/2010/01/jsp-page-counter-jsp-page-counter.html' title=''/><author><name>kuriakose</name><uri>http://www.blogger.com/profile/08550313279666243689</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3504031549738676713.post-8583595796883305293</id><published>2009-07-11T01:48:00.000-07:00</published><updated>2010-01-05T03:29:07.538-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Connect BSNL&apos;s CDMA WLL clarity phone in ubuntu jaunty 9.04'/><title type='text'>Connect BSNL's CDMA WLL clarity phone in ubuntu (jaunty)9.04;</title><content type='html'>Here i will give u the complete steps to connect BSNL's CDMA wll clarity phone in ubuntu (jaunty)9.04;&lt;br /&gt;for connecting a usb modem in linux, we require:&lt;br /&gt;1.usb serial diver&lt;br /&gt;2.wvdial package&lt;br /&gt;STEP1:&lt;br /&gt;In ubuntu9.04, the usbserial driver is not a module(so,you cannot use the 'modprobe usbserial vendor=... product=...' command any more) the driver is built into the kernel.so,we have to pass the venor id and product id at the kernel command line.&lt;br /&gt;(This step is required only if your kernel version is 2.6.28-11-generic.If it is 2.6.28-13-generic or later, this step can be skipped.To know which version is your's, in the terminal, type; uname -r )&lt;br /&gt;The Kernel command line is the command that the grub boot manager uses to load the kernel.&lt;br /&gt;The kernel command is set in the grub configuration in the file /boot/grub/menu.lst . At the bottom of the file you will find the default startup entry created by ubuntu (taken from my menu.lst):&lt;br /&gt;title Ubuntu 9.04, kernel 2.6.28-11-generic&lt;br /&gt;uuid 4ad20c2a-ceda-45bf-b72f-8d6ec59266a7&lt;br /&gt;kernel /vmlinuz-2.6.28-11-generic root=UUID=b52debfa-eb68-4db5-b3a0-e484d74697d8 ro quiet splash&lt;br /&gt;initrd /initrd.img-2.6.28-11-generic&lt;br /&gt;quiet&lt;br /&gt;the part that interests us is the line that starts with 'kernel'. To use the usbserial driver you have to add your parameters to this line so start editing the file by opening it in a texteditor with admin-rights by typing in a terminal:&lt;br /&gt;for gnome: 'gksu gedit /boot/grub/menu.lst'&lt;br /&gt;or(kde: 'kdesudo kate /boot/grub/menu.lst' , others: 'sudo nano -w /boot/grub/menu.lst')&lt;br /&gt;Now go to the end of the File and Copy&amp;amp;Paste the block above so that you have the same boot config twice, like this you always have the original boot config if your configuration refuses to work (make sure not to change anything in the original configuration or you might get an unbootable system!):&lt;br /&gt;eg:&lt;br /&gt;title Ubuntu 9.04, kernel 2.6.28-11-generic&lt;br /&gt;uuid 4ad20c2a-ceda-45bf-b72f-8d6ec59266a7&lt;br /&gt;kernel /vmlinuz-2.6.28-11-generic root=UUID=b52debfa-eb68-4db5-b3a0-e484d74697d8 ro quiet splash&lt;br /&gt;initrd /initrd.img-2.6.28-11-generic&lt;br /&gt;quiet&lt;br /&gt;title Ubuntu 9.04, kernel 2.6.28-11-generic&lt;br /&gt;uuid 4ad20c2a-ceda-45bf-b72f-8d6ec59266a7&lt;br /&gt;kernel /vmlinuz-2.6.28-11-generic root=UUID=b52debfa-eb68-4db5-b3a0-e484d74697d8 ro quiet splash&lt;br /&gt;initrd /initrd.img-2.6.28-11-generic&lt;br /&gt;quiet&lt;br /&gt;title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)&lt;br /&gt;uuid 4ad20c2a-ceda-45bf-b72f-8d6ec59266a7&lt;br /&gt;kernel /vmlinuz-2.6.28-11-generic root=UUID=b52debfa-eb68-4db5-b3a0-e484d74697d8 ro single&lt;br /&gt;initrd /initrd.img-2.6.28-11-generic&lt;br /&gt;quiet&lt;br /&gt;title Ubuntu 9.04, memtest86+&lt;br /&gt;uuid 4ad20c2a-ceda-45bf-b72f-8d6ec59266a7&lt;br /&gt;kernel /memtest86+.bin&lt;br /&gt;quiet&lt;br /&gt;### END DEBIAN AUTOMAGIC KERNELS LIST&lt;br /&gt;title Other operating systems:&lt;br /&gt;root&lt;br /&gt;title Microsoft Windows XP Professional&lt;br /&gt;rootnoverify (hd0,0)&lt;br /&gt;savedefault&lt;br /&gt;makeactive&lt;br /&gt;chainloader +1&lt;br /&gt;Now take the first entry and first edit the title so that you can identify which config is yours (you can put anything you want there, I'll simply append custom)&lt;br /&gt;Now add your parameters in the form module.option=value :&lt;br /&gt;title Ubuntu 9.04, kernel 2.6.28-11-generic custom&lt;br /&gt;uuid 4ad20c2a-ceda-45bf-b72f-8d6ec59266a7&lt;br /&gt;kernel /vmlinuz-2.6.28-11-generic root=UUID=b52debfa-eb68-4db5-b3a0-e484d74697d8 ro quiet splash usbserial.vendor=0x15eb usbserial.product=0x0001&lt;br /&gt;initrd /initrd.img-2.6.28-11-generic&lt;br /&gt;quiet&lt;br /&gt;Now double check that the settings are in the kernel line and didn't get broken up into a new line and save the file. Now you will have to reboot and select your new configuration on the next boot. (If you put your configuration above the others it should be the new default.)&lt;br /&gt;&lt;br /&gt;STEP2:&lt;br /&gt;You have to download the wvdial package from another computer having an internet connection from&lt;br /&gt;http://packages.ubuntu.com/jaunty/i386/libxplc0.3.13/download&lt;br /&gt;http://packages.ubuntu.com/jaunty/i386/libwvstreams4.4-base/download&lt;br /&gt;http://packages.ubuntu.com/jaunty/i386/libwvstreams4.4-extras/download&lt;br /&gt;http://packages.ubuntu.com/jaunty/i386/libuniconf4.4/download&lt;br /&gt;http://packages.ubuntu.com/jaunty/i386/wvdial/download&lt;br /&gt;Copy and extract .deb files to a USB stick, paste them to the ubuntu 9.04 running pc into /var/cache/apt/archives/ directory using sudo nautilus from terminal(not necessory). Double click each .deb icon to install it.&lt;br /&gt;YOU HAVE TO INSTALL THEM IN ABOVE ORDER!&lt;br /&gt;STEP3:&lt;br /&gt;Type lsusb in the terminal it will display the devices that are connected in the usb ports&lt;br /&gt;Look for your phone device there&lt;br /&gt;it displays like below ...&lt;br /&gt;&lt;br /&gt;[root@localhost ~]# lsusb&lt;br /&gt;Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;br /&gt;Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br /&gt;Bus 002 Device 002: ID 15eb:0001&lt;br /&gt;Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br /&gt;[root@localhost ~]#&lt;br /&gt;&lt;br /&gt;HERE 15eb is the vendor id and 0001 is the product id&lt;br /&gt;Now create the rules file named as /etc/udev/rules.d/50-cdma.rules&lt;br /&gt;procedure for creating a file&lt;br /&gt;&lt;br /&gt;In the terminal type sudo vi /etc/udev/rules.d/50-cdma.rules. press Esc+i for typing the rules in to it&lt;br /&gt;&lt;br /&gt;SUBSYSTEM=="usb",SYSFS{idProduct}=="0001",SYSFS{idVendor}=="15eb",RUN+="/sbin/modprobe usbserial vendor=0x15eb product=0x0001"&lt;br /&gt;SUBSYSTEM=="usb",SYSFS{idProduct}=="0001",SYSFS{idVendor}=="15eb",RUN+="/sbin/modprobe ppp_generic"&lt;br /&gt;&lt;br /&gt;Now press ESC key and type :wq! and then press enter to save and quit&lt;br /&gt;reboot the system and give the command sudo wvdialconf now the modem gets detected and gives some thing like this&lt;br /&gt;root@localhost ~]# wvdialconf&lt;br /&gt;Editing `/etc/wvdial.conf'.&lt;br /&gt;&lt;br /&gt;Scanning your serial ports for a modem.&lt;br /&gt;&lt;br /&gt;Modem Port Scan&lt;*1&gt;: S0 S1 S2 S3&lt;br /&gt;WvModem&lt;*1&gt;: Cannot get information for serial port.&lt;br /&gt;ttyUSB0&lt;*1&gt;: ATQ0 V1 E1 -- OK&lt;br /&gt;ttyUSB0&lt;*1&gt;: ATQ0 V1 E1 Z -- OK&lt;br /&gt;ttyUSB0&lt;*1&gt;: ATQ0 V1 E1 S0=0 -- OK&lt;br /&gt;ttyUSB0&lt;*1&gt;: ATQ0 V1 E1 S0=0 &amp;amp;C1 -- OK&lt;br /&gt;ttyUSB0&lt;*1&gt;: ATQ0 V1 E1 S0=0 &amp;amp;C1 &amp;amp;D2 -- OK&lt;br /&gt;ttyUSB0&lt;*1&gt;: ATQ0 V1 E1 S0=0 &amp;amp;C1 &amp;amp;D2 +FCLASS=0 -- OK&lt;br /&gt;ttyUSB0&lt;*1&gt;: Modem Identifier: ATI -- ERROR&lt;br /&gt;ttyUSB0&lt;*1&gt;: Speed 9600: AT -- OK&lt;br /&gt;ttyUSB0&lt;*1&gt;: Max speed is 9600; that should be safe.&lt;br /&gt;ttyUSB0&lt;*1&gt;: ATQ0 V1 E1 S0=0 &amp;amp;C1 &amp;amp;D2 +FCLASS=0 -- OK&lt;br /&gt;WvModem&lt;*1&gt;: Cannot get information for serial port.&lt;br /&gt;ttyUSB1&lt;*1&gt;: ATQ0 V1 E1 -- �ܺ�[10]&lt;br /&gt;ttyUSB1&lt;*1&gt;: failed with 2400 baud, next try: 9600 baud&lt;br /&gt;ttyUSB1&lt;*1&gt;: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud&lt;br /&gt;ttyUSB1&lt;*1&gt;: ATQ0 V1 E1 -- and failed too at 115200, giving up.&lt;br /&gt;&lt;br /&gt;Found a modem on /dev/ttyUSB0.&lt;br /&gt;Modem configuration written to /etc/wvdial.conf.&lt;br /&gt;ttyUSB0: Speed 9600; init "ATQ0 V1 E1 S0=0 &amp;amp;C1 &amp;amp;D2 +FCLASS=0"&lt;br /&gt;[root@localhost ~]#&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;STEP4:&lt;br /&gt;Open the file wvdial.conf by giving the command as follows for editing and configuring the connection&lt;br /&gt;sudo vi /etc/wvdial.conf&lt;br /&gt;and press Esc and then i for typing&lt;br /&gt;add the following script in to that file&lt;br /&gt;[Dialer Defaults]&lt;br /&gt;Init1 = ATZ&lt;br /&gt;Init2 = ATQ0 V1 E1 S0=0 &amp;amp;C1 &amp;amp;D2 +FCLASS=0&lt;br /&gt;Init3 = at+crm=1;+cmux=1;+cps=33;+cta=0&lt;br /&gt;Modem Type = Analog Modem&lt;br /&gt;Baud = 460800&lt;br /&gt;Stupid Mode = 1&lt;br /&gt;Modem = /dev/ttyUSB0&lt;br /&gt;ISDN = 0&lt;br /&gt;Phone = #777&lt;br /&gt;Password = &lt;your&gt;&lt;br /&gt;Username = &lt;your&gt;&lt;br /&gt;Auto DNS&lt;br /&gt;Check Def Route&lt;br /&gt;now press ESC key and type :wq! and then press enter to save and quit&lt;br /&gt;&lt;br /&gt;In the terminal issue the command as sudo wvdial&lt;br /&gt;now you will be able to get connected to the internet ...&lt;br /&gt;To get disconnected from the internet press Ctrl + C&lt;br /&gt;STEP 5:&lt;br /&gt;To connect to the internet ;&lt;br /&gt;method 1:use the command sudo wvdial&lt;br /&gt;method 2:Use the gnome ppp dialer;&lt;br /&gt;gnome-ppp is a graphical frontend to wvdial.To install it,connect to internet using wvdial command and then type the command $ sudo apt-get install gnome-ppp. You will find it in the Applications menu ( Menu =&gt; Internet =&gt; Gnome-PPP ) and the configuration is probably straightforward.&lt;br /&gt;Configuration&lt;br /&gt;In the Gnome-ppp window, fill login, password and telephone number of the Internet Service Provider(eg:#777).&lt;br /&gt;Click “setup”&lt;br /&gt;in the modem tab;&lt;br /&gt;device: type “ /dev/ttyUSB0”. press “Detect” button&lt;br /&gt;Type: Analog modem&lt;br /&gt;phone line: tone&lt;br /&gt;press “init strings”&lt;br /&gt;Init2 = ATQ0 V1 E1 S0=0 &amp;amp;C1 &amp;amp;D2 +FCLASS=0&lt;br /&gt;Init3 = at+crm=1;+cmux=1;+cps=33;+cta=0&lt;br /&gt;If you get an "immediate" disconnection: in "Parameters" / "Options", unmark "check carrier line"&lt;br /&gt;To connect, you must be in the gnome-ppp window. Click in "Connect".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3504031549738676713-8583595796883305293?l=ubuntu9-04tips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ubuntu9-04tips.blogspot.com/feeds/8583595796883305293/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ubuntu9-04tips.blogspot.com/2009/07/connect-bsnls-cdma-wll-clarity-phone-in.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3504031549738676713/posts/default/8583595796883305293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3504031549738676713/posts/default/8583595796883305293'/><link rel='alternate' type='text/html' href='http://ubuntu9-04tips.blogspot.com/2009/07/connect-bsnls-cdma-wll-clarity-phone-in.html' title='Connect BSNL&apos;s CDMA WLL clarity phone in ubuntu (jaunty)9.04;'/><author><name>kuriakose</name><uri>http://www.blogger.com/profile/08550313279666243689</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry></feed>
