Setting up Bazaar Explorer in Ubuntu 8.10

Well, this thing is something very new for me. Bazaar is a Distributed Revision Control System for tracking and managing the code that we usually write for various applications. And its not uncommon for people like us to find ourselves in serious trouble when accidentally we have deleted a file or a piece of code that made the whole system work. But now its not there. I remember that night when me and Samarendra were at Appi's place in baner. I had stayed back to work with Samar for our final year project appi. We had setup my 8GB with Ubuntu 8.10 on it. So it was a moving Ibex on our stick. We had our repository at Google Code. And thankfully we had thought about it. But that night, suddenly the pen drive mal functioned and whole of our code got lost. Just because we had some part of it revisioned at Google Code, we were able to get the most of the lost things.

So if you are working on some project which means a lot to you, do have it re-visioned some where using tools like Bazaar.

Looks like i got a bit distracted with old memories.

So, when you are working on open source projects, Google Code would be an ideal choice providing code versioning, bug tracking, code reviews, etc. But for some commercial project you need to have it either at any paid repositories like Git-hub. But I thought about having one for myself. And with our work being divided to multiple people at various places, we thought to have Bazaar as our choice.


I am here giving details of setting up Bazaar Explorer for using the Bazaar for code versioning.

There is an old saying that you dont get a priceless thing just like that. You have to earn it. Bazaar explorer depends on quite a lot of other packages. Actually, it depends on qbzr which itself depends on other packages.

So here is how you can set up bazaar explorer on you system.


Step 1 - Installing bzr explorer
Goto your plugins directory. Its usually at ~/.bzr/plugins or /usr/lib/python2.5/site-packages/bzrlib/plugins/. Check out where it is available in your case. Make sure you are connected to Internet and type the following command inside the plugins directory

bzr branch lp:bzr-explorer explorer

That would setup your bzr explorer. But, it wont do anything. It gave me message that I need to have qbzr. So, this is where fun start.


Step 2 - Downloading qbzr

Download qbzr from this page. I downloaded the version 0.14. That was the latest when I set it up. Read the README file inside the extracted folder. Lots of dependency...isn't it.


Step 3 - Installing
bzr-search plugin
Although its an optional plugin, I thought why not install it. Its the right choice if the plugin installation is not complex and plugin size is also small.
Simply enter the following command just like for bzr-explorer in your plugins directory.

bzr branch lp:bzr-search ~/.bazaar/plugins/search


Step 4 - Installing bzr-difftools
According to the texts at launchpad.net, its improves the usability of launching external diffs. Didn't mind adding another one in the kitty. Here is the command.

bzr branch lp:bzr-difftools ~/.bazaar/plugins/difftools


Step 5 - Installing PyEnchant

Download the tarball from the PyEnchant website.
Extract the tarball.
Inside the extracted folder, type following:

sudo python setup.py install

The installer says that it needs setuptools, and tries to download...My internet was working fine. So it automatically downloaded it for me.
If your target system doesn't have internet connection, it gives a link for the file to be downloaded. Download the specified file when connected to the internet and place the file in the current extracted folder of PyEnchant. Run the above command again to complete the installation.


Step 5.5 - Installing Pygments
This step just slipped out from initial post. So it has slipped in between. This package is already available for debian systems. So installed it from the Synaptics Package Manager. Otherwise, you can install it the way the website tells to be installed. Its says for easy_install. Try it out if you find any difficulty installing it from Synaptics Package Manager.


Step 6 - Downloading Qt and installing the same
Qt framework is a huge package. So download it beforehand. Here is the website link for Qt. Its in the form of binary installer. I needed Qt for my development also, so I downloaded the complete package with SDK also.
Run the installer from command prompt and follow the steps for installation. Its just another windows software installation. So you wont have any problem there. I hope so...


Step 7 - Installing PyQt4
Download PyQt4 from here. The readme file in the tarball says that i need another package - SIP. Download that too from this page.
Now extract the SIP tarball.
Inside the extracted folder, type following:

python configure.py
sudo make
sudo make install

And SIP is done.
PyQt4 installation had some issue with -lg-threads-2.0. I wasn't able to work out the solution for it. But found an alternate to install PyQt4. At saltycrane.com, I got to know that, PyQt4 can be installed from Synaptics Package Manager. So, searched for PyQt and found the package. Installed the package from Synaptics and I was up and running again.


Step 8 - Installing qbzr
Finally comes the turn for qbzr. It was just a piece of cake now. Type following inside the extracted folder of qbzr and it would not take any long than 10 secs:

sudo python setup.py install

And finally i was able to get the Bazaar Explorer with command bzr-explorer.

Wow.......now that's worth a post.
Hehehehehe..... ;)

Comments

Popular posts from this blog

Personal Contact Manager

An apt quote

Alone