Tuesday, June 12, 2007

Apple Introduces Safari for windows

Enjoy... Safari on windows. 
Claimed to be the fastest browser among the existing ones's. I am experiencing it and definitely cherish this as long as Apple provides Safari as a free download for windows.
Get safari 3 Beta... and experience the power of Apple and feel of Mac on windows.

Monday, June 04, 2007

Subversion, Apache(httpd), ViewCVS windows XP setup and configuration

Subversion, Apache HTTP server and viewcvs goes hand in gloves if one wants to run subversion as a version control(source control) for any production environment.

Followed the following steps to configure all three together.

1. Installed subversion1.4.3 from http://subvsersion.tigris.org version as svn-1.4.3-setup.exe

2. Installed the activestate python from ftp.activestate.com version as ActivePython-2.5.0.0-win32-x86.msi

3.
Installed svn-python binding for python2.5 and subversion1.4.3 from http://subversion.tigris.org version as svn-python-1.4.3.win32-py2.5.exe
  • One has to be very specific about the python, subversion and svn-python bindings. Ensure that the svn python binding versions should be same as that of subversion and python installed.
4. Test that the python shell can load svn-python bindings
  • launch C:/Python25/python.exe
  • from python shell enter : import svn.repos , it should not give any error trace.
  • exit python shell.
5. Got viewCVS from http://viewcvs.sourceforge.net version as viewvc-1.0.4.zip.
  • Unzipped viewvc-1.0.14.zip and renamed viewvc-1.0.4/viewvc-install as viewvc-1.0.4/viewvc-install.py and double-clicked it. This will ask some simple configuration query, i preferred default.
6. Edited C:/Program Files/viewvc-1.0.4/viewvc.conf
  • commented # cvs_roots = cvs: /home/cvsroot
  • Modified svnroots line as svn_roots = svn-root: c:/opt/svn-root , this is because i am having one svn repo named "svn-root" in C:/opt directory.
  • Modified root_parents line as root_parents = C:/opt : svn and removed ',' from the end of line.
  • Modified default_root line as default_root = svn-root
7. Test the viewcvs and subversion configuration and integration
  • Through command line run standalone.py -g from C:/Program Files/viewvc-1.0.4/bin/ location.
  • It will allow one to browse the repository with the default browser and if it works then only we can go further to integrate viewcvs with apache.
8. Installed apache httpd from http://www.apache.org as version apache_2.0.59-win32-x86-no_ssl.msi
  • Subversion win32 binaries are compiled for apache2.0.x and will not work with apache2.2.x.
  • "dav_svn_module in file /modules/mod_dav_svn.so is garbled" - perhaps this is not an apache module DSO ? This is the error one would get if tries to run apache-2.2.x with win32 subversion.
9. Edited httpd.conf file
  • Search for ScriptAlias in httpd.conf file and add one more line below all the ScriptAlias as ScriptAlias /viewcvs "C:/Program Files/viewvc-1.0.4/bin/cgi/viewvc.cgi"
  • Restart apache httpd server
  • Now, one can browse the repository.
10. One need GNU diffutils installed and in the PATH to enable the viewcvs feature of diff between two revisions. Get GNU diffutil from this Link...

cheers, make world open.

Tuesday, May 01, 2007

Gentoo on VMware in Fedora Core 6

Successfully installed Gentoo on real hardware and then thought of trying same installation on VMware server 1.0.1.
Religiously followed the Gentoo Handbook page for both the installation.
All went well for real hardware installation but on VMware it failed to boot from hard disk after installation with an error message saying that /dev/sda3 is not a valid block device.

Gentoo HOWTO wiki page
helped me to identify the problem and gave solution as well.
VMware seems to be using different driver for scsi devices and so /dev/sda3 is not able to mount as root partition hence stopping kernel from booting successfully.

I recompiled the kernel with some more addition to the kernel configuration
$ genkernel --menuconfig --no-mrproper --no-clean all
above command will allow you to keep all your existing configuration and add some more configuration parameters.

Earlier my kernel on VMware gentoo had Modular support for scsi_generic and Kernel support for scsi_disk. Modified the kernel configuration and added these two modules as a built in Kernel support. Made sure that the menuconfig windows has <*> before SCSI disk support and SCSI generic support.
These options can be found here at menuconfig windows...
Device Drivers -->
SCSI device support -->
<*> SCSI disk support
....
....
<*> SCSI generic support

This re-compiled kernel did the magic for me. Gentoo on VMware boots great from hard disk.

Network also had an issue as VMware needs AMD PCnet32 PCI support. Solution is to either build kernel with AMD PCnet32 PCI support OR load the kernel module pcnet32 by default at boot time.

cheer, make world open...

Saturday, March 31, 2007

Technorati Profile

technorati claim

Technorati Profile

Reporting from BarCampBangalore3

Bang!!!
Again this time barcampbangalore3 started with a bang with lot of topics and obviously lots... n lots of bright people. I was rite in my earlier post to learn more about social computing.
Attended couple of sessions on ICT for society, foss in governance and still more to come...

First session in society hall is about ICT for society...

Thursday, March 29, 2007

error C2065: 'INVALID_FILE_ATTRIBUTES' : undeclared identifier Error executing cl.exe.

Cygwin based compilation of opensource components which needs platform sdk 2003 toolkit breaks with the above titled error message.

This failure is basically because of missing macro $define INVALID_FILE_ATTIBUTES ((DWORD) -1)
in winBase.h of platform sdk 2003 installation.

Solution:
1. Check the "INCLUDE" environmental variable and ensure that the platform sdk is part of this variable.
INCLUDE=C:\Program Files\Microsoft Platfform SDK\Include\.

2.
If platform sdk is part of include variable then look for the macro $define INVALID_FILE_ATTIBUTES ((DWORD) -1) in C:\Program Files\Microsoft Platform SDK\include\winBase.h and if one can see the macro in this file then this is the time to get the latest version of Platform sdk installed.

Above steps will resolve the title issue.

cheers, make world open.


Thursday, March 22, 2007

BarCamp Bangalore 3

BarCamp Bangalore third edition is scheduled for March 31 and April 1 2007. Looking forward to learn some interesting development in the current technologies trends.

BarCamp Bangalore [BCB3] themes are really interesting - Internet, Mobiles and the impact of technology on our society and our lives.

An Unconference for you and by you... great catch...
Register Here...

cheers, make world open...

Thursday, February 08, 2007

Vote for OOoCon 2007 in India

We should come forward to make this happen and scratch a more visible line on OpenSource map for India.
Please vote.

More Information....

cheers,
make world open...

Wednesday, December 13, 2006

Failure in moz while Building OpenOffice m196 on fc6 with gcc 4.1.x

Failure in moz while Building OpenOffice m196 on fc6 with gcc 4.1.x.

Error trace is :
mimemult.cpp:55: warning: missing braces around initializer for ‘MimeContainerClass’
mimemult.cpp:55: warning: missing braces around initializer for ‘MimeObjectClass’
mimeeobj.h:57: error: previous declaration of ‘MimeExternalObjectClass mimeExternalObjectClass’ with ‘C++’ linkage
mimemult.cpp:76: error: conflicts with new declaration with ‘C’ linkage
gmake[4]: *** [mimemult.o] Error 1
gmake[4]: Leaving directory `/home/vijay/ooo_SRC680_m196_src/moz/unxlngi6.pro/misc/build/mozilla/mailnews/mime/src'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/home/vijay/ooo_SRC680_m196_src/moz/unxlngi6.pro/misc/build/mozilla/mailnews/mime'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/home/vijay/ooo_SRC680_m196_src/moz/unxlngi6.pro/misc/build/mozilla/mailnews'
gmake[1]: *** [tier_97] Error 2
gmake[1]: Leaving directory `/home/vijay/ooo_SRC680_m196_src/moz/unxlngi6.pro/misc/build/mozilla'
make: *** [default] Error 2
dmake: Error code 2, while making './unxlngi6.pro/misc/build/so_built_ooo_mozab'
'---* tg_merge.mk *---'
ERROR: Error 65280 occurred while making /home/vijay/ooo_SRC680_m196_src/moz

The problem is with the mozilla 1.7.5 source which is fixed in mozilla 1.8.
http://qa.openoffice.org/issues/show_bug.cgi?id=66906
Link shows the patch id=39575 which when applied fixes the broken build.

cheers, make world open.



Saturday, December 02, 2006

From BarCamp Bangalore

Sharing space with folks here at barcamp bangalore 2.0 at thoughtworks india and planning for the sessions ahead. Having more scoop of enthusiasm or may be i did not want to miss this golden opportunity , i came a lot early and became the first one to put up my name here to register.
But.. uhhhh i am not the only one who is so excited about the event. I see a lot of folks here already as early as 8.30 am in the morning.
Will come back and put up more interesting stuff here....

Tuesday, November 28, 2006

How to enable Wireless Lan on [wifi] FC-6 .

Bingo!!! Fedora Core 6 comes with build-in support for ipw2200 drivers and ieee80211 modules. The FC6 kernel 2.6.18-1.2849.fc6 includes version 1.1.2 of the ipw2200 driver. So one needn't worry about the wifi on FC6 and don't need to use windows native driver using ndiswrapper.
FC6 needs only ipw2200-firmware [firmware v3.0], which is not shipped with FC6 because firmware is proprietary.

*** Steps to enable wifi on IBM T43


1. Download ipw2200-fw-3.0.tgz from
http://ipw2200.sourceforge.net/firmware.php

2. Unarchive ipw2200-fw to /lib/firmware


3. reload ipw2200
$/sbin/modprobe -r ipw2200
restart ipw2200
$/sbin/modprobe ipw2200
OR reboot the machine.

Look for the dmesg log as root
$ dmesg | grep ipw2200
Output:
ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.2.0dmq
ipw2200: Copyright(c) 2003-2006 Intel Corporation
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
ipw2200: Detected geography ZZM (11 802.11bg channels, 0 802.11a channels)
$system-config-network and configure the
wireless card.



*** Steps to enable wifi on HP nx6110 using ndiswrapper on fedora core 6.

1. Ensure livna repo is added to the yum repos.

2. $yum install ipw2200-firmware

3. $yum install ndiswrapper

4. $yum install cabextract

5. Download HP windows native driver SP30290.exe

6.
Unpack the SP30290.exe to some directory. To do so run
$ cabextract SP30290.exe

7.
From the directory where the SP30290.exe file is extracted. As super user(root) run
$ /usr/sbin/ndiswrapper -i bcmwl5a.inf

8. $ /usr/sbin/ndiswrapper -m

It will add an alias to /etc/modprobe.conf.
Alias means it will add a line "alias wlan0 ndiswrapper" at the end of /etc/modprobe.conf .
If above command fails, manually add "alias wlan0 ndiswrapper" to /etc/modprobe.conf.

9. Blacklist bcm43xx,
To do this add line blacklist bcm43xx to the end of file /etc/modprobe.d/blacklist .

10.
Now you can reboot to have it activated,
or you can run
$ depmod -a
$ modprobe ndiswrapper

Use the System -> Administration -> Network application to create a new device for the wlan0 ndiswrapper device and configure as per the options there.

cheers,

make world open.

Thursday, November 16, 2006

VMware server on fedora core 6

Vmware server on fedora core 6 is having problem while configuring it with vmware-config.pl. The error trace is:
/tmp/vmware-config1/vmnet-only/procfs.c:33:26: error: linux/config.h: No such file or directory
make[2]: *** [/tmp/vmware-config1/vmnet-only/procfs.o] Error 1
make[1]: *** [_module_/tmp/vmware-config1/vmnet-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686'
make: *** [vmnet.ko] Error 2
make: Leaving directory `/tmp/vmware-config1/vmnet-only'
Unable to build the vmnet module.

The problem as evident from the trace is because of the missing config.h file at this location
/usr/src/kernels/2.6.18-1.2798.fc6-i686/include/linux/config.h

Fix for the problem is to create an empty config.h file at this location /usr/src/kernels/2.6.18-1.2798.fc6-i686/include/linux/.
$ touch /usr/src/kernels/2.6.18-1.2798.fc6-i686/include/linux/config.h
will do the magic.


cheers, make world open...

Thursday, September 28, 2006

Issue building subversion 1.3.0 on sles9

Building subversion with the ssl support on sles9 box fails at the time of configure itself with the following error messages.
$./configure --with-ssl
.......
.....
...
checking for library containing RSA_new... not found
configure: error: could not find library containing RSA_new
configure failed for neon


The problem is either with the installed location of the openssl library or it might be possible that openssl-devel is not installed on the box.

Look for the openssl-devel rpm and if it is installed in the system then one have to identify the exact location of the openssl library and can pass the same to the configure script like...
$./configure --with-ssl --with-libs=/usr/local/ssl ...

Problem resolved. :-)

cheers, make world open.

Tuesday, August 29, 2006

Xorg startx problem

The problem is with starting the X windows on the FC-4 box. When doing "startx" at the command prompt with root user, "startx" is starting successful session of X window. It is failing for all the user other than root with the following error message.

Cannot move old log file ("/var/log/Xorg.0.log" to "/var/log/Xorg.0.log.old"
Please consult the The X.Org Foundation support at
http://wiki.X.Org for help.


The problem is with the permissions on /usr/X11R6/bin/Xorg

Doing this $ chmod u+s /usr/X11R6/bin/Xorg
and confirming /usr/X11R6/bin/Xorg file
owner as root.root will do the trick.

Now... X windows is running great.

cheers,
make world open...

Wednesday, August 02, 2006

Extracting mp3 from audio CD.

Some of the tools on Linux which can help in extracting audio CD's.

cdparanoia:

cdparanoia retrieves audio tracks from CDDA capable CDROM drives. The data can be saved to a file or directed to standard output in WAV, AIFF, AIFF-C or raw format. Most ATAPI, SCSI and several proprietary CDROM drive makes are supported; cdparanoia can determine if the target drive is CDDA capable.
In addition to simple reading, cdparanoia adds extra-robust data verification, synchronization, error handling and scratch reconstruction capability.

$cdparanoia -B -- 1-5
It will extract audios in wav format from track one to five. This is the best tool when one needs to extract CD which is worn out.

Sound Juicer:

Sound Juicer is a gtk based application and comes by default with gnome environment. By default sound juicer is not capable of extracting CD in mp3's format. In sound juicer preferences mp3 radio button is there but it will not work by default.
Sound Juicer uses the gstreamer framework as its backend. To enable extracting to mp3 we need to add mp3 encoding support to gstreamer. This is easily done by installing gstreamer-plugins-mp3 package from rpm.livna.org.

$yum install gstreamer-plugins-mp3

This will take care of all the necessary dependency for gstreamer-plugins-mp3 and install.

cheers... make world open.

Thursday, July 13, 2006

aye dil hain muskil....

"Aye dil hain muskil jeena yahan, zara hatke zara bachke ye hain bambai meri jaan" this verses from Mazrooh Sultanpuri is getting it's literal meaning now. Mumbai is teaching the world a new way of fighting the menace of terrorism.
Mumbaikars have proved their mettle that they are not going to be defeated by the handful of craps. They are giving a new dimension to the philosophy of life and death, writing a new chapter of humanity.
Where can we see... Four badly injured carrying an almost dead person to hospital and that too with all care to make him live. Those crappy terrorists are denied success. This all can happen in Mumbai... and we here with full throat can proudly say "salaam mumbai"

...

Monday, July 10, 2006

There is a thin line between success and failure...

Soooooo... at last Italy won the much coveted league of the world soccer and that too with a very thin line difference. Success is always there in the middle of that proportion and it cheats someone to bestow others.
France was six inches behind their success and this proved a really huge gap for them.
Well... no matter how one gets to that dais, world is with the people out there.
kudos to them !!!

Monday, July 03, 2006

firefox crashes!!!

I updated firefox to 1.5.0.4 on my fedora core box. To my surprise firefox is crashing with the following error message.


/usr/local/firefox/firefox-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory


I checked in the /usr/lib directory and found that the concerned library is not there. It is really frustrating to know that firefox 1.5.0.4 will not work with the latest libstdc++ library.

With some googling and my friend Subhash's advice of installing backward compatible libstdc++ library rpm, problem is sorted out and now firefox is working as usual. :-)

$ yum install compat-libstdc
This is the command which did trick for me.


cheers,
make world open