Now a days almost all laptops come with Wireless/WiFi adaptors which can connect to WiFi networks to access internet. But the truth is that, in addition to connecting to a wireless network, your WiFi adaptor can also function as a wireless router for transmitting a wireless network. So if you have an internet connection through a cable, DSL or dial-up modem, you can create your own wireless network and share the internet connection with other devices like smart phones and PDAs.
Following is a step by step process to create a wireless network from your laptop (Windows Vista)
1. Go to Control Panel > Network and Sharing Center > Setup a connection or network. Then select “Setup a wireless ad hoc (Computer to Computer) network and click next.
2. Click next again on this screen
3. In the next screen enter the network name such as “My Personal Net”. If you do not want your network to be password protected, select security type as “No Authentication (Open)”. If you want password protected network, then select a security type (WPA2 is the preferred one) and enter a password and click next.
4. Now windows will create the network and will say that the network is ready to use
5. Now open the wireless network section of your smart phone and you can see the wireless network we have created just now. You will be able to connect to this network but no Internet Connection yet.
6. Now to share your cable, DSL or Dial Up connection through this wireless network, go to Control Panel > Network and Sharing Center > Manage Network Connections. Select the network connection you want to share and right click and go to Properties
7. On the properties go to Sharing tab and select the checkbox to “Allow other users to connect through this computers internet connection”. Select “wireless network connection” from the home network connection dropdown box. Now click on and you are done!!
]]>We had to spent a lot of time to research before we found the reason. The issue happened because of the attribute “poolPreparedStatements=true” in Tomcat data source (context.xml). In our code, we were using setBytes() method on PreparedStatement which in combination with the above attribute created this wonderful exception!!
According to Apache DBCP Config Specs , pooling prepared statements can leave the cursor open in the database. So it should be specified carefully along with “maxOpenPreparedStatements=” parameter.
]]>Please support Wikileaks to keep the website live and up there by making the things happenings in the world be open, transparent and just.
Wish you all the best Wikileaks!!
]]>Step 1: Type in the following code in your iPhone’s keypad
Here replace XXXXX with your carriers voicemail number.
For example, for Tata Docomo Chennai replace XXXXX with 09029090290.
For Vodafone Mumbai, replace XXXXX with 51234
***Please visit your carrier’s website to find out your voicemail number
Step 2: Press the call button. That’s all; the code will be set
Step 3: Now press the Voicemail button and the iPhone will take you directly to your voicemail
.
]]>First you need to go to the following link and register yourself. During registration, you need to have your “Consumer Number” and “Phone Number”, which can be found out from any of your paper bill. The link to register is http://www.ernakulamtelecom.gov.in/register.jsp
After successful registration, go to the following link to login and pay your BSNL Landline Phone Bills http://www.ernakulamtelecom.gov.in/index.html. After logging in, you will be able to see a link on the right side of the page which says “Bill Information/Payment”. Click on the and you will be able to see your bill.
You can pay your bill only if you have an account in one of the following banks. There is no option to pay using a Credit Card/Debit Card.
1. HDFC Bank
2. Federal Bank
3. ICICI Bank
4. And a few other banks, which I forgot
Eventhough the design of the website a piece of junk, its a very useful facility which allows you to pay your bills online.
]]>
Debian Logo
This post explains how I have installed the Debian Lenny distribution on my HP DV6810us Laptop.
The following are the configuration of my Laptop
Model: HP DV6810us
Processor: AMD Turion 64 bit X2 (Dual Processor)
RAM: 3Gigs
Graphics Card: nVidia GeForce Go 7150M
Wireless Card: Atheros AR5007EG Chipset: AR242x
Current OS: Windows Vista (I was trying for a dual boot with Vista and Debian)
There are many Linux distributions available in the market viz. Debian, Ubuntu, Slackware, Fedora Core, Mandrake Linux etc. But debian was my choice because its the true Linux supported by the Open Source Community. Most of other distributions like Ubuntu are based on debian. It doesn’t matter much which flavor you are installing because all the linux distributions are having the same underlying kernel
Having a 64bit AMD Turion processor, my biggest concern was which architecture should I choose. I searched a bit on the net and finally decided to go with the i386 architecture instead of AMD 64. Even though 64 bit is the future, I decided to go with i386 because of the following reasons
Debian can be downloaded from the debian website. http://www.debian.org/distrib/
You can either download the CD or DVD image from their FTP site http://www.debian.org/CD/http-ftp/#stable. Make sure that you use a download manager software like Download Accelerator because you can resume if your download breaks in middle. The best option is to use the Jigdo because it strains the debian servers, the least.
I downloaded the first CD image from the following location http://cdimage.debian.org/debian-cd/5.0.0/i386/iso-cd/ . You need only the first CD for the basic debian installation. Later you can download packages and install it yourself. After downloading the ISO image for CD-1, burn it on a CD and make sure that it boots
As we all know, Linux uses a different file system from Windows, called ext3 (which has a journaling layer over ext2 file system). In fact you can choose from ext2, ext3, reiserfs etc. My choice was Ext3.
So for installing debian you need two separate partitions other than your windows partitions
You can use a software like “Partition Magic” for creating these above partitions without loosing your windows data. You can also do it while installing debian without loosing your windows data. The following link explains in detail how to create Linux partitions on windows http://forums.debian.net/viewtopic.php?t=30611
Now its the time put the Debian Installation CD and restart the system. Let the system boot from the CD. On my Laptop, it seemed to hang while booting from the CD. I later found out that it was because debian was unable to populate some device on my laptop. So I have to wait for a timeout on that device and debian will boot. I also found out that instead of waiting just press and hold the power button for a second will resume the booting.
After booting on to the CD, I can either go for a graphical installation or text installation. I chose graphical. In the next few screens you can select your language, country, etc and finally it will come to the Hard Disk Partitioning screen. Use the above link (http://forums.debian.net/viewtopic.php?t=30611) to create the root and swap partitions. Generally swap partitions will be allocated 10% - 15% of root partition size.
After the partitioning everything is simple and straight forward. There might be a problem while configuring the network. I selected my ethernet card as the default networking device and configured it. On HP DV6810 the wireless will not be configured during the installation. Just skip it. After installing the base system debian will detect whether your system is a laptop or a desktop and automatically select the required packages by default. Select all the defaults and finish the installation. At the end of the installation debian will detect the Windows OS and will ask you before installing the GRUB boot loader. Once the installation is finished Debian will eject the CD-Rom and will reboot the system.
When I rebooted after installation I had two problems which I had already anticipated. There was no wireless and the display was not in proper resolution. We are going to fix these two problems after logging in
Simple Question!! Simple answer!! because the drivers are missing…. But why the drivers are missing??
We all know that Debian is an open source operating system available under the GPL(GNU Public Licence). Everybody has the freedom to install, use and modify it according to your needs. But there are some proprietary hardware vendors like Atheros who neither provide a Linux Driver nor publish the Specifications for their proprietary hardware (Hardware Specs are necessary for writing a driver for that hardware). So the open source community has to inspect the hardware, find out the specs and write a driver for that. Since this is a very difficult and time consuming job, drivers for many new hardwares are unavailable for Linux.
There are some other hardware vendors like nVidia who does provide a Linux driver for their hardware; but we have to accept their licence agreements which is far away from the GPL licence. So debian can’t include these drivers in its distribution.
Setting up display was easy for nVidia graphics card. nVidia provides a Linux Driver for most of their graphics cards. So I just had to download and install it. Following is the procedure I followed to setup the display.
apt-get install build-essential apt-get install linux-headers-$(uname -r)
apt-get install gcc
/etc/init.d/gdm stop
sh NVIDIA-Linux-x86-180.29-pkg1.run
/etc/init.d/gdm start
Now you will be able to see the nVidia logo, and the display will be in proper resolution
Setting up wireless is usually a bit difficult task for Atheros and Broadcom wireless cards. My laptop has an Atheros Wireless card (AR5007EG). The default driver installed on Debian for my Atheros card was ath5k, which didn’t work. So I searched on the internet and found out that I have two options to go with. First is the open source Madwifi drivers. Second option is using the proprietary windows drivers in Debian using the open source wrapper Ndiswrapper.
Madwifi Vs Ndiswrapper
Madwifi is an open source driver for Atheros wireless cards on Linux. The Madwifi project actually provides three drivers viz. 1. madwifi 2. ath5k 3.ath9k. More information about Madwifi drivers can be found at http://madwifi-project.org/ . The unfortunate thing about madwifi is that its current stable release version v0.9.4 does not support the AR5007EG wireless card. But I have heard that the snapshot of latest testing version does work with the AR5007EG card but only on 32-bit (i386) version of Debian. You can download the snapshot from http://snapshots.madwifi-project.org/
Ndiswrapper is an open source wrapper which act as a middle layer between the Linux Kernel and the Windows drivers. Since with Ndiswrapper we are using the driver supplied by the vendor itself, probably Ndiswrapper will be a bit faster than Madwifi. Ndiswrapper currently supports Atheros AR5007EG on both 32-bit (i386) and 64-bit (amd64) versions of Debian. But remember, by using Ndiswrapper, you will be using a proprietary windows driver on your GPL Debian!!
Based upon the above facts, I decided to go with Ndiswrapper. I can accomodate using the proprietary windows drivers until Madwifi begins support for this card.
I have found a very good tutorial on installing Ndiswrapper. The link is http://www.linuxquestions.org/linux/answers/Networking/NdisWrapper_The_Ultimate_Guide/. Basically I just followed the instructions in this tutorial to get my wireless working. I am summarising the steps below. (The following process requires lot of files to be downloaded from the internet. Since I didn’t have wireless, I used a wired connection or I could download these files using Windows)
Copy these files to another directory named wireless-drivers inside your home directory
lsmod
After finding out the existing driver, it has to be unloaded from the kernel. Issue the following command to do this
rmmod ath5k
If you have ath_pci, replace ‘ath5k’ with ‘ath_pci’
Now check your ‘/etc/modules’ file to see if ‘ath5k’ is listed there. Issue the following command
gedit /etc/modules
This will open up the modules file in the Text Editor. If ‘ath5k’ is listed there, then remove it
Now we need to blacklist this driver. (By blacklisting the driver, you are telling the system that this driver is dangerous for the system and it should not be loaded under any circumstance. We are doing this inorder to prevent loading of this ath5k driver, which is anyway not working). To backlist the driver issue the following command
gedit /etc/modprobe.d/blacklist
This open the file ‘blacklist’ on the Text Editor. Add the following line at the end of this file and save it.
blacklist ath5k
If you have ath_pci then replace ‘ath5k’ with ‘ath_pci’. On my system the bottom part of the file looked like the following
blacklist wafer5823wdt blacklist wdt285 blacklist wdt977 blacklist wdt blacklist wdt_pci blacklist ath5k
Now restart the system. Once the system is started issue the following command
iwconfig
In the output of the command you won’t be able to see any wireless device
tar xvf ndiswrapper-1.54.tar.gz
It will extract the contents of the zip file to a directory named ndiswrapper-1.54. Now move on to this directory by issuing the following command
cd ndiswrapper-1.54
Now issue the following command to compile the Ndiswrapper. (Make sure that you have the build-essential package and the linux-headers package, as described above)
make
If the make command completes successfully, issue the following command to install ndiswrapper
make install
Once this command completes, the ndiswrapper module will be installed. Now move to the ‘wireless-drivers’ folder created in Step. 2 by issuing the following command
cd ../wireless-drivers
Now install the windows drivers using Ndiswrapper by issuing the following command
ndiswrapper -i netathw.inf
Once the command is completed, make sure that there are no errors logged on the system by issuing the following command
dmesg
If the dmesg output shows some errors related to ndiswrapper, then you are at your luck
You can check the driver installed with Ndiswrapper by issuing the following command
ndiswrapper -l
Now we need to insert the ‘ndiswrapper’ module in to “/etc/modules” file. (This will make sure that the ndiswrapper module will be loaded everytime you boot your computer). Issue the following command
gedit /etc/modules
This will open up the modules file on the text editor. Add the word ndiswrapper as the last line and save the file. On my system the file content look like the following
# /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. # Parameters can be specified after the module name. loop sbp2 ndiswrapper
Now restart the computer (ndiswrapper will be loaded when the computer starts. You can also use modprobe or insmod to load the module yourself)
Once the computer starts up, open a root terminal and issue the following command
iwconfig
In the output of this command if you can see your wireless device as wlan0, then wireless is configured properly
gedit /etc/apt/sources.list
#deb cdrom:[Debian GNU/Linux 5.0.0 _Lenny_ - Official i386 CD Binary-1 20090214-16:29]/ lenny main
Then add the debian ftp mirrors and the wicd sources. So if any of the following lines are missing from your sources.list file, then add it and save it
deb http://ftp.us.debian.org/debian/ lenny main contrib non-free deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free deb http://apt.wicd.net lenny extras
Now issue the following command to update your package info
apt-get update
The wicd package in debian package repository is cryptographically signed. So inorder to verify the signature we need to install the key in to the debian key ring. Issue the following command to do this
wget -q http://apt.wicd.net/wicd.gpg -O- | sudo apt-key add -
Once the key is installed, issue the following command to install wicd
apt-get install wicd
(wicd package has a dependancy on ‘wpa supplicant’ package. So this package also will be installed) Now you can see the wicd under “Main Menu > Internet > Wicd Network Manager’. Run this and you can see the wireless networks.
dpkg -i wicd_1.5.9_all.deb
I hope the this article is informative and helpful for setting up your debian system. For me it took a lot of time to find out and do all these things. But once you are successful the satisfaction and happines you get is ineffable. Good luck to everyone who are trying Debian!!
]]>Microsoft said that, although it will close down the studio, Ensemble’s “leadership team” will form a new, independent development house and has already entered into an agreement with the publisher to continue supporting Halo Wars post-launch, “as well as work on other projects with Microsoft Game Studios.”
Ensemble Studios will always be remembered for their invaluable contributions to the gaming industry with their “Age of Empires”, “Age of Mythology” and the forthcoming “Halo Wars”.
]]>As an internet user, how is this going to affect us? Will it be detrimental or beneficial for us?
I can foresee a few things that could happen in future. Google says that their browser is primarily meant for web applications. Google’s main web applications are Gmail, Orkut, You Tube, Google Maps etc. So defenitely Google will try to make their applications with richer functionalities, more intuitive user interfaces and so on, which MAY NOT work with other browsers. This point has to be considered together with the suit filed by Google accusing Microsoft for their latest version of Internet Explorer not running Google websites with the same efficiency as it would do for all other websites. Nobody think Microsoft will be dumbs. They will also try to pose challenges for other browser which is not their’s. May be a few years down the line, the internet community will have use Chrome for accessing Google and Google’s websites, Internet Explorer for accessing Microsoft sites etc etc.
Imagine a situation where all the people will be using a single brower, financially supported by all the corporates, technically supported by the open source developers and morally supported by all of us. If that happens we would have had a super super Browser which can do wonders for us. Lets hope that all these individual efforts will streamline together oneday, and everybody will benefit from it.
]]>