Thursday, October 27, 2005

Finally got debian sarge running on my box.

huh!!!.. it was really frustating to install debian without CD-ROM but during the course of installing it i gained a lot of insight in to the debian installation tricks. It's really true that the debian installer is sucking very hard and is not for the masses. The one who installs it need some kind of great patience of doing same stuff time and time again without fail.
Anyway thanks to Kartik Mistry for his instant support and gave a insight of installing through netinstall-iso. I did it through USB-ZIP since my CD-ROM is not detecting the CD written with netinstall-iso. And finally installed all the required packages through apt-get.
Now, i got a complete running debian sarge box with gnome-2.10 ready to explore more.
Now i can concentrate more on glade and Gtk.

Friday, October 14, 2005

Why Debian ??

A couple of day's back my project co-ordinator Mr R.K.V.S Raman asked "why debian... why not fedora", that time i was speechless with only utterance of debian's huge repository and easy package management. And then i thought i have to justify my switch from Fedora to Debian.
Now this is a small feature list supporting Debian.

Debian is the world's leading non-commercial totally free Linux distribution. Remaining loyal to the concept upon which Linux was created, it is produced by hundreds of volunteer developers around the world. Contrary to a common misconception, Debian is not for Linux gurus only. As a matter of fact, as you will see on the guide pages, its advanced package management system makes it one of the easier distributions for new Linux users to work with. Here are just a few of its advantages:

* Non-Proprietary: Debian is a true GNU/Linux distribution using the standard UNIX style commands. This ensures that what you learn today won't be obsolete in two years and makes it easier to also learn how to work with UNIX systems.
* Easy Maintenance: A seamless, totally-integrated package management system makes it easy to keep your system up to date and free of orphan files and incompatible products. Most dependent packages are handled automatically so you don't get the "Failed dependencies" error commonly encountered when trying to add software on RPM-based systems like Red Hat and Suse.
* Automated Patching: The Debian package system also allows you to use a single command to update your entire system (operating system and installed packages) over the Internet. This allows you to use a scheduler to routinely run a shell script to automatically update your system with the latest program, OS, and security patches.
* Extensive: Only free software packages (applications, utilities, etc.) are allowed to be included in the official Debian distributions, and the current binary distribution comes on 14 CDs because there are over 10,000 of them. With Debian, you don't have different "server" and "workstation" or "personal" editions. It's everything all in one.
* Support Options: Peer support is available through a community of listservs (mailing lists) and chat rooms. Replies to messages may even be from those who helped develop the product. And since you're likely not the first person to encounter a given issue, there are also searchable archives of listserv messages. If your company requires commercial support contracts fear not. Numerous for-profit support operations offer a variety of technical support options. With Debian, you don't have to worry about forced upgrades due to vendors dropping support for older versions.
* Minimal Investment: Debian's peformance is excellent even with the modest hardware requirements Linux is famous for. While most OSs require newer, faster, bigger hardware, Debian allows you to utilize those old Pentium systems instead of throwing them into a landfill. This, along with the fact that you can load a single copy of Debian on as many systems as you want, means you can set up a full-blown enterprise at very little cost.
* Reliable: Debian's focus on stability and reliability results in servers that you may have to reboot once a year, rather than once a month.
* User-centric: New versions of Debian are developed when major changes warrant one, not to generate revenues from upgrades. (You need only look at the version numbers of the various distributions to verify this.)

Taken from http://www.aboutdebian.com/

Monday, October 10, 2005

Error while building OO2.0 in "package" module on Ubuntu 5.04 "Hoary Hedgehog".

I am using "ooo_SRC680_m125_src" source, while building it crashed in package module giving error as:

/home/vijay/ooo_SRC680_m125_src/package/source/zippackage
------------------------------
Making: ../../unxlngi4.pro/slo/ZipPackage.obj
g++ -Wuninitialized -fmessage-length=0 -c -I. -I../../unxlngi4.pro/inc -I../inc -I../../inc -I../../unx/inc -I../../unxlngi4.pro/inc -I. -I/home/vijay/ooo_SRC680_m125_src/solver/680/unxlngi4.pro/inc/stl -I/home/vijay/ooo_SRC680_m125_src/solver/680/unxlngi4.pro/inc/external -I/home/vijay/ooo_SRC680_m125_src/solver/680/unxlngi4.pro/inc -I/home/vijay/ooo_SRC680_m125_src/solenv/unxlngi4/inc -I/home/vijay/ooo_SRC680_m125_src/solenv/inc -I/home/vijay/ooo_SRC680_m125_src/res -I/home/vijay/ooo_SRC680_m125_src/solver/680/unxlngi4.pro/inc/stl -I/home/vijay/ooo_SRC680_m125_src/solenv/inc/Xp31 -I/usr/lib/j2sdk1.4-sun/include -I/usr/lib/j2sdk1.4-sun/include/linux -I/usr/lib/j2sdk1.4-sun/include/native_threads/include -I/usr/X11R6/include -I. -I../../res -I. -O1 -pipe -mcpu=pentiumpro -Wno-ctor-dtor-privacy -include preinclude.h -fexceptions -fno-enforce-eh-specs -fpic -DLINUX -DUNX -DVCL -DGCC -DC300 -DINTEL -DGXX_INCLUDE_PATH=/usr/include/c++/3.3 -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA -DSRC680 -DSHAREDLIB -D_DLL_ -DMULTITHREAD -o ../../unxlngi4.pro/slo/ZipPackage.o /home/vijay/ooo_SRC680_m125_src/package/source/zippackage/ZipPackage.cxx
In file included from /home/vijay/ooo_SRC680_m125_src/package/source/zippackage/ZipPackage.cxx:74:
../../inc/ZipPackageFolder.hxx: In member function `void ZipPackageFolder::setRemoveOnInsertMode_Impl(unsigned char)':
../../inc/ZipPackageFolder.hxx:124: error: invalid pointer to bit-field `ZipPackageEntry::mbAllowRemoveOnInsert'
dmake: Error code 1, while making '../../unxlngi4.pro/slo/ZipPackage.obj'
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making /home/vijay/ooo_SRC680_m125_src/package/source/zippackage


I guess the problem is probably caused by the use of gcc-3.3, the same error on linux with gcc 3.2. This was introduced between m116 and m117.

This is the fix for the problem.


diff -ur package/inc/ZipPackageFolder.hxx package_new/inc/ZipPackageFolder.hxx
--- package/inc/ZipPackageFolder.hxx 2005-07-12 14:28:10.000000000 +0200
+++ package_new/inc/ZipPackageFolder.hxx 2005-07-14 17:30:52.000000000 +0200
@@ -121,7 +121,7 @@
}

void setPackageFormat_Impl( sal_Bool bPackageFormat ) { m_bPackageFormat = bPackageFormat; }
- void setRemoveOnInsertMode_Impl( sal_Bool bRemove ) { ZipPackageEntry::mbAllowRemoveOnInsert = bRemove; }
+ void setRemoveOnInsertMode_Impl( sal_Bool bRemove ) { this->mbAllowRemoveOnInsert = bRemove; }

// Recursive functions
void saveContents(rtl::OUString &rPath, std::vector < com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue > > &rManList, ZipOutputStream & rZipOut, com::sun::star::uno::Sequence < sal_Int8 > &rEncryptionKey, rtlRandomPool & rRandomPool)


diff -ur package/source/zippackage/ZipPackageFolder.cxx
package_new/source/zippackage/ZipPackageFolder.cxx
--- package/source/zippackage/ZipPackageFolder.cxx 2005-07-12 14:31:33.000000000 +0200
+++ package_new/source/zippackage/ZipPackageFolder.cxx 2005-07-14 17:31:14.000000000 +0200
@@ -128,7 +128,7 @@
{
OSL_ENSURE( m_xFactory.is(), "No factory is provided to the package folder!" );

- ZipPackageEntry::mbAllowRemoveOnInsert = bAllowRemoveOnInsert;
+ this->mbAllowRemoveOnInsert = bAllowRemoveOnInsert;

SetFolder ( sal_True );
aEntry.nVersion = -1;


diff -ur package/source/zippackage/ZipPackageStream.cxx package_new/source/zippackage/ZipPackageStream.cxx
--- package/source/zippackage/ZipPackageStream.cxx 2005-07-12 14:31:48.000000000 +0200
+++ package_new/source/zippackage/ZipPackageStream.cxx 2005-07-14 17:32:10.000000000 +0200
@@ -137,7 +137,7 @@
{
OSL_ENSURE( m_xFactory.is(), "No factory is provided to ZipPackageStream!\n" );

- ZipPackageEntry::mbAllowRemoveOnInsert = bAllowRemoveOnInsert;
+ this->mbAllowRemoveOnInsert = bAllowRemoveOnInsert;

SetFolder ( sal_False );
aEntry.nVersion = -1;



cheers.. happy building :-))

Friday, October 07, 2005

Installing java in Ubuntu hoary..

First download the j2sdk : in my case it is j2sdk-1_4_2_09-linux-i586.bin. Be sure to get the .bin, not the .rpm.

Next install "java-package" with synaptics or apt-get, whatever your preference, with the command

$ sudo apt-get install java-package.

Note that this will also install the package "fakeroot", if you don't already have it installed. Note also that java-package is in "multiverse", so your repository list /etc/ept/sources.list needs to contain, for example:

http://archive.ubuntu.com hoary/multiverse java-package

Create a Debian java package with fakeroot make-jpkg, for example

$fakeroot make-jpkg j2sdk-1_4_2_09-linux-i586.bin

Important: don't use sudo to do this, and expect to get some warning/ error "permission denied" messages. This should create a debian package - sun-j2sdk1.4_1.4.2+09_i386.deb - ready to install with dpkg. For example,

$ sudo dpkg -i sun-j2sdk1.4_1.4.2+09_i386.deb

Once you've installed it, you'll be up and running with java:
your JAVA_HOME is now, for example, /usr/lib/j2sdk1.4-sun/.
On command line enter:

$ java -version :you should see something like:

java version "1.4.2_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-b05)
Java HotSpot(TM) Client VM (build 1.4.2_09-b05, mixed mode)

Thursday, October 06, 2005

FOSS.IN/2005

Heads-up for anyone interested in Free & Open Source Software, especially if you are in India:

FOSS.IN/2005 (the successor to the well known Linux Bangalore conferences) is from November 29th to December 2nd, at the Bangalore Palace in Bangalore, India. This is India's biggest FOSS conference.

If you want to know more, check out http://foss.in/2005

I will be participating as a delegate.

FOSS.IN/2005 is a community-oriented event. For it to be successful,it needs to reach the people who would benefit the most from it, and help in increasing the tribe of contributors and users of Free & Open Source Software.

The four day conference intends to bring together the entire cross section of players in the FOSS scenario - users from different target communities, technologists, developers, educationists, businesses as well as policy makers.

The theme for this year's conference is "Conversations". On the FOSS horizon, there are several efforts that are represented or addressed across the country. In, parallel, there are various technical discussions and dialogues that have happened at the earlier conferences and meetings and are expected to happen at this conference too.

At FOSS.IN/2005, the focus would be to catalyze mutually beneficial interaction between the technologists and technology implementers (FOSS developers) and the end users, policy makers, educationists and industry. This focus would be in addition to the intent of enabling technology knowledge dissemination across the community through talks and/or demonstrations.

The call for participations has been out for quite some time now.

You can see the Call for participation @ http://foss.in/2005/cfp/
A list of possible topics is available @ http://foss.in/2005/topics/

If you would like to give a talk, tutorial, do a workshop or
organize a Birds of Feather session, then register it at the
earliest, only 4 days left for speaker registration.

To register as a speaker visit
http://foss.in/2005/speakers/

If you are planning to speak or attend (or even if you can't attend
due to reasons beyond your control), you can help getting the word out in a variety of ways:
eg. talking about it friends, colleagues, clients etc, putting it up
on your blog if are planning to speak or attend, putting up posters
about the event at your school/college/organization etc.
See http://foss.in/2005/promote/ on ways to promote it.